1320408 - Part 4: Change JSObject::getGroup to static method.

This commit is contained in:
Gaming4JC 2019-06-08 19:20:00 -04:00 • committed by Roy Tam
commit 87bfc02f09
14 changed files with 56 additions and 45 deletions

View file

@ -1489,9 +1489,9 @@ JSObject::swap(JSContext* cx, HandleObject a, HandleObject b)
AutoCompartment ac(cx, a);
if (!a->getGroup(cx))
if (!JSObject::getGroup(cx, a))
oomUnsafe.crash("JSObject::swap");
if (!b->getGroup(cx))
if (!JSObject::getGroup(cx, b))
oomUnsafe.crash("JSObject::swap");
/*
@ -3852,7 +3852,8 @@ displayAtomFromObjectGroup(ObjectGroup& group)
bool
JSObject::constructorDisplayAtom(JSContext* cx, js::MutableHandleAtom name)
{
ObjectGroup *g = getGroup(cx);
RootedObject self(cx, this); // Temporary change.
ObjectGroup *g = JSObject::getGroup(cx, self);
if (!g)
return false;