diff --git a/js/src/jit/shared/CodeGenerator-shared.cpp b/js/src/jit/shared/CodeGenerator-shared.cpp index 43e4297a009..8bf268bdeb9 100644 --- a/js/src/jit/shared/CodeGenerator-shared.cpp +++ b/js/src/jit/shared/CodeGenerator-shared.cpp @@ -68,12 +68,7 @@ CodeGeneratorShared::CodeGeneratorShared(MIRGenerator *gen, LIRGraph *graph, Mac // An MAsmJSCall does not align the stack pointer at calls sites but instead // relies on the a priori stack adjustment (in the prologue) on platforms // (like x64) which require the stack to be aligned. -#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS) - bool forceAlign = true; -#else - bool forceAlign = false; -#endif - if (gen->needsInitialStackAlignment() || forceAlign) { + if (StackKeptAligned || gen->needsInitialStackAlignment()) { unsigned alignmentAtCall = AlignmentAtAsmJSPrologue + frameDepth_; if (unsigned rem = alignmentAtCall % StackAlignment) { frameInitialAdjustment_ = StackAlignment - rem;