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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 12210142: Implement is-checks against type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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
Index: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index 1036a57eb779e6d256f3c1da586785959dd3f464..406fc054548c25fd6f7061cec7e5526f6da3efa9 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -352,6 +352,9 @@ abstract class Enqueuer {
void registerIsCheck(DartType type) {
universe.isChecks.add(type);
+ if (type.kind == TypeKind.TYPE_VARIABLE) {
+ compiler.hasVariableTypecheck = true;
+ }
compiler.backend.registerIsCheck(type, this);
}

Powered by Google App Engine
This is Rietveld 408576698