| Index: pkg/compiler/lib/src/cps_ir/builtin_operator.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/builtin_operator.dart b/pkg/compiler/lib/src/cps_ir/builtin_operator.dart
|
| index 2db4ac5bf62d70ee7a348e735609df5152f1abfd..59812db1e15ad5d7e42b6cb16fb08666e0b541dd 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/builtin_operator.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/builtin_operator.dart
|
| @@ -18,7 +18,7 @@ library builtin_operator;
|
| /// In all cases, the word "null" refers to the Dart null object, corresponding
|
| /// to both JS null and JS undefined.
|
| ///
|
| -/// Some operators, notably [IsFloor] and [IsNumberAndFloor], take "repeated"
|
| +/// Some operators, notably [IsFloor] and [IsInteger], take "repeated"
|
| /// arguments to reflect the number of times the given value is referenced
|
| /// by the generated code. The tree IR needs to know the number of references
|
| /// to safely propagate assignments.
|
| @@ -133,7 +133,14 @@ enum BuiltinOperator {
|
| /// The argument must be repeated 3 times.
|
| ///
|
| /// Compiles to `typeof x === 'number' && Math.floor(x) === x`
|
| - IsNumberAndFloor,
|
| + IsInteger,
|
| +
|
| + /// Returns true if the argument is not an integer.
|
| + ///
|
| + /// The argument must be repeated 3 times.
|
| + ///
|
| + /// Compiles to `typeof x !== 'number' || Math.floor(x) !== x`
|
| + IsNotInteger,
|
|
|
| /// Returns true if the argument is a fixed length Array.
|
| ///
|
|
|