Files
sdk/pkg/vm/lib/transformations
Nate Biggs 92158c9092 [dart2wasm] Add support for writing record use files.
This record_use package will now be shared by the VM, dart2js and
dart2wasm. It's used for internal dart2js apps today to tree-shake i18n
information.

Here we use the VM's transformer to gather the usage data but introduce
a new mechanism for getting load IDs since dart2wasm doesn't use the
VM's load ID infrastructure.

Change-Id: I83d435a0493815c3d0e4d007555a64a6e9af98bb
Tested: pkg/vm/test/transformations/record_use_test.dart
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/470420
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2026-01-26 19:45:09 -08:00
..