Bug 816701 - Fix branchTestObjShape to use input condition instead of hardcoding Assembler::NotEqual. r=mjrosenb

This commit is contained in:
Kannan Vijayan 2012-12-03 13:30:39 -05:00
parent b40f3d5c43
commit 0ca5d1ea2e

View File

@ -143,8 +143,7 @@ class MacroAssembler : public MacroAssemblerSpecific
branchPtr(cond, Address(scratch, BaseShape::offsetOfClass()), ImmWord(clasp), label);
}
void branchTestObjShape(Condition cond, Register obj, const Shape *shape, Label *label) {
branchPtr(Assembler::NotEqual, Address(obj, JSObject::offsetOfShape()),
ImmGCPtr(shape), label);
branchPtr(cond, Address(obj, JSObject::offsetOfShape()), ImmGCPtr(shape), label);
}
void loadObjPrivate(Register obj, uint32_t nfixed, Register dest) {