Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 3f0ff1aa11da999f622eee4e83d2e6fa2a3e8180..c0b9773ad8e895d1f51f4c480e5fb5b341d5540d 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -1251,10 +1251,10 @@ void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
if (expected.is_immediate()) { |
DCHECK(actual.is_immediate()); |
+ mov(r0, Operand(actual.immediate())); |
if (expected.immediate() == actual.immediate()) { |
definitely_matches = true; |
} else { |
- mov(r0, Operand(actual.immediate())); |
const int sentinel = SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
if (expected.immediate() == sentinel) { |
// Don't worry about adapting arguments for builtins that |
@@ -1269,9 +1269,9 @@ void MacroAssembler::InvokePrologue(const ParameterCount& expected, |
} |
} else { |
if (actual.is_immediate()) { |
+ mov(r0, Operand(actual.immediate())); |
cmp(expected.reg(), Operand(actual.immediate())); |
b(eq, ®ular_invoke); |
- mov(r0, Operand(actual.immediate())); |
} else { |
cmp(expected.reg(), Operand(actual.reg())); |
b(eq, ®ular_invoke); |