Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 978598e3a845ccc7a47fa17c210b40826cdd5bd9..b28e53bd9835542dd1c81926fff69cb6177d9133 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -5365,10 +5365,11 @@ |
__ jmp(&leave_exit_frame); |
} |
+ |
static void CallApiFunctionStubHelper(MacroAssembler* masm, |
const ParameterCount& argc, |
bool return_first_arg, |
- bool call_data_undefined, bool is_lazy) { |
+ bool call_data_undefined) { |
// ----------- S t a t e ------------- |
// -- rdi : callee |
// -- rbx : call_data |
@@ -5431,10 +5432,8 @@ |
// Push return address back on stack. |
__ PushReturnAddressFrom(return_address); |
- if (!is_lazy) { |
- // load context from callee |
- __ movp(context, FieldOperand(callee, JSFunction::kContextOffset)); |
- } |
+ // load context from callee |
+ __ movp(context, FieldOperand(callee, JSFunction::kContextOffset)); |
// Allocate the v8::Arguments structure in the arguments' space since |
// it's not controlled by GC. |
@@ -5507,7 +5506,7 @@ |
void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
bool call_data_undefined = this->call_data_undefined(); |
CallApiFunctionStubHelper(masm, ParameterCount(rax), false, |
- call_data_undefined, false); |
+ call_data_undefined); |
} |
@@ -5515,9 +5514,8 @@ |
bool is_store = this->is_store(); |
int argc = this->argc(); |
bool call_data_undefined = this->call_data_undefined(); |
- bool is_lazy = this->is_lazy(); |
CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, |
- call_data_undefined, is_lazy); |
+ call_data_undefined); |
} |