void JSCompartment::clearTraps(FreeOp *fop) { for (gc::CellIter i(zone(), gc::FINALIZE_SCRIPT); !i.done(); i.next()) { JSScript *script = i.get<JSScript>(); if (script->compartment() == this && script->hasAnyBreakpointsOrStepMode()) script->clearTraps(fop); } }
void JSCompartment::clearTraps(JSContext *cx) { for (gc::CellIter i(cx, this, gc::FINALIZE_SCRIPT); !i.done(); i.next()) { JSScript *script = i.get<JSScript>(); if (script->hasAnyBreakpointsOrStepMode()) script->clearTraps(cx); } }
void JSCompartment::clearTraps(FreeOp *fop) { MinorGC(fop->runtime(), JS::gcreason::EVICT_NURSERY); for (gc::CellIter i(zone(), gc::FINALIZE_SCRIPT); !i.done(); i.next()) { JSScript *script = i.get<JSScript>(); if (script->compartment() == this && script->hasAnyBreakpointsOrStepMode()) script->clearTraps(fop); } }