| Index: dart/sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart
|
| index e067089bddd42b2f8f5579d733069b16fd334606..42560e0f6dc6840c5e7307ae084fc1cadd550a04 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart
|
| @@ -148,6 +148,8 @@ class IntValue extends Value {
|
| return this.value == other.value;
|
| }
|
|
|
| + int get hashCode => throw new UnsupportedError('IntValue.hashCode');
|
| +
|
| String toString() => 'IntValue $value';
|
| bool get isNegative => value < 0;
|
| bool get isPositive => value >= 0;
|
| @@ -214,6 +216,8 @@ class InstructionValue extends Value {
|
| return this.instruction == other.instruction;
|
| }
|
|
|
| + int get hashCode => throw new UnsupportedError('InstructionValue.hashCode');
|
| +
|
| Value operator +(Value other) {
|
| if (other.isZero) return this;
|
| if (other is IntValue) {
|
| @@ -283,6 +287,8 @@ class AddValue extends BinaryOperationValue {
|
| || (left == other.right && right == other.left);
|
| }
|
|
|
| + int get hashCode => throw new UnsupportedError('AddValue.hashCode');
|
| +
|
| Value operator -() => -left - right;
|
|
|
| Value operator +(Value other) {
|
| @@ -328,6 +334,8 @@ class SubtractValue extends BinaryOperationValue {
|
| return left == other.left && right == other.right;
|
| }
|
|
|
| + int get hashCode => throw new UnsupportedError('SubtractValue.hashCode');
|
| +
|
| Value operator -() => right - left;
|
|
|
| Value operator +(Value other) {
|
| @@ -374,6 +382,8 @@ class NegateValue extends Value {
|
| return value == other.value;
|
| }
|
|
|
| + int get hashCode => throw new UnsupportedError('Negate.hashCode');
|
| +
|
| Value operator +(other) {
|
| if (other.isZero) return this;
|
| if (other == value) return info.intZero;
|
| @@ -506,6 +516,8 @@ class Range {
|
| return other.lower == lower && other.upper == upper;
|
| }
|
|
|
| + int get hashCode => throw new UnsupportedError('Range.hashCode');
|
| +
|
| bool operator <(Range other) {
|
| return upper != other.lower && upper.min(other.lower) == upper;
|
| }
|
|
|