mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1071444: Return stack offset before incrementing it for win64 args; r=luke
--HG-- extra : rebase_source : 047d297026d9d71d7481f51776093df2f5048969
This commit is contained in:
parent
34ab810003
commit
56553a2a7f
@ -7020,7 +7020,7 @@ GenerateEntry(ModuleCompiler &m, unsigned exportIndex)
|
||||
// Put the 'argv' argument into a non-argument/return register so that we
|
||||
// can use 'argv' while we fill in the arguments for the asm.js callee.
|
||||
// Also, save 'argv' on the stack so that we can recover it after the call.
|
||||
// Use a second non-argument/return register as temporary scratch.
|
||||
// Use a second non-argument/return register as temporary scratch.
|
||||
Register argv = ABIArgGenerator::NonArgReturnReg0;
|
||||
Register scratch = ABIArgGenerator::NonArgReturnReg1;
|
||||
#if defined(JS_CODEGEN_X86)
|
||||
|
@ -38,8 +38,8 @@ ABIArgGenerator::next(MIRType type)
|
||||
current_ = ABIArg(stackOffset_);
|
||||
stackOffset_ += Simd128DataSize;
|
||||
} else {
|
||||
stackOffset_ += sizeof(uint64_t);
|
||||
current_ = ABIArg(stackOffset_);
|
||||
stackOffset_ += sizeof(uint64_t);
|
||||
}
|
||||
return current_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user