Index: src/type-hints.cc |
diff --git a/src/type-hints.cc b/src/type-hints.cc |
index ff00eeff8bbcbacd1cb49162429ce608e1c8cba9..1c40c59b6398a6849c33900ed36c5f3fa496949a 100644 |
--- a/src/type-hints.cc |
+++ b/src/type-hints.cc |
@@ -67,6 +67,8 @@ std::ostream& operator<<(std::ostream& os, ToBooleanHint hint) { |
return os << "SimdValue"; |
case ToBooleanHint::kAny: |
return os << "Any"; |
+ case ToBooleanHint::kNeedsMap: |
+ return os << "NeedsMap"; |
} |
UNREACHABLE(); |
return os; |
@@ -87,5 +89,26 @@ std::ostream& operator<<(std::ostream& os, ToBooleanHints hints) { |
return os; |
} |
+std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags) { |
+ switch (flags) { |
+ case STRING_ADD_CHECK_NONE: |
+ return os << "CheckNone"; |
+ case STRING_ADD_CHECK_LEFT: |
+ return os << "CheckLeft"; |
+ case STRING_ADD_CHECK_RIGHT: |
+ return os << "CheckRight"; |
+ case STRING_ADD_CHECK_BOTH: |
+ return os << "CheckBoth"; |
+ case STRING_ADD_CONVERT_LEFT: |
+ return os << "ConvertLeft"; |
+ case STRING_ADD_CONVERT_RIGHT: |
+ return os << "ConvertRight"; |
+ case STRING_ADD_CONVERT: |
+ break; |
+ } |
+ UNREACHABLE(); |
+ return os; |
+} |
+ |
} // namespace internal |
} // namespace v8 |