| Index: src/ic/mips/handler-compiler-mips.cc
|
| diff --git a/src/ic/mips/handler-compiler-mips.cc b/src/ic/mips/handler-compiler-mips.cc
|
| index 9ee05775064e2a6d1ab6bb5fad6e90177a94add2..e3dc48fc7fd3ffc8ba383268dc9c76025d5ed2e8 100644
|
| --- a/src/ic/mips/handler-compiler-mips.cc
|
| +++ b/src/ic/mips/handler-compiler-mips.cc
|
| @@ -279,9 +279,16 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall(
|
| call_data_undefined = true;
|
| __ LoadRoot(data, Heap::kUndefinedValueRootIndex);
|
| } else {
|
| - __ lw(data, FieldMemOperand(callee, JSFunction::kSharedFunctionInfoOffset));
|
| - __ lw(data, FieldMemOperand(data, SharedFunctionInfo::kFunctionDataOffset));
|
| - __ lw(data, FieldMemOperand(data, FunctionTemplateInfo::kCallCodeOffset));
|
| + if (optimization.is_constant_call()) {
|
| + __ lw(data,
|
| + FieldMemOperand(callee, JSFunction::kSharedFunctionInfoOffset));
|
| + __ lw(data,
|
| + FieldMemOperand(data, SharedFunctionInfo::kFunctionDataOffset));
|
| + __ lw(data, FieldMemOperand(data, FunctionTemplateInfo::kCallCodeOffset));
|
| + } else {
|
| + __ lw(data,
|
| + FieldMemOperand(callee, FunctionTemplateInfo::kCallCodeOffset));
|
| + }
|
| __ lw(data, FieldMemOperand(data, CallHandlerInfo::kDataOffset));
|
| }
|
|
|
| @@ -299,7 +306,8 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall(
|
| __ li(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);
|
| }
|
|
|
|
|