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

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

Issue 10911006: Collect the types used in is-checks in the resolver phase. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix last upload. Created 8 years, 3 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: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index 07b54f43927536b239f6cbbff7dd9ce1c87db213..a4e0143042fa9bbc6d5db576fdc34747fa80e820 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -174,7 +174,7 @@ class Enqueuer {
universe.instantiatedClassInstanceFields.add(member.name);
if (compiler.enableTypeAssertions) {
DartType type = member.computeType(compiler);
- registerIsCheck(type.element);
+ registerIsCheck(type);
SourceString helper = compiler.backend.getCheckedModeHelper(type);
if (helper != null) {
Element helperElement = compiler.findHelper(helper);
@@ -348,9 +348,8 @@ class Enqueuer {
});
}
- // TODO(ngeoffray): This should get a type.
- void registerIsCheck(Element element) {
- universe.isChecks.add(element);
+ void registerIsCheck(DartType type) {
+ universe.isChecks.add(type);
}
void forEach(f(WorkItem work)) {

Powered by Google App Engine
This is Rietveld 408576698