Index: src/compiler/machine-operator.cc |
diff --git a/src/compiler/machine-operator.cc b/src/compiler/machine-operator.cc |
index 18e310c4bd6d2bc7a8b2128576445e7931e2411f..04f75ef5386f27669653b36a34294ce0ad1069f1 100644 |
--- a/src/compiler/machine-operator.cc |
+++ b/src/compiler/machine-operator.cc |
@@ -11,6 +11,22 @@ |
namespace v8 { |
namespace internal { |
namespace compiler { |
+ |
+std::ostream& operator<<(std::ostream& os, WriteBarrierKind kind) { |
+ switch (kind) { |
+ case kNoWriteBarrier: |
+ return os << "NoWriteBarrier"; |
+ case kMapWriteBarrier: |
+ return os << "MapWriteBarrier"; |
+ case kPointerWriteBarrier: |
+ return os << "PointerWriteBarrier"; |
+ case kFullWriteBarrier: |
+ return os << "FullWriteBarrier"; |
+ } |
+ UNREACHABLE(); |
+ return os; |
+} |
+ |
bool operator==(StoreRepresentation lhs, StoreRepresentation rhs) { |
return lhs.representation() == rhs.representation() && |