Bug 1107349 - Always build in enerational GC support; r=jonco

This commit is contained in:
Terrence Cole
2014-12-04 09:45:05 -08:00
parent 7d77f04553
commit 3851b20cc1
85 changed files with 26 additions and 496 deletions

View File

@@ -353,12 +353,10 @@ TryPreserveReflector(JSContext *cx, HandleObject obj)
static inline void
WeakMapPostWriteBarrier(JSRuntime *rt, ObjectValueMap *weakMap, JSObject *key)
{
#ifdef JSGC_GENERATIONAL
// Strip the barriers from the type before inserting into the store buffer.
// This will automatically ensure that barriers do not fire during GC.
if (key && IsInsideNursery(key))
rt->gc.storeBuffer.putGeneric(UnbarrieredRef(weakMap, key));
#endif
}
static MOZ_ALWAYS_INLINE bool