mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Backed out changeset e7414bbec32d (bug 1369994) for rooting hazard failures
MozReview-Commit-ID: 4cdxaJ3Mbz7
This commit is contained in:
parent
acb19ed934
commit
98a82deb22
@ -578,6 +578,11 @@ class TypedArrayObjectTemplate : public TypedArrayObject
|
||||
RootedObject tmp(cx, NewBuiltinClassInstance(cx, clasp, allocKind, newKind));
|
||||
if (!tmp)
|
||||
return nullptr;
|
||||
if (script && !ObjectGroup::setAllocationSiteObjectGroup(cx, script, pc, tmp,
|
||||
newKind == SingletonObject))
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
TypedArrayObject* tarray = &tmp->as<TypedArrayObject>();
|
||||
initTypedArraySlots(cx, tarray, len);
|
||||
@ -587,12 +592,6 @@ class TypedArrayObjectTemplate : public TypedArrayObject
|
||||
// nullptr and avoid allocating memory that will never be used.
|
||||
tarray->initPrivate(nullptr);
|
||||
|
||||
if (script && !ObjectGroup::setAllocationSiteObjectGroup(cx, script, pc, tmp,
|
||||
newKind == SingletonObject))
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return tarray;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user