Bug 805052 part 2. Stop using the shape's parent to get the object's global. r=waldo

This commit is contained in:
Boris Zbarsky 2015-03-14 01:36:17 -04:00
parent 42b6dec9d4
commit f215223a81

View File

@ -1708,7 +1708,7 @@ NewObjectCache::invalidateEntriesForShape(JSContext *cx, HandleShape shape, Hand
if (CanBeFinalizedInBackground(kind, clasp))
kind = GetBackgroundAllocKind(kind);
Rooted<GlobalObject *> global(cx, &shape->getObjectParent()->global());
Rooted<GlobalObject *> global(cx, shape->compartment()->unsafeUnbarrieredMaybeGlobal());
RootedObjectGroup group(cx, ObjectGroup::defaultNewGroup(cx, clasp, TaggedProto(proto)));
EntryIndex entry;