| Index: sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart (revision 30754)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart (working copy)
|
| @@ -634,7 +634,7 @@
|
| }
|
|
|
| Range visitInstruction(HInstruction instruction) {
|
| - if (instruction.isUInt32(compiler)) {
|
| + if (instruction.isPositiveInteger(compiler)) {
|
| return info.newNormalizedRange(
|
| info.intZero, info.newPositiveValue(instruction));
|
| } else if (instruction.isInteger(compiler)) {
|
| @@ -824,7 +824,7 @@
|
|
|
| Range visitCheck(HCheck instruction) {
|
| if (ranges[instruction.checkedInput] == null) {
|
| - return info.newUnboundRange();
|
| + return visitInstruction(instruction);
|
| }
|
| return ranges[instruction.checkedInput];
|
| }
|
|
|