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(); |