Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: pkg/compiler/lib/src/cps_ir/builtin_operator.dart

Issue 1699033003: dart2js cps: Combine integer type check with bounds check. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 59812db1e15ad5d7e42b6cb16fb08666e0b541dd..79928219ca22286301be45a45d57c91f73fc6b5a 100644
--- a/pkg/compiler/lib/src/cps_ir/builtin_operator.dart
+++ b/pkg/compiler/lib/src/cps_ir/builtin_operator.dart
@@ -142,6 +142,20 @@ enum BuiltinOperator {
/// Compiles to `typeof x !== 'number' || Math.floor(x) !== x`
IsNotInteger,
+ /// Returns true if `x` is an unsigned 32-bit integer.
+ ///
+ /// The argument must be repeated 2 times.
+ ///
+ /// Compiles to `x >>> 0 === x`
+ IsUnsigned32BitInteger,
+
+ /// Returns false if `x` is an unsigned 32-bit integer.
+ ///
+ /// The argument must be repeated 2 times.
+ ///
+ /// Compiles to `x >>> 0 !== x`
+ IsNotUnsigned32BitInteger,
+
/// Returns true if the argument is a fixed length Array.
///
/// Uses one argument.
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698