Bug 918031 - IonMonkey: Use useRegisterAtStart for LUnbox and LUnboxDouble on x64. r=sstangl

This commit is contained in:
Dan Gohman 2013-09-19 12:39:58 -07:00
parent bc91d5cb63
commit afb186d74b

View File

@ -77,9 +77,9 @@ LIRGeneratorX64::visitUnbox(MUnbox *unbox)
MDefinition *box = unbox->getOperand(0);
LUnboxBase *lir;
if (IsFloatingPointType(unbox->type()))
lir = new LUnboxFloatingPoint(useRegister(box), unbox->type());
lir = new LUnboxFloatingPoint(useRegisterAtStart(box), unbox->type());
else
lir = new LUnbox(useRegister(box));
lir = new LUnbox(useRegisterAtStart(box));
if (unbox->fallible() && !assignSnapshot(lir, unbox->bailoutKind()))
return false;