| Index: src/ic/ppc/handler-compiler-ppc.cc
|
| diff --git a/src/ic/ppc/handler-compiler-ppc.cc b/src/ic/ppc/handler-compiler-ppc.cc
|
| index af0f125cc1ef05cffabff75e2a73e32dcdfe72a9..830626b1040f967c66e04db2ea0d76e89b300046 100644
|
| --- a/src/ic/ppc/handler-compiler-ppc.cc
|
| +++ b/src/ic/ppc/handler-compiler-ppc.cc
|
| @@ -284,12 +284,17 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall(
|
| call_data_undefined = true;
|
| __ LoadRoot(data, Heap::kUndefinedValueRootIndex);
|
| } else {
|
| - __ LoadP(data,
|
| - FieldMemOperand(callee, JSFunction::kSharedFunctionInfoOffset));
|
| - __ LoadP(data,
|
| - FieldMemOperand(data, SharedFunctionInfo::kFunctionDataOffset));
|
| - __ LoadP(data,
|
| - FieldMemOperand(data, FunctionTemplateInfo::kCallCodeOffset));
|
| + if (optimization.is_constant_call()) {
|
| + __ LoadP(data,
|
| + FieldMemOperand(callee, JSFunction::kSharedFunctionInfoOffset));
|
| + __ LoadP(data,
|
| + FieldMemOperand(data, SharedFunctionInfo::kFunctionDataOffset));
|
| + __ LoadP(data,
|
| + FieldMemOperand(data, FunctionTemplateInfo::kCallCodeOffset));
|
| + } else {
|
| + __ LoadP(data,
|
| + FieldMemOperand(callee, FunctionTemplateInfo::kCallCodeOffset));
|
| + }
|
| __ LoadP(data, FieldMemOperand(data, CallHandlerInfo::kDataOffset));
|
| }
|
|
|
| @@ -308,7 +313,8 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall(
|
| __ mov(api_function_address, Operand(ref));
|
|
|
| // Jump to stub.
|
| - CallApiAccessorStub stub(isolate, is_store, call_data_undefined);
|
| + CallApiAccessorStub stub(isolate, is_store, call_data_undefined,
|
| + !optimization.is_constant_call());
|
| __ TailCallStub(&stub);
|
| }
|
|
|
|
|