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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/compiler/operator.h ('k') | tools/turbolizer/node.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/operator.h" 5 #include "src/compiler/operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 30 matching lines...) Expand all
41 41
42 std::ostream& operator<<(std::ostream& os, const Operator& op) { 42 std::ostream& operator<<(std::ostream& os, const Operator& op) {
43 op.PrintTo(os); 43 op.PrintTo(os);
44 return os; 44 return os;
45 } 45 }
46 46
47 void Operator::PrintToImpl(std::ostream& os, PrintVerbosity verbose) const { 47 void Operator::PrintToImpl(std::ostream& os, PrintVerbosity verbose) const {
48 os << mnemonic(); 48 os << mnemonic();
49 } 49 }
50 50
51 void Operator::PrintPropsTo(std::ostream& os) const {
52 std::string separator = "";
53
54 #define PRINT_PROP_IF_SET(name) \
55 if (HasProperty(Operator::k##name)) { \
56 os << separator; \
57 os << #name; \
58 separator = ", "; \
59 }
60 OPERATOR_PROPERTY_LIST(PRINT_PROP_IF_SET)
61 #undef PRINT_PROP_IF_SET
62 }
63
51 } // namespace compiler 64 } // namespace compiler
52 } // namespace internal 65 } // namespace internal
53 } // namespace v8 66 } // namespace v8
OLDNEW
« 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