Commit graph

74 commits

Author SHA1 Message Date
Nate Biggs 171c1334cc [dart2js] Add 'main-only' option to dump info diff tool.
Change-Id: Ibabfd4eb9de5820365772c4b75d5ed0624b148a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332640
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2023-10-30 22:49:09 +00:00
Nate Biggs 1df418af1a [dart2js_info] Add 'main-only' option to info diff.
New option will only include diffs in the "main" output unit for the provided builds. Only sub-library entities have an output unit. Libraries do not have an output unit because there is no code associated with the library itself and a single library's contents can be spread across multiple output units.

Mutually exclusive with the 'package-only' flag because that one only prints libraries and 'main-only' includes no libraries.

Change-Id: I4d5abe54daa8e09d892dd2e2fc2b840f0705ad86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332120
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2023-10-24 21:38:42 +00:00
Devon Carew e2fe203adc [deps] roll package:lints to the latest
Change-Id: I582f956cd4b712203c2f6dd630b4e1384040446d
Tested: analysis clean (this is a lint only related change)
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329400
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2023-10-05 03:36:59 +00:00
Sigmund Cherem ab0b4fcbe2 [dart2js] cleanup backend usage (I)
Change-Id: Id2fcc83ef3ae68b00693a13b186ffc406886972c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/318880
Reviewed-by: Stephen Adams <sra@google.com>
2023-08-10 22:45:54 +00:00
Kevin Moore 7d9dab0e7a [dart2js_info] Update tests to allow using dart test command
Makes local development a lot easier

Change-Id: I85c6911db313cc9842359b149405aedeb8243be7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280407
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2023-02-03 00:29:38 +00:00
Josh Soref 77978889eb Spelling
Closes https://github.com/dart-lang/sdk/pull/51143

GitOrigin-RevId: 9e21c99a222d588e4fc95980725a2f8c9784965c
Change-Id: If0870e8936c7649935dce7e23cd783d62aa5610c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279916
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2023-01-30 18:29:59 +00:00
Ahmed Ashour 63180b95ed Remove superfluous words.
Fixes #51095

TEST=ci

CoreLibraryReviewExempt: There are no API changes, just removal of superfluous words in the comments.
Change-Id: Ib1020c62fe6baed5ca68f0074323f025cc90e9f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279500
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2023-01-30 15:58:38 +00:00
Josh Soref 01b28894e7 Spelling pkg dev compiler
Closes https://github.com/dart-lang/sdk/pull/50861

GitOrigin-RevId: 71005e6f5bf5a151cb5c1aefb6a2a300fc40f592
Change-Id: Iadfafb5787a62e9a379437f6a3763d31f99ba7c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/277743
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2023-01-26 09:12:41 +00:00
Josh Soref 84e3c8b50f Spelling tests
Closes https://github.com/dart-lang/sdk/pull/50920

GitOrigin-RevId: fa87531bd0f52b69485c9d02ff9e44a4a29c6a91
Change-Id: I0ae8574a5b77087895e004079f221201bb550cf3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278535
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2023-01-19 16:24:29 +00:00
Kevin Moore 67015b7175 [dart2js:dump_info] put version and program info first...
...more consistent sorting of holdings (improves diffing)

Change-Id: I2f2c418edea1f2dec6b8cc26e8058a5e3855ceb2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/271820
Auto-Submit: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-11-23 23:30:32 +00:00
Kevin Moore 0a7b6d10a9 [dart2js_info] Fix library size - change a name field no nullable
Otherwise tools.dart library_size crashes

Change-Id: Iba72c273eea6d550c2ecf1193f44111f55ca4c22
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/271564
Reviewed-by: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Auto-Submit: Kevin Moore <kevmoo@google.com>
2022-11-23 01:18:27 +00:00
Nate Biggs ba662eb4b4 [dart2js] Replace dart2js_dynamic_test with lint and appropriate lint ignores.
See patch 2 for failures coming from this new analysis option.

Change-Id: I6bb10c2eb12431f6c503cc817a9c9bb45ba597a4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/269800
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2022-11-15 21:11:59 +00:00
Devon Carew b84a08a0e1 [pkg/dart2js_info] remove older .github config files
Change-Id: I1d558855bbeec2e598f5d02efb6355cc575f30df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/269362
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2022-11-11 21:13:13 +00:00
Nate Biggs 9766e53168 [dart2js] Migrate dump_info.dart to null safety.
Change-Id: I0b6232bb29866777b7048e30bed62abab10016d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/267824
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2022-11-04 16:39:53 +00:00
Mark Zhou 3fd0d96e72 [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>
2022-08-30 22:43:59 +00:00
Mark Zhou 18e4b40dcc [dart2js] Moving dart2js_info coverage helper classes into /lib
Also updates the logic for resolving Angular Info items

Change-Id: Idb5fe1c00db04adc6dcbcf508b01bbf3f8055c2f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256603
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-08-29 21:10:00 +00:00
IslinaS 9e740799c6 [dart2js] Corrected package and library size calculation
Change-Id: I17aec52b8f39992e2c18e208da931a3465afb089
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253712
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Islina Shan <islinashan@google.com>
2022-08-12 18:30:43 +00:00
IslinaS f5e4113454 [dart2js] Convert program info with main and deferred units into a treemap
Change-Id: Ie0b4d1549ff9f8dd05896012a42222a71cda8adf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253561
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Islina Shan <islinashan@google.com>
2022-08-08 23:03:30 +00:00
IslinaS abd6e8eba7 [dart2js] separate main and deferred units in programInfo tree structures
Change-Id: Ia1a6ba772fa6384ef23ab5d814a0228c7d5613bc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252870
Commit-Queue: Islina Shan <islinashan@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-08-04 00:27:26 +00:00
Kevin Moore d50903739c dart2js_info: Enable and fix some lints
always_declare_return_types
unawaited_futures

Enabled, fixed then disabled directives_ordering due to code generation

Change-Id: Icaf7358222b1c9a939a4764be091e1956d449386
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253365
Commit-Queue: Mark Zhou <markzipan@google.com>
Auto-Submit: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-08-02 01:10:34 +00:00
IslinaS 546d0f5fe2 [dart2js] Adding asserts to all makeX functions to ensure that all new programInfoNodes are unique
Change-Id: Ifc413160b3bc4cebd3d56e72d36fd19def32e303
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252864
Commit-Queue: Islina Shan <islinashan@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-08-01 20:10:33 +00:00
IslinaS 77637cf8d4 [dart2js] addressed null check errors due to unnamed libraries
Change-Id: I182d269854464a2b62d34200234d49351477c486
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252861
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Islina Shan <islinashan@google.com>
2022-08-01 19:12:04 +00:00
IslinaS 7c8981f627 [dart2js] Filling out visitor functions for ProgramInfoNode transformer
Change-Id: I06e43f760f37818d7c7827ac5bcd17658f6a9c74
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252409
Commit-Queue: Islina Shan <islinashan@google.com>
Reviewed-by: Elliott Brooks <elliottbrooks@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-07-27 23:08:29 +00:00
Mark Zhou 4f9002286f [dart2js] Adding tests for angularInfo conversion for runtime coverage
Change-Id: I143565cb2c36c551ed7e1189ffbcf64fb9b2a5de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252560
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-07-26 21:16:57 +00:00
Mark Zhou 11004430bf [dart2js] Extending coverage analysis to allow class filters
This format is emitted by AngularInfo internally (for identifying providers/components) but conforms to Dart2JS's qualified naming scheme.

Change-Id: I1a38e41105f7fb92a30d3358c08b72e892ccf3c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250344
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-07-25 20:40:10 +00:00
IslinaS d6d9924b26 [dart2js] stubbed out to-devtools-format command
Change-Id: I1e39b38c7782d993d3745b209efff47ac817e12b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252408
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Islina Shan <islinashan@google.com>
2022-07-22 21:35:57 +00:00
IslinaS 8d6c44df7d [dart2js] Adding support for packageInfo ProgramInfoNodes
Change-Id: I72d534669835df176fd6e2bfdd041f5e6a4e7bff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252405
Commit-Queue: Islina Shan <islinashan@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-07-22 21:34:58 +00:00
Mark Zhou 59c29c5fc9 [dart2js] Bumping dump info major version after ramUsage addition
Change-Id: If50867ff3e936c98b9e5b09202bbea4dfe269a50
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252004
Reviewed-by: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-07-20 18:40:05 +00:00
Mark Zhou 0ee0fba728 [dart2js] Adding supertype hierarchy to dump info
Note: this info is not added to the proto format

Change-Id: Ic7407405dea7bcd7b9d3328cfe0850609dc007a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250785
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-07-19 00:55:53 +00:00
Mark Zhou 635a3bf00f [dart2js] Adding total program RAM usage to dump info's output
See: #49160

This doesn't offer a phase-specific view of the ram usage nor aggregate ram usage across split phase compilation.

Change-Id: Ia1f781f9bd35b40048ac23fe103b8fee3b4da584
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250947
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-07-12 00:53:41 +00:00
Mark Zhou 59f9368e4b [dart2js] Cleaning up readme and removing out-of-date docs
Fixes #49285

Change-Id: I0703c9750ba2d5b2f5f3640cc5d2caea4f827236
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/249064
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-06-21 04:56:22 +00:00
Nate Biggs d0fc029f68 [dart2js] Migrate dart2js_info test files to nnbd.
Change-Id: I900ed874926c50d51cf01c16f0e3fd5cd144e102
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248167
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-06-17 20:53:39 +00:00
Nate Biggs cb3e37bdf2 [dart2js] Migrate final batch of non-test dart2js_info files.
Change-Id: Ic848c7e9a646749866469cc8df96dec6cbc8b0dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248166
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-06-17 20:53:39 +00:00
Nate Biggs c3c39b7613 [dart2js] Migrate second round of dart2js_info/bin files to nnbd.
Change-Id: I27c530cf0389b51364ad1973dad0ef8109702b38
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248165
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-06-17 20:53:39 +00:00
Nate Biggs f364733555 [dart2js] Migrate some files in dart2js_info/bin to nnbd.
Change-Id: I35d902b177e4ce6812803c9e8c6f07dbfc3935e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248164
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-06-17 19:14:39 +00:00
Nate Biggs 5255cabfb5 [dart2js] Migrate dart2js_info's json_info_codec.dart to nnbd
Change-Id: I4cc4a7aaded37f7e6437a7b82ae5850199aaaf8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248162
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-06-17 19:14:39 +00:00
Nate Biggs 1fefbc475c [dart2js] Migrate dart2js_info's proto_info_codec.dart to nnbd
Change-Id: I79a384b9e650faf36ff666a386f607e27e9c6bef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248161
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-06-16 22:29:20 +00:00
Konstantin Shcheglov 26e4595411 Import dart:typed_data for BytesBuilder instead of dart:io
See https://dart-review.googlesource.com/c/sdk/+/248343

Change-Id: Ibfc8db983c271b5e27ba8f03ed7e192e042da1fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248352
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-14 17:36:34 +00:00
Mark Zhou ac183fa2fc [dart2js] Moving parameter info resolution to annotation phase for kernel dump info
Fixed:
Change-Id: Ib74af875204d554e35036e0f36ee3710fa73f284
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247929
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-06-13 21:45:47 +00:00
Nate Biggs 3c58404d6a [dart2js] Migrate dart2js_info binary_serialization.dart to nnbd.
Change-Id: I98ba2db3c99b09c8a820b1bb8c8a9b3f7e352f5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247287
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-06-13 17:47:36 +00:00
Mark Zhou d76e36fbcb [dart2js] Adding kernel dump info regression tests
Ensures that kernel dump info doesn't break the original dump info's behavior.

Change-Id: I9bfe22cea0d1a5597db9c98fe736f20369b80c82
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247122
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-06-06 22:35:29 +00:00
Mark Zhou 7769360d2b [dart2js] Moving dart2js info treeshaking filters to a separate visitor
Prelude to adding kernel dump info tests

Change-Id: I9b349700ec422da3833ee08514946fcd9b7d9b30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246860
Commit-Queue: Mark Zhou <markzipan@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
2022-06-03 22:17:26 +00:00
Nate Biggs f6e4242a5d [dart2js] Fix tests for dart2js_info.
Fixes errors introduced in https://dart-review.googlesource.com/c/sdk/+/246140.

Change-Id: I7d09e58e27bcea138d4945fbda1d45b12bd6f53f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246800
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
2022-06-01 19:56:14 +00:00
Ilya Yanok e1e5cf4581 Make dart2js_info work again after partial migration to null-safety
Change-Id: I09b87ce1d6978f2b8aed65ecefe55557dd7b5784
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246581
Reviewed-by: Nate Biggs <natebiggs@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Ilya Yanok <yanok@google.com>
2022-06-01 07:07:44 +00:00
Nate Biggs 0d3d5e6712 [dart2js] Migrate second batch of dart2js_info files to nnbd.
Change-Id: Ie84897bc0e4cd376b815de672aadbdf82ad03ddc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246140
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-05-31 21:44:23 +00:00
Nate Biggs aad436cc53 [dart2js] Migrate first round of dart2js_info to nnbd.
Change-Id: Ifc3f97eb6dad6e785263346f1d41ed5a78705bac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245924
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-05-27 15:31:40 +00:00
Devon Carew f7c46f145c [pkg] prefer 'any' deps for package dev dependencies
Tested: CI validation
Change-Id: If65cc156130a65ffe00c6f1660ac320e2921afae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246053
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2022-05-27 01:34:59 +00:00
Nate Biggs 369b0b58e9 [dart2js] Update minimum dart version for dart2js_info and add file headers.
Change-Id: Icbd3d3f90987df10a3288463900a9f9874dba0b5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245923
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-05-26 06:39:09 +00:00
Nate Bosch 6ebd2633cd Use any deps for all unpublished packages
It should not be necessary to ever run `pub get` for a package which is
not published. All packages used in the SDK are controlled by a single
package config, so it's not necessary to declare versions or paths for
any packages.

Remove all dependency overrides.

R=devoncarew@google.com

Change-Id: Icb328813b471f35ee4c99995f4e90aac4d8ed438
Tested: Covered by existing static analysis.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244767
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2022-05-17 01:22:25 +00:00
pq 4b7a27a922 rename local functions with _s
These will be flagged by the next linter release which updates `non_constant_identifier_names` to flag local functions.

Change-Id: I8a558d2c9b80d2a0411ca8603201d62451c734dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242501
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2022-04-27 00:15:24 +00:00