Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 7b4f758998a764d21a72dc0bc7d183582cfef7ed..fb19209a2594572bacd46a81e62e79e4db39e669 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -3703,99 +3703,6 @@ void HAllocate::PrintDataTo(StringStream* stream) { |
} |
-HValue* HUnaryMathOperation::EnsureAndPropagateNotMinusZero( |
- BitVector* visited) { |
- visited->Add(id()); |
- if (representation().IsSmiOrInteger32() && |
- !value()->representation().Equals(representation())) { |
- if (value()->range() == NULL || value()->range()->CanBeMinusZero()) { |
- SetFlag(kBailoutOnMinusZero); |
- } |
- } |
- if (RequiredInputRepresentation(0).IsSmiOrInteger32() && |
- representation().Equals(RequiredInputRepresentation(0))) { |
- return value(); |
- } |
- return NULL; |
-} |
- |
- |
-HValue* HChange::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
- visited->Add(id()); |
- if (from().IsSmiOrInteger32()) return NULL; |
- if (CanTruncateToInt32()) return NULL; |
- if (value()->range() == NULL || value()->range()->CanBeMinusZero()) { |
- SetFlag(kBailoutOnMinusZero); |
- } |
- ASSERT(!from().IsSmiOrInteger32() || !to().IsSmiOrInteger32()); |
- return NULL; |
-} |
- |
- |
-HValue* HForceRepresentation::EnsureAndPropagateNotMinusZero( |
- BitVector* visited) { |
- visited->Add(id()); |
- return value(); |
-} |
- |
- |
-HValue* HMod::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
- visited->Add(id()); |
- if (range() == NULL || range()->CanBeMinusZero()) { |
- SetFlag(kBailoutOnMinusZero); |
- return left(); |
- } |
- return NULL; |
-} |
- |
- |
-HValue* HDiv::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
- visited->Add(id()); |
- if (range() == NULL || range()->CanBeMinusZero()) { |
- SetFlag(kBailoutOnMinusZero); |
- } |
- return NULL; |
-} |
- |
- |
-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()) { |
- SetFlag(kBailoutOnMinusZero); |
- } |
- return NULL; |
-} |
- |
- |
-HValue* HSub::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
- visited->Add(id()); |
- // Propagate to the left argument. If the left argument cannot be -0, then |
- // the result of the add operation cannot be either. |
- if (range() == NULL || range()->CanBeMinusZero()) { |
- return left(); |
- } |
- return NULL; |
-} |
- |
- |
-HValue* HAdd::EnsureAndPropagateNotMinusZero(BitVector* visited) { |
- visited->Add(id()); |
- // Propagate to the left argument. If the left argument cannot be -0, then |
- // the result of the sub operation cannot be either. |
- if (range() == NULL || range()->CanBeMinusZero()) { |
- return left(); |
- } |
- return NULL; |
-} |
- |
- |
bool HStoreKeyed::NeedsCanonicalization() { |
// If value is an integer or smi or comes from the result of a keyed load or |
// constant then it is either be a non-hole value or in the case of a constant |