Bug 894852 - Fix LSetPropertyPolymorphicT and LGetPropertyPolymorphicV bailout kind. r=bhackett

This commit is contained in:
Jan de Mooij 2013-07-18 14:22:53 +02:00
parent cd579ddee4
commit 9971016052

View File

@ -2299,7 +2299,7 @@ LIRGenerator::visitGetPropertyPolymorphic(MGetPropertyPolymorphic *ins)
if (ins->type() == MIRType_Value) {
LGetPropertyPolymorphicV *lir = new LGetPropertyPolymorphicV(useRegister(ins->obj()));
return assignSnapshot(lir) && defineBox(lir, ins);
return assignSnapshot(lir, Bailout_CachedShapeGuard) && defineBox(lir, ins);
}
LDefinition maybeTemp = (ins->type() == MIRType_Double) ? temp() : LDefinition::BogusTemp();
@ -2322,7 +2322,7 @@ LIRGenerator::visitSetPropertyPolymorphic(MSetPropertyPolymorphic *ins)
LAllocation value = useRegisterOrConstant(ins->value());
LSetPropertyPolymorphicT *lir =
new LSetPropertyPolymorphicT(useRegister(ins->obj()), value, ins->value()->type(), temp());
return assignSnapshot(lir) && add(lir, ins);
return assignSnapshot(lir, Bailout_CachedShapeGuard) && add(lir, ins);
}
bool