Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index 82a4553e7c468c8bfd0caa814595365bde1dd934..711f69b15a26ce799a8704c880fb01dd0f34f594 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -5434,7 +5434,7 @@ static void CallApiFunctionAndReturn(MacroAssembler* masm, |
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 ------------- |
// -- r3 : callee |
// -- r7 : call_data |
@@ -5470,8 +5470,10 @@ static void CallApiFunctionStubHelper(MacroAssembler* masm, |
// context save |
__ push(context); |
- // load context from callee |
- __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
+ if (!is_lazy) { |
+ // load context from callee |
+ __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
+ } |
// callee |
__ push(callee); |
@@ -5570,7 +5572,7 @@ static void CallApiFunctionStubHelper(MacroAssembler* masm, |
void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
bool call_data_undefined = this->call_data_undefined(); |
CallApiFunctionStubHelper(masm, ParameterCount(r6), false, |
- call_data_undefined); |
+ call_data_undefined, false); |
} |
@@ -5578,8 +5580,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); |
} |