bug 660441 - removal of cx parameter from IsAboutToBeFinalized. r=anygregor

This commit is contained in:
Igor Bukanov
2012-02-08 01:51:32 +01:00
parent b98cfeb8d6
commit 642ae18cf6
22 changed files with 90 additions and 114 deletions

View File

@@ -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();
}
}