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

Unified Diff: src/type-hints.cc

Issue 2498563002: [cleanup] Replace ToBooleanICStub::Types with ToBooleanHints (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/type-hints.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/type-hints.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698