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

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

Issue 2564823002: Remove CodegenEnqueuer.compiler (Closed)
Patch Set: Created 4 years 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 | 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/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index d44113721511b2b87657f592377ea4fa6de20774..523186ccf2616d5cb0d11d07900327696afc5e7f 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -419,9 +419,11 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
}
final Map<Element, Set<Element>> _dependencies = {};
- void registerDependency(Element source, Element target) {
+ void registerDependency(Element target) {
if (compiler.options.dumpInfo) {
- _dependencies.putIfAbsent(source, () => new Set()).add(target);
+ _dependencies
+ .putIfAbsent(compiler.currentElement, () => new Set())
+ .add(target);
}
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698