diff --git a/js/src/jit/IonFrames.cpp b/js/src/jit/IonFrames.cpp index 5961492a6bcb..1be264897418 100644 --- a/js/src/jit/IonFrames.cpp +++ b/js/src/jit/IonFrames.cpp @@ -1238,14 +1238,6 @@ MarkJitActivations(JSRuntime *rt, JSTracer *trc) MarkJitActivation(trc, activations); } -JSCompartment * -TopmostJitActivationCompartment(JSRuntime *rt) -{ - for (JitActivationIterator activations(rt); !activations.done(); ++activations) - return activations.activation()->compartment(); - return nullptr; -} - #ifdef JSGC_GENERATIONAL void UpdateJitActivationsForMinorGC(JSRuntime *rt, JSTracer *trc) diff --git a/js/src/jit/IonFrames.h b/js/src/jit/IonFrames.h index 49e0d7c31904..e24a0db6fb35 100644 --- a/js/src/jit/IonFrames.h +++ b/js/src/jit/IonFrames.h @@ -268,9 +268,6 @@ void EnsureExitFrame(IonCommonFrameLayout *frame); void MarkJitActivations(JSRuntime *rt, JSTracer *trc); void MarkIonCompilerRoots(JSTracer *trc); -JSCompartment * -TopmostJitActivationCompartment(JSRuntime *rt); - #ifdef JSGC_GENERATIONAL void UpdateJitActivationsForMinorGC(JSRuntime *rt, JSTracer *trc); #endif diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp index b8f518bd9d48..3a34e1261002 100644 --- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -2852,13 +2852,6 @@ BeginMarkPhase(JSRuntime *rt) c->zone()->setPreservingCode(true); } - if (!rt->gc.shouldCleanUpEverything) { -#ifdef JS_ION - if (JSCompartment *comp = jit::TopmostJitActivationCompartment(rt)) - comp->zone()->setPreservingCode(true); -#endif - } - /* * Atoms are not in the cross-compartment map. So if there are any * zones that are not being collected, we are not allowed to collect