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

Unified Diff: src/globals.h

Issue 2649143002: [Turbofan] Implement call with spread bytecode in assembly code. (Closed)
Patch Set: Mips ports Created 3 years, 11 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
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index b471d9d140cfe6f795c5ad2a8966b2dded2d846e..fc0c2cb7bc90b2dff34fc278519f9c5efb0a5381 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1200,38 +1200,17 @@ inline bool IsConstructable(FunctionKind kind, LanguageMode mode) {
return true;
}
-enum class CallableType : unsigned { kJSFunction, kAny };
+enum class PushArgsMode : unsigned { kJSFunction, kWithFinalSpread, kOther };
-inline size_t hash_value(CallableType type) { return bit_cast<unsigned>(type); }
+inline size_t hash_value(PushArgsMode mode) { return bit_cast<unsigned>(mode); }
-inline std::ostream& operator<<(std::ostream& os, CallableType function_type) {
- switch (function_type) {
- case CallableType::kJSFunction:
- return os << "JSFunction";
- case CallableType::kAny:
- return os << "Any";
- }
- UNREACHABLE();
- return os;
-}
-
-enum class PushArgsConstructMode : unsigned {
- kJSFunction,
- kWithFinalSpread,
- kOther
-};
-
-inline size_t hash_value(PushArgsConstructMode mode) {
- return bit_cast<unsigned>(mode);
-}
-
-inline std::ostream& operator<<(std::ostream& os, PushArgsConstructMode mode) {
+inline std::ostream& operator<<(std::ostream& os, PushArgsMode mode) {
switch (mode) {
- case PushArgsConstructMode::kJSFunction:
+ case PushArgsMode::kJSFunction:
return os << "JSFunction";
- case PushArgsConstructMode::kWithFinalSpread:
+ case PushArgsMode::kWithFinalSpread:
return os << "WithFinalSpread";
- case PushArgsConstructMode::kOther:
+ case PushArgsMode::kOther:
return os << "Other";
}
UNREACHABLE();

Powered by Google App Engine
This is Rietveld 408576698