Link the shape guard in bindname to the exit sequence (bug 614907, r=dvander).

This commit is contained in:
Jacob Bramley 2010-12-01 17:38:23 -08:00
parent 473a8118a1
commit 96c95689e6

View File

@ -1551,6 +1551,8 @@ class BindNameCompiler : public PICStubCompiler
masm.loadShape(pic.objReg, pic.shapeReg); masm.loadShape(pic.objReg, pic.shapeReg);
Jump shapeTest = masm.branch32(Assembler::NotEqual, pic.shapeReg, Jump shapeTest = masm.branch32(Assembler::NotEqual, pic.shapeReg,
Imm32(tobj->shape())); Imm32(tobj->shape()));
if (!fails.append(shapeTest))
return error();
tobj = tobj->getParent(); tobj = tobj->getParent();
} }
if (tobj != obj) if (tobj != obj)