Remove anyNewScript()
parent
99e451fe76
commit
b77e431bb6
|
@ -174,7 +174,6 @@ class ObjectGroup : public gc::TenuredCell
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
TypeNewScript* anyNewScript();
|
|
||||||
void detachNewScript(bool writeBarrier, ObjectGroup* replacement);
|
void detachNewScript(bool writeBarrier, ObjectGroup* replacement);
|
||||||
|
|
||||||
ObjectGroupFlags flagsDontCheckGeneration() const {
|
ObjectGroupFlags flagsDontCheckGeneration() const {
|
||||||
|
|
|
@ -2877,14 +2877,6 @@ ObjectGroup::markUnknown(ExclusiveContext* cx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TypeNewScript*
|
|
||||||
ObjectGroup::anyNewScript()
|
|
||||||
{
|
|
||||||
if (newScript())
|
|
||||||
return newScript();
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ObjectGroup::detachNewScript(bool writeBarrier, ObjectGroup* replacement)
|
ObjectGroup::detachNewScript(bool writeBarrier, ObjectGroup* replacement)
|
||||||
{
|
{
|
||||||
|
@ -2892,7 +2884,7 @@ ObjectGroup::detachNewScript(bool writeBarrier, ObjectGroup* replacement)
|
||||||
// analyzed, remove it from the newObjectGroups table so that it will not be
|
// analyzed, remove it from the newObjectGroups table so that it will not be
|
||||||
// produced by calling 'new' on the associated function anymore.
|
// produced by calling 'new' on the associated function anymore.
|
||||||
// The TypeNewScript is not actually destroyed.
|
// The TypeNewScript is not actually destroyed.
|
||||||
TypeNewScript* newScript = anyNewScript();
|
TypeNewScript* newScript = this->newScript();
|
||||||
MOZ_ASSERT(newScript);
|
MOZ_ASSERT(newScript);
|
||||||
|
|
||||||
if (newScript->analyzed()) {
|
if (newScript->analyzed()) {
|
||||||
|
@ -2922,7 +2914,7 @@ ObjectGroup::maybeClearNewScriptOnOOM()
|
||||||
if (!isMarked())
|
if (!isMarked())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
TypeNewScript* newScript = anyNewScript();
|
TypeNewScript* newScript = this->newScript();
|
||||||
if (!newScript)
|
if (!newScript)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -2937,7 +2929,7 @@ ObjectGroup::maybeClearNewScriptOnOOM()
|
||||||
void
|
void
|
||||||
ObjectGroup::clearNewScript(ExclusiveContext* cx, ObjectGroup* replacement /* = nullptr*/)
|
ObjectGroup::clearNewScript(ExclusiveContext* cx, ObjectGroup* replacement /* = nullptr*/)
|
||||||
{
|
{
|
||||||
TypeNewScript* newScript = anyNewScript();
|
TypeNewScript* newScript = this->newScript();
|
||||||
if (!newScript)
|
if (!newScript)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue