mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-16 01:13:08 +09:00
Improve dead compartment collection js/ipc
This commit is contained in:
parent
68a36fe36f
commit
acf2827e3c
3 changed files with 14 additions and 4 deletions
|
|
@ -61,6 +61,15 @@ IdToObjectMap::find(ObjectId id)
|
|||
return p->value();
|
||||
}
|
||||
|
||||
JSObject*
|
||||
IdToObjectMap::findPreserveColor(ObjectId id)
|
||||
{
|
||||
Table::Ptr p = table_.lookup(id);
|
||||
if (!p)
|
||||
return nullptr;
|
||||
return p->value().unbarrieredGet();
|
||||
}
|
||||
|
||||
bool
|
||||
IdToObjectMap::add(ObjectId id, JSObject* obj)
|
||||
{
|
||||
|
|
@ -757,4 +766,4 @@ CPOWManager*
|
|||
mozilla::jsipc::CPOWManagerFor(PJavaScriptChild* aChild)
|
||||
{
|
||||
return static_cast<JavaScriptChild*>(aChild);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue