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

Unified Diff: src/code-factory.cc

Issue 2605893002: [builtins] More stubs to the builtin-o-sphere. (Closed)
Patch Set: Fixed compile error. Created 4 years 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-stubs.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 634f91e9b8c9975aa908b2ffe22abb4d903182b9..7a89f8a30e1dc1b3782588e28090cfae8ddb74ff 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -338,24 +338,23 @@ Callable CodeFactory::ResumeGenerator(Isolate* isolate) {
// static
Callable CodeFactory::FastCloneRegExp(Isolate* isolate) {
- FastCloneRegExpStub stub(isolate);
- return make_callable(stub);
+ return Callable(isolate->builtins()->FastCloneRegExp(),
+ FastCloneRegExpDescriptor(isolate));
}
// static
-Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) {
- // TODO(mstarzinger): Thread through AllocationSiteMode at some point.
- FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE);
- return make_callable(stub);
+Callable CodeFactory::FastCloneShallowArray(
+ Isolate* isolate, AllocationSiteMode allocation_mode) {
+ return Callable(isolate->builtins()->NewCloneShallowArray(allocation_mode),
+ FastCloneShallowArrayDescriptor(isolate));
}
// static
Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) {
- FastCloneShallowObjectStub stub(isolate, length);
- return make_callable(stub);
+ return Callable(isolate->builtins()->NewCloneShallowObject(length),
+ FastCloneShallowObjectDescriptor(isolate));
}
-
// static
Callable CodeFactory::FastNewFunctionContext(Isolate* isolate,
ScopeType scope_type) {
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698