Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 4a5a386fa0f7cbf09eb0324bad52521f127c74c0..9f66a0796ebe6f104800aa68682f13182f9f8ea2 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -3985,8 +3985,6 @@ void MacroAssembler::MovToFloatParameters(DoubleRegister src1, |
void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
const ParameterCount& actual, |
- Handle<Code> code_constant, |
- Register code_reg, |
Label* done, |
bool* definitely_mismatches, |
InvokeFlag flag, |
@@ -4006,7 +4004,6 @@ void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
// passed in registers. |
DCHECK(actual.is_immediate() || actual.reg().is(a0)); |
DCHECK(expected.is_immediate() || expected.reg().is(a2)); |
- DCHECK((!code_constant.is_null() && code_reg.is(no_reg)) || code_reg.is(a3)); |
if (expected.is_immediate()) { |
DCHECK(actual.is_immediate()); |
@@ -4034,11 +4031,6 @@ void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
} |
if (!definitely_matches) { |
- if (!code_constant.is_null()) { |
- li(a3, Operand(code_constant)); |
- addiu(a3, a3, Code::kHeaderSize - kHeapObjectTag); |
- } |
- |
Handle<Code> adaptor = |
isolate()->builtins()->ArgumentsAdaptorTrampoline(); |
if (flag == CALL_FUNCTION) { |
@@ -4067,8 +4059,7 @@ void MacroAssembler::InvokeCode(Register code, |
Label done; |
bool definitely_mismatches = false; |
- InvokePrologue(expected, actual, Handle<Code>::null(), code, |
- &done, &definitely_mismatches, flag, |
+ InvokePrologue(expected, actual, &done, &definitely_mismatches, flag, |
call_wrapper); |
if (!definitely_mismatches) { |
if (flag == CALL_FUNCTION) { |