| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index dfff08b891e27b2d51abb5997facea8613ba5720..ee496ea314893d106710332061f5e11d322debd6 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -5500,11 +5500,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
|
| @@ -5540,8 +5539,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) {
|
| @@ -5626,7 +5627,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);
|
| }
|
|
|
|
|
| @@ -5634,8 +5635,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);
|
| }
|
|
|
|
|
|
|