static bool IsMarked(T **thingp) { JS_ASSERT(thingp); JS_ASSERT(*thingp); JSCompartment *c = (*thingp)->compartment(); if (!c->isCollecting() || c->isGCFinished()) return true; return (*thingp)->isMarked(); }