mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 860736: Use StackKeptAligned instead of forceAlign in CodeGeneratorShared ctor; r=mjrosenb
This commit is contained in:
parent
f5ac97f71f
commit
25b92f6cf7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user