summaryrefslogtreecommitdiff
path: root/src/opcode.cc
diff options
context:
space:
mode:
authorDmitry Bezhetskov <Dima00782@gmail.com>2021-07-26 00:41:32 +0700
committerGitHub <noreply@github.com>2021-07-25 10:41:32 -0700
commit9aac0a28896a714b698ab489a473b9bc05deb7c3 (patch)
tree7e3e40abd22146f2d76981c30dfa693290956448 /src/opcode.cc
parent7eadc12f71483b1d9d8cf16877efa33361d1e493 (diff)
downloadwabt-9aac0a28896a714b698ab489a473b9bc05deb7c3.tar.gz
wabt-9aac0a28896a714b698ab489a473b9bc05deb7c3.tar.bz2
wabt-9aac0a28896a714b698ab489a473b9bc05deb7c3.zip
Begin support for typed function references proposal: added the flag and supported call_ref (#1691)
Diffstat (limited to 'src/opcode.cc')
-rw-r--r--src/opcode.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opcode.cc b/src/opcode.cc
index d4ffcdc1..6a70eb4f 100644
--- a/src/opcode.cc
+++ b/src/opcode.cc
@@ -335,6 +335,9 @@ bool Opcode::IsEnabled(const Features& features) const {
case Opcode::RefIsNull:
return features.reference_types_enabled();
+ case Opcode::CallRef:
+ return features.function_references_enabled();
+
// Interpreter opcodes are never "enabled".
case Opcode::InterpAlloca:
case Opcode::InterpBrUnless: