bool WeakMapBase::markCompartmentIteratively(JSCompartment *c, JSTracer *tracer) { bool markedAny = false; for (WeakMapBase *m = c->gcWeakMapList; m; m = m->next) { if (m->markIteratively(tracer)) markedAny = true; } return markedAny; }
bool WeakMapBase::markAllIteratively(JSTracer *tracer) { bool markedAny = false; JSRuntime *rt = tracer->context->runtime; for (WeakMapBase *m = rt->gcWeakMapList; m; m = m->next) { if (m->markIteratively(tracer)) markedAny = true; } return markedAny; }