Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index 8f10766183c2cdb2a6010598b2606ba32a21e64a..3ad737fbc92d5e92bb4855ac4b54ebf81195e8a7 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -512,6 +512,12 @@ class Bytecodes { |
static std::ostream& Decode(std::ostream& os, const uint8_t* bytecode_start, |
int number_of_parameters); |
+ // Returns true if a handler is generated for a bytecode at a given |
+ // operand scale. All bytecodes have handlers at OperandScale::kSingle, |
+ // but only bytecodes with scalable operands have handlers with larger |
+ // OperandScale values. |
+ static bool BytecodeHasHandler(Bytecode bytecode, OperandScale operand_scale); |
+ |
// Return the next larger operand scale. |
static OperandScale NextOperandScale(OperandScale operand_scale); |