v8/test/cctest/wasm
Clemens Backes 13cdf3a7fc Reland "[wasm] Further reduce the size of WasmCode"
This is a reland of 79398ab09d

Original change's description:
> [wasm] Further reduce the size of WasmCode
>
> Also, save dynamic allocations (plus their memory overhead).
> This is realized by storing the relocation information, source position
> table, and protected instruction information together in one "metadata"
> byte array.
> For each of the three components, we just store their size, such that
> the accessors can return the respecitive {Vector} views as before.
>
> This makes each WasmCode object 24 bytes smaller on 64-bit
> architectures. It also saves a few more bytes per code object because
> less padding is needed for the individual allocations, and each dynamic
> allocation comes with some constant memory overhead.
>
> Since the protected instructions will just be stored in a byte array
> now, some APIs are refactored to just return that byte array directly
> (instead of an array of {ProtectedInstructionData}). This also
> simplifies serialization and deserialization, and will allow for
> switching to a more compact representation in the future.
>
> Drive-by: Add some more checks to {Vector::cast} to protect against
>   undefined behaviour.
>
> R=ahaas@chromium.org
>
> Bug: v8:10254
> Change-Id: I81ca847023841110e3e52cc402fcb0349325d7af
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2078545
> Reviewed-by: Andreas Haas <ahaas@chromium.org>
> Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
> Commit-Queue: Clemens Backes <clemensb@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#66596}

Tbr: ahaas@chromium.org
Bug: v8:10254
Change-Id: Idcdcb4f13c3eb7a3f7fb5ef8a1229103ca0ae975
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2089934
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66598}
2020-03-05 16:21:18 +00:00
..
OWNERS [wasm] Update OWNERS 2020-01-08 14:56:06 +00:00
test-c-wasm-entry.cc [wasm][cleanup] Avoid passing non-const FunctionSig* 2020-02-27 09:44:42 +00:00
test-compilation-cache.cc Reland "Reland "[wasm] Cache streaming compilation result"" 2020-02-03 13:49:18 +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 for registers 2020-02-24 13:29:06 +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 [turbofan] Don't assume that Word32AtomicPairCompareExchange has a projection-0 2020-02-04 19:47:37 +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 Reland "[wasm-simd][liftoff] Check CpuFeatures for SIMD support" 2020-02-03 19:43:09 +00:00
test-run-wasm-simd.cc [wasm-simd][liftoff] Implement splat for i64x2, f64x2, i8x16 on x64 and ia32 2020-03-03 08:44:37 +00:00
test-run-wasm.cc Reland "[wasm] Further reduce the size of WasmCode" 2020-03-05 16:21:18 +00:00
test-streaming-compilation.cc Revert "[wasm-debug] Let wasm scripts report correct column information." 2020-02-24 14:24:26 +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] Deprecate unused {DeserializeOrCompile} API 2020-01-22 08:46:23 +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] De-flake deserializer test 2020-01-23 11:03:18 +00:00
test-wasm-shared-engine.cc [wasm] Refactor WasmFeatures 2019-11-26 17:36:11 +00:00
test-wasm-stack.cc [wasm][debug] Add test case to check if wasm stack trace contains url 2020-02-20 09:01:18 +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] Further reduce the size of WasmCode" 2020-03-05 16:21:18 +00:00
wasm-run-utils.h [wasm][cleanup] Avoid passing non-const FunctionSig* 2020-02-27 09:44:42 +00:00