Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 0568cd6bea8b5c82b8a5ec724118b7c9c3b4c8ee..0aa67852787c212df27800cd2b580984eb33db76 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -4084,10 +4084,10 @@ void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
if (expected.is_immediate()) { |
DCHECK(actual.is_immediate()); |
+ li(a0, Operand(actual.immediate())); |
if (expected.immediate() == actual.immediate()) { |
definitely_matches = true; |
} else { |
- li(a0, Operand(actual.immediate())); |
const int sentinel = SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
if (expected.immediate() == sentinel) { |
// Don't worry about adapting arguments for builtins that |
@@ -4101,8 +4101,8 @@ void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
} |
} |
} else if (actual.is_immediate()) { |
- Branch(®ular_invoke, eq, expected.reg(), Operand(actual.immediate())); |
li(a0, Operand(actual.immediate())); |
+ Branch(®ular_invoke, eq, expected.reg(), Operand(a0)); |
} else { |
Branch(®ular_invoke, eq, expected.reg(), Operand(actual.reg())); |
} |