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
Родитель a7872dcad4
Коммит 591a3c3d5a
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

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