diff options
author | Thomas Lively <tlively@google.com> | 2023-01-10 15:05:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 13:05:56 -0800 |
commit | 31171ca083c7a4d1394ad7812369d385e1dd38a0 (patch) | |
tree | 51d6691faf64fdd266ca31acb5b66295a53d9cc5 /src/wasm-binary.h | |
parent | 36e2abbcdd22b2b1707757b49fb4ac8844f28e5d (diff) | |
download | binaryen-31171ca083c7a4d1394ad7812369d385e1dd38a0.tar.gz binaryen-31171ca083c7a4d1394ad7812369d385e1dd38a0.tar.bz2 binaryen-31171ca083c7a4d1394ad7812369d385e1dd38a0.zip |
[Wasm GC] Replace `HeapType::data` with `HeapType::struct_` (#5416)
`struct` has replaced `data` in the upstream spec, so update Binaryen's types to
match. We had already supported `struct` as an alias for data, but now remove
support for `data` entirely. Also remove instructions like `ref.is_data` that
are deprecated and do not make sense without a `data` type.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index b2e1ef0c6..afb48106e 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -373,7 +373,7 @@ enum EncodedType { // integer reference type i31ref = -0x16, // 0x6a // gc and string reference types - dataref = -0x19, // 0x67 + structref = -0x19, // 0x67 arrayref = -0x1a, // 0x66 stringref = -0x1c, // 0x64 stringview_wtf8 = -0x1d, // 0x63 @@ -399,14 +399,14 @@ enum EncodedType { }; enum EncodedHeapType { - func = -0x10, // 0x70 - ext = -0x11, // 0x6f - any = -0x12, // 0x6e - eq = -0x13, // 0x6d - i31 = -0x16, // 0x6a - data = -0x19, // 0x67 - array = -0x1a, // 0x66 - string = -0x1c, // 0x64 + func = -0x10, // 0x70 + ext = -0x11, // 0x6f + any = -0x12, // 0x6e + eq = -0x13, // 0x6d + i31 = -0x16, // 0x6a + struct_ = -0x19, // 0x67 + array = -0x1a, // 0x66 + string = -0x1c, // 0x64 // stringview/iter constants are identical to type, and cannot be duplicated // here as that would be a compiler error, so add _heap suffixes. See // https://github.com/WebAssembly/stringref/issues/12 @@ -1131,16 +1131,12 @@ enum ASTNodes { BrOnCastFailNull = 0x4b, RefCastNop = 0x4c, RefIsFunc = 0x50, - RefIsData = 0x51, RefIsI31 = 0x52, RefAsFunc = 0x58, - RefAsData = 0x59, RefAsI31 = 0x5a, BrOnFunc = 0x60, - BrOnData = 0x61, BrOnI31 = 0x62, BrOnNonFunc = 0x63, - BrOnNonData = 0x64, BrOnNonI31 = 0x65, ExternInternalize = 0x70, ExternExternalize = 0x71, |