Commit Graph

113740 Commits

Author SHA1 Message Date
dart-autoroll@skia-public.iam.gserviceaccount.com c3280addfc Roll BoringSSL from eada60b75448 to 0676117daa6f (8 revisions)
Third party deps scan / Extract dependencies (push) Has been cancelled
Third party deps scan / Vulnerability scanning (push) Has been cancelled
https://boringssl.googlesource.com/boringssl.git/+log/eada60b75448..0676117daa6f

2026-06-11 agl@imperialviolet.org Add platform configuration for "Pythia".
2026-06-11 davidben@google.com Fix comment typo
2026-06-11 rpolzer@google.com Avoid having a L label at the start of a section on macOS.
2026-06-11 xfding@google.com ssl: return non-const RPK handle
2026-06-10 davidben@google.com Fix license header on p256_internal.h
2026-06-10 davidben@google.com Make the SysV gates for fiat assembly more consistent
2026-06-10 davidben@google.com Disable fiat P-256 assembly on OPENSSL_NANOLIBC
2026-06-10 davidben@google.com OpenSSL Advisory: June 9th, 2026 (BoringSSL Not Affected)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/boringssl-dart-sdk
Please CC dart-engprod@google.com,dart-vm-gardener@rotations.google.com,dart-vm-team@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in BoringSSL: https://crbug.com/boringssl/new
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: dart-vm-gardener@rotations.google.com
Change-Id: I5760fb8e97d159388a0343a410df92e601dcbda4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511680
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: dart-autoroll@skia-public.iam.gserviceaccount.com <dart-autoroll@skia-public.iam.gserviceaccount.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2026-06-11 13:30:11 -07:00
dart-autoroll@skia-public.iam.gserviceaccount.com f86adf7cbc Roll Fuchsia SDK from 32.20260604.3.1 to 32.20260609.7.1
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-sdk-dart-sdk
Please CC fuchsia-3p-engprod@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Fuchsia SDK: https://bugs.fuchsia.dev/p/fuchsia/issues/list
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-x64-try;luci.dart.try:vm-fuchsia-release-arm64-try
Change-Id: Ib9fffa1418cc242de518f0f677f34a6d35c9064e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510542
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2026-06-11 12:37:15 -07:00
dart-autoroll@skia-public.iam.gserviceaccount.com f640d3d9cf Roll BoringSSL from 60553ee001ee to eada60b75448 (31 revisions)
https://boringssl.googlesource.com/boringssl.git/+log/60553ee001ee..eada60b75448

2026-06-09 davidben@google.com delocate: Support a few more aarch64 assembly variants
2026-06-09 davidben@google.com delocate: Treat BORINGSSL_bcm_text_hash as a synthesized symbol
2026-06-09 rpolzer@google.com xlate scripts: Use .subsections_via_symbols in apple assembly files.
2026-06-09 davidben@google.com Store ML-DSA's s1, s2, and t0 in NTT form
2026-06-09 davidben@google.com Don't decode t0 twice in the testing-only ML-DSA format
2026-06-08 davidben@google.com runner: Unconditionally fill in our vendored ML-DSA public key
2026-06-08 davidben@google.com Make Montgomery reduction clearer in ML-DSA
2026-06-08 davidben@google.com Add EVP_CIPHER_CTX_max_next_update and EVP_CIPHER_CTX_max_final
2026-06-08 rpolzer@google.com Fix compile-time assertion about sizing of AES-GCM-SIV data.
2026-06-08 rpolzer@google.com Use the vectorized "double Keccak" for ML-DSA too.
2026-06-08 rpolzer@google.com Use templates to simplify ML-DSA's scalar_*code functions, making all dispatch compile-time.
2026-06-05 mattm@google.com delete extraneous test data file
2026-06-05 chlily@google.com Update documentation about ASN.1 BIT STRING lengths
2026-06-05 mattm@google.com Implement MTC plants-04 CA cosignature verification.
2026-06-05 davidben@google.com Switch from select to poll in demo command-line tool
2026-06-05 davidben@google.com Add a tool to update bazel dependencies
2026-06-05 davidben@google.com Update bazel dependencies
2026-06-05 davidben@google.com Fix build
2026-06-05 davidben@google.com Touch up v2i_AUTHORITY_KEYID
2026-06-05 davidben@google.com Add some tests to exercise v2i_AUTHORITY_KEYID
2026-06-04 davidben@google.com Clarify that TLS-specific AEADs are not AEADs
2026-06-04 davidben@google.com rust: cargo update
2026-06-04 davidben@google.com Use scopers in certificate policy conf logic
2026-06-04 davidben@google.com Add tests for constructing certificate policies from strings
2026-06-04 davidben@google.com util/ar: Fix integer conversion in bounds check
2026-06-04 davidben@google.com Update dependencies in go.mod
2026-06-04 davidben@google.com runner: Rewrite some ServerKeyExchange serializers with cryptobyte
2026-06-04 davidben@google.com Flip the sign on timezone offset calculation
2026-06-04 foss@grueninger.de Update GitHub actions/checkout to version 6
2026-06-04 davidben@google.com Reject invalid IV lengths in EVP_CTRL_GCM_SET_IV_INV
2026-06-04 davidben@google.com Include inline functions from BCM in the shared build's hashed region

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/boringssl-dart-sdk
Please CC dart-engprod@google.com,dart-vm-gardener@rotations.google.com,dart-vm-team@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in BoringSSL: https://crbug.com/boringssl/new
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: dart-vm-gardener@rotations.google.com
Change-Id: I0c1029030b486cc5a8ce49e6b5df535c5a118aa1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510661
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2026-06-11 12:33:31 -07:00
Martin Kustermann 2d78883f27 [dart2wasm] Simplify handling of JS interop callbacks
Right now a JS interop callback works like this:

* Each wasm module that gets instantiated will be given it's module
  instance (JS calls Dart to set it) via `setThisModule`

* When Dart code calls JS and gives it a callback to invoke, it gave it
  this module instance. It will also make the callback wasm function
  weakly exported.

* The JS trampoline code, when invoked, would then call the weakly
  exported wasm function from the module instance.

We simplify this now by making the Dart code simply give the wasm
function reference to JS, then JS can later on invoke it. No need to
weakly export a function and call back via
`module.exports.<weaklyExportedCallback>`

To ensure binaryen is aware that the wasm function may be called from
JS, we annotate it via the `(@binaryen.js.called)` annotation.

Change-Id: I828dd0cf8d3b36db338792c4e277a4bb94c76faf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511080
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2026-06-11 12:24:16 -07:00
dart-autoroll@skia-public.iam.gserviceaccount.com 87ff0ea65d Roll gn from 6f8c0328ee29 to 197d7a5fa261
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/gn-dart-sdk
Please CC dart-engprod@google.com,dart-vm-gardener@rotations.google.com,dart-vm-team@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in gn: https://bugs.chromium.org/p/gn/issues/list
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try;luci.dart.try:dart-sdk-linux-arm64-try;luci.dart.try:dart-sdk-mac-try;luci.dart.try:dart-sdk-mac-arm64-try;luci.dart.try:dart-sdk-win-try
Change-Id: Ib03f3c9b50ad247157d64c847b92c25fb20b2137
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511540
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
Commit-Queue: dart-autoroll@skia-public.iam.gserviceaccount.com <dart-autoroll@skia-public.iam.gserviceaccount.com>
2026-06-11 12:01:35 -07:00
Konstantin Shcheglov 8779d4e9a7 Breaking changes for analyzer version 14.0.0
Change-Id: I3bd6b1bbf60bb1b45f46e62ebf448f27f103f98e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/509561
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2026-06-11 11:59:47 -07:00
Alexander Markov c46d0a8b81 [gardening] Mark pkg/vm/test/transformations/protobuf_aware_treeshaker/treeshaker_test as Slow
TEST=ci
Fixes https://github.com/dart-lang/sdk/issues/63572

Change-Id: If2f7c3954c3c8b95803fa9ce5155d3afb096de5e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511560
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Auto-Submit: Alexander Markov <alexmarkov@google.com>
2026-06-11 11:53:27 -07:00
Nourhan Hasan bd5ccf95d1 [vm/service]: Add OS::SafeReadMemory for macOS using mach_vm_read_overwrite
TEST=runtime/vm/service_test.cc

Cq-Include-Trybots: dart/try:vm-asan-mac-release-arm64-try,vm-dyn-mac-debug-arm64-try,vm-mac-debug-arm64-try,vm-mac-debug-x64-try,vm-tsan-mac-release-arm64-try,vm-ubsan-mac-release-arm64-try
Change-Id: I1be990f3debb7e0b7102f54e8c5bec25252756d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/507040
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2026-06-11 11:30:22 -07:00
Kallen Tu 0f9e6da044 API - Deprecate the excludedPaths parameter in AnalysisContextCollection.
Path exclusions should ideally be defined inside a project's
`analysis_options.yaml` file, rather than being added programatically.

Plus, there's a bug with the constructor that causes this parameter to
be completely ignored anyways, so it's been obsolete and non-functional
for a while now. `getExcludedGlobs` in the `_ContextLocator` handles
parsing and adding excluded paths from the analysis server already, so
we should look into deprecating and removing this parameter.

Change-Id: I6c023041c7bb5fa4cb9dedc629afa4ea6ecb63d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511160
Commit-Queue: Kallen Tu <kallentu@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2026-06-11 11:15:16 -07:00
Brian Wilkerson 916afe3219 Suggest fields from declaring parameters in completions
This was preventing suggesting fields from declaring parameters
everywhere.

Closes https://github.com/dart-lang/sdk/issues/63537

Change-Id: I552f85275c6a1aebaa4a50af88d661bc7e3d6492
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511040
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2026-06-11 11:09:54 -07:00
Parker Lougheed 69ed86fda6 [linter] Update docs and state status for latest lints
Change-Id: If6006f5df03f90c50eb2860a3fa17118c8941b36
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510820
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2026-06-11 11:01:15 -07:00
Konstantin Shcheglov dbeb7e1e5b Prepare to publish analyzer 13.3.0, _fe_analyzer_shared 103.0.0, analysis_server_plugin 0.3.18, analyzer_plugin 0.14.12, analyzer_testing 0.3.2
Change-Id: I0a5bf96733f2908160a6ef2ee99f54ef25f11547
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511480
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2026-06-11 10:59:52 -07:00
Konstantin Shcheglov 4b10d3e1d3 CQ. Remove GatheringDiagnosticListener.
Change-Id: I1d45d3ea4bf0e556851bf943b95076c11158d9cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511300
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2026-06-11 10:52:47 -07:00
Konstantin Shcheglov 47ba94ebea CQ. Switch ErrorReporterTest to simpler RecordingDiagnosticListener.
Change-Id: Iaf5a243ed0b35c369e254e5541448aab06c48b6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511280
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-11 10:51:44 -07:00
Konstantin Shcheglov 4473de2a5d CQ. Use inline expected diagnostics in PubspecDiagnosticTest(s).
Change-Id: Id6f8305c0f5e92ee48cf9c0ac1adc5c2e3a2d490
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511240
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-11 09:51:05 -07:00
Parker Lougheed 84088f6a8b [ddc] Migrate stack_trace_mapper to static JS interop
Also removes the dependency on `package:js` as this was the only remaining usage.

Fixes https://github.com/dart-lang/sdk/issues/54574

Change-Id: Icba5bce7fbc087ed2284754656bf06493c516009
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510100
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2026-06-11 09:32:44 -07:00
Konstantin Shcheglov c3c2986b82 CQ. Remove low value test/src/lint/lint_rule_test.dart
These tests only checked that MultiAnalysisRule.reportAtNode / reportAtToken
forward the supplied DiagnosticCode into DiagnosticReporter.

Change-Id: Iade193431ab28ff4c2ac5f9f77874f1dd3c821cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511200
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-11 08:59:53 -07:00
Konstantin Shcheglov 96c0be6601 CQ. Simplify LineInfoTest, stop using GatheringDiagnosticListener.
Change-Id: I7d859f80eb36b9d2e29ccdd013bcdc4c04ed8219
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511141
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2026-06-11 08:55:58 -07:00
Alexander Markov 9297d718a1 Revert "[test_runner] Invoke tests with relative paths."
This reverts commit b5294b9753.

Reason for revert: many failures on appjit, reload and fuchsia bots

Failure Link: <LINK TO FAILURE>

Original change's description:
> [test_runner] Invoke tests with relative paths.
>
> This makes tests more reproducible, and makes it easier to copy commands between workspaces, or between a failing bot and a local workspace.
>
> Change-Id: Ic8dd10a3540f314a406e5c5b0a23d97032e5d01d
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508364
> Reviewed-by: Alexander Aprelev <aam@google.com>
> Commit-Queue: Ryan Macnak <rmacnak@google.com>

Change-Id: Id7aa668c0609df65a5f622ae73013a15e7f9200e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511400
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2026-06-11 08:08:41 -07:00
Alexander Markov 8e0ba59c7a [vm,gardening] Possible fix for build failure on Flutter bots
This is an attempt to fix the following build failure which appears
on Flutter bots but not Dart CI bots:

```
../../../flutter/third_party/dart/runtime/vm/os_win.cc(260,13): error: no matching function for call to 'ReadProcessMemory'
  260 |   BOOL ok = ReadProcessMemory(GetCurrentProcess(), address, buffer,
      |             ^~~~~~~~~~~~~~~~~
../../../flutter/third_party/depot_tools/win_toolchain/vs_files/27370823e7\Windows Kits\10\Include\10.0.22621.0\um\memoryapi.h(152,1): note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned int *') to 'SIZE_T *' (aka 'unsigned long *') for 5th argument
  152 | ReadProcessMemory(
      | ^
  153 |     _In_ HANDLE hProcess,
  154 |     _In_ LPCVOID lpBaseAddress,
  155 |     _Out_writes_bytes_to_(nSize,*lpNumberOfBytesRead) LPVOID lpBuffer,
  156 |     _In_ SIZE_T nSize,
  157 |     _Out_opt_ SIZE_T* lpNumberOfBytesRead
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```

TEST=ci

Change-Id: Ic32a5f7750c92850e23c7a8e0e77b1d385e8fc17
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511440
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2026-06-11 08:07:37 -07:00
Konstantin Shcheglov d22b566c31 CQ. Migrate ManifestValidatorTest to inline expected diagnostics.
Change-Id: I499057965ea93aae9f550b9a383033ea6072db41
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511140
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-11 07:53:15 -07:00
Konstantin Shcheglov be4df1a869 API. Add Folder.getFile/Folder, deprecate getChildAssumingFile/Folder
This aligns names with ResourceProvider.getFile/Folder.

Change-Id: I30383ef1fa6f7cbe60b187338e25b8ca75806730
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511120
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-11 07:46:21 -07:00
Konstantin Shcheglov 649a56d6e4 CQ. Switch analysis options tests to inline expected diagnostics.
Change-Id: I2c33dbd645bd8611836cbcbab597a23165d1fb9e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511060
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-11 07:45:07 -07:00
Ankit Ranjan 6de2588d56 [vm/ffi] Migrate legacy multi-test files to Process.run
Migrates vmspecific_enable_ffi_test.dart and
abi_specific_int_incomplete_aot_test.dart away from legacy multi-test
markers. Since these tests verify VM/gen_snapshot compile-time errors
(not CFE errors), they cannot use // [cfe] expectations. Instead, they
now spawn a subprocess and verify the expected error is produced.

- vmspecific_enable_ffi_test: Runs helper with --enable-ffi=false, checks for error
- abi_specific_int_incomplete_aot_test: Compiles helper with `dart compile aot-snapshot`, checks for error

Both tests self-spawn AOT tooling (gen_snapshot) or the JIT `dart` CLI,
so they only run on the dartkp host bots and are skipped elsewhere
(ia32, android, fuchsia, qemu) via tests/ffi/ffi.status.

Fixes https://github.com/dart-lang/sdk/issues/60212

Change-Id: Ib2482c3172b20a4366f984da33544fc515b540c4
Cq-Include-Trybots: dart/try:vm-aot-android-debug-arm64c-try,vm-aot-android-debug-arm_x64-try,vm-aot-linux-debug-arm64-try,vm-aot-linux-debug-x64-try,vm-aot-linux-debug-x64c-try,vm-aot-mac-debug-arm64-try,vm-aot-mac-debug-x64-try,vm-aot-obfuscate-linux-release-x64-try,vm-aot-optimization-level-linux-release-x64-try,vm-aot-win-debug-arm64-try,vm-aot-win-debug-x64-try,vm-aot-win-debug-x64c-try,vm-asan-linux-release-arm64-try,vm-asan-linux-release-x64-try,vm-asan-mac-release-arm64-try,vm-asan-win-release-x64-try,vm-ffi-qemu-linux-release-arm-try,vm-ffi-qemu-linux-release-riscv64-try,vm-fuchsia-release-x64-try,vm-msan-linux-release-arm64-try,vm-msan-linux-release-x64-try,vm-tsan-linux-release-arm64-try,vm-tsan-linux-release-x64-try,vm-tsan-mac-release-arm64-try,vm-ubsan-linux-release-arm64-try,vm-ubsan-linux-release-x64-try,vm-ubsan-mac-release-arm64-try,vm-ubsan-win-release-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508020
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Ankit Ranjan <ankitranjandev@gmail.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2026-06-11 07:25:59 -07:00
Brian Wilkerson e171e636d5 Do not offer to bind a declaring parameter to a field
Closes https://github.com/dart-lang/sdk/issues/63540

Change-Id: I72f8f76878e5a058f58aca80b1543a1141a68b72
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511100
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2026-06-11 06:51:41 -07:00
Jens Johansen b32e313620 [vm] Introduce --script_uri_override to support Platform.script in dart run -r
If a script uses `Platform.script` running it with as `dart
<script.dart>` and `dart run <script.dart>` would give the correct
script ("<script.dart>"), but running it with `dart run -r
<script.dart>` would report a dill file in the temp directory which is
not only surprising, but also breaking and for instance running the CFEs
strong_suite.dart via `dart run -r` didn't work.

This CL introduces --script_uri_override to the VM and makes the
resident compiler setup pass it so that when running `dart run -r
<script.dart>`, even though the vm is actually launched from a dill file
that resides in temp, `Platform.script` will actually return
`<script.dart>` - and running the CFEs strong_suite.dart via `dart run
-r` now actually works.

Tested: Added pkg/dartdev/test/commands/run_test.dart and manual testing.
Change-Id: Ia65c01834485fe06af63584baf0448dd5b9ffdb4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510343
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2026-06-11 06:34:20 -07:00
Johnni Winther f3d47ab020 [cfe][InternalNodes] Remove InternalVariable.initializer
This removes the initializer property on InternalVariable together with various other internal delegations to the astVariable to make sure the InternalVariable is behaving has a normal InternalTreeNode.

Change-Id: I1f8469eeb3f80d815f3bb5676bf43e66067b82ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510841
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2026-06-11 06:12:25 -07:00
Lasse R.H. Nielsen f1fcecc81d Improve optimization of int & 0xFFFFFFFF.
Recognize a second operand if its `ToUint32` is `0xFFFFFFFF`,
not just the exact value. This includes fx `& -1`, which is output
by `toUnsigned(32)`.

Change-Id: Ieccb42591efd72b4aae62a7c6e678f05510abdc6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510960
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2026-06-11 06:09:58 -07:00
Johnni Winther 8e2d140fa5 [cfe][InternalNodes] Implement InternalVariable directly
This updates the InternalVariable hierarchy to be based on a sealed base class InternalVariable with no connection to IVariable. IVariable is removed and unused properties of InternalVariable are removed.

TEST=existing

Change-Id: Iacfbe9ab21d1c9aab043712099cd1ee6e4cee174
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510825
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2026-06-11 02:43:16 -07:00
Johnni Winther c390eb0931 [cfe][InternalNodes] Separate Variable from InternalVariable
This adds an InternalLegacyVariable the doesn't derive from LegacyVariable. This fully separates InternalVariable from Variable and assigned variable tracking and flow analysis is now changed to used InternalVariable instead.

TEST=existing

Change-Id: Ida9dc78d4f0e3fab3baf7a965273e1ddf68a80b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510341
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2026-06-11 02:43:16 -07:00
Nate Biggs 680f6e24d7 [co19] Roll co19 to ba5777c42fcc391253f5d51089a3b503654b53d7
2026-06-10 sgrekhov22@gmail.com Fixes dart-lang/co19#3851. Add test for representation variable, fix augmenting_constructors_A09_t02.dart (dart-lang/co19#3852)
2026-06-10 sgrekhov22@gmail.com dart-lang/co19#3847. Add method override inference tests (dart-lang/co19#3850)
2026-06-08 sgrekhov22@gmail.com dart-lang/co19#3315. Add tests for abbreviations. Part 3. (dart-lang/co19#3841)
2026-06-08 sgrekhov22@gmail.com Fixes dart-lang/co19#3844. Add tests for implicit const of enum constructors (dart-lang/co19#3845)
2026-06-08 sgrekhov22@gmail.com Fixes dart-lang/co19#3842. Fix typos in augmenting_variables_getters_setters_A03_t12/3.dart (dart-lang/co19#3843)

R=athom@google.com, eernst@google.com

Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try,dart2js-minified-linux-d8-try
Change-Id: I0193d307b55335268d8e5555176a6bfe360d9d01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510940
Auto-Submit: Nate Biggs <natebiggs@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2026-06-11 01:40:13 -07:00
Ryan Macnak 9bf5bfb83d [infra] Increase Linux ARM64 sanitizer test coverage.
Change-Id: Id9086913d0c3b7a0d88eaeb2ce8f2be17f80e285
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510541
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-06-10 16:12:39 -07:00
Martin Kustermann 892e6a8b53 [dart2wasm] Pass on @pragma('wasm:prefer-inline') to wasm-opt
Now that we have a way to tell binaryen to inline functions (see [0],
which added support for `(@binaryen.inline <0...127>)` annotations) we
can tell it to inline functions that were annotated with
`@pragma('wasm:prefer-inline')`

Since binaryen sometimes can devirtualize call sites that TFA cannot, it
can then inline those devirtualized calls.

[0] https://github.com/WebAssembly/binaryen/issues/7972

Change-Id: I139bd43976a1ddb83afe756d4fbac09419f7199e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510822
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2026-06-10 15:59:53 -07:00
Martin Kustermann 8e751fbc02 [dart2wasm] Remove deprecated mjs API functions
This is a re-land of [0] from 1.5 years ago.

[0] https://dart-review.googlesource.com/c/sdk/+/385020

Change-Id: I92747494f7c0d9dc43c09040ce06a523453994f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510823
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2026-06-10 15:52:03 -07:00
Martin Kustermann 5cd42e6b21 [dart2wasm] Start emitting binaryen.inline custom section
Binaryen introduced `binaryen.inline` which allows us to tell it
inlining hints now, including "never inline" hint (see [0])

This allows us to remove the ugly mangling of wasm function names with
`<noInline>` postfix.

We also now pass `--strip-toolchain-annotations`: The annotations
occupy size in the wasm binary and wasm runtimes ignore them (they are
for `wams-opt` only).

Except for IR tests: Here we want to see the annotations, so we keep
them there.

We also rename the package:wasm_builder classes to clearly indicate
those are binaryen specific sections.

We also make the ir_test.dart put it's options first, allowing the IR
tests to override options if needed.

[0] https://github.com/WebAssembly/binaryen/commit/3c25487214600a9

Change-Id: I96688bfaeba403a39cd5e7376f8d2889bcbae030
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510000
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2026-06-10 15:51:47 -07:00
Ryan Macnak b5294b9753 [test_runner] Invoke tests with relative paths.
This makes tests more reproducible, and makes it easier to copy commands between workspaces, or between a failing bot and a local workspace.

Change-Id: Ic8dd10a3540f314a406e5c5b0a23d97032e5d01d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508364
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-06-10 15:30:26 -07:00
dart-autoroll@skia-public.iam.gserviceaccount.com 9a4a02f9c5 Roll Fuchsia GN SDK from oOAcFhkoE2_-Sy67z... to a87CbQSWEjkPUK1ZY...
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-gn-sdk-dart-sdk
Please CC fuchsia-3p-engprod@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Fuchsia GN SDK: https://bugs.fuchsia.dev/p/fuchsia/issues/list
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-x64-try;luci.dart.try:vm-fuchsia-release-arm64-try
Change-Id: I93daef929f755d3b2cfb56c196769d51745fc42d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/509780
Reviewed-by: Zijie He <zijiehe@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2026-06-10 14:00:05 -07:00
Brian Wilkerson bdd383b966 Add a fix for unnecessaryPrimaryConstructorBody
Closes https://github.com/dart-lang/sdk/issues/63556

Change-Id: I04ff967649b1b834600578a2d38ca480b9d19ec6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511020
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2026-06-10 13:04:13 -07:00
Konstantin Shcheglov 78f9ab6cb8 Start analyzer 13.3.0-dev, analyzer_plugin 0.14.12-dev, analyzer_testing 0.3.2-dev, analysis_server_plugin 0.3.18-dev
Change-Id: I2a9e762e2f5b3fd4762ee0d0eb22296db0f3dff4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511021
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-10 13:03:15 -07:00
Ryan Macnak 49546393c6 Remove the JIT entitlement from gen_snapshot, take 2.
Push this down to VirtualMemory since some parts of the VM go there directly instead of through Page.

TEST=ci
Change-Id: Icc65242e9099e8785a38ba9e38311146d8b5845b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510260
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2026-06-10 12:56:03 -07:00
Ryan Macnak 9057e23671 Use a separate environment variable for RBE_expensive_exec_strategy.
The bots set RBE_exec_strategy=remote_local_fallback, which we don't want to override racing for the Dart actions.

Change-Id: I8739dc04af183fe2011e2589bd5480fd5a2daca1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/511001
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-06-10 12:52:31 -07:00
Brian Wilkerson 594efdd63c Add documentation for another warning
Change-Id: If31cfea7c3dc3379cc0e8eda454ac9fdec4a348d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/503942
Reviewed-by: Connie Ooi <connieooi@google.com>
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2026-06-10 12:21:26 -07:00
Ryan Macnak e82b6a24cd [infra] Include fastboot into the Android test shards.
Change-Id: Ib676bb9c177125889b7bc06cf976a23d3be3add8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510640
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-06-10 11:58:10 -07:00
Danny Tuppeny ff0cd5e0d6 [analysis_server] Don't warn on renames of private named parameters
Fixes https://github.com/dart-lang/sdk/issues/63433

Change-Id: I6e39d3b8c9379df07a677cabfcd9028a7bca79db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510840
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2026-06-10 11:57:21 -07:00
Konstantin Shcheglov bf71251dcd CQ. Remove ResolutionTest.error/message, all goes through inline expected diagnostics now.
Change-Id: I46fd2efe14e1bb46fa7ec12423c19fcf551bdca9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510660
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2026-06-10 11:25:41 -07:00
Konstantin Shcheglov cb41c7b055 CQ. Remove assertErrorsInList().
Change-Id: I51afa9bce21992d6093935d303034551e135c94d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510500
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-10 11:25:01 -07:00
Ryan Macnak 95b017937c [infra] Combine the GCC and MSVC builder configurations.
This also switches the MSVC builders to create_sdk.

Change-Id: I7ec46f91530003dc7e80f5740d1c4c23b755b65c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510860
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-06-10 11:23:21 -07:00
Ryan Macnak 6c3cf9ea51 Roll Clang from a3f244e2d555 to deb6854eec93
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/clang-dart-sdk
Please CC dart-engprod@google.com,dart-vm-gardener@rotations.google.com,dart-vm-team@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Clang: https://bugs.fuchsia.dev/p/fuchsia/issues/list?q=component%3AToolchain
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

TEST=ci
Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try;luci.dart.try:dart-sdk-linux-arm64-try;luci.dart.try:dart-sdk-mac-try;luci.dart.try:dart-sdk-mac-arm64-try;luci.dart.try:dart-sdk-win-try;luci.dart.try:vm-asan-mac-release-arm64-try
Change-Id: Iddd7439c096af8c37076756330a067ccb7d10a35
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510520
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-06-10 11:05:58 -07:00
Nourhan Hasan db905b9711 [vm/service]: Add OS::SafeReadMemory for Windows using ReadProcessMemory
TEST=runtime/vm/service_test.cc

Cq-Include-Trybots: dart/try:vm-asan-linux-release-x64-try,vm-asan-win-release-x64-try,vm-dyn-linux-debug-x64-try,vm-ffi-qemu-linux-release-arm-try,vm-ffi-qemu-linux-release-riscv64-try,vm-linux-debug-arm64-try,vm-linux-debug-ia32-try,vm-linux-debug-simriscv32-try,vm-linux-debug-simriscv64-try,vm-linux-debug-x64-try,vm-linux-debug-x64c-try,vm-linux-release-simarm-try,vm-msan-linux-release-x64-try,vm-reload-linux-debug-x64-try,vm-tsan-linux-release-x64-try,vm-ubsan-linux-release-x64-try,vm-ubsan-win-release-x64-try,vm-win-debug-arm64-try,vm-win-debug-x64-try,vm-win-debug-x64c-try
Change-Id: I7afabe66211657139981e18d8b1a14c2081d3f5b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/506640
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2026-06-10 10:58:15 -07:00
Konstantin Shcheglov 8267ce6fff CQ. Use more inline expected diagnostics.
Change-Id: I83743fee43718133df71dd33093056543dc83094
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510482
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-06-10 10:57:43 -07:00