summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-21 09:45:58 +0200
committerGitHub <noreply@github.com>2020-09-21 09:45:58 +0200
commit51350a8d2e7a361cf658951798351fc242420328 (patch)
tree8bc71e9126b719c4d1785d0f5bbb6248a601176f /src/wasm-binary.h
parente35cdb97adf6eb2ade2be7734d1c6c397d440dc1 (diff)
downloadbinaryen-51350a8d2e7a361cf658951798351fc242420328.tar.gz
binaryen-51350a8d2e7a361cf658951798351fc242420328.tar.bz2
binaryen-51350a8d2e7a361cf658951798351fc242420328.zip
GC: Add ref.eq instruction (#3145)
With `eqref` now integrated, the `ref.eq` instruction can be implemented. The only valid LHS and RHS value is `(ref.null eq)` for now, but implementation and fuzzer integration is otherwise complete.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 39980ee04..df800d470 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -927,6 +927,10 @@ enum ASTNodes {
RefIsNull = 0xd1,
RefFunc = 0xd2,
+ // GC opcodes
+
+ RefEq = 0xd5,
+
// exception handling opcodes
Try = 0x06,
@@ -1458,6 +1462,7 @@ public:
void visitRefNull(RefNull* curr);
void visitRefIsNull(RefIsNull* curr);
void visitRefFunc(RefFunc* curr);
+ void visitRefEq(RefEq* curr);
void visitTryOrTryInBlock(Expression*& out);
void visitThrow(Throw* curr);
void visitRethrow(Rethrow* curr);