Index: src/ic/x87/handler-compiler-x87.cc |
diff --git a/src/ic/x87/handler-compiler-x87.cc b/src/ic/x87/handler-compiler-x87.cc |
index 353689e4ea0e4c9f52a8a03221ccbcf177ebb923..e98ad2231f5e555af00aab600c548288fd6202fa 100644 |
--- a/src/ic/x87/handler-compiler-x87.cc |
+++ b/src/ic/x87/handler-compiler-x87.cc |
@@ -197,13 +197,9 @@ |
call_data_undefined = true; |
__ mov(data, Immediate(isolate->factory()->undefined_value())); |
} else { |
- if (optimization.is_constant_call()) { |
- __ mov(data, FieldOperand(callee, JSFunction::kSharedFunctionInfoOffset)); |
- __ mov(data, FieldOperand(data, SharedFunctionInfo::kFunctionDataOffset)); |
- __ mov(data, FieldOperand(data, FunctionTemplateInfo::kCallCodeOffset)); |
- } else { |
- __ mov(data, FieldOperand(callee, FunctionTemplateInfo::kCallCodeOffset)); |
- } |
+ __ mov(data, FieldOperand(callee, JSFunction::kSharedFunctionInfoOffset)); |
+ __ mov(data, FieldOperand(data, SharedFunctionInfo::kFunctionDataOffset)); |
+ __ mov(data, FieldOperand(data, FunctionTemplateInfo::kCallCodeOffset)); |
__ mov(data, FieldOperand(data, CallHandlerInfo::kDataOffset)); |
} |
@@ -218,8 +214,7 @@ |
__ mov(api_function_address, Immediate(function_address)); |
// 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); |
} |