mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
[dart2js] Avoid double-counting used class sizes
Change-Id: I9656f648fabc935868b9b38b074d866d431c5bc1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256963 Commit-Queue: Mark Zhou <markzipan@google.com> Auto-Submit: Mark Zhou <markzipan@google.com> Reviewed-by: Joshua Litt <joshualitt@google.com> Commit-Queue: Joshua Litt <joshualitt@google.com>
This commit is contained in:
parent
a76d26545b
commit
3fd0d96e72
|
@ -311,9 +311,6 @@ Future<void> _reportWithClassFilter(
|
||||||
final used = coverage.contains(name);
|
final used = coverage.contains(name);
|
||||||
final nameWithoutPrefix =
|
final nameWithoutPrefix =
|
||||||
name.substring(name.indexOf(':') + 1, name.length);
|
name.substring(name.indexOf(':') + 1, name.length);
|
||||||
if (used) {
|
|
||||||
usedCode += info.size;
|
|
||||||
}
|
|
||||||
|
|
||||||
final runtimeClassInfo = classFilterData[nameWithoutPrefix];
|
final runtimeClassInfo = classFilterData[nameWithoutPrefix];
|
||||||
if (runtimeClassInfo == null) {
|
if (runtimeClassInfo == null) {
|
||||||
|
|
Loading…
Reference in a new issue