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

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

Issue 1132363003: dart2js: keep track of non-final static fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 056db9f2f7241b78c30938459210f8e5aeb2f408..ebbef36b1c274fbd11fd75ff30c385e0561d199e 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -516,6 +516,9 @@ abstract class Enqueuer {
void registerStaticUse(Element element) {
if (element == null) return;
assert(invariant(element, element.isDeclaration));
+ if (Elements.isStaticOrTopLevel(element) && element.isField) {
+ universe.registerStaticFieldUse(element);
+ }
addToWorkList(element);
compiler.backend.registerStaticUse(element, this);
}

Powered by Google App Engine
This is Rietveld 408576698