static void resc_trace(JSTracer *trc, RawObject obj) { void *pdata = obj->getPrivate(); JS_ASSERT(pdata); RegExpStatics *res = static_cast<RegExpStatics *>(pdata); res->mark(trc); }
/* NB: An error object's private must be set through this function. */ static void SetExnPrivate(RawObject exnObject, JSExnPrivate *priv) { JS_ASSERT(!exnObject->getPrivate()); JS_ASSERT(exnObject->isError()); if (JSErrorReport *report = priv->errorReport) { if (JSPrincipals *prin = report->originPrincipals) JS_HoldPrincipals(prin); } exnObject->setPrivate(priv); }
static void resc_finalize(FreeOp *fop, RawObject obj) { RegExpStatics *res = static_cast<RegExpStatics *>(obj->getPrivate()); fop->delete_(res); }
static void GlobalDebuggees_finalize(FreeOp *fop, RawObject obj) { fop->delete_((GlobalObject::DebuggerVector *) obj->getPrivate()); }