Bug 1202138 - IonMonkey: MIPS32: Fix callAndPushReturnAddress with Label. r=nbp

This commit is contained in:
Heiher [:hev] 2015-09-07 06:29:00 +02:00
parent 88ffbb949d
commit 62843364da

View File

@ -3458,9 +3458,9 @@ MacroAssembler::callAndPushReturnAddress(Register callee)
void
MacroAssembler::callAndPushReturnAddress(Label* label)
{
// Push return address during jalr delay slot.
// Push return address during bal delay slot.
as_addiu(StackPointer, StackPointer, -sizeof(intptr_t));
as_jalr(label);
ma_bal(label, DontFillDelaySlot);
as_sw(ra, StackPointer, 0);
}