v8/test/cctest/wasm
Manos Koukoutos 74d9a7642d [wasm][fuzzer] Complex init. expressions in JS testcase
We enable struct.new and array.init initializer expressions in the JS
testcase generated by --wasm-fuzzer-gen-test. We needed to make some
changes in the WasmInitExpr class, and to implement a new interface for
the WasmFullDecoder, which constructs a WasmInitExpr.
Changes:
- Make WasmInitExpr a ZoneObject. Use a pointer for its operands_ field.
  This is needed so WasmInitExpr is trivially copiable, and thus usable
  as a Value type in WasmFullDecoder.
- Implement a WasmFullDecoder interface in wasm-fuzzer-common that
  constructs a WasmInitExpr. Use it to decode initializers in the
  module generated by the fuzzer.
- Change AppendInitExpr to take a WasmInitExpr as argument.
- Fix an issue with printing of struct definitions.
- Change initializer expression used for structs to struct.new_with_rtt.
  This is consistent with the currently used structural types.

Bug: v8:11954
Change-Id: I65a87cc98701a54f32500be192b3b6eef2ff6c8c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3257712
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77730}
2021-11-05 12:17:48 +00:00
..
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
test-backing-store.cc [wasm] Move test-backing-store.cc to wasm directory 2021-03-03 13:07:01 +00:00
test-c-wasm-entry.cc [ext-code-space] Migrate WasmExportedFunctionData code field to CodeT 2021-06-18 14:10:43 +00:00
test-compilation-cache.cc [isolate][cleanup] Remove pointer to WasmEngine 2021-06-21 09:09:25 +00:00
test-gc.cc [wasm][fuzzer] Complex init. expressions in JS testcase 2021-11-05 12:17:48 +00:00
test-grow-memory.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-jump-table-assembler.cc [LOONG64] Add LoongArch64 backend 2021-08-16 13:05:19 +00:00
test-liftoff-for-fuzzing.cc Reland "[wasm] Add tests for NaN detection in Liftoff" 2021-09-14 08:41:58 +00:00
test-liftoff-inspection.cc [liftoff] Refactor options for Liftoff compilation 2021-08-04 16:48:48 +00:00
test-run-wasm-64.cc [cleanup] Fix -Wshadow warnings in cctest/wasm 2021-09-24 22:39:54 +00:00
test-run-wasm-asmjs.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-atomics64.cc [wasm] Introduce --wasm-enforce-bounds-checks flag 2021-06-30 08:31:14 +00:00
test-run-wasm-atomics.cc [wasm] Introduce --wasm-enforce-bounds-checks flag 2021-06-30 08:31:14 +00:00
test-run-wasm-bulk-memory.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-run-wasm-exceptions.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-run-wasm-interpreter.cc [wasm] Move misplaced DCHECK in wasm interpreter 2021-09-28 13:08:49 +00:00
test-run-wasm-js.cc [cleanup] Fix -Wshadow warnings in cctest/wasm 2021-09-24 22:39:54 +00:00
test-run-wasm-memory64.cc [wasm] Disable trap handling for memory64 2021-07-08 11:03:08 +00:00
test-run-wasm-module.cc [wasm][test] Cleanup macros 2021-09-24 16:47:54 +00:00
test-run-wasm-relaxed-simd.cc [relaxed-simd][wasm] Prototype relaxed int-float trunc 2021-10-28 17:03:30 +00:00
test-run-wasm-sign-extension.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-simd-liftoff.cc [wasm] Do not enforce LE for globals and WasmValue 2021-06-10 18:08:38 +00:00
test-run-wasm-simd.cc [wasm-relaxed-simd][x64] Prototype relaxed min and max 2021-10-21 00:58:24 +00:00
test-run-wasm-wrappers.cc [wasm] Support reftypes tables in WasmModuleBuilder 2021-08-31 10:02:19 +00:00
test-run-wasm.cc [cleanup] Fix -Wshadow warnings in cctest/wasm 2021-09-24 22:39:54 +00:00
test-streaming-compilation.cc [wasm] Introduce a caching threshold 2021-10-06 10:30:13 +00:00
test-wasm-breakpoints.cc [wasm][test] Cleanup macros 2021-09-24 16:47:54 +00:00
test-wasm-codegen.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Pass and store fewer wasm engine pointers 2021-06-21 11:57:45 +00:00
test-wasm-metrics.cc [wasm] Add CPU time metrics (reland) 2021-07-14 08:01:41 +00:00
test-wasm-serialization.cc [wasm] Do not serialize modules that don't contain TurboFan code 2021-11-04 15:47:03 +00:00
test-wasm-shared-engine.cc [isolate][cleanup] Remove pointer to WasmEngine 2021-06-21 09:09:25 +00:00
test-wasm-stack.cc [cleanup] Fix -Wshadow warnings in test-wasm-stack 2021-09-24 19:59:04 +00:00
test-wasm-trap-position.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +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 [wasm-gc] Speculative inlining for call_ref (off by default) 2021-10-07 14:56:39 +00:00
wasm-run-utils.h [cleanup] Fix -Wshadow warnings in cctest/wasm 2021-09-24 22:39:54 +00:00
wasm-simd-utils.cc [wasm-relaxed-simd][x64] Prototype relaxed min and max 2021-10-21 00:58:24 +00:00
wasm-simd-utils.h [wasm-relaxed-simd][x64] Prototype relaxed min and max 2021-10-21 00:58:24 +00:00