Bug 1182060 - IsObjectEscaped: Handle UnboxedPlainObject in guard shape. r=bhackett

This commit is contained in:
Nicolas B. Pierron 2015-07-15 20:40:03 +02:00
parent 8eacdaee29
commit 435ef0ddcd

View File

@ -220,7 +220,7 @@ IsObjectEscaped(MInstruction* ins, JSObject* objDefault)
case MDefinition::Op_GuardShape: {
MGuardShape* guard = def->toGuardShape();
MOZ_ASSERT(!ins->isGuardShape());
if (obj->as<NativeObject>().lastProperty() != guard->shape()) {
if (obj->maybeShape() != guard->shape()) {
JitSpewDef(JitSpew_Escape, "has a non-matching guard shape\n", guard);
return true;
}