| Index: src/ia32/lithium-ia32.cc | 
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc | 
| index 0800823fdb3e2401d9cda7c6d34eb26fa7f1500a..b4ebe6dea4ad1ba74d059f50d8487e4bcc5a565f 100644 | 
| --- a/src/ia32/lithium-ia32.cc | 
| +++ b/src/ia32/lithium-ia32.cc | 
| @@ -1728,9 +1728,12 @@ LInstruction* LChunkBuilder::DoCompareNumericAndBranch( | 
| ASSERT(instr->right()->representation().IsDouble()); | 
| LOperand* left; | 
| LOperand* right; | 
| -    if (instr->left()->IsConstant() && instr->right()->IsConstant()) { | 
| -      left = UseRegisterOrConstantAtStart(instr->left()); | 
| -      right = UseRegisterOrConstantAtStart(instr->right()); | 
| +    if (CanBeImmediateConstant(instr->left()) && | 
| +        CanBeImmediateConstant(instr->right())) { | 
| +      // The code generator requires either both inputs to be constant | 
| +      // operands, or neither. | 
| +      left = UseConstant(instr->left()); | 
| +      right = UseConstant(instr->right()); | 
| } else { | 
| left = UseRegisterAtStart(instr->left()); | 
| right = UseRegisterAtStart(instr->right()); | 
|  |