Bug 1297558 - Use a read barrier on Heap to ExposeToActiveJS r=sfink r=mccr8

This commit is contained in:
Terrence Cole
2016-02-07 09:08:55 -08:00
parent 3d2cbae2d3
commit ed32b698b3
23 changed files with 228 additions and 70 deletions

View File

@@ -83,6 +83,17 @@ IdToObjectMap::empty() const
return table_.empty();
}
#ifdef DEBUG
bool
IdToObjectMap::has(const ObjectId& id, const JSObject* obj) const
{
auto p = table_.lookup(id);
if (!p)
return false;
return p->value().unbarrieredGet() == obj;
}
#endif
bool
ObjectToIdMap::init()
{