Chromium Code Reviews| Index: pkg/compiler/lib/src/cps_ir/type_mask_system.dart |
| diff --git a/pkg/compiler/lib/src/cps_ir/type_mask_system.dart b/pkg/compiler/lib/src/cps_ir/type_mask_system.dart |
| index ba44ed1c26068069ff6a6f6fa747d90ff988e5c5..2199a52146b651ec8542966781958fab3275d305 100644 |
| --- a/pkg/compiler/lib/src/cps_ir/type_mask_system.dart |
| +++ b/pkg/compiler/lib/src/cps_ir/type_mask_system.dart |
| @@ -212,7 +212,7 @@ class TypeMaskSystem { |
| bool isDefinitelyInt(TypeMask t, {bool allowNull: false}) { |
| if (!allowNull && t.isNullable) return false; |
| - return t.satisfies(backend.jsIntClass, classWorld); |
| + return t.nonNullable().containsOnlyInt(classWorld); |
|
sra1
2015/10/14 01:16:02
This includes [subtype=int].
asgerf
2015/10/14 08:44:02
Could you do the same for the other number types?
|
| } |
| bool isDefinitelyUint31(TypeMask t, {bool allowNull: false}) { |