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

Unified Diff: src/code-factory.cc

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/code-factory.h ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 0ff6defa05a675ad6e71f7114567a8e0f4bf7389..85922c6a1b4818759f7085c790e6516b456c1f95 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -374,6 +374,12 @@ Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode,
}
// static
+Callable CodeFactory::CallWithSpread(Isolate* isolate) {
+ return Callable(isolate->builtins()->CallWithSpread(),
+ CallTrampolineDescriptor(isolate));
+}
+
+// static
Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode) {
return Callable(isolate->builtins()->CallFunction(mode),
CallTrampolineDescriptor(isolate));
@@ -400,15 +406,15 @@ Callable CodeFactory::ConstructFunction(Isolate* isolate) {
// static
Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate,
TailCallMode tail_call_mode,
- CallableType function_type) {
- return Callable(isolate->builtins()->InterpreterPushArgsAndCall(
- tail_call_mode, function_type),
- InterpreterPushArgsAndCallDescriptor(isolate));
+ InterpreterPushArgsMode mode) {
+ return Callable(
+ isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode, mode),
+ InterpreterPushArgsAndCallDescriptor(isolate));
}
// static
Callable CodeFactory::InterpreterPushArgsAndConstruct(
- Isolate* isolate, PushArgsConstructMode mode) {
+ Isolate* isolate, InterpreterPushArgsMode mode) {
return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(mode),
InterpreterPushArgsAndConstructDescriptor(isolate));
}
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698