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 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: Update builtins for new push args modes 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 5ccd40757da07b611c3a1dc12f16bbd0b831109d..00dcdd22ef5f6eff21d4ec3c521bd4e8d60d1046 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1213,6 +1213,29 @@ inline std::ostream& operator<<(std::ostream& os, CallableType function_type) {
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) {
+ switch (mode) {
+ case PushArgsConstructMode::kJSFunction:
+ return os << "JSFunction";
+ case PushArgsConstructMode::kWithFinalSpread:
+ return os << "WithFinalSpread";
+ case PushArgsConstructMode::kOther:
+ return os << "Other";
+ }
+ UNREACHABLE();
+ return os;
+}
+
inline uint32_t ObjectHash(Address address) {
// All objects are at least pointer aligned, so we can remove the trailing
// zeros.

Powered by Google App Engine
This is Rietveld 408576698