| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 2dd61ba9463c42a81155a1d0fa3bd5f084cdb671..b719ef16833856148b09e1637e04c29154ea95cb 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -5417,7 +5417,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
|
| // -- t0 : call_data
|
| @@ -5453,8 +5453,10 @@ static void CallApiFunctionStubHelper(MacroAssembler* masm,
|
|
|
| // Save context, callee and call data.
|
| __ Push(context, callee, call_data);
|
| - // Load context from callee.
|
| - __ lw(context, FieldMemOperand(callee, JSFunction::kContextOffset));
|
| + if (!is_lazy) {
|
| + // Load context from callee.
|
| + __ lw(context, FieldMemOperand(callee, JSFunction::kContextOffset));
|
| + }
|
|
|
| Register scratch = call_data;
|
| if (!call_data_undefined) {
|
| @@ -5535,7 +5537,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);
|
| }
|
|
|
|
|
| @@ -5543,8 +5545,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);
|
| }
|
|
|
|
|
|
|