Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index d7a9a43b446656182584ac49ff41e30b86626782..c218dc69c32ef82708aceb2bc2bc917cdcd687e3 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -471,6 +471,9 @@ class Bytecodes { |
// (kRegCount8/kRegCount16). |
static bool IsRegisterCountOperandType(OperandType operand_type); |
+ // Returns true if |operand_type| is a register index operand (kIdx8/kIdx16). |
+ static bool IsIndexOperandType(OperandType operand_type); |
rmcilroy
2016/02/10 15:26:12
nit - Could you rearrange the order of these funct
Stefano Sanfilippo
2016/02/10 15:52:00
Done.
|
+ |
// Returns true if |operand_type| is any type of register operand. |
static bool IsRegisterOperandType(OperandType operand_type); |
@@ -480,6 +483,9 @@ class Bytecodes { |
// Returns true if |operand_type| represents a register used as an output. |
static bool IsRegisterOutputOperandType(OperandType operand_type); |
+ // Returns true if |operand_type| represents an immediate. |
+ static bool IsImmediateOperandType(OperandType operand_type); |
+ |
// Decode a single bytecode and operands to |os|. |
static std::ostream& Decode(std::ostream& os, const uint8_t* bytecode_start, |
int number_of_parameters); |