summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2022-11-16 13:44:33 -0800
committerGitHub <noreply@github.com>2022-11-16 13:44:33 -0800
commit570007dbecf86db5ddba8d303896d841fc2b2d27 (patch)
tree6774a699ed3faf5f6f263b77025c30880e51fead /src/wasm-binary.h
parent3528a593f5a588d1819c6de9645b63361c13bf6b (diff)
downloadbinaryen-570007dbecf86db5ddba8d303896d841fc2b2d27.tar.gz
binaryen-570007dbecf86db5ddba8d303896d841fc2b2d27.tar.bz2
binaryen-570007dbecf86db5ddba8d303896d841fc2b2d27.zip
Revert "Make `call_ref` type annotations mandatory (#5246)" (#5265)
This reverts commit b2054b72b7daa89b7ad161c0693befad06a20c90. It looks like the necessary V8 change has not rolled out everywhere yet.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index acde624f7..eb8e176ec 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -1094,7 +1094,8 @@ enum ASTNodes {
// typed function references opcodes
- CallRef = 0x14,
+ CallRefUnannotated = 0x14,
+ CallRef = 0x17,
RetCallRef = 0x15,
// gc opcodes
@@ -1742,7 +1743,8 @@ public:
void visitTryOrTryInBlock(Expression*& out);
void visitThrow(Throw* curr);
void visitRethrow(Rethrow* curr);
- void visitCallRef(CallRef* curr);
+ void visitCallRef(CallRef* curr,
+ std::optional<HeapType> maybeType = std::nullopt);
void visitRefAs(RefAs* curr, uint8_t code);
[[noreturn]] void throwError(std::string text);