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

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

Issue 1145603002: add library canonicalUri to dart2js dump info (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: also include minify information Created 5 years, 7 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 | no next file » | 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 e02346194107eba827f1414441c1489660c68a0c..c6ab046068440adf271967167debadb89feaa6fa 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -31,7 +31,7 @@ class IdMapper<T>{
Map<int, T> _idToElement = {};
Map<T, int> _elementToId = {};
int _idCounter = 0;
- String name;
+ final String name;
IdMapper(this.name);
@@ -96,7 +96,7 @@ class ElementToJsonVisitor
dart2jsVersion = compiler.hasBuildId ? compiler.buildId : null;
- for (var library in compiler.libraryLoader.libraries.toList()) {
+ for (LibraryElement library in compiler.libraryLoader.libraries.toList()) {
visit(library);
}
}
@@ -165,7 +165,8 @@ class ElementToJsonVisitor
'name': libname,
'size': size,
'id': id,
- 'children': children
+ 'children': children,
+ 'canonicalUri': element.canonicalUri.toString()
};
}
@@ -399,7 +400,7 @@ class DumpInfoTask extends CompilerTask {
DumpInfoTask(Compiler compiler)
: super(compiler);
- String name = "Dump Info";
+ String get name => "Dump Info";
ElementToJsonVisitor infoCollector;
@@ -624,7 +625,7 @@ class DumpInfoTask extends CompilerTask {
'deferredFiles': compiler.deferredLoadTask.computeDeferredMap(),
// This increases when new information is added to the map, but the viewer
// still is compatible.
- 'dump_minor_version': '1'
+ 'dump_minor_version': '2'
};
Duration toJsonDuration = new DateTime.now().difference(startToJsonTime);
@@ -636,7 +637,8 @@ class DumpInfoTask extends CompilerTask {
'compilationDuration': compiler.totalCompileTime.elapsed.toString(),
'toJsonDuration': 0,
'dumpInfoDuration': this.timing.toString(),
- 'noSuchMethodEnabled': backend.enabledNoSuchMethod
+ 'noSuchMethodEnabled': backend.enabledNoSuchMethod,
+ 'minified': compiler.enableMinification
};
outJson['program'] = generalProgramInfo;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698