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

Unified Diff: src/compiler/opcodes.cc

Issue 1147973002: [turbofan] Add streaming operator for opcodes to ease debugging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/compiler/opcodes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/opcodes.cc
diff --git a/src/compiler/opcodes.cc b/src/compiler/opcodes.cc
index 1c94c19c780fec8c167a0b4a5bf2277c89bd7d89..2a8e01a26d90e9bfbe4460f015358e13eb2f8be8 100644
--- a/src/compiler/opcodes.cc
+++ b/src/compiler/opcodes.cc
@@ -5,6 +5,7 @@
#include "src/compiler/opcodes.h"
#include <algorithm>
+#include <ostream>
#include "src/base/macros.h"
@@ -29,6 +30,11 @@ char const* IrOpcode::Mnemonic(Value value) {
return kMnemonics[n];
}
+
+std::ostream& operator<<(std::ostream& os, IrOpcode::Value opcode) {
+ return os << IrOpcode::Mnemonic(opcode);
+}
+
} // namespace compiler
} // namespace internal
} // namespace v8
« no previous file with comments | « src/compiler/opcodes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698