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 |