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

Unified Diff: src/code-factory.cc

Issue 2930623002: [builtins] Start refactoring the Apply builtin. (Closed)
Patch Set: Address feedback. Created 3 years, 6 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/ia32/interface-descriptors-ia32.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 44d971f37b10179dee5d210cd24599210b729420..6888bf8006b34645070a6967f0df5e086d5cf15a 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -409,6 +409,12 @@ Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode,
CallTrampolineDescriptor(isolate));
}
+// static
+Callable CodeFactory::CallVarargs(Isolate* isolate) {
+ return Callable(isolate->builtins()->CallVarargs(),
+ CallVarargsDescriptor(isolate));
+}
+
// static
Callable CodeFactory::CallForwardVarargs(Isolate* isolate) {
return Callable(isolate->builtins()->CallForwardVarargs(),
@@ -439,6 +445,12 @@ Callable CodeFactory::ConstructFunction(Isolate* isolate) {
ConstructTrampolineDescriptor(isolate));
}
+// static
+Callable CodeFactory::ConstructVarargs(Isolate* isolate) {
+ return Callable(isolate->builtins()->ConstructVarargs(),
+ ConstructVarargsDescriptor(isolate));
+}
+
// static
Callable CodeFactory::ConstructForwardVarargs(Isolate* isolate) {
return Callable(isolate->builtins()->ConstructForwardVarargs(),
« no previous file with comments | « src/code-factory.h ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698