Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 752396e008cd0f6ad6f573555e1a054e9f0a12ad..5f9566797884013ae4e3c1f2f89dd6e379f44916 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -5578,11 +5578,10 @@ static void CallApiFunctionAndReturn( |
__ jmp(&leave_exit_frame); |
} |
- |
static void CallApiFunctionStubHelper(MacroAssembler* masm, |
const ParameterCount& argc, |
bool return_first_arg, |
- bool call_data_undefined) { |
+ bool call_data_undefined, bool is_lazy) { |
// ----------- S t a t e ------------- |
// -- a0 : callee |
// -- a4 : call_data |
@@ -5618,8 +5617,10 @@ static void CallApiFunctionStubHelper(MacroAssembler* masm, |
// Save context, callee and call data. |
__ Push(context, callee, call_data); |
- // Load context from callee. |
- __ ld(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
+ if (!is_lazy) { |
+ // Load context from callee. |
+ __ ld(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
+ } |
Register scratch = call_data; |
if (!call_data_undefined) { |
@@ -5704,7 +5705,7 @@ static void CallApiFunctionStubHelper(MacroAssembler* masm, |
void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
bool call_data_undefined = this->call_data_undefined(); |
CallApiFunctionStubHelper(masm, ParameterCount(a3), false, |
- call_data_undefined); |
+ call_data_undefined, false); |
} |
@@ -5712,8 +5713,9 @@ void CallApiAccessorStub::Generate(MacroAssembler* masm) { |
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); |
+ call_data_undefined, is_lazy); |
} |