Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index 85f0973e16a931d7f81463892ce0088cdcead9d3..b83820f07e9ea45609e41e89de45bdb51f1a650d 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -181,16 +181,9 @@ |
call_data_undefined = true; |
__ LoadRoot(data, Heap::kUndefinedValueRootIndex); |
} else { |
- if (optimization.is_constant_call()) { |
- __ movp(data, |
- FieldOperand(callee, JSFunction::kSharedFunctionInfoOffset)); |
- __ movp(data, |
- FieldOperand(data, SharedFunctionInfo::kFunctionDataOffset)); |
- __ movp(data, FieldOperand(data, FunctionTemplateInfo::kCallCodeOffset)); |
- } else { |
- __ movp(data, |
- FieldOperand(callee, FunctionTemplateInfo::kCallCodeOffset)); |
- } |
+ __ movp(data, FieldOperand(callee, JSFunction::kSharedFunctionInfoOffset)); |
+ __ movp(data, FieldOperand(data, SharedFunctionInfo::kFunctionDataOffset)); |
+ __ movp(data, FieldOperand(data, FunctionTemplateInfo::kCallCodeOffset)); |
__ movp(data, FieldOperand(data, CallHandlerInfo::kDataOffset)); |
} |
@@ -207,8 +200,7 @@ |
RelocInfo::EXTERNAL_REFERENCE); |
// 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); |
} |