Index: src/hydrogen-instructions.cc |
=================================================================== |
--- src/hydrogen-instructions.cc (revision 11883) |
+++ src/hydrogen-instructions.cc (working copy) |
@@ -941,7 +941,8 @@ |
// introduced. |
if (value()->representation().IsInteger32()) return value(); |
-#ifdef V8_TARGET_ARCH_ARM |
+#if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_IA32) || \ |
+ defined(V8_TARGET_ARCH_X64) |
if (value()->IsDiv() && (value()->UseCount() == 1)) { |
// TODO(2038): Implement this optimization for non ARM architectures. |
HDiv* hdiv = HDiv::cast(value()); |
@@ -2223,6 +2224,13 @@ |
} |
+HValue* HMathFloorOfDiv::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
+ visited->Add(id()); |
+ SetFlag(kBailoutOnMinusZero); |
+ return NULL; |
+} |
+ |
+ |
HValue* HMul::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
visited->Add(id()); |
if (range() == NULL || range()->CanBeMinusZero()) { |