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 2828409b17c186bca05502102a92dc57133a696d..071eb56e1d3653c1ff4731a5a0806cc59123cdbb 100644 |
--- a/src/ic/mips/handler-compiler-mips.cc |
+++ b/src/ic/mips/handler-compiler-mips.cc |
@@ -279,16 +279,9 @@ |
call_data_undefined = true; |
__ LoadRoot(data, Heap::kUndefinedValueRootIndex); |
} else { |
- 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(callee, JSFunction::kSharedFunctionInfoOffset)); |
+ __ lw(data, FieldMemOperand(data, SharedFunctionInfo::kFunctionDataOffset)); |
+ __ lw(data, FieldMemOperand(data, FunctionTemplateInfo::kCallCodeOffset)); |
__ lw(data, FieldMemOperand(data, CallHandlerInfo::kDataOffset)); |
} |
@@ -306,8 +299,7 @@ |
__ li(api_function_address, Operand(ref)); |
// Jump to stub. |
- CallApiAccessorStub stub(isolate, is_store, call_data_undefined, |
- !optimization.is_constant_call()); |
+ CallApiAccessorStub stub(isolate, is_store, call_data_undefined); |
__ TailCallStub(&stub); |
} |