bug 660441 - removal of cx parameter from IsAboutToBeFinalized. r=anygregor
This commit is contained in:
@@ -401,20 +401,20 @@ js_TraceAtomState(JSTracer *trc)
|
||||
}
|
||||
|
||||
void
|
||||
js_SweepAtomState(JSContext *cx)
|
||||
js_SweepAtomState(JSRuntime *rt)
|
||||
{
|
||||
JSAtomState *state = &cx->runtime->atomState;
|
||||
JSAtomState *state = &rt->atomState;
|
||||
|
||||
for (AtomSet::Enum e(state->atoms); !e.empty(); e.popFront()) {
|
||||
AtomStateEntry entry = e.front();
|
||||
|
||||
if (entry.isTagged()) {
|
||||
/* Pinned or interned key cannot be finalized. */
|
||||
JS_ASSERT(!IsAboutToBeFinalized(cx, entry.asPtr()));
|
||||
JS_ASSERT(!IsAboutToBeFinalized(entry.asPtr()));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (IsAboutToBeFinalized(cx, entry.asPtr()))
|
||||
if (IsAboutToBeFinalized(entry.asPtr()))
|
||||
e.removeFront();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user