v8/test/cctest/wasm
Clemens Hammacher 014d9e4f32 [wasm] Decouple wire bytes from compilation units
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/1319588
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57317}
2018-11-07 13:56:53 +00:00
..
OWNERS Reduce wasm OWNERS to current team members 2018-10-15 14:47:49 +00:00
test-c-wasm-entry.cc [wasm][interpreter] Store code entry as raw pointer 2018-09-14 10:52:33 +00:00
test-jump-table-assembler.cc [arm64] Mitigate flake in JumpTablePatchingStress. 2018-08-24 11:50:38 +00:00
test-run-wasm-64.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-asmjs.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-atomics64.cc [compiler] Fix use of projection nodes for I64Atomic ops 2018-09-18 16:42:10 +00:00
test-run-wasm-atomics.cc [compiler] Remove AtomicNarrow machine operators, macroize tests 2018-08-29 16:11:48 +00:00
test-run-wasm-interpreter.cc [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
test-run-wasm-js.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-module.cc [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
test-run-wasm-sign-extension.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-simd.cc Revert "[wasm-simd] Implement remaining I8x16 SIMD ops on x64" 2018-11-06 00:02:03 +00:00
test-run-wasm.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-streaming-compilation.cc [wasm] Fix test platform to process foreground tasks in order 2018-11-06 14:56:10 +00:00
test-wasm-breakpoints.cc [cleanup] Mark wasm methods in subclasses with override. 2018-09-17 09:38:05 +00:00
test-wasm-codegen.cc [api] Properly define BufferReference instead of CallerOwnedBuffer 2018-06-21 13:17:18 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Do not store ModuleEnv 2018-10-23 12:47:14 +00:00
test-wasm-interpreter-entry.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-wasm-serialization.cc [wasm] Add WasmFeatures to enable/detect features 2018-08-09 10:58:22 +00:00
test-wasm-shared-engine.cc Reland "[ubsan] Replace Object** in GlobalHandles" 2018-10-31 23:56:23 +00:00
test-wasm-stack.cc [cleanup] Refactor base, compiler, and wasm classes to use bools instead of converting ints. 2018-09-20 09:14:25 +00:00
test-wasm-trap-position.cc [cleanup] Refactor base, compiler, and wasm classes to use bools instead of converting ints. 2018-09-20 09:14:25 +00:00
wasm-atomics-utils.h [compiler] Remove AtomicNarrow machine operators, macroize tests 2018-08-29 16:11:48 +00:00
wasm-run-utils.cc [wasm] Decouple wire bytes from compilation units 2018-11-07 13:56:53 +00:00
wasm-run-utils.h [wasm] Remove test-only {RelocInfo::JS_TO_WASM_CALL}. 2018-11-05 13:49:18 +00:00