dart2js: Add more whole-program information to dump-info

Change-Id: I39c8778aae26ebb2b7d39db092e043d101bc63c5
Reviewed-on: https://dart-review.googlesource.com/50321
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Harry Terkelsen <het@google.com>
This commit is contained in:
Harry Terkelsen 2018-04-09 21:40:47 +00:00 committed by commit-bot@chromium.org
parent 5e23c2843d
commit 1fd3011f47
2 changed files with 6 additions and 6 deletions

2
DEPS
View file

@ -67,7 +67,7 @@ vars = {
"convert_tag": "@2.0.1",
"crypto_tag" : "@2.0.2+1",
"csslib_tag" : "@0.14.1",
"dart2js_info_tag" : "@0.5.5+1",
"dart2js_info_tag" : "@0.5.6",
# Note: updates to dart_style have to be coordinated carefully with
# the infrastructure-team so that the internal formatter in

View file

@ -532,11 +532,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
}
}
int sizeOfNode(jsAst.Node node) {
// TODO(sigmund): switch back to null aware operators (issue #24136)
var size = _nodeToSize[node];
return size == null ? 0 : size;
}
int sizeOfNode(jsAst.Node node) => _nodeToSize[node] ?? 0;
String codeOf(Entity entity) {
List<jsAst.Node> code = _entityToNodes[entity];
@ -629,6 +625,10 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
new Duration(milliseconds: stopwatch.elapsedMilliseconds),
dumpInfoDuration: new Duration(milliseconds: this.timing),
noSuchMethodEnabled: closedWorld.backendUsage.isNoSuchMethodUsed,
isRuntimeTypeUsed: closedWorld.backendUsage.isRuntimeTypeUsed,
isIsolateInUse: closedWorld.backendUsage.isIsolateInUse,
isFunctionApplyUsed: closedWorld.backendUsage.isFunctionApplyUsed,
isMirrorsUsed: closedWorld.backendUsage.isMirrorsUsed,
minified: compiler.options.enableMinification);
ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(