Skip to content

Commit

Permalink
dart2js: Add more whole-program information to dump-info
Browse files Browse the repository at this point in the history
Change-Id: I39c8778aae26ebb2b7d39db092e043d101bc63c5
Reviewed-on: https://dart-review.googlesource.com/50321
Reviewed-by: Sigmund Cherem <[email protected]>
Commit-Queue: Harry Terkelsen <[email protected]>
  • Loading branch information
harryterkelsen authored and [email protected] committed Apr 9, 2018
1 parent 5e23c28 commit 1fd3011
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions pkg/compiler/lib/src/dump_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1fd3011

Please sign in to comment.