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

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

Issue 1434103004: dart2js: report output unit imports to dump-info (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/deferred_load.dart ('k') | tools/deps/dartium.deps/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index f9faa1a99a936a17a8170963bb6375096d014ee6..09ab8e58963af245e88d46fe9d4a0bf6359aad5f 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -326,6 +326,8 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
full.Emitter emitter = backend.emitter.emitter;
OutputUnitInfo info = new OutputUnitInfo(
outputUnit.name, emitter.outputBuffers[outputUnit].length);
+ info.imports.addAll(outputUnit.imports
+ .map((d) => compiler.deferredLoadTask.importDeferName[d]));
result.outputUnits.add(info);
return info;
});
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | tools/deps/dartium.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698