summaryrefslogtreecommitdiff
path: root/src/opcode.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/opcode.cc')
-rw-r--r--src/opcode.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/opcode.cc b/src/opcode.cc
index 5b37c42d..d5b305bf 100644
--- a/src/opcode.cc
+++ b/src/opcode.cc
@@ -102,6 +102,14 @@ bool Opcode::IsEnabled(const Features& features) const {
case Opcode::I64Extend32S:
return features.threads_enabled();
+ // Interpreter opcodes are never "enabled".
+ case Opcode::InterpreterAlloca:
+ case Opcode::InterpreterBrUnless:
+ case Opcode::InterpreterCallHost:
+ case Opcode::InterpreterData:
+ case Opcode::InterpreterDropKeep:
+ return false;
+
default:
return true;
}