Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 2be2a032574b6bf9af1f8560e19fe95d1694bab7..ca9cae605d5960cdc56bf075d2e3757ac90c3a2d 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -481,7 +481,6 @@ void HValue::RegisterUse(int index, HValue* new_value) { |
void HValue::AddNewRange(Range* r) { |
if (!HasRange()) ComputeInitialRange(); |
- if (!HasRange()) range_ = new Range(); |
ASSERT(HasRange()); |
r->StackUpon(range_); |
range_ = r; |
@@ -880,9 +879,7 @@ Range* HValue::InferRange() { |
Range* HConstant::InferRange() { |
if (has_int32_value_) { |
- Range* result = new Range(int32_value_, int32_value_); |
- result->set_can_be_minus_zero(false); |
- return result; |
+ return new Range(int32_value_, int32_value_); |
} |
return HValue::InferRange(); |
} |
@@ -891,8 +888,7 @@ Range* HConstant::InferRange() { |
Range* HPhi::InferRange() { |
if (representation().IsInteger32()) { |
if (block()->IsLoopHeader()) { |
- Range* range = new Range(kMinInt, kMaxInt); |
- return range; |
+ return new Range(); |
} else { |
Range* range = OperandAt(0)->range()->Copy(); |
for (int i = 1; i < OperandCount(); ++i) { |