/* static */ void AutoGCRooter::traceAllWrappers(const CooperatingContext& target, JSTracer* trc) { for (AutoGCRooter* gcr = target.context()->autoGCRooters_; gcr; gcr = gcr->down) { if (gcr->tag_ == WRAPVECTOR || gcr->tag_ == WRAPPER) gcr->trace(trc); } }
/* static */ void AutoGCRooter::traceAllWrappers(JSTracer* trc) { for (ContextIter cx(trc->runtime()); !cx.done(); cx.next()) { for (AutoGCRooter* gcr = cx->roots.autoGCRooters_; gcr; gcr = gcr->down) { if (gcr->tag_ == WRAPVECTOR || gcr->tag_ == WRAPPER) gcr->trace(trc); } } }
/* static */ void AutoGCRooter::traceAllWrappers(JSTracer* trc) { JSContext* cx = trc->runtime()->contextFromMainThread(); for (AutoGCRooter* gcr = cx->roots.autoGCRooters_; gcr; gcr = gcr->down) { if (gcr->tag_ == WRAPVECTOR || gcr->tag_ == WRAPPER) gcr->trace(trc); } }
/* static */ void AutoGCRooter::traceAll(const CooperatingContext& target, JSTracer* trc) { for (AutoGCRooter* gcr = target.context()->autoGCRooters_; gcr; gcr = gcr->down) gcr->trace(trc); }