mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1185790 - Remove move unneeded Unbarriering; r=jonco
This commit is contained in:
parent
7f16c8f03f
commit
56db9931bf
@ -1832,15 +1832,8 @@ js::IsDebugScopeSlow(ProxyObject* proxy)
|
||||
/* static */ MOZ_ALWAYS_INLINE void
|
||||
DebugScopes::liveScopesPostWriteBarrier(JSRuntime* rt, LiveScopeMap* map, ScopeObject* key)
|
||||
{
|
||||
// As above. Otherwise, barriers could fire during GC when moving the
|
||||
// value.
|
||||
typedef HashMap<ScopeObject*,
|
||||
MissingScopeKey,
|
||||
DefaultHasher<ScopeObject*>,
|
||||
RuntimeAllocPolicy> UnbarrieredLiveScopeMap;
|
||||
typedef gc::HashKeyRef<UnbarrieredLiveScopeMap, ScopeObject*> Ref;
|
||||
if (key && IsInsideNursery(key))
|
||||
rt->gc.storeBuffer.putGeneric(Ref(reinterpret_cast<UnbarrieredLiveScopeMap*>(map), key));
|
||||
rt->gc.storeBuffer.putGeneric(gc::HashKeyRef<LiveScopeMap, ScopeObject*>(map, key));
|
||||
}
|
||||
|
||||
DebugScopes::DebugScopes(JSContext* cx)
|
||||
|
Loading…
Reference in New Issue
Block a user