v8/test/cctest/wasm
Clemens Backes 9349fb784f [wasm] Refactor and fix wasm serialization test
This fixes a few issues:
1) It avoids using the {DeserializeOrCompile} API method, which is not
   used in chrome any more and will be deprecated soon.
2) It switches to the {DeserializeNativeModule} internal method, which
   really checks deserialization in isolation and does not fall back to
   compiling the wire bytes if the serialized bytes are incorrect.
3) It disables a test which tried to invalidate the number of functions,
   but the respective bytes were already zero, so nothing was
   invalidated. This still needs to be fixed in a follow-up CL.
4) It serializes the modules in a separate isolate, which then gets
   disposed to free references to the NativeModule and remove it from
   the modules cache. Otherwise we will just never deserialize, but use
   the cached module instead.

R=thibaudm@chromium.org

Bug: v8:6847, v8:10146
Change-Id: I37ef524a9c96c32fec2e7466488d67395fa5ccea
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2010786
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65888}
2020-01-21 14:13:53 +00:00
..
OWNERS [wasm] Update OWNERS 2020-01-08 14:56:06 +00:00
test-c-wasm-entry.cc [wasm-c-api] Faster C-to-Wasm entry 2019-06-27 13:39:48 +00:00
test-compilation-cache.cc [wasm] Share native modules for async compilation 2020-01-21 13:33:04 +00:00
test-grow-memory.cc Reland x6 [arraybuffer] Rearchitect backing store ownership 2019-09-09 13:07:42 +00:00
test-jump-table-assembler.cc [codegen] Reduce kMinimalBufferSize and add kDefaultBufferSize 2019-11-14 15:05:31 +00:00
test-liftoff-inspection.cc [wasm] Extend debug side table with type information 2020-01-09 17:52:16 +00:00
test-run-wasm-64.cc [wasm] Remove flag for saturating conversions flag 2019-12-09 11:24:27 +00:00
test-run-wasm-asmjs.cc [Liftoff] List unsupported opcodes explicitly 2019-05-29 09:47:28 +00:00
test-run-wasm-atomics64.cc Make atomic operations effectful. 2019-07-31 16:12:04 +00:00
test-run-wasm-atomics.cc Make atomic operations effectful. 2019-07-31 16:12:04 +00:00
test-run-wasm-bulk-memory.cc [wasm][bulk-memory] Adjust bulk memory behavior to proposal phase 4 2019-12-03 12:21:48 +00:00
test-run-wasm-exceptions.cc [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
test-run-wasm-interpreter.cc [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
test-run-wasm-js.cc [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
test-run-wasm-module.cc [wasm] Remove disassembly support 2020-01-17 10:05:28 +00:00
test-run-wasm-sign-extension.cc [wasm] Remove Sign Extension flag, and helper functions 2019-12-06 13:14:44 +00:00
test-run-wasm-simd-liftoff.cc [wasm-simd][liftoff] Handle functions that return SIMD 2020-01-17 18:41:18 +00:00
test-run-wasm-simd.cc [wasm-simd] Implement v128.andnot for ia32 2020-01-17 20:37:47 +00:00
test-run-wasm.cc [wasm] Remove flag for saturating conversions flag 2019-12-09 11:24:27 +00:00
test-streaming-compilation.cc [API] Remove deprecated tasks API 2020-01-08 13:54:45 +00:00
test-wasm-breakpoints.cc Reland "[wasm] Prevent breakpoints on nonbreakable positions" 2019-11-21 12:33:43 +00:00
test-wasm-codegen.cc [wasm] Remove non-const arguments from module builder 2019-07-08 11:42:59 +00:00
test-wasm-import-wrapper-cache.cc Reland "[wasm] Share native modules compiled from the same bytes" 2019-12-18 14:40:28 +00:00
test-wasm-interpreter-entry.cc [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-wasm-serialization.cc [wasm] Refactor and fix wasm serialization test 2020-01-21 14:13:53 +00:00
test-wasm-shared-engine.cc [wasm] Refactor WasmFeatures 2019-11-26 17:36:11 +00:00
test-wasm-stack.cc V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +00:00
test-wasm-trap-position.cc V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc Reland "[wasm] Share native modules compiled from the same bytes" 2019-12-18 14:40:28 +00:00
wasm-run-utils.h [wasm-simd][liftoff] Support SIMD locals 2020-01-14 21:11:08 +00:00