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

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

Issue 1385423002: dart2js cps_ir: Use interceptors for is-checks (version 2) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: fix analyzer warnings Created 5 years, 2 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 28397eb68bc52a7f7558c4a456f6ffb850a98cc7..3b80af447150a6af7c2d8044e53d417cabdf064b 100644
--- a/pkg/compiler/lib/src/cps_ir/builtin_operator.dart
+++ b/pkg/compiler/lib/src/cps_ir/builtin_operator.dart
@@ -103,6 +103,26 @@ enum BuiltinOperator {
///
/// Compiles to `typeof x === 'number' && Math.floor(x) === x`
IsNumberAndFloor,
+
+ /// Returns true if the argument is a fixed length Array.
+ ///
+ /// Uses one argument.
+ ///
+ /// Precondition: Argument is a JavaScript Array.
+ IsFixedLengthJSArray,
+
+ // TODO(sra): Remove this and replace with IsFalsy(IsFixedLengthJSArray(x)).
+ IsExtendableJSArray,
+
+ /// Returns true if the argument is an unmodifiable Array.
+ ///
+ /// Uses one argument.
+ ///
+ /// Precondition: Argument is a JavaScript Array.
+ IsUnmodifiableJSArray,
+
+ // TODO(sra): Remove this and replace with IsFalsy(IsUnmodifiableArray(x)).
+ IsModifiableJSArray,
}
/// A method supported natively in the CPS and Tree IRs using the
« 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