| Index: lib/compiler/implementation/ssa/nodes.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/nodes.dart (revision 10957)
|
| +++ lib/compiler/implementation/ssa/nodes.dart (working copy)
|
| @@ -1119,6 +1119,14 @@
|
|
|
| HType get guaranteedType() => HType.INTEGER;
|
|
|
| + HType computeDesiredTypeForInput(HInstruction input, HTypeMap types) {
|
| + // If the desired type of the input is already a number, we want
|
| + // to specialize it to an integer.
|
| + return input.isNumber(types)
|
| + ? HType.INTEGER
|
| + : super.computeDesiredTypeForInput(input, types);
|
| + }
|
| +
|
| accept(HVisitor visitor) => visitor.visitIntegerCheck(this);
|
| int typeCode() => 3;
|
| bool typeEquals(other) => other is HIntegerCheck;
|
|
|