Bug 1247832 - Adjust framePushed value in unboxed array baseline IC failure path, r=jandem.

This commit is contained in:
Brian Hackett 2016-03-04 16:09:44 -07:00
Родитель 4dcfda62de
Коммит 91809911f5
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -3103,6 +3103,8 @@ ICSetElemDenseOrUnboxedArrayAddCompiler::generateStubCode(MacroAssembler& masm)
// But R0 and R1 still hold their values.
EmitStowICValues(masm, 2);
uint32_t framePushedAfterStow = masm.framePushed();
// We may need to free up some registers.
regs = availableGeneralRegs(0);
regs.take(R0);
@ -3264,6 +3266,7 @@ ICSetElemDenseOrUnboxedArrayAddCompiler::generateStubCode(MacroAssembler& masm)
// Failure case - fail but first unstow R0 and R1
masm.bind(&failureUnstow);
masm.setFramePushed(framePushedAfterStow);
EmitUnstowICValues(masm, 2);
// Failure case - jump to next stub