• Clemens Hammacher's avatar
    [wasm] Store WasmModule in shared_ptr during async compilation · 6be6ec00
    Clemens Hammacher authored
    We currently store the {WasmModule} (generated during decoding) in a
    unique_ptr and pass ownership to the {WasmModuleObject} after
    compilation.
    I plan to move the {Managed<NativeModule>} from {WasmCompiledModule} to
    {WasmModuleObject}, which will force us to create the
    {WasmModuleObject} *before* compilation, so that the {CompilationState}
    is available during compilation.
    
    This CL prepares that refactoring by storing the {WasmModule} in a
    {shared_ptr} in the {AsyncCompileJob}. Note that it will eventually be
    stored in a {shared_ptr} in the {Managed} anyway.
    
    R=titzer@chromium.org
    
    Change-Id: Iac5e3c1067af2801e938f77a455a68807801526a
    Reviewed-on: https://chromium-review.googlesource.com/1104117
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53801}
    6be6ec00
Name
Last commit
Last update
..
OWNERS Loading commit data...
test-c-wasm-entry.cc Loading commit data...
test-run-wasm-64.cc Loading commit data...
test-run-wasm-asmjs.cc Loading commit data...
test-run-wasm-atomics.cc Loading commit data...
test-run-wasm-atomics64.cc Loading commit data...
test-run-wasm-interpreter.cc Loading commit data...
test-run-wasm-js.cc Loading commit data...
test-run-wasm-module.cc Loading commit data...
test-run-wasm-sign-extension.cc Loading commit data...
test-run-wasm-simd.cc Loading commit data...
test-run-wasm.cc Loading commit data...
test-streaming-compilation.cc Loading commit data...
test-wasm-breakpoints.cc Loading commit data...
test-wasm-codegen.cc Loading commit data...
test-wasm-interpreter-entry.cc Loading commit data...
test-wasm-stack.cc Loading commit data...
test-wasm-trap-position.cc Loading commit data...
wasm-atomics-utils.h Loading commit data...
wasm-run-utils.cc Loading commit data...
wasm-run-utils.h Loading commit data...