Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index 136e2802be988c01590453ba4305a455e6d2cb8d..9fa1209d51b6075817e097918324483e41fb1a4d 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -8,6 +8,7 @@ |
#include "src/frames.h" |
#include "src/interpreter/bytecode-traits.h" |
+#include "src/interpreter/interpreter.h" |
namespace v8 { |
namespace internal { |
@@ -574,6 +575,13 @@ std::ostream& Bytecodes::Decode(std::ostream& os, const uint8_t* bytecode_start, |
return os; |
} |
+// static |
+bool Bytecodes::BytecodeHasHandler(Bytecode bytecode, |
+ OperandScale operand_scale) { |
+ return operand_scale == OperandScale::kSingle || |
+ Bytecodes::IsBytecodeWithScalableOperands(bytecode); |
+} |
+ |
std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) { |
return os << Bytecodes::ToString(bytecode); |
} |