Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 4a595783e2dc56353c72a0a6cc089144161de3ec..5cc7752f737d66f29f7f2cafaabe44a15eb55ed6 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1921,8 +1921,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, |
@@ -1973,13 +1971,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); |
@@ -2005,9 +1996,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)); |