Bug 1014083: Revert taking initial adjustment offset into account when computing stack slot offsets; r=luke

This commit is contained in:
Benjamin Bouvier 2014-06-10 14:25:42 +02:00
Родитель d1365e73a4
Коммит 500c4928c9
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -70,10 +70,8 @@ CodeGeneratorShared::CodeGeneratorShared(MIRGenerator *gen, LIRGraph *graph, Mac
// (like x64) which require the stack to be aligned.
if (StackKeptAligned || gen->needsInitialStackAlignment()) {
unsigned alignmentAtCall = AlignmentAtAsmJSPrologue + frameDepth_;
if (unsigned rem = alignmentAtCall % StackAlignment) {
frameInitialAdjustment_ = StackAlignment - rem;
frameDepth_ += frameInitialAdjustment_;
}
if (unsigned rem = alignmentAtCall % StackAlignment)
frameDepth_ += StackAlignment - rem;
}
// FrameSizeClass is only used for bailing, which cannot happen in