Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1fd3011

Browse files
harryterkelsencommit-bot@chromium.org
authored andcommitted
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>
1 parent 5e23c28 commit 1fd3011

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ vars = {
6767
"convert_tag": "@2.0.1",
6868
"crypto_tag" : "@2.0.2+1",
6969
"csslib_tag" : "@0.14.1",
70-
"dart2js_info_tag" : "@0.5.5+1",
70+
"dart2js_info_tag" : "@0.5.6",
7171

7272
# Note: updates to dart_style have to be coordinated carefully with
7373
# the infrastructure-team so that the internal formatter in

pkg/compiler/lib/src/dump_info.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
532532
}
533533
}
534534

535-
int sizeOfNode(jsAst.Node node) {
536-
// TODO(sigmund): switch back to null aware operators (issue #24136)
537-
var size = _nodeToSize[node];
538-
return size == null ? 0 : size;
539-
}
535+
int sizeOfNode(jsAst.Node node) => _nodeToSize[node] ?? 0;
540536

541537
String codeOf(Entity entity) {
542538
List<jsAst.Node> code = _entityToNodes[entity];
@@ -629,6 +625,10 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
629625
new Duration(milliseconds: stopwatch.elapsedMilliseconds),
630626
dumpInfoDuration: new Duration(milliseconds: this.timing),
631627
noSuchMethodEnabled: closedWorld.backendUsage.isNoSuchMethodUsed,
628+
isRuntimeTypeUsed: closedWorld.backendUsage.isRuntimeTypeUsed,
629+
isIsolateInUse: closedWorld.backendUsage.isIsolateInUse,
630+
isFunctionApplyUsed: closedWorld.backendUsage.isFunctionApplyUsed,
631+
isMirrorsUsed: closedWorld.backendUsage.isMirrorsUsed,
632632
minified: compiler.options.enableMinification);
633633

634634
ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(

0 commit comments

Comments
 (0)