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

Unified Diff: src/code-factory.cc

Issue 2645743002: [builtins] Port parameter and argument-related code stubs to CSA (Closed)
Patch Set: Remove stray change 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/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index fcf7f33e48f0df036ca2502cc6007840d0f0fd69..7296599976a6c6e5f241ddb00fea50e641212230 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -344,24 +344,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

Powered by Google App Engine
This is Rietveld 408576698