diff --git a/js/src/vm/ForkJoin.cpp b/js/src/vm/ForkJoin.cpp index 5a55c9e89233..76acb5ff78b9 100644 --- a/js/src/vm/ForkJoin.cpp +++ b/js/src/vm/ForkJoin.cpp @@ -25,12 +25,15 @@ # include "vm/Monitor.h" #endif -#if defined(DEBUG) && defined(JS_THREADSAFE) && defined(JS_ION) -# include "jit/Ion.h" -# include "jit/JitCompartment.h" -# include "jit/MIR.h" -# include "jit/MIRGraph.h" -#endif // DEBUG && THREADSAFE && ION +#if defined(JS_THREADSAFE) && defined(JS_ION) +# include "jit/JitCommon.h" +# ifdef DEBUG +# include "jit/Ion.h" +# include "jit/JitCompartment.h" +# include "jit/MIR.h" +# include "jit/MIRGraph.h" +# endif +#endif // THREADSAFE && ION #include "vm/Interpreter-inl.h"