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

Unified Diff: src/code-factory.cc

Issue 2645743002: [builtins] Port parameter and argument-related code stubs to CSA (Closed)
Patch Set: Review feedback Created 3 years, 10 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/code-stub-assembler.h » ('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 1fbeec308e32b9039462076b164b15646cd30eb9..c34f43272b24a8f9ad3cb860cbd25dbf702220e6 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -346,24 +346,21 @@ Callable CodeFactory::FastNewFunctionContext(Isolate* isolate,
}
// static
-Callable CodeFactory::FastNewRestParameter(Isolate* isolate,
- bool skip_stub_frame) {
- FastNewRestParameterStub stub(isolate, skip_stub_frame);
- return make_callable(stub);
+Callable CodeFactory::FastNewRestParameter(Isolate* isolate) {
+ return Callable(isolate->builtins()->FastNewRestParameter(),
+ FastNewRestParameterDescriptor(isolate));
}
// static
-Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate,
- bool skip_stub_frame) {
- FastNewSloppyArgumentsStub stub(isolate, skip_stub_frame);
- return make_callable(stub);
+Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate) {
+ return Callable(isolate->builtins()->FastNewSloppyArguments(),
+ FastNewRestParameterDescriptor(isolate));
}
// static
-Callable CodeFactory::FastNewStrictArguments(Isolate* isolate,
- bool skip_stub_frame) {
- FastNewStrictArgumentsStub stub(isolate, skip_stub_frame);
- return make_callable(stub);
+Callable CodeFactory::FastNewStrictArguments(Isolate* isolate) {
+ return Callable(isolate->builtins()->FastNewStrictArguments(),
+ FastNewRestParameterDescriptor(isolate));
}
// static
« no previous file with comments | « src/code-factory.h ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698