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

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

Issue 11413184: Create specialized versions of getInterceptor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/enqueue.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/enqueue.dart (revision 15381)
+++ sdk/lib/_internal/compiler/implementation/enqueue.dart (working copy)
@@ -89,10 +89,6 @@
if (isResolutionQueue && getCachedElements(element) != null) return;
compiler.internalErrorOnElement(element, "Work list is closed.");
}
- if (!isResolutionQueue &&
- identical(element.kind, ElementKind.GENERATIVE_CONSTRUCTOR)) {
- registerInstantiatedClass(element.getEnclosingClass());
- }
if (elements == null) {
elements = getCachedElements(element);
}
@@ -139,8 +135,10 @@
void registerInstantiatedClass(ClassElement cls) {
if (universe.instantiatedClasses.contains(cls)) return;
- universe.instantiatedClasses.add(cls);
- onRegisterInstantiatedClass(cls);
+ if (!cls.isAbstract(compiler)) {
+ universe.instantiatedClasses.add(cls);
+ onRegisterInstantiatedClass(cls);
+ }
compiler.backend.registerInstantiatedClass(cls, this);
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698