Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index c17e95878adb6734577db6716db56b12376cc08b..4f7b4a6d0b07615145f0ec4eebae96543e8eebef 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -262,6 +262,16 @@ bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) { |
return bytecode == Bytecode::kReturn || IsJump(bytecode); |
} |
+bool Bytecodes::IsMaybeRegisterOperandType(OperandType operand_type) { |
+ return (operand_type == OperandType::kMaybeReg8 || |
+ operand_type == OperandType::kMaybeReg16); |
+} |
+ |
+bool Bytecodes::IsRegisterCountOperandType(OperandType operand_type) { |
+ return (operand_type == OperandType::kRegCount8 || |
+ operand_type == OperandType::kRegCount16); |
+} |
+ |
// static |
bool Bytecodes::IsRegisterOperandType(OperandType operand_type) { |
switch (operand_type) { |