Bug 1071444: Return stack offset before incrementing it for win64 args; r=luke

--HG--
extra : rebase_source : 047d297026d9d71d7481f51776093df2f5048969
This commit is contained in:
Benjamin Bouvier 2014-09-24 16:01:42 +02:00
parent 34ab810003
commit 56553a2a7f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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