Fix a couple of cases from yesterday's gc patch that I forgot on ARM (no bug, r=dvander)

This commit is contained in:
Marty Rosenberg 2012-05-10 15:21:03 -07:00
parent 1d0465946b
commit 71f1c724c6

View File

@ -282,8 +282,13 @@ generateBailoutTail(MacroAssembler &masm)
// Test for an exception
masm.as_cmp(r0, Imm8(0));
masm.ma_b(&exception, Assembler::Zero);
masm.freeStack(sizeof(IonCode*));
masm.ma_pop(pc);
masm.bind(&exception);
#ifdef DEBUG
masm.ma_add(Imm32(sizeof(IonCode*)), sp);
#endif
masm.handleException();
}
@ -574,7 +579,7 @@ IonCompartment::generateVMWrapper(JSContext *cx, const VMFunction &f)
if (f.explicitArgs) {
argsBase = r5;
regs.take(argsBase);
masm.ma_add(sp, Imm32(IonExitFrameLayout::SizeWithFooter()), argsBase);
masm.ma_add(sp, Imm32(IonExitFrameLayout::SizeWithFooter() + argumentPadding), argsBase);
}
// Reserve space for the outparameter.