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

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

Issue 10855125: Ensure supertypes are loaded safely. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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: dart/lib/compiler/implementation/enqueue.dart
diff --git a/dart/lib/compiler/implementation/enqueue.dart b/dart/lib/compiler/implementation/enqueue.dart
index 41ce5f663a8d38f73ce005174ae30f4e1f226868..dea729d2b454e28546c5d52172704028b31b9a18 100644
--- a/dart/lib/compiler/implementation/enqueue.dart
+++ b/dart/lib/compiler/implementation/enqueue.dart
@@ -214,9 +214,7 @@ class Enqueuer {
while (cls !== null) {
if (seenClasses.contains(cls)) return;
seenClasses.add(cls);
- // TODO(ahe): Don't call resolveType, instead, call this method
- // when resolveType is called.
- compiler.resolveClass(cls);
+ cls.ensureResolved(compiler);
cls.members.forEach(processInstantiatedClassMember);
cls = cls.superclass;
}

Powered by Google App Engine
This is Rietveld 408576698