Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index f5ecf5f6774ca18d95e6e09d788d615be7edfa9b..0d2ff96dcbb5aa89c5a776718e66578460275de3 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -1887,8 +1887,6 @@ void MacroAssembler::JumpToExternalReference(const ExternalReference& ext) { |
void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
const ParameterCount& actual, |
- Handle<Code> code_constant, |
- const Operand& code_operand, |
Label* done, |
bool* definitely_mismatches, |
InvokeFlag flag, |
@@ -1939,13 +1937,6 @@ void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
if (!definitely_matches) { |
Handle<Code> adaptor = |
isolate()->builtins()->ArgumentsAdaptorTrampoline(); |
- if (!code_constant.is_null()) { |
- mov(edx, Immediate(code_constant)); |
- add(edx, Immediate(Code::kHeaderSize - kHeapObjectTag)); |
- } else if (!code_operand.is_reg(edx)) { |
- mov(edx, code_operand); |
- } |
- |
if (flag == CALL_FUNCTION) { |
call_wrapper.BeforeCall(CallSize(adaptor, RelocInfo::CODE_TARGET)); |
call(adaptor, RelocInfo::CODE_TARGET); |
@@ -1971,9 +1962,8 @@ void MacroAssembler::InvokeCode(const Operand& code, |
Label done; |
bool definitely_mismatches = false; |
- InvokePrologue(expected, actual, Handle<Code>::null(), code, |
- &done, &definitely_mismatches, flag, Label::kNear, |
- call_wrapper); |
+ InvokePrologue(expected, actual, &done, &definitely_mismatches, flag, |
+ Label::kNear, call_wrapper); |
if (!definitely_mismatches) { |
if (flag == CALL_FUNCTION) { |
call_wrapper.BeforeCall(CallSize(code)); |