Files
sdk/pkg/vm
Daco Harkes 8f2f35cfc8 [dart2js] Support tear-offs in record_use
This CL reworks the universe/recorded_use.dart to more closely
resemble the `package:record_use` data structure. For example the
recorded calls can either be with arguments or a tearoff. The
serialization uses an enum to differentiate.

The tearoffs of static methods are turned into function constants, so
this CL records at the visit of the function constant.

Closes: https://github.com/dart-lang/native/issues/2895

TEST=pkg/compiler/test/record_use/record_use_test.dart
TEST=pkg/vm/test/transformations/record_use_test.dart

Change-Id: I9a4d7056d00b0c61e122aa2432f3fd14b77a6809
Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-arm64-try,pkg-win-release-try,dart2js-linux-chrome-try,dart2js-unit-linux-x64-release-try,dart2wasm-linux-jscm-chrome-try,dart2wasm-linux-optimized-jsc-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/472500
Reviewed-by: Nate Biggs <natebiggs@google.com>
2026-01-14 00:34:03 -08:00
..

This package hosts VM specific Dart code and helper scripts.