Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index 44bd03d9953fb618f17ee18096f15492ac129795..fec6ecf6aaa65853a82b86ad481da39fa2108eea 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -78,6 +78,9 @@ class Bytecodes { |
// Returns string representation of |bytecode|. |
static const char* ToString(Bytecode bytecode); |
+ // Returns string representation of |operand_type|. |
+ static const char* OperandTypeToString(OperandType operand_type); |
+ |
// Returns byte value of bytecode. |
static uint8_t ToByte(Bytecode bytecode); |
@@ -107,6 +110,7 @@ class Bytecodes { |
}; |
std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
+std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
oth
2015/08/13 10:29:55
Couldn't spot where this is used (?).
rmcilroy
2015/08/13 10:44:22
It's required by DCHECK_EQ(x, OperandType::x). I j
|
} // namespace interpreter |
} // namespace internal |