v8/test
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
..
benchmarks cppgc: Add micro benchmark for tracing objects 2020-07-03 14:50:43 +00:00
cctest [wasm-gc] Refactoring in preparation of generalizing WasmInitExpr 2020-07-09 15:03:18 +00:00
common [wasm-gc] Test improvements 2020-07-02 11:54:29 +00:00
debugger [d8] Exit with error code upon unhandled promise rejection 2020-06-24 07:21:58 +00:00
debugging [wasm][respect] Avoid 'sanity check' 2020-06-19 14:32:15 +00:00
fuzzer [wasm-gc] Refactoring in preparation of generalizing WasmInitExpr 2020-07-09 15:03:18 +00:00
fuzzilli Integrate fuzzilli into v8 2020-06-03 09:53:24 +00:00
inspector Fix crash on inspector setScriptSource calls when source is unchanged 2020-07-07 13:25:51 +00:00
intl Use TypeError instead of RangeError 2020-07-08 21:22:27 +00:00
js-perf-test [js-perf-test] Add flags for async benchmark 2020-07-01 12:04:46 +00:00
memory
message [d8] Handle recursively rejected promises 2020-06-30 08:27:36 +00:00
mjsunit [liftoff] Handle unordered register pairs 2020-07-09 11:05:08 +00:00
mkgrokdump [heap] Move BaseSpace into base-space.h 2020-06-19 09:38:24 +00:00
mozilla [Respect] Prefer inclusive terms 2020-06-22 18:11:23 +00:00
test262 Use TypeError instead of RangeError 2020-07-08 21:22:27 +00:00
torque [torque] Torque Context definition should better match C++ definition 2020-07-03 15:58:58 +00:00
unittests [wasm-gc] Refactoring in preparation of generalizing WasmInitExpr 2020-07-09 15:03:18 +00:00
wasm-api-tests [wasm-gc] Refactoring in preparation of generalizing WasmInitExpr 2020-07-09 15:03:18 +00:00
wasm-js [wasm] Add tail call spec tests 2020-07-02 14:11:49 +00:00
wasm-spec-tests [mips][wasm] Skip tail-call/float_misc spec test. 2020-07-06 10:36:50 +00:00
webkit [d8] Exit with error code upon unhandled promise rejection 2020-06-24 07:21:58 +00:00
BUILD.gn Add google_benchmark depdendency 2020-07-02 20:11:29 +00:00
OWNERS