Fix mod on ia32 without SSE2.
Review URL: https://chromiumcodereview.appspot.com/10128004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11383 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
57739100f3
commit
f5caf3a77b
@ -1734,6 +1734,9 @@ void BinaryOpStub::GenerateInt32Stub(MacroAssembler* masm) {
|
|||||||
FloatingPointHelper::ARGS_IN_REGISTERS);
|
FloatingPointHelper::ARGS_IN_REGISTERS);
|
||||||
FloatingPointHelper::CheckFloatOperandsAreInt32(masm, ¬_int32);
|
FloatingPointHelper::CheckFloatOperandsAreInt32(masm, ¬_int32);
|
||||||
if (op_ == Token::MOD) {
|
if (op_ == Token::MOD) {
|
||||||
|
// The operands are now on the FPU stack, but we don't need them.
|
||||||
|
__ fstp(0);
|
||||||
|
__ fstp(0);
|
||||||
GenerateRegisterArgsPush(masm);
|
GenerateRegisterArgsPush(masm);
|
||||||
__ InvokeBuiltin(Builtins::MOD, JUMP_FUNCTION);
|
__ InvokeBuiltin(Builtins::MOD, JUMP_FUNCTION);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user