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

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

Issue 1279093003: dart2js: dump info about dependencies added by the enqueuer (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 9325653f7fbf34e3f9cab61fdae4e3c9e59f0a4e..d1828b8ed147791d7bd0ee70a2a5f2f23e825603 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -96,7 +96,12 @@ abstract class Enqueuer {
*/
void addToWorkList(Element element) {
assert(invariant(element, element.isDeclaration));
- internalAddToWorkList(element);
+ if (internalAddToWorkList(element)) {
+ // TODO(sigmund): add other missing dependencies (internals, selectors
+ // enqueued after allocations), also enable only for the codegen enqueuer.
+ compiler.dumpInfoTask.registerDependency(
Johnni Winther 2015/08/11 14:12:51 Make this registration conditional [compiler.dumpI
Siggi Cherem (dart-lang) 2015/08/11 19:51:45 Done.
+ compiler.currentElement, element);
+ }
}
/**

Powered by Google App Engine
This is Rietveld 408576698