• titzer's avatar
    [wasm] Use a Managed<WasmModule> to hold metadata about modules. · 418b239f
    titzer authored
    This CL refactors the handling of metadata associated with WebAssembly
    modules to reduce the duplicate marshalling of data from the C++ world
    to the JavaScript world. It does this by wrapping the C++ WasmModule*
    object in a Foreign that is rooted from the on-heap WasmCompiledModule
    (which is itself just a FixedArray). Upon serialization, the C++ object
    is ignored and the original WASM wire bytes are serialized. Upon
    deserialization, the C++ object is reconstituted by reparsing the bytes.
    
    This is motivated by increasing complications in implementing the JS
    API, in particular WebAssembly.Table, which must perform signature
    canonicalization across instances.
    
    Additionally, this CL implements the proper base + offset initialization
    behavior for tables.
    
    R=rossberg@chromium.org,bradnelson@chromium.org,mtrofin@chromium.org,yangguo@chromium.org
    BUG=v8:5507, chromium:575167, chromium:657316
    
    Review-Url: https://chromiumcodereview.appspot.com/2424623002
    Cr-Commit-Position: refs/heads/master@{#40434}
    418b239f
Name
Last commit
Last update
..
json Loading commit data...
parser Loading commit data...
regexp Loading commit data...
wasm_code Loading commit data...
wasm_data_section Loading commit data...
wasm_function_sigs_section Loading commit data...
wasm_globals_section Loading commit data...
wasm_imports_section Loading commit data...
wasm_memory_section Loading commit data...
wasm_names_section Loading commit data...
wasm_types_section Loading commit data...
DEPS Loading commit data...
fuzzer-support.cc Loading commit data...
fuzzer-support.h Loading commit data...
fuzzer.cc Loading commit data...
fuzzer.gyp Loading commit data...
fuzzer.isolate Loading commit data...
fuzzer.status Loading commit data...
json.cc Loading commit data...
parser.cc Loading commit data...
regexp.cc Loading commit data...
testcfg.py Loading commit data...
wasm-asmjs.cc Loading commit data...
wasm-code.cc Loading commit data...
wasm-data-section.cc Loading commit data...
wasm-function-sigs-section.cc Loading commit data...
wasm-globals-section.cc Loading commit data...
wasm-imports-section.cc Loading commit data...
wasm-memory-section.cc Loading commit data...
wasm-names-section.cc Loading commit data...
wasm-section-fuzzers.cc Loading commit data...
wasm-section-fuzzers.h Loading commit data...
wasm-types-section.cc Loading commit data...
wasm.cc Loading commit data...
wasm.tar.gz.sha1 Loading commit data...
wasm_asmjs.tar.gz.sha1 Loading commit data...