mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 597288 - alignment on call stack isn't 16byte on x86_64 CPU. r=dvander
This commit is contained in:
parent
402dc1f5d2
commit
c93588f2e2
@ -2041,8 +2041,8 @@ mjit::Compiler::inlineCallHelper(uint32 argc, bool callingNew)
|
||||
FrameAddress(offsetof(VMFrame, regs) + offsetof(JSFrameRegs, pc)));
|
||||
stubcc.masm.fixScriptStack(frame.frameDepth());
|
||||
stubcc.masm.setupVMFrame();
|
||||
#if defined(JS_CPU_X86) || defined(JS_CPU_X64)
|
||||
/* Need to stay 16-byte aligned on x86/x64. */
|
||||
#if defined(JS_CPU_X86)
|
||||
/* Need to stay 16-byte aligned on x86. */
|
||||
stubcc.masm.subPtr(Imm32(8), JSC::MacroAssembler::stackPointerRegister);
|
||||
#endif
|
||||
stubcc.masm.push(dataReg);
|
||||
@ -2051,7 +2051,7 @@ mjit::Compiler::inlineCallHelper(uint32 argc, bool callingNew)
|
||||
stubcc.masm.wrapCall(pfun);
|
||||
stubcc.masm.pop(t0);
|
||||
stubcc.masm.pop(dataReg);
|
||||
#if defined(JS_CPU_X86) || defined(JS_CPU_X64)
|
||||
#if defined(JS_CPU_X86)
|
||||
stubcc.masm.addPtr(Imm32(8), JSC::MacroAssembler::stackPointerRegister);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user