Index: src/builtins/x64/builtins-x64.cc |
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc |
index a292d70c71c6a4cd4878b9321ba12b078427e311..7ebc40dc6dd8d7c4298be2c359a939b0f2b989fa 100644 |
--- a/src/builtins/x64/builtins-x64.cc |
+++ b/src/builtins/x64/builtins-x64.cc |
@@ -137,8 +137,8 @@ void Generate_JSConstructStubHelper(MacroAssembler* masm, bool is_api_function, |
// Allocate the new receiver object. |
__ Push(rdi); |
__ Push(rdx); |
- FastNewObjectStub stub(masm->isolate()); |
- __ CallStub(&stub); |
+ __ Call(CodeFactory::FastNewObject(masm->isolate()).code(), |
+ RelocInfo::CODE_TARGET); |
__ movp(rbx, rax); |
__ Pop(rdx); |
__ Pop(rdi); |
@@ -1878,8 +1878,8 @@ void Builtins::Generate_NumberConstructor_ConstructStub(MacroAssembler* masm) { |
FrameScope scope(masm, StackFrame::MANUAL); |
__ EnterBuiltinFrame(rsi, rdi, r8); |
__ Push(rbx); // the first argument |
- FastNewObjectStub stub(masm->isolate()); |
- __ CallStub(&stub); |
+ __ Call(CodeFactory::FastNewObject(masm->isolate()).code(), |
+ RelocInfo::CODE_TARGET); |
__ Pop(FieldOperand(rax, JSValue::kValueOffset)); |
__ LeaveBuiltinFrame(rsi, rdi, r8); |
} |
@@ -2033,8 +2033,8 @@ void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { |
FrameScope scope(masm, StackFrame::MANUAL); |
__ EnterBuiltinFrame(rsi, rdi, r8); |
__ Push(rbx); // the first argument |
- FastNewObjectStub stub(masm->isolate()); |
- __ CallStub(&stub); |
+ __ Call(CodeFactory::FastNewObject(masm->isolate()).code(), |
+ RelocInfo::CODE_TARGET); |
__ Pop(FieldOperand(rax, JSValue::kValueOffset)); |
__ LeaveBuiltinFrame(rsi, rdi, r8); |
} |