mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 10:48:25 +00:00
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:
parent
5e23c2843d
commit
1fd3011f47
2
DEPS
2
DEPS
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue