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

Unified Diff: pkg/compiler/lib/src/enqueue.dart

Issue 1354603002: Revert "Enqueue superclasses instead of supertypes." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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: pkg/compiler/lib/src/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index 5fd213bce5482f69805a1fa7c85d83316f5207de..35b564043a071e44417bbeeb9e154a998161d1ed 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -196,13 +196,7 @@ abstract class Enqueuer {
ClassElement cls = type.element;
registry.registerDependency(cls);
cls.ensureResolved(compiler);
- universe.registerTypeInstantiation(
- type,
- byMirrors: mirrorUsage,
- onImplemented: (ClassElement cls) {
- compiler.backend.registerImplementedClass(
- cls, this, compiler.globalDependencies);
- });
+ universe.registerTypeInstantiation(type, byMirrors: mirrorUsage);
processInstantiatedClass(cls);
compiler.backend.registerInstantiatedType(type, registry);
});
@@ -344,9 +338,10 @@ abstract class Enqueuer {
compiler.backend.registerInstantiatedClass(
cls, this, compiler.globalDependencies);
}
- while (cls != null) {
- processClass(cls);
- cls = cls.superclass;
+ processClass(cls);
+ for (Link<DartType> supertypes = cls.allSupertypes;
+ !supertypes.isEmpty; supertypes = supertypes.tail) {
+ processClass(supertypes.head.element);
}
});
}
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698