void WeakMapBase::traceAllMappings(WeakMapTracer *tracer) { JSRuntime *rt = tracer->context->runtime; for (WeakMapBase *m = rt->gcWeakMapList; m; m = m->next) m->traceMappings(tracer); }
void WeakMapBase::traceAllMappings(WeakMapTracer *tracer) { JSRuntime *rt = tracer->runtime; for (CompartmentsIter c(rt, SkipAtoms); !c.done(); c.next()) { for (WeakMapBase *m = c->gcWeakMapList; m; m = m->next) m->traceMappings(tracer); } }
void WeakMapBase::traceAllMappings(WeakMapTracer* tracer) { JSRuntime* rt = tracer->runtime; for (CompartmentsIter c(rt, SkipAtoms); !c.done(); c.next()) { for (WeakMapBase* m = c->gcWeakMapList; m; m = m->next) { // The WeakMapTracer callback is not allowed to GC. JS::AutoSuppressGCAnalysis nogc; m->traceMappings(tracer); } } }