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

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

Issue 1285743002: dart2js: add visitors and parsing support to infos (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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/info/info.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 0eac0a9e6b906e2c3822bc568ae886af68d04b83..ab526160688ad33b0d6985c7bbe9e63975de48b5 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -479,12 +479,12 @@ class DumpInfoTask extends CompilerTask {
// Track dependencies that come from inlining.
for (Element element in inlineMap.keys) {
- FunctionInfo functionInfo = infoCollector._elementToInfo[element];
- if (functionInfo == null) continue;
- for (Element held in inlineMap[element]) {
- Info heldInfo = infoCollector._elementToInfo[held];
- if (heldInfo == null) continue;
- functionInfo.uses.add(new DependencyInfo(heldInfo, 'inlined'));
+ Info outerInfo = infoCollector._elementToInfo[element];
Siggi Cherem (dart-lang) 2015/08/11 16:16:43 oops - I noticed this error while testing things o
+ if (outerInfo == null) continue;
+ for (Element inlined in inlineMap[element]) {
+ Info inlinedInfo = infoCollector._elementToInfo[inlined];
+ if (inlinedInfo == null) continue;
+ outerInfo.uses.add(new DependencyInfo(inlinedInfo, 'inlined'));
}
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/info/info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698