Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index ccd02cc6776e885e7467a88b91fd89a90f1add98..13a2e33f506336da9d49409561f92dbdc6b2cc78 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -315,11 +315,11 @@ void Builtins::Generate_NumberConstructor_ConstructStub(MacroAssembler* masm) { |
__ bind(&new_object); |
{ |
FrameScope scope(masm, StackFrame::MANUAL); |
- FastNewObjectStub stub(masm->isolate()); |
__ SmiTag(x6); |
__ EnterBuiltinFrame(cp, x1, x6); |
__ Push(x2); // first argument |
- __ CallStub(&stub); |
+ __ Call(CodeFactory::FastNewObject(masm->isolate()).code(), |
+ RelocInfo::CODE_TARGET); |
__ Pop(x2); |
__ LeaveBuiltinFrame(cp, x1, x6); |
__ SmiUntag(x6); |
@@ -467,11 +467,11 @@ void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { |
__ bind(&new_object); |
{ |
FrameScope scope(masm, StackFrame::MANUAL); |
- FastNewObjectStub stub(masm->isolate()); |
__ SmiTag(x6); |
__ EnterBuiltinFrame(cp, x1, x6); |
__ Push(x2); // first argument |
- __ CallStub(&stub); |
+ __ Call(CodeFactory::FastNewObject(masm->isolate()).code(), |
+ RelocInfo::CODE_TARGET); |
__ Pop(x2); |
__ LeaveBuiltinFrame(cp, x1, x6); |
__ SmiUntag(x6); |
@@ -569,8 +569,8 @@ void Generate_JSConstructStubHelper(MacroAssembler* masm, bool is_api_function, |
if (create_implicit_receiver) { |
// Allocate the new receiver object. |
__ Push(constructor, new_target); |
- FastNewObjectStub stub(masm->isolate()); |
- __ CallStub(&stub); |
+ __ Call(CodeFactory::FastNewObject(masm->isolate()).code(), |
+ RelocInfo::CODE_TARGET); |
__ Mov(x4, x0); |
__ Pop(new_target, constructor); |