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

Unified Diff: src/compiler/operator.cc

Issue 2225683009: [turbolizer] Show operator properties and arity in tooltip. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@t-base
Patch Set: OP_PROP_LIST -> OPERATOR_PROPERTY_LIST Created 4 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
« no previous file with comments | « src/compiler/operator.h ('k') | tools/turbolizer/node.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/operator.cc
diff --git a/src/compiler/operator.cc b/src/compiler/operator.cc
index 4d761fe9f4502859d1c740a72f016ffd51b80f74..fa1b2d89ca50106d81e8a44a5812a0b7af2d8fcd 100644
--- a/src/compiler/operator.cc
+++ b/src/compiler/operator.cc
@@ -48,6 +48,19 @@ void Operator::PrintToImpl(std::ostream& os, PrintVerbosity verbose) const {
os << mnemonic();
}
+void Operator::PrintPropsTo(std::ostream& os) const {
+ std::string separator = "";
+
+#define PRINT_PROP_IF_SET(name) \
+ if (HasProperty(Operator::k##name)) { \
+ os << separator; \
+ os << #name; \
+ separator = ", "; \
+ }
+ OPERATOR_PROPERTY_LIST(PRINT_PROP_IF_SET)
+#undef PRINT_PROP_IF_SET
+}
+
} // namespace compiler
} // namespace internal
} // namespace v8
« no previous file with comments | « src/compiler/operator.h ('k') | tools/turbolizer/node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698