Commit graph

101611 commits

Author SHA1 Message Date
pq f517dd6436 [wildcards] update UNUSED_ELEMENT reporting for local functions
Change-Id: Id15e72ae91ee46273a80bec7af447e5a0fa41cca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368880
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-05-30 22:27:18 +00:00
Devon Carew d36a8929ae Bump bazel_worker to 2ec90c023d7c62a38cfbd2f34f55093ab38ccf85
Changes:
```
> git log --format="%C(auto) %h %s" 2fb4fbf..2ec90c0
 https://dart.googlesource.com/bazel_worker.git/+/2ec90c0 bump lints dep and fix (92)

```

Diff: https://dart.googlesource.com/bazel_worker.git/+/2fb4fbff6ee8d26fee1f3576fa0500057d897afd..2ec90c023d7c62a38cfbd2f34f55093ab38ccf85/
Change-Id: I48be7e2254a99b83d53a7dea721d57ec7b56c2f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368820
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com>
2024-05-30 22:08:38 +00:00
Konstantin Shcheglov cecc7c8567 CQ. Rename InterfaceScope to InstanceScope.
Change-Id: If182c8a7baf476dde2b5f66c6cb7c7f87ff201cc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368761
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 21:33:48 +00:00
pq 65bcf1b0ab quick fix for SEALED_MIXIN_CLASS
Change-Id: I32e120d40301ac6fe7e3f239b29e0127815be69d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368882
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Auto-Submit: Phil Quitslund <pquitslund@google.com>
2024-05-30 21:28:40 +00:00
Ryan Macnak 6694cae4d7 [vm, gc] Incremental compaction, take 3.
- Use atomics to mark remembered cards in the write barrier stub.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/52513
Bug: https://github.com/dart-lang/sdk/issues/55754
Change-Id: I1f78c6b680a6ae9170613ba328a244335a6343e2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368480
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-05-30 21:01:39 +00:00
Ryan Macnak 16f3ad9078 [vm, compiler] Assert against unpredictable forms of load/store exclusive on ARM.
Make ARM64 disassembly closer to the standard form.

TEST=ci
Change-Id: I459093abe049835c6597b80c8020566054a12b48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368824
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-05-30 20:09:29 +00:00
Konstantin Shcheglov 31652ba921 Macro. Issue 55611. Support for type parameters as diagnostic targets, resolution.
Bug: https://github.com/dart-lang/sdk/issues/55611
Change-Id: Ifd42d594cb9f4bd6a790f406e507ac11fdb63289
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368881
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 18:44:45 +00:00
Konstantin Shcheglov 106e639734 Prepare to publish analyzer 6.5.2 and _fe_analyzer_shared 70.0.0
After https://dart-review.googlesource.com/c/sdk/+/368424

Change-Id: I7523f96507c7cca0bb074ba67f9a53338bae350c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368821
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 17:38:39 +00:00
なつき 0fba690acc [infra] Install alpine riscv64 sysroot
Closes https://github.com/dart-lang/sdk/pull/55875

GitOrigin-RevId: 46d7031db865173547f3d3b502f9c43a8172d8a9
Change-Id: I15e77d172d8db737d712463a40b27f5b7ca776b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368823
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2024-05-30 17:33:04 +00:00
Devon Carew 25d693c9f7 [deps] rev args, async, benchmark_harness, boolean_selector, collection, dartdoc, logging, markdown, shelf, yaml_edit
Revisions updated by `dart tools/rev_sdk_deps.dart`.

args (cf90551..b3608bd):
  b3608bd  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/args#275)

async (77a25d7..f933ddf):
  f933ddf  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/async#275)

benchmark_harness (accc755..6fa42b0):
  6fa42b0  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/benchmark_harness#106)

boolean_selector (2cbd4a6..84467e5):
  84467e5  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/boolean_selector#61)

collection (4718398..fe2e800):
  fe2e800  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/collection#344)

dartdoc (1e1a004..ed97585):
  ed975850  2024-05-28  Sam Rawlins  Fix flutter CI with re-internalized snippets tool (dart-lang/dartdoc#3776)

logging (49d89b1..7f722dc):
  7f722dc  2024-05-30  Jonas Finnemann Jensen  Add `topics` to `pubspec.yaml` (dart-lang/logging#164)

markdown (340c76f..c1013dc):
  c1013dc  2024-05-28  Kevin Moore  update lints dependency (dart-lang/markdown#613)
  7a3b8d6  2024-05-28  Sam Rawlins  Bump to 7.2.3 (dart-lang/markdown#612)

shelf (d9f82bf..338962c):
  338962c  2024-05-28  Kevin Moore  update lints dependency (dart-lang/shelf#433)

yaml_edit (3191934..963e7a3):
  963e7a3  2024-05-30  Jonas Finnemann Jensen  Update CHANGELOG.md (dart-lang/yaml_edit#82)
  8fdc96d  2024-05-30  Jonas Finnemann Jensen  Better logging in random_test.dart, and less overall noise from warnings (dart-lang/yaml_edit#81)

Change-Id: I8648cd3c740fbe8ad6a658ae5ed2b5be5c01e2ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368822
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 17:30:26 +00:00
Elliott Brooks 6805de2152 Update webdev dep
Change-Id: I279b44742f58fe5c7a19c79d4ef5c23784294c99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368503
Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2024-05-30 17:24:39 +00:00
Ben Konyi 02f32f320e [ package:vm_service ] Prep for 14.2.3 release
Change-Id: I2a861d2021553f2cc4b0dbdc2390bff4edf49f84
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368860
Auto-Submit: Ben Konyi <bkonyi@google.com>
Reviewed-by: Derek Xu <derekx@google.com>
Commit-Queue: Derek Xu <derekx@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2024-05-30 17:22:23 +00:00
Kenzie Schmoll 8b658eb6b7 Update DevTools rev to a53696352fe1508c18d908a85b68c113b11dbe58
Change-Id: I14a78c89238789fab06b0c4fe5c398213122df83
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368720
Commit-Queue: Kenzie Davisson <kenzieschmoll@google.com>
Reviewed-by: Elliott Brooks <elliottbrooks@google.com>
2024-05-30 16:50:41 +00:00
Paul Berry 547307e554 Add SharedType.nullabilitySuffix getter.
This allows TypeAnalyzerOperations.getNullabilitySuffix to be removed,
and allows shared code to access nullability suffixes directly as
properties of a type, in the same way that the analyzer does.

Change-Id: I33ab90798b779534b5b0b111ec5137845b32f23b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368443
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-05-30 16:43:29 +00:00
Paul Berry b4a4075d5d Remove isNonNullableByDefault parameter from isTypeWithoutNullabilityMarker.
There is no functional change, because all callers were passing `true`.

Change-Id: I59a70e16b543023ee84657cf4e0d7ef3e0d4de8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367420
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-05-30 16:37:47 +00:00
Ivan Inozemtsev be24c7942e Revert "[deps] rev args, async, benchmark_harness, boolean_selector, collection, dartdoc, markdown, shelf, web, web_socket_channel, webdev"
This reverts commit 9c5085ec5b.

Reason for revert: b/343654390

Original change's description:
> [deps] rev args, async, benchmark_harness, boolean_selector, collection, dartdoc, markdown, shelf, web, web_socket_channel, webdev
>
> Revisions updated by `dart tools/rev_sdk_deps.dart`.
>
> args (cf90551..b3608bd):
>   b3608bd  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/args#275)
>
> async (77a25d7..f933ddf):
>   f933ddf  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/async#275)
>
> benchmark_harness (accc755..6fa42b0):
>   6fa42b0  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/benchmark_harness#106)
>
> boolean_selector (2cbd4a6..84467e5):
>   84467e5  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/boolean_selector#61)
>
> collection (4718398..fe2e800):
>   fe2e800  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/collection#344)
>
> dartdoc (1e1a004..ed97585):
>   ed975850  2024-05-28  Sam Rawlins  Fix flutter CI with re-internalized snippets tool (dart-lang/dartdoc#3776)
>
> markdown (340c76f..c1013dc):
>   c1013dc  2024-05-28  Kevin Moore  update lints dependency (dart-lang/markdown#613)
>   7a3b8d6  2024-05-28  Sam Rawlins  Bump to 7.2.3 (dart-lang/markdown#612)
>
> shelf (d9f82bf..338962c):
>   338962c  2024-05-28  Kevin Moore  update lints dependency (dart-lang/shelf#433)
>
> web (d776645..f6f778b):
>   f6f778b  2024-05-28  Kenzie Davisson  Expose `onUnload` event stream and `ElementStream` as a public class (dart-lang/web#246)
>   e1d5148  2024-05-23  Kevin Moore  Update MDN source and doc comments (dart-lang/web#244)
>   53862f1  2024-05-22  Kevin Moore  update lints dependency (dart-lang/web#243)
>   7604578  2024-05-21  Srujan Gaddam  Only emit APIs that are standards track and not experimental (dart-lang/web#239)
>
> web_socket_channel (45b8ce9..afd1e3c):
>   afd1e3c  2024-05-23  Brian Quinlan  Remove `--fatal-infos` from `dart pub downgrade` analysis (dart-lang/web_socket_channel#367)
>   cb20b71  2024-05-23  Sarah Zakarias  Add `topics` to `pubspec.yaml` (dart-lang/web_socket_channel#362)
>   8514229  2024-05-22  Kevin Moore  Bump and fix lints (dart-lang/web_socket_channel#366)
>
> webdev (fc32eb6..1bed26a):
>   1bed26ab  2024-05-28  Elliott Brooks  Add a reload handler along with a restart handler (dart-lang/webdev#2439)
>   15028c4f  2024-05-24  Elliott Brooks  Register a restart handler directly over the VM service connection (dart-lang/webdev#2437)
>
> Change-Id: I4e80ae77b6e74b9cd0b5524b1ba66e0f3de0a14e
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368445
> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
> Auto-Submit: Devon Carew <devoncarew@google.com>

Change-Id: Ief02507626fe2ef4e8a92e20872a0fec37ae3b71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368800
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Auto-Submit: Ivan Inozemtsev <iinozemtsev@google.com>
2024-05-30 15:52:12 +00:00
Parker Lougheed fef2ba30a6 [dartdev] Avoid unnecessary uses of late
Change-Id: I702e5c91e803b06dd1321efe563c104bc00c19d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368740
Reviewed-by: Derek Xu <derekx@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2024-05-30 14:55:21 +00:00
Keerti Parthasarathy e3f2d23433 [clean up]Move local_library_contributor.dart to cider directory.
local_library_contributor is used only in the cider completions and should be alongside the rest of the cider completion code.

Change-Id: Id11ffaf50c59437a58284c6deb8ac406faf7cada
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368660
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2024-05-30 14:27:39 +00:00
Martin Kustermann 7f3b61fc0c [dart2wasm] Roll binaryen to g3 version
The binaryen bug we encountered (see [0]) recently was fixed, so we can roll
forward now.

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

Change-Id: Ia34551935f2a2ca5786059416b5ab17e9d43aa06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368646
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-05-30 14:04:23 +00:00
Johnni Winther 1315b3ab72 [kernel] Remove isNonNullableByDefault from checkBounds and instantiateToBounds
Change-Id: Ie1faa72cd1d9eaae65e1fb2fd44bf7a70b94a025
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368641
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-05-30 13:51:46 +00:00
Jens Johansen c543ceb96a [CFE] Small changes to direct-from-parser ast
Unrelated to anything. Done when I was trying something else that didn't
pan out.

Change-Id: Idd8e03fa142d3ec9d373956d3cc6163d828d4314
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368801
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2024-05-30 13:44:02 +00:00
Chloe Stefantsova be12c49339 [cfe] Allow augmenting top-level members in the same file
Change-Id: Ie512f1086d8d4a377dbec4fca206079dbbd80433
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366760
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2024-05-30 13:32:25 +00:00
Paul Berry 5bb928002e Remove isNonNullableByDefault parameters from methods in StandardBounds.
There is no functional change, because all callers were passing `true`.

Change-Id: I304b0694946565bd765d3fd10fc2a77bda201117
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368501
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-05-30 13:21:18 +00:00
Vyacheslav Egorov ee30aa4d26 [build] Use gen_kernel.exe when building kernel_service.dill
Shortens rebuilds of dart target after core library edits to
8s from ~24s

Change-Id: Ic66334f3810277fcdd2b26cd1bed4b72a824a0f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368802
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-05-30 13:19:55 +00:00
Johnni Winther 1b9ccb9b08 [cfe] Remove isNonNullableByDefault from TypeSchemaEnvironment
Change-Id: Ife1951833bf5e6f5146e33734ae3b0cd3805bdc7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368640
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-05-30 12:34:59 +00:00
Johnni Winther 450ddd82f8 [cfe] Update expectations after change to test suite
Change-Id: Idb88b149576f03a443d8e71f263a443cd32e17d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368562
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2024-05-30 11:25:43 +00:00
Jens Johansen 13d22de115 [CFE] Fix time-regression on using generateKernelInternal in expectation tests
After 9a9b33eb0b running the strong suite
(for instance) got noticeably slower.

The most obvious change is the we no longer cache uri translators,
and while that does add _something_, the main culprit for being quite
a bit slower is that it now verifies all fuzzing compiles too.
It didn't before.

Before running 1 of 10 shards took ~43 seconds, spending ~0.7 seconds on
getting uri translators and performing 298 verifications.

Now running the same thing takes ~64 seconds (in round numbers that's
+50%), spending ~3.7 seconds on getting uri translators and performing
3004 verifications.

Disabling verification when fuzzing makes it go to taking ~51 seconds,
spending ~4.2 seconds on getting uri translators and performing
298 verifications.

The main reason for the getting more uri translators (for the same run,
now: 1824, before: 293) is that the packages uri is now set on the
options (i.e. is non-null) making the incremental compiler force getting
a new uri translator (as the previous "known" was null, meaning that it
"matched" before (both was null), but doesn't now).

Fixing both of these and rerunning 5 times (turns out the runtimes vary
quite a bit) I get to (in seconds):

Before 9a9b33eb0b:
43
50
49
43
45

With this CL:
44
50
46
52
47

Where there's "no difference proven at 95.0% confidence".

Change-Id: Icc20083566cecb4daa27728c7801d50969d87e14
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368643
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2024-05-30 11:25:35 +00:00
Tess Strickland 6e5bb2cd5d [vm/compiler] Mark the base impl of PrintBlockHeaderTo as UNIMPLEMENTED.
The previous CL made it a pure virtual method, but if the IL printer
is not included, this implementation never gets overridden in
non-abstract subclasses.

TEST=ci

Cq-Include-Trybots: luci.dart.try:vm-ffi-android-release-arm-try
Change-Id: I904ff6facc94ff03f604f250a35de390212c2d31
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368780
Auto-Submit: Tess Strickland <sstrickl@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2024-05-30 10:46:21 +00:00
Tess Strickland 5aca47f3f3 [gardening] Remove erroneous ASSERT in AddressCanHoldConstantIndex.
The ASSERT checks that there will be no overflow in computing the byte
offset from the index. However, any instruction that uses this method is
preceded by a bounds check of the index, and an index that would cause
the byte offset calculation to overflow is guaranteed to fail the bounds
check. Thus, this is dead code that will never be executed at runtime
and it is okay to emit code to perform the erroneous offset calculation.

TEST=vm/dart/regress_55864

Fixes: https://github.com/dart-lang/sdk/issues/55864
Change-Id: If4126e412368b8307be3c787ccb6bd451764c73f
Cq-Include-Trybots: luci.dart.try:vm-aot-linux-debug-simarm_x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368563
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2024-05-30 10:09:46 +00:00
Tess Strickland 38680a7c29 [vm] Avoid truncated initial definitions in FlowGraphPrinter.
FlowGraphPrinter::PrintOneInstruction uses a stack-allocated
statically-sized buffer to print the instruction. If the instruction is
a block entry with initial definitions, then that buffer would need to
be large enough to hold the printed information for the block entry and
all of its initial definitions. However, in some pathological cases,
like the Dart fuzzer, graphs are created where the initial definitions
can end up truncated due to the use of a large number of constants.

Instead, add the following protected methods to
BlockEntryWithInitialDefs:

* PrintBlockHeaderTo, a pure virtual method that specifies how to print
  the block header information, overridden in each subclass.

* PrintInitialDefinitionsTo, a non-virtual method that prints the
  initial definitions. It takes an additional argument, a callback which
  takes the buffer being used for printing, and invokes the callback
  after printing each initial definition.

Also adds BlockEntryWithInitialDefs::PrintTo, which calls
PrintBlockHeaderTo and PrintInitialDefinitionsTo in sequence, providing
a no-op callback to the latter, and removes the PrintTo overrides in
the subclasses in favor of this base implementation.

Adjusts FlowGraphPrinter::PrintOneInstruction to call PrintBlockHeaderTo
and PrintInitialDefinitionsTo for BlockEntryWithInitialDefs
instructions, providing a callback that prints the current contents of
the buffer and then clears it. With this, it is unlikely using a
statically-sized stack-allocated buffer as an intermediate will cause
truncation, as each initial definition usually fits on a single line.

TEST=ci (internal debugging-only output, tested manually)

Issue: https://github.com/dart-lang/sdk/issues/55864
Change-Id: I7a7919cd6d76a22e018603240fe0ba6a09c2e6d3
Cq-Include-Trybots: luci.dart.try:vm-aot-mac-release-arm64-try,vm-aot-linux-debug-simarm_x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368580
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2024-05-30 09:33:29 +00:00
Johnni Winther 9a9b33eb0b [cfe] Use generateKernelInternal in expectation tests
Change-Id: I09026eb9cd11d2bcc136a4f7448038ae270df8a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357607
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2024-05-30 08:17:18 +00:00
Johnni Winther 5d8d7941ac [cfe] Remove unnecessary use of Nullability.legacy
TEST=existing

Change-Id: I53b749c53e5f742d778c07571aafb7aff6325c9b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368560
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2024-05-30 08:10:29 +00:00
Simon Binder ff6e1df848 [macros]: Remove type argument from StaticTypeImpl
This is a follow-up to the previous CL adding support for named static
types and instantiations to macros
(https://dart-review.googlesource.com/c/sdk/+/348920).

The type argument on `StaticTypeImpl` was not necessary so this CL
removes it.

Change-Id: I1e309c819be86f7f81ba4b7a418ed1f22ba7ac8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368424
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2024-05-30 07:51:32 +00:00
Jens Johansen 8e168fc9f1 [kernel] ast-to-text: Print uri in more places
Constructors (say from a macro), typedefs (maybe from a part) and
FileUriExpression in general didn't write their file uri when different
from their surrounding container.

Change-Id: I70dc8cbb525a6fc2c1949e0d1fb1726ac19c6505
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368566
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2024-05-30 07:22:38 +00:00
Ömer Sinan Ağacan 416f532385 Fix a typo and a link in docs
Change-Id: Ic65318796672dc0eb5f1efb84dcb371042031937
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368561
Reviewed-by: Devon Carew <devoncarew@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
2024-05-30 07:13:09 +00:00
Konstantin Shcheglov bd4ae9b309 QuickFix. Issue 55805. Create extension getter.
Bug: https://github.com/dart-lang/sdk/issues/55805
Change-Id: I52f1cdf036e17dda4e91da98beef19184f68a965
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368502
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 01:37:21 +00:00
pq 13fb73dfec quick fix for FINAL_CONSTRUCTOR
Change-Id: I9bd7f97eeec41a9efc608bea3911f3443c4d7063
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368682
Auto-Submit: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-05-29 22:36:57 +00:00
pq a76936859e quick fix for CONST_FACTORY
Change-Id: Idc768c8528917ee8a8f5f706d62c3b9651484b53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368702
Auto-Submit: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-05-29 21:34:58 +00:00
Jackson Gardner a479f91e80 Throw an RPC error when calling methods on a disposed connection.
This is consistent with the way we handle outstanding requests when the
service is disposed. Note that some of the devtools code in flutter
expects and handles this RPC error in some cases.

Change-Id: I56aae14f898b6d62b77d10ef50dec63ae96d507d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367821
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Jackson Gardner <jacksongardner@google.com>
2024-05-29 20:43:39 +00:00
Kallen Tu 429f3e1a8d [wildcard-variables] Tests with this and super initializing formal parameters.
Next set of tests with initializing formal parameters.

Bug: https://github.com/dart-lang/sdk/issues/55652
Change-Id: I1d8ff69249ad75c8065a159c333f91b62b30f769
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367822
Commit-Queue: Kallen Tu <kallentu@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
2024-05-29 20:37:55 +00:00
Konstantin Shcheglov 28da71b42d QuickFix. Issue 55804. Don't suggest creating local vriable when it is a name of property.
Bug: https://github.com/dart-lang/sdk/issues/55804
Change-Id: Ib61c025855464e1b7f01116234624d936ee9bc89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368701
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-29 20:22:59 +00:00
Konstantin Shcheglov 04d7213fe8 QuickFix. Issue 55804. Don't suggest creating mixin when it is a name of property.
Bug: https://github.com/dart-lang/sdk/issues/55804
Change-Id: Ibbdeac3a662ef140fb88e834416f064c899365bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368681
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-29 20:22:50 +00:00
Konstantin Shcheglov d047d44bf0 Macro. Issue 55611. Support for type parameters as diagnostic targets.
Bug: https://github.com/dart-lang/sdk/issues/55611
Change-Id: I429de25be81f8d51bfe57131e19ffb4ad737f467
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368700
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-05-29 19:58:09 +00:00
Derek Xu b53b6b7f0b [DDS] Start running tests that are currently getting skipped
The test runner only runs files that end with "_test.dart". This is
evidenced by
https://dart-current-results.web.app/#/filter=pkg/dds/test&showAll
not showing any results for the tests renamed in this CL.

The tests renamed in this CL were found by runnning
`find pkg/dds/test | sed "/.*_test[.]dart/d"`

Some changes had to be made to
pkg/dds/test/client_resume_approvals_no_longer_require_permission_test.dart
after renaming it, the other tests did not have to be changed after
getting renamed.

Change-Id: Ib3b30ba784b182e4cc014d93aa5d8a792f8bb457
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367700
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Derek Xu <derekx@google.com>
2024-05-29 19:56:57 +00:00
Ryan Macnak f72f43096c [standalone] Increase AppJIT alignment to 64k.
Linux ARM64 may have a page size of 4k, 16k, or 64k.

Cf. 935b69e676.

TEST=no 64k device available
Bug: https://github.com/flutter/flutter/issues/148659
Change-Id: I1894db74bc61719f7deb2537bc3ff17168644ed1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368525
Reviewed-by: Brian Quinlan <bquinlan@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-05-29 19:35:29 +00:00
Devon Carew b3178802df Bump http to 6337ee3f6d1f641192ba40e133f27085c69aa815
Changes:
```
> git log --format="%C(auto) %h %s" 7df2ac8..6337ee3
 https://dart.googlesource.com/http.git/+/6337ee3 Mark flutter .metadata files as generated (1214)
 https://dart.googlesource.com/http.git/+/bd18656 Add a skeleton package:ok_http (1212)
 https://dart.googlesource.com/http.git/+/a2e241b [cronet_http] Apply relevant rules with the ProGuard (1204)
 https://dart.googlesource.com/http.git/+/0937562 Allow `1000` as a WebSocket close code (1211)
 https://dart.googlesource.com/http.git/+/f361779 Ready cupertino_http 1.5 for publish (1210)
 https://dart.googlesource.com/http.git/+/4726f43 Integrate cronet_http with `package:http_profile` (1167)
 https://dart.googlesource.com/http.git/+/46d49e3 Integrated cupertino_http with package_http_profile (1079)
 https://dart.googlesource.com/http.git/+/ad2e827 Remove files that are covered by .gitignore (1208)
 https://dart.googlesource.com/http.git/+/4b65331 Update `topics` in package "http" (1205)
 https://dart.googlesource.com/http.git/+/1a1b939 Add explanation about why `package:web_socket` exists (1207)

```

Diff: https://dart.googlesource.com/http.git/+/7df2ac8488ec69ee5945ae188625c0e820c4f63c..6337ee3f6d1f641192ba40e133f27085c69aa815/
Change-Id: I82cad825074618b1bac30a3b8cf71cb6f0424ac7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368680
Reviewed-by: Brian Quinlan <bquinlan@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2024-05-29 19:30:38 +00:00
Jelle van der Waa 18b40a3b27 replace logging.warn with logging.warning
Closes https://github.com/dart-lang/sdk/pull/55843

GitOrigin-RevId: e0a5f9c2cc42bb7d977bb2e41f8e872c44ef6990
Change-Id: Ie7ecc2a86ea1ac9fa57ff2c50c50363c577e819e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368203
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2024-05-29 19:07:56 +00:00
Devon Carew 9c5085ec5b [deps] rev args, async, benchmark_harness, boolean_selector, collection, dartdoc, markdown, shelf, web, web_socket_channel, webdev
Revisions updated by `dart tools/rev_sdk_deps.dart`.

args (cf90551..b3608bd):
  b3608bd  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/args#275)

async (77a25d7..f933ddf):
  f933ddf  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/async#275)

benchmark_harness (accc755..6fa42b0):
  6fa42b0  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/benchmark_harness#106)

boolean_selector (2cbd4a6..84467e5):
  84467e5  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/boolean_selector#61)

collection (4718398..fe2e800):
  fe2e800  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/collection#344)

dartdoc (1e1a004..ed97585):
  ed975850  2024-05-28  Sam Rawlins  Fix flutter CI with re-internalized snippets tool (dart-lang/dartdoc#3776)

markdown (340c76f..c1013dc):
  c1013dc  2024-05-28  Kevin Moore  update lints dependency (dart-lang/markdown#613)
  7a3b8d6  2024-05-28  Sam Rawlins  Bump to 7.2.3 (dart-lang/markdown#612)

shelf (d9f82bf..338962c):
  338962c  2024-05-28  Kevin Moore  update lints dependency (dart-lang/shelf#433)

web (d776645..f6f778b):
  f6f778b  2024-05-28  Kenzie Davisson  Expose `onUnload` event stream and `ElementStream` as a public class (dart-lang/web#246)
  e1d5148  2024-05-23  Kevin Moore  Update MDN source and doc comments (dart-lang/web#244)
  53862f1  2024-05-22  Kevin Moore  update lints dependency (dart-lang/web#243)
  7604578  2024-05-21  Srujan Gaddam  Only emit APIs that are standards track and not experimental (dart-lang/web#239)

web_socket_channel (45b8ce9..afd1e3c):
  afd1e3c  2024-05-23  Brian Quinlan  Remove `--fatal-infos` from `dart pub downgrade` analysis (dart-lang/web_socket_channel#367)
  cb20b71  2024-05-23  Sarah Zakarias  Add `topics` to `pubspec.yaml` (dart-lang/web_socket_channel#362)
  8514229  2024-05-22  Kevin Moore  Bump and fix lints (dart-lang/web_socket_channel#366)

webdev (fc32eb6..1bed26a):
  1bed26ab  2024-05-28  Elliott Brooks  Add a reload handler along with a restart handler (dart-lang/webdev#2439)
  15028c4f  2024-05-24  Elliott Brooks  Register a restart handler directly over the VM service connection (dart-lang/webdev#2437)

Change-Id: I4e80ae77b6e74b9cd0b5524b1ba66e0f3de0a14e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368445
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
2024-05-29 17:50:09 +00:00
Helin Shiah 70988840f2 Add type Event ot postEvent
IntelliJ expects a "type" field for events; otherwise the JSON will not be parsed correctly. This came up as part of making the widget rebuild table in DevTools clickable (https://github.com/flutter/devtools/issues/4564)

I'm not totally sure this is the change I need, as I don't know how to test this out end-to-end (build Dart SDK and put into Flutter SDK, then run an app with these changes in DDS?). I think it's right because I'm modifying a spot that was first added in https://dart-review.googlesource.com/c/sdk/+/304981, which added `postEvent` in dds_service_extension.

Change-Id: I9a78903dca7855896b6a9b9c3f9e1d62dcb7099e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368202
Reviewed-by: Dan Chevalier <danchevalier@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2024-05-29 17:49:34 +00:00
Paul Berry 9ee7bb59f9 Remove OperationsCfe.omittedNullabilityValue.
There is no functional change, because all callers were passing
`Nullability.nonNullable`.

Change-Id: Iaaf6a69362079343ebef5c8097a2885ef1788c4c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368500
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2024-05-29 16:56:09 +00:00