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

Unified Diff: src/globals.h

Issue 1150673002: Add a TurboFan skeleton for StringAddStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed frame construction logic Created 5 years, 7 months 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/compiler/x64/code-generator-x64.cc ('k') | src/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index 761983178d4b0f4d2f316744eed9d4ff818474e4..00665e3ffdde2dcd3b0b6d16d2d3af4594aaf018 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -240,7 +240,7 @@ enum LanguageMode {
};
-inline std::ostream& operator<<(std::ostream& os, LanguageMode mode) {
+inline std::ostream& operator<<(std::ostream& os, const LanguageMode& mode) {
switch (mode) {
case SLOPPY:
return os << "sloppy";
@@ -446,6 +446,17 @@ enum AllocationAlignment { kWordAligned, kDoubleAligned, kDoubleUnaligned };
// allows).
enum PretenureFlag { NOT_TENURED, TENURED };
+inline std::ostream& operator<<(std::ostream& os, const PretenureFlag& flag) {
+ switch (flag) {
+ case NOT_TENURED:
+ return os << "NotTenured";
+ case TENURED:
+ return os << "Tenured";
+ }
+ UNREACHABLE();
+ return os;
+}
+
enum MinimumCapacity {
USE_DEFAULT_MINIMUM_CAPACITY,
USE_CUSTOM_MINIMUM_CAPACITY
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698