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

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

Issue 1424923004: Add StaticUse for more precise registration of statically known element use. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 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 | « pkg/compiler/lib/src/dart_backend/backend.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index fbc547cb53445a9635685541e392ed4ee17061b7..ab4f1cad961ce585453b5ebe6636f775a580bc51 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -47,6 +47,8 @@ import 'tree/tree.dart' show
LiteralString,
NewExpression,
Node;
+import 'universe/use.dart' show
+ StaticUse;
import 'universe/world_impact.dart' show
WorldImpact;
import 'util/setlet.dart' show
@@ -312,7 +314,9 @@ class DeferredLoadTask extends CompilerTask {
WorldImpact worldImpact =
compiler.resolution.getWorldImpact(analyzableElement);
- elements.addAll(worldImpact.staticUses);
+ worldImpact.staticUses.forEach((StaticUse staticUse) {
+ elements.add(staticUse.element);
+ });
elements.addAll(worldImpact.closures);
for (DartType type in worldImpact.typeLiterals) {
if (type.isTypedef || type.isInterfaceType) {
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/backend.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698