Index: src/compiler/common-operator.cc |
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc |
index 4be63fe8ff75f44d27c28e29f0240a57fa96815a..00bcb727ef27b5f9e9dec76214239a9ae87b371f 100644 |
--- a/src/compiler/common-operator.cc |
+++ b/src/compiler/common-operator.cc |
@@ -167,6 +167,20 @@ std::ostream& operator<<(std::ostream& os, |
return os << p.value() << "|" << p.rmode() << "|" << p.type(); |
} |
+std::ostream& operator<<(std::ostream& os, |
+ const ZoneVector<MachineType>* types) { |
+ // Print all the MachineTypes, separated by commas. |
+ bool first = true; |
+ for (MachineType elem : *types) { |
+ if (!first) { |
+ os << ", "; |
+ } |
+ first = false; |
+ os << elem; |
+ } |
+ return os; |
+} |
+ |
#define CACHED_OP_LIST(V) \ |
V(Dead, Operator::kFoldable, 0, 0, 0, 1, 1, 1) \ |
V(DeoptimizeIf, Operator::kFoldable, 2, 1, 1, 0, 1, 1) \ |