diff --git a/js/src/jit/IonTypes.h b/js/src/jit/IonTypes.h index 69678896e6a0..53f8c8265a22 100644 --- a/js/src/jit/IonTypes.h +++ b/js/src/jit/IonTypes.h @@ -207,7 +207,10 @@ IsNullOrUndefined(MIRType type) // Make sure registers are not modified between an instruction and // its OsiPoint. -# ifdef JS_ION +// +// Skip this check in rooting analysis builds, which poison unrooted +// pointers on the stack. +# if defined(JS_ION) && !defined(JSGC_ROOT_ANALYSIS) # define CHECK_OSIPOINT_REGISTERS 1 # endif #endif