No bug - Fix macro warning in jsgc.cpp (rs=Waldo)

This commit is contained in:
Bill McCloskey 2012-11-27 12:00:26 -08:00
parent de8060e941
commit b72ec6d7d5

View File

@ -3889,22 +3889,22 @@ RemoveFromGrayList(RawObject wrapper)
wrapper->setReservedSlot(slot, UndefinedValue());
JSCompartment *c = CrossCompartmentPointerReferent(wrapper)->compartment();
RawObject o = c->gcIncomingGrayPointers;
if (o == wrapper) {
RawObject obj = c->gcIncomingGrayPointers;
if (obj == wrapper) {
c->gcIncomingGrayPointers = tail;
return true;
}
while (o) {
while (obj) {
unsigned slot = GrayLinkSlot(o);
RawObject next = o->getReservedSlot(slot).toObjectOrNull();
if (next == wrapper) {
o->setCrossCompartmentSlot(slot, ObjectOrNullValue(tail));
obj->setCrossCompartmentSlot(slot, ObjectOrNullValue(tail));
return true;
}
o = next;
obj = next;
}
JS_NOT_REACHED();
JS_NOT_REACHED("object not found in gray link list");
}
void