Bug 1297558 - Use a read barrier on Heap to ExposeToActiveJS r=sfink r=mccr8
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user