Chromium Code Reviews| Index: src/ia32/lithium-codegen-ia32.cc |
| =================================================================== |
| --- src/ia32/lithium-codegen-ia32.cc (revision 15942) |
| +++ src/ia32/lithium-codegen-ia32.cc (working copy) |
| @@ -3831,7 +3831,7 @@ |
| __ xorps(scratch, scratch); |
| __ subsd(scratch, input_reg); |
| __ pand(input_reg, scratch); |
| - } else if (r.IsInteger32()) { |
| + } else if (r.IsInteger32() || r.IsSmi()) { |
|
Jakob Kummerow
2013/07/31 12:27:27
You can use r.IsSmiOrInteger32() here.
|
| EmitIntegerMathAbs(instr); |
| } else { // Tagged case. |
| DeferredMathAbsTaggedHeapNumber* deferred = |