• Clemens Hammacher's avatar
    [wasm] Decouple wire bytes from compilation units · 014d9e4f
    Clemens Hammacher authored
    Compilation units currently contain pointers into allocated space that
    contains the code of the respective function. This requires us to keep
    the StreamingDecoder alive as long as compilation is still running
    (including tiering).
    This CL refactors this by having an additional redirection
    (WireBytesStorage) which can point to either the StreamingDecoder or
    the NativeModule. We only keep the code section buffer alive as long as
    the StreamingWireBytesStorage is still in use.
    
    I will further refactor memory ownership in a follow-up CL to not make
    the AsyncCompileJob keep the StreamingDecoder alive.
    
    R=ahaas@chromium.org
    
    Bug: v8:8343,v8:7921,v8:8050
    Change-Id: I780582c3217abf64000454f2c9c108b9ac9fbff1
    Reviewed-on: https://chromium-review.googlesource.com/c/1319588Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57317}
    014d9e4f
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
assembler Loading commit data...
base Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
objects Loading commit data...
parser Loading commit data...
torque Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
allocation-unittest.cc Loading commit data...
background-compile-task-unittest.cc Loading commit data...
bigint-unittest.cc Loading commit data...
cancelable-tasks-unittest.cc Loading commit data...
char-predicates-unittest.cc Loading commit data...
code-stub-assembler-unittest.cc Loading commit data...
code-stub-assembler-unittest.h Loading commit data...
counters-unittest.cc Loading commit data...
detachable-vector-unittest.cc Loading commit data...
eh-frame-iterator-unittest.cc Loading commit data...
eh-frame-writer-unittest.cc Loading commit data...
locked-queue-unittest.cc Loading commit data...
object-unittest.cc Loading commit data...
register-configuration-unittest.cc Loading commit data...
run-all-unittests.cc Loading commit data...
source-position-table-unittest.cc Loading commit data...
strings-storage-unittest.cc Loading commit data...
test-helpers.cc Loading commit data...
test-helpers.h Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
testcfg.py Loading commit data...
unicode-unittest.cc Loading commit data...
unittests.status Loading commit data...
utils-unittest.cc Loading commit data...
value-serializer-unittest.cc Loading commit data...