v8/test/cctest/wasm
Manos Koukoutos 37579df74e [wasm] Complete element segment features for reftypes/typed-funcref
Main changes:
- Allow global.get in elements segments with expressions-as-elements.
- Allow element segments with types other than funcref.

Detailed changes:
- Move WasmInitExpr to its own file. Add stream opearator << support.
- Simplify type of PrintCollection.
- Make WasmElemSegment use an array of WasmInitExpr's over the previous
  ad-hoc implementation. Move null_index to WasmModuleBuilder.
- Refactor consume_element_segment_header. Make it return a
  WasmElemSegment.
- Refactor consume_element_expr. Make it return a WasmInitExpr.
- Refactor DecodeElementSection. Make it invoke
  consume_element_segment_header, then populate its element array.
- Update module-instantiate.cc to handle global.get elements.
- Fix bug in wasm-objects.cc where the wrong type index was passed into
  module()->has_signature()
- Adapt and add tests.

Change-Id: I5abfbe424dbb750ee2dca59f91c451ffcb79f95f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2857959
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74374}
2021-05-05 09:25:37 +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 [wasm] Allow execution while modifying code space 2021-04-19 15:09:46 +00:00
test-compilation-cache.cc Reland "Reland "[wasm] Cache streaming compilation result"" 2020-02-03 13:49:18 +00:00
test-gc.cc [wasm-gc] Implement function subtyping 2021-04-15 11:01:05 +00:00
test-grow-memory.cc [wasm][cleanup] Rename WASM_GROW_MEMORY to WASM_MEMORY_GROW 2021-03-17 14:37:34 +00:00
test-jump-table-assembler.cc [test][wasm][arm64] Fix JumpTablePatchingStress 2021-04-19 12:20:03 +00:00
test-liftoff-inspection.cc [wasm-simd] Remove simd lowering compilation env variable 2021-04-22 23:40:58 +00:00
test-run-wasm-64.cc [wasm] Rename kWasmStmt -> kWasmVoid 2021-03-22 07:58:18 +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 [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-atomics.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-bulk-memory.cc [wasm] Complete element segment features for reftypes/typed-funcref 2021-05-05 09:25:37 +00:00
test-run-wasm-exceptions.cc [wasm][eh] Make stack overflows uncatchable 2021-05-03 16:18:41 +00:00
test-run-wasm-interpreter.cc [wasm][cleanup] Rename WASM_GROW_MEMORY to WASM_MEMORY_GROW 2021-03-17 14:37:34 +00:00
test-run-wasm-js.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-memory64.cc [wasm][memory64] Fix typing of memory.grow 2021-03-19 13:51:23 +00:00
test-run-wasm-module.cc [wasm][cleanup] Rename WASM_GROW_MEMORY to WASM_MEMORY_GROW 2021-03-17 14:37:34 +00:00
test-run-wasm-relaxed-simd.cc [wasm-simd] Remove simd lowering compilation env variable 2021-04-22 23:40:58 +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-simd] Remove simd lowering compilation env variable 2021-04-22 23:40:58 +00:00
test-run-wasm-simd.cc [wasm-simd] Remove simd lowering compilation env variable 2021-04-22 23:40:58 +00:00
test-run-wasm-wrappers.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm.cc [cctest][wasm] Ensure FLAG_stack_size has an effect 2021-05-03 14:24:46 +00:00
test-streaming-compilation.cc [wasm] Rename kWasmStmt -> kWasmVoid 2021-03-22 07:58:18 +00:00
test-wasm-breakpoints.cc [wasm] Remove multivalue feature flag 2021-04-13 06:35:34 +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] Faster wasm-to-js calls with arguments mismatch 2020-07-28 15:53:21 +00:00
test-wasm-metrics.cc Revert "[wasm] Add CPU time metrics" 2021-04-09 16:01:12 +00:00
test-wasm-serialization.cc [wasm][cleanup] Hold wasm engine in a raw pointer 2021-04-28 15:08:10 +00:00
test-wasm-shared-engine.cc [wasm][cleanup] Hold wasm engine in a raw pointer 2021-04-28 15:08:10 +00:00
test-wasm-stack.cc [api] Add StackFrame GetScriptSource and GetScriptSourceMappingURL 2021-03-03 06:37:44 +00:00
test-wasm-trap-position.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +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] Complete element segment features for reftypes/typed-funcref 2021-05-05 09:25:37 +00:00
wasm-run-utils.h [cctest][wasm] Ensure FLAG_stack_size has an effect 2021-05-03 14:24:46 +00:00
wasm-simd-utils.cc [wasm-simd] Remove simd lowering compilation env variable 2021-04-22 23:40:58 +00:00
wasm-simd-utils.h [wasm-simd] Remove simd lowering compilation env variable 2021-04-22 23:40:58 +00:00