[wasm-gc] Fix recursive type group opcode
Bug: v8:7748 Change-Id: Ia70eeb49cd4fe142cad2cb210dae1f98ec4d076b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3450417 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Manos Koukoutos <manoskouk@chromium.org> Cr-Commit-Position: refs/heads/main@{#79034}
This commit is contained in:
parent
a5c7137e67
commit
3cd68b1c13
@ -59,7 +59,7 @@ constexpr uint8_t kWasmFunctionNominalCode = 0x5d;
|
||||
constexpr uint8_t kWasmStructNominalCode = 0x5c;
|
||||
constexpr uint8_t kWasmArrayNominalCode = 0x5b;
|
||||
constexpr uint8_t kWasmSubtypeCode = 0x50;
|
||||
constexpr uint8_t kWasmRecursiveTypeGroupCode = 0x49;
|
||||
constexpr uint8_t kWasmRecursiveTypeGroupCode = 0x4f;
|
||||
|
||||
// Binary encoding of import/export kinds.
|
||||
enum ImportExportKindCode : uint8_t {
|
||||
|
@ -3,10 +3,10 @@ Tests GC object inspection.
|
||||
Running test: test
|
||||
Instantiating.
|
||||
Waiting for wasm script (ignoring first non-wasm script).
|
||||
Setting breakpoint at offset 109 on script wasm://wasm/856247ba
|
||||
Setting breakpoint at offset 109 on script wasm://wasm/b18cf04a
|
||||
Calling main()
|
||||
Paused:
|
||||
Script wasm://wasm/856247ba byte offset 109: Wasm opcode 0x21 (kExprLocalSet)
|
||||
Script wasm://wasm/b18cf04a byte offset 109: Wasm opcode 0x21 (kExprLocalSet)
|
||||
Scope:
|
||||
at $main (0:109):
|
||||
- scope (wasm-expression-stack):
|
||||
|
@ -16,7 +16,7 @@ const module_bytes = [
|
||||
0x01, // type section
|
||||
0x18, // section length
|
||||
0x01, // number of type section entries
|
||||
0x49, // recursive type group
|
||||
0x4f, // recursive type group
|
||||
0x04, // number of types in the recursive group
|
||||
// type 0: struct $StrA (field ($byte i8) ($word i16) ($pointer (ref $StrB)))
|
||||
0x5f, // struct
|
||||
|
@ -81,7 +81,7 @@ let kWasmFunctionNominalForm = 0x5d;
|
||||
let kWasmStructNominalForm = 0x5c;
|
||||
let kWasmArrayNominalForm = 0x5b;
|
||||
let kWasmSubtypeForm = 0x50;
|
||||
let kWasmRecursiveTypeGroupForm = 0x49;
|
||||
let kWasmRecursiveTypeGroupForm = 0x4f;
|
||||
|
||||
let kNoSuperType = 0xFFFFFFFF;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user