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) { |