| Index: src/ia32/lithium-ia32.cc
|
| ===================================================================
|
| --- src/ia32/lithium-ia32.cc (revision 7027)
|
| +++ src/ia32/lithium-ia32.cc (working copy)
|
| @@ -870,18 +870,11 @@
|
| ASSERT(instr->representation().IsDouble());
|
| ASSERT(instr->left()->representation().IsDouble());
|
| ASSERT(instr->right()->representation().IsDouble());
|
| - if (op == Token::MOD) {
|
| - LOperand* left = UseFixedDouble(instr->left(), xmm2);
|
| - LOperand* right = UseFixedDouble(instr->right(), xmm1);
|
| - LArithmeticD* result = new LArithmeticD(op, left, right);
|
| - return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
|
| -
|
| - } else {
|
| - LOperand* left = UseRegisterAtStart(instr->left());
|
| - LOperand* right = UseRegisterAtStart(instr->right());
|
| - LArithmeticD* result = new LArithmeticD(op, left, right);
|
| - return DefineSameAsFirst(result);
|
| - }
|
| + ASSERT(op != Token::MOD);
|
| + LOperand* left = UseRegisterAtStart(instr->left());
|
| + LOperand* right = UseRegisterAtStart(instr->right());
|
| + LArithmeticD* result = new LArithmeticD(op, left, right);
|
| + return DefineSameAsFirst(result);
|
| }
|
|
|
|
|
| @@ -1391,8 +1384,8 @@
|
| // We call a C function for double modulo. It can't trigger a GC.
|
| // We need to use fixed result register for the call.
|
| // TODO(fschneider): Allow any register as input registers.
|
| - LOperand* left = UseFixedDouble(instr->left(), xmm1);
|
| - LOperand* right = UseFixedDouble(instr->right(), xmm2);
|
| + LOperand* left = UseFixedDouble(instr->left(), xmm2);
|
| + LOperand* right = UseFixedDouble(instr->right(), xmm1);
|
| LArithmeticD* result = new LArithmeticD(Token::MOD, left, right);
|
| return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
|
| }
|
|
|