MIPS: Fix TF EmitPrepareArguments after 85c7357298
.
Avoid pushing null arguments. BUG= TEST=cctest/test-run-machops/RunCallCFunction8 Review URL: https://codereview.chromium.org/1758813002 Cr-Commit-Position: refs/heads/master@{#34439}
This commit is contained in:
parent
d98570a1eb
commit
c854853bee
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user