Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: src/interpreter/bytecodes.h

Issue 1283313003: [interpreter]: Update BytecodeArrayBuilder register handling. (Closed) Base URL: ssh://rmcilroy.lon.corp.google.com///usr/local/google/code/v8_full/v8@master
Patch Set: Fix define in OperandTypeToString Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698