summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index df800d470..9ac5664d3 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -599,6 +599,7 @@ enum ASTNodes {
// prefixes
+ GCPrefix = 0xfb,
MiscPrefix = 0xfc,
SIMDPrefix = 0xfd,
AtomicPrefix = 0xfe,
@@ -937,7 +938,13 @@ enum ASTNodes {
Catch = 0x07,
Throw = 0x08,
Rethrow = 0x09,
- BrOnExn = 0x0a
+ BrOnExn = 0x0a,
+
+ // gc opcodes
+
+ I31New = 0x20,
+ I31GetS = 0x21,
+ I31GetU = 0x22
};
enum MemoryAccess {
@@ -1452,6 +1459,8 @@ public:
bool maybeVisitDataDrop(Expression*& out, uint32_t code);
bool maybeVisitMemoryCopy(Expression*& out, uint32_t code);
bool maybeVisitMemoryFill(Expression*& out, uint32_t code);
+ bool maybeVisitI31New(Expression*& out, uint32_t code);
+ bool maybeVisitI31Get(Expression*& out, uint32_t code);
void visitSelect(Select* curr, uint8_t code);
void visitReturn(Return* curr);
void visitMemorySize(MemorySize* curr);