Files
sdk/pkg/vm
Daco Harkes a0dff0193b [dart2js] Support named arguments in record_use
In the earlier phase we save the `Selector` and is `CallStructure`
so that we can access the named argument later.

Then, we use the `FunctionEntity.parameterStructure` to loop over
all parameters to correctly deal with optional parameters. Optional
parameters are not visible in the original `CallStructure` but do
get constant expressions in the argument positions later.

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

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

Change-Id: Ic09823ec828a4bcc87d64e832bdba402f8915605
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/+/472840
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2026-01-15 12:27:31 -08:00
..

This package hosts VM specific Dart code and helper scripts.