| Index: src/compiler/mips/instruction-selector-mips.cc
|
| diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc
|
| index b4ba49758b72b5e48a61a8508a0498679fb84877..5f426db862b95ad7c81a42f10d51ec2ac0f24bdc 100644
|
| --- a/src/compiler/mips/instruction-selector-mips.cc
|
| +++ b/src/compiler/mips/instruction-selector-mips.cc
|
| @@ -857,9 +857,11 @@ void InstructionSelector::EmitPrepareArguments(
|
| // Poke any stack arguments.
|
| int slot = kCArgSlotCount;
|
| for (PushParameter input : (*arguments)) {
|
| - Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()),
|
| - g.TempImmediate(slot << kPointerSizeLog2));
|
| - ++slot;
|
| + if (input.node()) {
|
| + Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()),
|
| + g.TempImmediate(slot << kPointerSizeLog2));
|
| + ++slot;
|
| + }
|
| }
|
| } else {
|
| // Possibly align stack here for functions.
|
|
|