| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index ea9b659a443f8d4bb627e6b19c1ae58877297b0f..aa14b12b8ffc6acc20e30f7425e632e796c727a8 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -5484,7 +5484,7 @@ static void CallApiFunctionAndReturn(
|
| 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
|
| @@ -5520,8 +5520,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) {
|
| @@ -5606,7 +5608,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);
|
| }
|
|
|
|
|
| @@ -5614,8 +5616,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);
|
| }
|
|
|
|
|
|
|