v8/test/unittests/wasm
Manos Koukoutos 4d9d851899 [wasm-gc][bug] Fix signature canonicalization
We used not to emit canonical indexes for arrays and structs into
WasmModule::signature_ids, which resulted in signature_ids not referring
to the correct type indices in a WasmModule.

Changes:
- Rename signature_ids to canonical_type_ids.
- Emit trivial canonical type ids for structs and arrays.
- Add a test to catch the existing bug.
- Improve DCHECKs for module type accessors.

Bug: v8:7748
Change-Id: I67ad58865e35b459b21db12557564b652035db75
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2444989
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70318}
2020-10-05 16:16:51 +00:00
..
control-transfer-unittest.cc [wasm][cleanup] Rename kLocal<type> constants -> k<type>Code 2020-09-29 08:48:21 +00:00
decoder-unittest.cc [wasm] Rename {ValidateFlag} constants 2020-09-30 13:19:03 +00:00
function-body-decoder-unittest.cc [wasm-gc][bug] Fix type checking of GC instructions in unreachable code 2020-10-01 07:36:53 +00:00
leb-helper-unittest.cc [wasm] Rename {ValidateFlag} constants 2020-09-30 13:19:03 +00:00
loop-assignment-analysis-unittest.cc [wasm][cleanup] Rename kLocal<type> constants -> k<type>Code 2020-09-29 08:48:21 +00:00
module-decoder-memory64-unittest.cc [wasm][memory64] Start implementing the memory64 proposal 2020-09-24 09:38:08 +00:00
module-decoder-unittest.cc [wasm-gc][bug] Fix signature canonicalization 2020-10-05 16:16:51 +00:00
OWNERS [wasm] Update OWNERS 2020-01-08 14:56:06 +00:00
simd-shuffle-unittest.cc [wasm-simd][liftoff][x64] Optimize shuffles (swizzles) 2020-08-04 17:03:05 +00:00
streaming-decoder-unittest.cc [wasm] Make StreamingDecoder abstract, introduce AsyncStreamingDecoder 2020-05-20 17:24:32 +00:00
subtyping-unittest.cc [wasm-gc] Implement cross-module subtyping 2020-09-09 15:25:11 +00:00
trap-handler-posix-unittest.cc [wasm] Implement trap handler on Windows 2018-10-30 10:25:37 +00:00
trap-handler-win-unittest.cc Move utility code to src/utils 2019-05-23 14:13:34 +00:00
trap-handler-x64-unittest.cc [test] Use Fuchsia test runner for unittests 2019-12-05 14:22:01 +00:00
wasm-code-manager-unittest.cc [wasm] Fix performance bottleneck in DisjointAllocationPool 2020-04-22 10:00:05 +00:00
wasm-compiler-unittest.cc [wasm] Rename anyref to externref, anyref flag/feature to reftypes 2020-06-09 17:51:04 +00:00
wasm-gdbserver-unittest.cc [unittests] Convert to the new MOCK_METHOD macro. 2020-06-10 15:50:38 +00:00
wasm-macro-gen-unittest.cc [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
wasm-module-builder-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
wasm-module-sourcemap-unittest.cc Add source map support of WasmModule 2019-08-26 15:19:02 +00:00