Bug 1016738 - Simplify/fix "dead compartment" logic (r=luke,jonco)

This commit is contained in:
Bill McCloskey
2014-05-30 07:46:12 -07:00
parent 9cbf7f4355
commit db651df0f9
17 changed files with 109 additions and 150 deletions

View File

@@ -2512,9 +2512,6 @@ JSObject::TradeGuts(JSContext *cx, JSObject *a, JSObject *b, TradeGutsReserved &
bool
JSObject::swap(JSContext *cx, HandleObject a, HandleObject b)
{
AutoMarkInDeadZone adc1(a->zone());
AutoMarkInDeadZone adc2(b->zone());
// Ensure swap doesn't cause a finalizer to not be run.
JS_ASSERT(IsBackgroundFinalized(a->tenuredGetAllocKind()) ==
IsBackgroundFinalized(b->tenuredGetAllocKind()));