v8/test/wasm-api-tests
Manos Koukoutos 01e59c4bd9 [wasm-gc] Refactoring in preparation of generalizing WasmInitExpr
Motivation: With rtt.sub now allowed in constant expressions, we have
to generalize WasmInitExpr to be able to handle expressions with
operands. This CL prepares the ground for this change and adds no
functionality.

Changes:
- ValueType::heap_representation and HeapType::representation now
  return HeapType::Representation.
- Add ValueType::is_rtt().
- WasmInitExpr:
  - Make kind private. Rename val -> operator, make it private. Add
    accessors.
  - Rename kGlobalIndex -> kGlobalGet.
  - Squash global_index and function_index into index.
  - Add heap_type Immediate. Use it for RefNullConst. TypeOf in
    module-decoder.cc can now fully determine the type of a
    WasmInitExpr.
  - Add class constructors/static method constructors for each Operator
    kind.
  - Delete copy constructor. WasmInitExpr will use std::unique_ptr for
    its operands.
- consume_init_expr now uses a stack.
- A few minor improvements.

Bug: v8:7748
Change-Id: I3ba3ee7ac2d6bc58e887790c37110ceb80658985
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2284483
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68759}
2020-07-09 15:03:18 +00:00
..
BUILD.gn [wasm-c-api] Roll 7865f7d: Expose possible traps during Instance::make 2019-08-23 09:46:29 +00:00
callbacks.cc [wasm] Rename anyref to externref, anyref flag/feature to reftypes 2020-06-09 17:51:04 +00:00
DEPS
finalize.cc [wasm-c-api] Roll bf31edf: Fix life times of host info 2019-08-26 14:28:51 +00:00
globals.cc [wasm-c-api] Roll 70a2889: Remove template meta-programming 2019-08-20 09:35:35 +00:00
hostref.cc [wasm-gc] Refactoring in preparation of generalizing WasmInitExpr 2020-07-09 15:03:18 +00:00
memory.cc [wasm-c-api] Roll 70a2889: Remove template meta-programming 2019-08-20 09:35:35 +00:00
multi-return.cc [wasm-c-api] Roll 351b9b7: Support multiple return values 2019-08-20 14:48:14 +00:00
reflect.cc [wasm] Rename anyref to externref, anyref flag/feature to reftypes 2020-06-09 17:51:04 +00:00
run-all-wasm-api-tests.cc
serialize.cc [wasm-c-api] Roll 70a2889: Remove template meta-programming 2019-08-20 09:35:35 +00:00
startup-errors.cc [wasm-c-api] Roll 7865f7d: Expose possible traps during Instance::make 2019-08-23 09:46:29 +00:00
table.cc [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
testcfg.py [wasm-api-tests] initialize the loop variable 2020-06-10 15:39:58 +00:00
threads.cc [wasm-c-api] Roll 70a2889: Remove template meta-programming 2019-08-20 09:35:35 +00:00
traps.cc [wasm] Refactor WasmFeatures 2019-11-26 17:36:11 +00:00
wasm-api-test.h [wasm-c-api] Roll bf31edf: Fix life times of host info 2019-08-26 14:28:51 +00:00
wasm-api-tests.status [snapshot] Clear reconstructable data prior to d8 stress_snapshot run 2020-05-06 07:11:22 +00:00