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

Unified Diff: src/globals.h

Issue 2649143002: [Turbofan] Implement call with spread bytecode in assembly code. (Closed)
Patch Set: Rename PushArgsMode to InterpreterPushArgsMode 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
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/interpreter/bytecode-array-builder.h » ('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 b471d9d140cfe6f795c5ad2a8966b2dded2d846e..6d06cac83099a2bb5e085305bd76b19264f15121 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1200,38 +1200,24 @@ inline bool IsConstructable(FunctionKind kind, LanguageMode mode) {
return true;
}
-enum class CallableType : unsigned { kJSFunction, kAny };
-
-inline size_t hash_value(CallableType type) { return bit_cast<unsigned>(type); }
-
-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 {
+enum class InterpreterPushArgsMode : unsigned {
kJSFunction,
kWithFinalSpread,
kOther
};
-inline size_t hash_value(PushArgsConstructMode mode) {
+inline size_t hash_value(InterpreterPushArgsMode mode) {
return bit_cast<unsigned>(mode);
}
-inline std::ostream& operator<<(std::ostream& os, PushArgsConstructMode mode) {
+inline std::ostream& operator<<(std::ostream& os,
+ InterpreterPushArgsMode mode) {
switch (mode) {
- case PushArgsConstructMode::kJSFunction:
+ case InterpreterPushArgsMode::kJSFunction:
return os << "JSFunction";
- case PushArgsConstructMode::kWithFinalSpread:
+ case InterpreterPushArgsMode::kWithFinalSpread:
return os << "WithFinalSpread";
- case PushArgsConstructMode::kOther:
+ case InterpreterPushArgsMode::kOther:
return os << "Other";
}
UNREACHABLE();
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698