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 4b5d1a71c1e89ccdf697eb6e3409bf2192235b76..b57be5496d7dbc2a69b10f905a51eb06f9f7a3fe 100644 |
--- a/pkg/compiler/lib/src/dump_info.dart |
+++ b/pkg/compiler/lib/src/dump_info.dart |
@@ -421,7 +421,9 @@ class DumpInfoTask extends CompilerTask implements InfoReporter { |
final Map<Element, Set<Element>> _dependencies = {}; |
void registerDependency(Element source, Element target) { |
- _dependencies.putIfAbsent(source, () => new Set()).add(target); |
+ if (compiler.options.dumpInfo) { |
+ _dependencies.putIfAbsent(source, () => new Set()).add(target); |
+ } |
} |
void registerImpact(Element element, WorldImpact impact) { |