Bug 860736: Use StackKeptAligned instead of forceAlign in CodeGeneratorShared ctor; r=mjrosenb

This commit is contained in:
Benjamin Bouvier 2014-06-05 17:22:27 +02:00
parent f5ac97f71f
commit 25b92f6cf7

View File

@ -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;