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

Unified Diff: src/builtins/builtins-interpreter.cc

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: MIPS64 port 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/builtins/builtins.h ('k') | src/builtins/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-interpreter.cc
diff --git a/src/builtins/builtins-interpreter.cc b/src/builtins/builtins-interpreter.cc
index 16091848c5eebf193f2052c19e7ac55742ecf01f..27ef954f17b9994b8e5f11f60105bba13df54503 100644
--- a/src/builtins/builtins-interpreter.cc
+++ b/src/builtins/builtins-interpreter.cc
@@ -51,11 +51,13 @@ void Builtins::Generate_InterpreterPushArgsAndTailCallFunction(
}
Handle<Code> Builtins::InterpreterPushArgsAndConstruct(
- CallableType function_type) {
- switch (function_type) {
- case CallableType::kJSFunction:
+ PushArgsConstructMode mode) {
+ switch (mode) {
+ case PushArgsConstructMode::kJSFunction:
return InterpreterPushArgsAndConstructFunction();
- case CallableType::kAny:
+ case PushArgsConstructMode::kWithFinalSpread:
+ return InterpreterPushArgsAndConstructWithFinalSpread();
+ case PushArgsConstructMode::kOther:
return InterpreterPushArgsAndConstruct();
}
UNREACHABLE();
@@ -63,13 +65,20 @@ Handle<Code> Builtins::InterpreterPushArgsAndConstruct(
}
void Builtins::Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm) {
- return Generate_InterpreterPushArgsAndConstructImpl(masm, CallableType::kAny);
+ return Generate_InterpreterPushArgsAndConstructImpl(
+ masm, PushArgsConstructMode::kOther);
+}
+
+void Builtins::Generate_InterpreterPushArgsAndConstructWithFinalSpread(
+ MacroAssembler* masm) {
+ return Generate_InterpreterPushArgsAndConstructImpl(
+ masm, PushArgsConstructMode::kWithFinalSpread);
}
void Builtins::Generate_InterpreterPushArgsAndConstructFunction(
MacroAssembler* masm) {
return Generate_InterpreterPushArgsAndConstructImpl(
- masm, CallableType::kJSFunction);
+ masm, PushArgsConstructMode::kJSFunction);
}
} // namespace internal
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698