Index: src/crankshaft/hydrogen-instructions.cc |
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc |
index 4df90877e31dc4bba42a2928858fbabc7afbe165..073ce023183ccb2ab9aab964ef07cf64927dee4d 100644 |
--- a/src/crankshaft/hydrogen-instructions.cc |
+++ b/src/crankshaft/hydrogen-instructions.cc |
@@ -1484,7 +1484,8 @@ HValue* HUnaryMathOperation::Canonicalize() { |
val, representation(), false, false)); |
} |
} |
- if (op() == kMathFloor && value()->IsDiv() && value()->HasOneUse()) { |
+ if (op() == kMathFloor && representation().IsSmiOrInteger32() && |
+ value()->IsDiv() && value()->HasOneUse()) { |
HDiv* hdiv = HDiv::cast(value()); |
HValue* left = hdiv->left(); |