• mtrofin's avatar
    [wasm] Use weak reference for wasm deopt data. · b9eb9ee7
    mtrofin authored
    This unblocks moving off having to hold on to a compiled module
    template.
    
    Once we don't have the template, when we have a single instance, the
    instance and wasm module share the same compiled code. We will want
    to clear that code off instance-specific stuff, when the instance is
    unreferenced and should be GC-ed (stuff like the instance heap, for
    instance). However, the deopt data will maintain a strong reference,
    blocking the GC: the module object strongly references the compiled
    code, which strongly references the instance object through the deopt
    data.
    
    This change addresses that by making that last reference weak.
    
    BUG=v8:5316
    
    Review-Url: https://codereview.chromium.org/2284683005
    Cr-Commit-Position: refs/heads/master@{#38990}
    b9eb9ee7
Name
Last commit
Last update
..
OWNERS Loading commit data...
ast-decoder.cc Loading commit data...
ast-decoder.h Loading commit data...
decoder.h Loading commit data...
encoder.cc Loading commit data...
encoder.h Loading commit data...
leb-helper.h Loading commit data...
module-decoder.cc Loading commit data...
module-decoder.h Loading commit data...
switch-logic.cc Loading commit data...
switch-logic.h Loading commit data...
wasm-debug.cc Loading commit data...
wasm-debug.h Loading commit data...
wasm-external-refs.cc Loading commit data...
wasm-external-refs.h Loading commit data...
wasm-function-name-table.cc Loading commit data...
wasm-function-name-table.h Loading commit data...
wasm-interpreter.cc Loading commit data...
wasm-interpreter.h Loading commit data...
wasm-js.cc Loading commit data...
wasm-js.h Loading commit data...
wasm-macro-gen.h Loading commit data...
wasm-module.cc Loading commit data...
wasm-module.h Loading commit data...
wasm-opcodes.cc Loading commit data...
wasm-opcodes.h Loading commit data...
wasm-result.cc Loading commit data...
wasm-result.h Loading commit data...