| Index: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (revision 30754)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (working copy)
|
| @@ -912,6 +912,17 @@
|
| && instructionType.satisfies(backend.jsUInt31Class, compiler);
|
| }
|
|
|
| + bool isPositiveInteger(Compiler compiler) {
|
| + JavaScriptBackend backend = compiler.backend;
|
| + return !instructionType.isNullable
|
| + && instructionType.satisfies(backend.jsPositiveIntClass, compiler);
|
| + }
|
| +
|
| + bool isPositiveIntegerOrNull(Compiler compiler) {
|
| + JavaScriptBackend backend = compiler.backend;
|
| + return instructionType.satisfies(backend.jsPositiveIntClass, compiler);
|
| + }
|
| +
|
| bool isIntegerOrNull(Compiler compiler) {
|
| return instructionType.containsOnlyInt(compiler);
|
| }
|
|
|