• titzer's avatar
    [wasm] Use WeakFixedArray for list of instances sharing a WasmMemoryObject. · 0a61361e
    titzer authored
    This CL refactors the WasmMemoryObject and WasmInstanceObject classes to
    use WeakFixedArray instead of using a doubly-linked list of instances. This
    simplifies the lifetime management of instances by not requiring them to
    be unlinked from this list upon GC. It also simplifies the iteration over
    the instances using a given WasmMemoryObject.
    
    Note that, contrary to my naive assumption at the outset, it is still necessary for the InstanceFinalizer (called upon a WasmInstanceObject death) to unlink itself from a WasmMemoryObject's instances list, due to finalizer ordering.
    
    R=deepti@chromium.org, mlippautz@chromium.org
    BUG=
    
    Review-Url: https://codereview.chromium.org/2972803002
    Cr-Commit-Position: refs/heads/master@{#46482}
    0a61361e
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...