| Index: src/mips/macro-assembler-mips.cc
|
| diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc
|
| index 1e175f46495a5c0cb2d7a4a87115549d69089399..eb33c235a816ddb827094fdf5c4a04239961f33f 100644
|
| --- a/src/mips/macro-assembler-mips.cc
|
| +++ b/src/mips/macro-assembler-mips.cc
|
| @@ -4081,10 +4081,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
|
| @@ -4098,8 +4098,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()));
|
| }
|
|
|