Bug 737365 - stop using the cx during finalization, part 1.

This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
This commit is contained in:
Igor Bukanov
2012-03-19 15:34:55 +01:00
parent 054cc031c2
commit c7e7021207
90 changed files with 435 additions and 328 deletions

View File

@@ -218,8 +218,9 @@ js_FinishAtomState(JSRuntime *rt)
return;
}
FreeOp fop(rt, false, false, NULL);
for (AtomSet::Range r = state->atoms.all(); !r.empty(); r.popFront())
r.front().asPtr()->finalize(rt);
r.front().asPtr()->finalize(&fop);
}
bool