Commit graph

100423 commits

Author SHA1 Message Date
Kenzie Schmoll 77ac59ad09 Update package:devtools_shared dep to version 8.0.1
Change-Id: I4f2acded3f990f965ff96813b20a033775f9e87a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358223
Commit-Queue: Kenzie Davisson <kenzieschmoll@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2024-03-18 18:16:53 +00:00
Konstantin Shcheglov a09fa058d2 Completion. Issue 38235. Check if isPostfixCompletionApplicable invoked inside a comment.
Bug: https://github.com/dart-lang/sdk/issues/38235
Change-Id: I97108bb549d220d45dba35147c0e1fe53fe6b597
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357985
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-18 18:12:24 +00:00
Konstantin Shcheglov 28210d7793 Completion. Issue 55186. Suggest field formal parameter names even when starts with keyword.
Bug: https://github.com/dart-lang/sdk/issues/55186
Change-Id: I6f17e6fad9fe135737d75fb08200dae190c95ea1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357943
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-18 18:08:50 +00:00
Konstantin Shcheglov e0d6fd040e Completion. Issue 35449. Don't suggest @protected instance members when not available.
Bug: https://github.com/dart-lang/sdk/issues/35449
Change-Id: Ie8d0b3ba354addbf42d2a4efe9c4dbf318e6c659
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358120
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-18 18:02:29 +00:00
Zach Anderson 87473f8e65 Update dart-lang/tools revision
To pick up the fixes for https://github.com/dart-lang/tools/issues/252

Change-Id: Ib0d5b8810d8c785df1e3990f3428df8dc4834297
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358220
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2024-03-18 17:14:10 +00:00
Parker Lougheed c78eb9b38f [dartdev] Update web template for package:web updates and docs
- Updates dependency constraints, primarily package:web to 0.5.1
- Uses named import for package:web as a good practice
- Updates README with a few links to relevant documentation resurces

Change-Id: Id36c27808887e11e0d620b8e3554b5e8333500e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357861
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2024-03-18 16:49:59 +00:00
Danny Tuppeny d931bec5d3 [dds/dap] Fix an issue with DAP Source.name being file paths when package: and dart: URIs are expected
The move to URIs introduced a subtle bug here - we would use the mapped URI (which is almost always `file:`) to decide whether to show a file path, instead of doing it only if the unmapped URI was a `file` (eg. it could have been `package:` or `dart:`.

This wasn't caught by any tests here, but was caught in the Flutter roll (https://github.com/flutter/flutter/pull/145235). This fixes it and adds a new test that we verify the Source names for local files, packages, and dart: URIs.

Change-Id: I282bf935b9fa4016abeafd556dfd368950ee9611
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357325
Commit-Queue: Helin Shiah <helinx@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Helin Shiah <helinx@google.com>
2024-03-18 15:53:49 +00:00
asiva 88bb72f47f [VM] - Remove redundant invocation of VM benchmarks with --sound-null-safety flag.
The VM is by default sound null safe and so it is not necessary to run
the benchmark again with --sound-null-safety flag.

Corresponding changes have been made to the actual benchmark suite.

TEST=ci

Change-Id: Id844da0e0c2e7b6b411a2fcecfdc3d1ec2232c35
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357220
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2024-03-18 15:47:19 +00:00
Sam Rawlins b11c83f7f7 analyzer: Tweak DIVISION_OPTIMIZATION warning.
Only report if the operands are ints.

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

Change-Id: Ifcabf0fc66acfa53358b87c8f6eebb418d553e48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357942
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
2024-03-18 15:38:35 +00:00
David Morgan 696bdeb2c6 [macros] Don't search for package config in macro namespace.
If search for package config fails, the resolved package config was
being represented as null causing the macro build to go looking for it
again and fail with a confusing error.

Instead, use empty Uri to represent failed search for package config.
The doc comment for the package config Uri says empty Uri means
"no package config", but that doesn't actually work; make it work.

The macro compile will still fail because it needs a package config
to find the macro deps.

R=johnniwinther@google.com

Change-Id: I3a0e3e4a976782f2f5e326537c7e0e6415d5fecf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356082
Auto-Submit: Morgan :) <davidmorgan@google.com>
Commit-Queue: Morgan :) <davidmorgan@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2024-03-18 13:19:50 +00:00
Sigurd Meldgaard 5ab288bbe2 Bump pub to 79952b99861109c526f8fc6c513d1ac297c690d9
Changes:
```
> git log --format="%C(auto) %h %s" e519de6..79952b9
 https://dart.googlesource.com/pub.git/+/79952b99 Support advisories with several affected packages with 'pub' a… (4176)
 https://dart.googlesource.com/pub.git/+/958069f5 rename RetrieveFlags.option to RetrieveFlags.optionWithDefault (4181)

```

Diff: https://dart.googlesource.com/pub.git/+/e519de6b6da5aea4f78e58f8906059cc6c2a5993..79952b99861109c526f8fc6c513d1ac297c690d9/
Change-Id: I7ce2c0c935859b56e88f58ffe7f400663d2b1ab9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357326
Reviewed-by: Sarah Zakarias <zarah@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2024-03-18 12:56:37 +00:00
Johnni Winther f46725601b [cfe] Skip VM for weak mode tests
This disables the running of the .dill for weak mode, in preparation
for the VM ending support for --no-sound-null-safety.

The environment keys are also refactored to be defined in one location.

Change-Id: Ia08177f074673c410c8d92a4832047849f008b4a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358160
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2024-03-18 11:47:46 +00:00
David Morgan a3f8fb9578 [test_runner] Fix error parsing: paths do not contain newlines.
This stops over-matching which was causing paths to be incorrect when there were multiple errors, breaking the expectation updater.

R=srujzs@google.com

Change-Id: I357d0c96ed2d5bc3658d6cc2eb9ca82f86860818
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357700
Commit-Queue: Morgan :) <davidmorgan@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Auto-Submit: Morgan :) <davidmorgan@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2024-03-18 09:10:25 +00:00
Konstantin Shcheglov 1eab8550ea Completion. Issue 55186. Suggest variable names after incomplete field.
Bug: https://github.com/dart-lang/sdk/issues/55186
Change-Id: I2cc2e5b7df6c3a25e157aa36b04c2bb44fbe3a28
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358020
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-16 21:56:56 +00:00
Erik Ernst 8c3a7b0414 Add two bit operation tests.
Add `bitops_unsigned_js_test.dart`, testing JS semantics with bit operations, and add `bitops_unsigned_shared_test.dart`, testing the semantics of bit operations in the subdomain (uint32) where the results coincide with webNumbers and with native numbers.

CoreLibraryReviewExempt: Is web specific, does have an area-web review.
Change-Id: I35ad1f78161a282780c3ec73da7823fee05c506c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/158014
Reviewed-by: Jake Macdonald <jakemac@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2024-03-16 12:56:21 +00:00
Elliott Brooks 72b414306d [DAP] Do not kill negative pids on disconnection.
This was causing a bug in Cider where if the VM didn't have a pid set, it defaulted to -1, and killing -1 causes Linux to kill everything that it can.

Bug: https://github.com/dart-lang/sdk/issues/55209
Change-Id: I2dae8cf8ecf718a209df9db33f81cecf6ee48d39
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357501
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
2024-03-16 00:51:10 +00:00
Srujan Gaddam 7685ec3e0e [dart:js_interop] Better error reporting for invalid external types
Closes https://github.com/dart-lang/sdk/issues/54320

Several improvements to the error reporting:

- Split errors to avoid parametrizing error strings.
- Use one error per member/toJS invocation.
- Highlight the invalid types in the signature.

Extra tests are added to get coverage for things like operators.

Change-Id: I6d8ac3cf0124730e7c2c0dab3a107da5d0263f7a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/347226
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2024-03-15 23:36:22 +00:00
Ryan Macnak f792cc1d61 [vm] Also set immutability bit when deserializing.
Currently the immutable bit is a of function of the class. If we start having some instances of a class be immutable and others not, we will need separate clusters like we do for the canonical bit.

TEST=vm/dart/snapshot_immutable_bit_test
Bug: https://github.com/dart-lang/sdk/issues/55136
Cq-Include-Trybots: luci.dart.try:vm-appjit-linux-debug-x64-try
Change-Id: I073f28cabca8293b766aa7c0b224934a62bf9cb4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356280
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-03-15 22:24:24 +00:00
Konstantin Shcheglov d918ac16b3 Completion. Cache 'inConstantContext' value.
For package:collection, computing measures.

Before: 0:01:00.236000
After:  0:00:55.977000

So, about 7% faster.
I think this translates into actual completion speed up.

Change-Id: I45f0c0186d5988e6e1b043d465030668cd61335b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357982
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-15 20:38:36 +00:00
Konstantin Shcheglov 1473c306a1 Completion. Move 'allowedIdentifiers' to the top of test methods.
Change-Id: Ibed4bd2c284e3b90f1b5477a22c5559857530e51
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357981
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-15 19:47:59 +00:00
Ben Konyi 6699bf7ffa [ package:dds ] Prepare for 3.3.0 release
Change-Id: I66bfbe591c46698734cd2ce7aa772f032a91a99a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358000
Reviewed-by: Derek Xu <derekx@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2024-03-15 19:35:58 +00:00
Alexander Aprelev c5946a1195 [vm] Ensure CpuInfo Windows flag detection works.
Fixes https://github.com/flutter/flutter/issues/140138
TEST=manually on win x64 with `__ int3();` added in front of `roundsd` and forced `CpuId::sse41=false;`
Change-Id: I9e2dbf2615549dcc7c979036b5442276c2e0fb29
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357218
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2024-03-15 19:26:13 +00:00
Konstantin Shcheglov 94abcc81ab Completion. Use CompletionSuggestionBuilder in completion metrics, faster.
For sdk/pkg/analyzer_cli

Before: 0:01:32.542000
After:  0:00:33.254000

So, about 3 times faster.

Change-Id: I8eae44eeefd5624f88a42fe37b8ae1c29427ee49
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356310
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-15 19:08:23 +00:00
Konstantin Shcheglov 1e17df5aec Completion. Issue 55206. Fix completion of partial property access before another identifier.
Bug: https://github.com/dart-lang/sdk/issues/55206
Change-Id: I247464934aa41491ac6e051a28a680c3fe68d2bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357921
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-15 18:53:38 +00:00
Brian Wilkerson bada292ee8 Add docs for more of the recommended lints
Change-Id: Id9902af6bf6e7d8dec47c5df47e5f9f8456fdad5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357184
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Marya Belanger <mbelanger@google.com>
2024-03-15 18:53:00 +00:00
Brian Wilkerson db1b6018ca Convert the identifier contributor to the new structure
Change-Id: I99b5b1286a314e4c612b33dcfea9c2acb9b6740d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357940
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2024-03-15 18:09:29 +00:00
Daco Harkes 51ed0e5b07 [vm/test] Fix imports
Reduces the number of warnings originating from runtime/tests/vm/dart.

Change-Id: I0f6f527145c9b389952b5fa09a9d4e03824b9bf3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357900
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
2024-03-15 17:21:30 +00:00
Konstantin Shcheglov aa58a628e2 Completion. Issue 55198. Fix completion after 'if' statement.
Bug: https://github.com/dart-lang/sdk/issues/55198
Change-Id: I50032b8cc24c4b0e4961dba5afd8ee8414810b03
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357780
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-15 16:51:15 +00:00
Vyacheslav Egorov 63179aa49d Revert "[vm/compiler] Pass arguments in registers"
This reverts commit 1ab083ae48.


Revert "[vm] Unbreak build with -Wctad-maybe-unsupported"

This reverts commit 734e0735bd.


Revert "[vm, compiler] Account for pair locations in MoveArgumentInstr on riscv32."

This reverts commit 52f7908b27.

Reverting due to https://github.com/dart-lang/sdk/issues/55180: there is mismatch in the calling convention when invoking _IntListMixin.getRange.

R=kustermann@google.com
TEST=this is a revert

Change-Id: Ic3a3013706280ebd80b04d5e6a830e5f56987384
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357881
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2024-03-15 14:18:06 +00:00
Sigurd Meldgaard 74c94ee2d3 Bump pub to e519de6b6da5aea4f78e58f8906059cc6c2a5993
Changes:
```
> git log --format="%C(auto) %h %s" 5b5fdd3..e519de6
 https://dart.googlesource.com/pub.git/+/e519de6b Refactor `Entrypoint.rootDir` preparing for workspaces (4179)
 https://dart.googlesource.com/pub.git/+/c60b1a05 Allow relative path-dependencies from git dependencies
 https://dart.googlesource.com/pub.git/+/e08f7202 Make ensureUpToDate static (4171)
 https://dart.googlesource.com/pub.git/+/539457d2 More robust snapshot deletion (4170)
 https://dart.googlesource.com/pub.git/+/3b837a17 Show progress while downloading dependencies (4175)
 https://dart.googlesource.com/pub.git/+/4e48ab75 Use resident compiler to start test runner (4174)
 https://dart.googlesource.com/pub.git/+/6758a570 Fix typo (4173)
 https://dart.googlesource.com/pub.git/+/93dc0a1e Use the 'pub_display_url' field in advisories in output of pub get/up… (4172)
 https://dart.googlesource.com/pub.git/+/039ca5e4 Remove Entrypoint._configRoot (4169)
 https://dart.googlesource.com/pub.git/+/85304da4 Refactor test setup for security advisories (4167)
 https://dart.googlesource.com/pub.git/+/161bee84 Move helpers inside ensureUpToDate (4166)
 https://dart.googlesource.com/pub.git/+/badcd8d7 Mention zshrc as possible shell config file (4163)
 https://dart.googlesource.com/pub.git/+/44bd80e4 isUpToDate based on package_config.json (4160)
 https://dart.googlesource.com/pub.git/+/98823618 fix: False detection of non-ignored files with non-ascii unicode characters (4145)
 https://dart.googlesource.com/pub.git/+/4743a455 Support for resolving all packages in workspace together (4154)
 https://dart.googlesource.com/pub.git/+/89376e84 Make FlutterSDK singleton, and move static members to non-static (4159)

```

Diff: https://dart.googlesource.com/pub.git/+/5b5fdd320a3b60a6a00bdd3122f03c6f67a39eeb..e519de6b6da5aea4f78e58f8906059cc6c2a5993/
Change-Id: I20a86848c72b4eddf0fab62c7d54815ff2221203
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357880
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2024-03-15 12:45:51 +00:00
Johnni Winther a0b6f1ef45 [test_runner] Avoid capture newline as path
The updates the static error parser for the CFE to avoid capturing
previous messages as part of the path for the subsequent error.

Change-Id: I131f14000a874ff9336244372b47a3913237c939
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357323
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2024-03-15 10:40:57 +00:00
Johnni Winther dcaf91ae59 [dartdec] Update dev_compiler/macros_test
Updated cf. comments in https://dart-review.googlesource.com/c/sdk/+/346000

Change-Id: I3dff79bcd9b5eed7133cbeead8deaec856857fa7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353700
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2024-03-15 10:19:48 +00:00
Chloe Stefantsova f8ade6b258 [cfe] Use shared nullability routines in constraint generation
Part of https://github.com/dart-lang/sdk/issues/54902

Change-Id: I43f90fcf1bda1e096197e90ce11fe89f373fa3a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357602
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2024-03-15 07:28:38 +00:00
Brian Quinlan c771931f6b [doc, io] Document the error behavior for File.openRead/file.openWrite
I recently fixed a bug by adding a `sink.done.ignore()` into library code: https://dart-review.googlesource.com/c/sdk/+/351380

My thinking now is that is a bad idea because it allows errors to pass silently if the sink is not closed or flushed (and the results are awaited!). Instead, we should document this as a general pattern for sinks.

...but that isn't satisfying either. `sink.done.ignore()` really means "I promise that I will handle errors elsewhere" but there is no actual enforcement of that.

Bug:https://github.com/dart-lang/sdk/issues/54707
Change-Id: I92feb43b1b2c57933c2343f4b6d354792cd13d72
CoreLibraryReviewExempt: dart io documentation-only
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352442
Commit-Queue: Brian Quinlan <bquinlan@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
2024-03-14 22:43:32 +00:00
Alexander Aprelev 2347820b22 [vm/cpuid] Fix number of info bytes printed.
Bug: https://github.com/flutter/flutter/issues/140138
Change-Id: I2624451c8ef5e6f7af7a1855fc16a976cfe6dad3
TEST=manually
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357743
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2024-03-14 21:48:59 +00:00
asiva 1a5db159f2 [VM/dartdev] Remove all unsound null safety tests running on the VM
1. Remove all unsound null safety tests on the VM
2. Do not pass the --sound-null-safety flag on VM runs as it is the
   default and this option is going to be removed soon.

Change-Id: I33d646cea4b6da8d144f3abe9fbc1b60a20e635b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357741
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2024-03-14 21:23:37 +00:00
Ryan Macnak c2a6645c01 [vm] Fix ShouldPauseOnException with an empty Dart stack.
TEST=vm/dart/gc
Change-Id: I435d7a33745c30738899eb1f1c08bd94185302c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357740
Reviewed-by: Derek Xu <derekx@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2024-03-14 21:12:01 +00:00
Devon Carew 9bcfb21dcd [deps] rev dartdoc, ecosystem, http, test, web
Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (89a3b4a..b001a15):
  b001a150  2024-03-13  Kallen Tu  Remove ModelElementRenderer. (dart-lang/dartdoc#3717)
  e8ee7983  2024-03-12  Kallen Tu  Remove EnumFieldRenderer. (dart-lang/dartdoc#3716)

ecosystem (49a3cbb..5a900ca):
  5a900ca  2024-03-12  Moritz  Only check text files for "do not submit" string (dart-lang/ecosystem#243)

http (8da6e0e..5dfea72):
  5dfea72  2024-03-11  Derek Xu  Add getters to classes (dart-lang/http#1151)

test (ba64bbb..6a4e75a):
  6a4e75a6  2024-03-13  Graciliano Monteiro Passos  Update the documentation for the `skip` parameter in the `test` (dart-lang/test#2102)

web (51e594b..2f13cd5):
  2f13cd5  2024-03-12  Devon Carew  fix unresolved dartdoc links (dart-lang/web#200)
  686827a  2024-03-12  Srujan Gaddam  Remove reference to static interop and point to dart.dev page for JS interop (dart-lang/web#206)
  9b7e29d  2024-03-12  Devon Carew  Add a 'sourced from mdn docs' line to the MDN sourced dartdoc (dart-lang/web#198)

Change-Id: I99e68e24efda6f0f95ac3b0a51a2c76e0b0971f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357661
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-03-14 20:50:54 +00:00
Zijie He 476ed37a25 Reland "[Fuchsia] Remove the legacy gn build rules for fuchsia"
This change may require a codereview from flutter side before moving
forward. See https://github.com/flutter/engine/pull/51072.

This reverts commit 283051acba.

Reason for revert: Redo the change with the similar one in flutter.

After this change, the next dart -> flutter roll needs extra cares
in https://github.com/flutter/engine/pull/51072. It also contains
more details about the reason why it could not be two-way
compatible.

Original change's description:
> Revert "[Fuchsia] Remove the legacy gn build rules for fuchsia"
>
> This reverts commit 094202bb91.
>
> Reason for revert: Break flutter, this change should happen after
> flutter being migrated to the same gn-sdk.
>
> Original change's description:
> > [Fuchsia] Remove the legacy gn build rules for fuchsia
> >
> > The updated test-scripts contains https://crrev.com/c/5341620 which
> > allows to generate fidl apis with an env var controlled location
> > rather than a hard-coded one. So the existing fuchsia gn build rules
> > in dart/sdk become obsolete and can be fully removed in favor of the
> > one in //third_party/fuchsia/gn-sdk/.
> >
> > Meanwhile the gn-sdk has been updated with
> > https://crrev.com/c/5325282 to use api-level version'ed idk but not
> > the ones in arch/.
> >
> > Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-arm64-try,vm-fuchsia-release-x64-try
> > Tested: ^^^^^
> > Bug: 40935282
> > Change-Id: I2ce958e6db1ff8221beef7b7ff953c32bb4525ba
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355283
> > Reviewed-by: Ryan Macnak <rmacnak@google.com>
> > Reviewed-by: Alexander Thomas <athom@google.com>
> > Commit-Queue: Zijie He <zijiehe@google.com>
>
> Bug: 40935282
> Change-Id: I7c455d1d362210523671c97d99ef018ede1743f4
> Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-arm64-try,vm-fuchsia-release-x64-try
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356307
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Auto-Submit: Zijie He <zijiehe@google.com>
> Reviewed-by: Derek Xu <derekx@google.com>
> Commit-Queue: Zijie He <zijiehe@google.com>

Bug: 40935282
Change-Id: Id5a9a98013350359037b19f8506f24158c9a3120
Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-arm64-try,vm-fuchsia-release-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356924
Commit-Queue: Zijie He <zijiehe@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2024-03-14 20:22:12 +00:00
Alexander Aprelev 70acceb4ca [vm/cpuid] Add trace_cpuid flag to troubleshoot cpu feature detection.
BUG=https://github.com/flutter/flutter/issues/140138
TEST=manually

Change-Id: I7beaee3901d9e530aa3edf350f37b919eea01d3e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357662
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2024-03-14 19:44:07 +00:00
Konstantin Shcheglov e7a109c875 Completion. Issue 53964. Recovery after parsing almost PropertyAccess before 'await'.
Bug: https://github.com/dart-lang/sdk/issues/53964
Change-Id: Ia583243fefd190bb14d857f8547c88e74524d33f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357520
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-14 18:30:10 +00:00
Daco Harkes 6270a46469 [deps] Roll package:native_assets_builder
Manual roll of https://github.com/dart-lang/native/pull/946.

Change-Id: I6d4fd28f4174307024526dd73ff29b63e570bfd7
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-win-release-try,pkg-mac-release-try,pkg-win-release-arm64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357623
Reviewed-by: Moritz Sümmermann <mosum@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2024-03-14 18:06:13 +00:00
Konstantin Shcheglov 081cff0cc4 Completion. Issue 54773. Exclude TypeParameterList created during recovery.
So that we don't suggest the partially type name as a type parameter.
It is a partial type argument actually.

Bug: https://github.com/dart-lang/sdk/issues/54773
Change-Id: I427d75524f9c6a7c298a8708ab01b362f7a564e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357460
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-14 17:03:29 +00:00
Sahil Kachhap 41fa436c73 Add quick-fix for USE_NAMED_CONSTANT linter rule
R=scheglov@google.com

Change-Id: Ibb6978544eb780f02211f079db58503558ce7039
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357400
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Auto-Submit: Sahil Kachhap <sahil.kachhap111989@gmail.com>
2024-03-14 16:20:51 +00:00
Jason Simmons 5ed896c9ae Use an escape sequence for space characters in depfiles generated by the copy_tree script
Change-Id: I60473b9729b310bd3909c98607ccb708c52dac15
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357500
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Jason Simmons <jsimmons@google.com>
2024-03-14 15:45:55 +00:00
Ryan Macnak 963448ff2f [infra] Remove legacy VM configurations.
Change-Id: Ib360b96e3c21a337ebbf3a69113f07c73791c50f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357213
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-03-14 15:40:29 +00:00
Brian Wilkerson d080550294 Do not report a crash for a user error
Bug: https://github.com/dart-lang/sdk/issues/55188
Change-Id: Ia7305b19518e87296bf58732a4192e9a9be4bb3c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357212
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2024-03-14 15:13:18 +00:00
Nicholas Shahan 1cb4f090c3 [ddc] Refactor visitRecord(Index|Name)Get
Stop passing `null` as the member parameter of `_emitPropertyGet`.

Avoids the use of one method with multiple code paths and returns
to handle any situation because it becomes very hard to reason 
about what original source code leads to each path.

Issue: https://github.com/dart-lang/sdk/issues/54463
Change-Id: I31ada0647816e8c7db2dac56a0a56fd50d9bd0a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357205
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2024-03-14 15:11:48 +00:00
Johnni Winther d6ecb92d18 [cfe] Run macros in sound mode
Change-Id: Ia8e0b1d49a4d13fbd29e8bf292b87171e3534261
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357622
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2024-03-14 13:19:44 +00:00
Martin Kustermann e39f65a8c1 [dart2wasm] Use (newly built) CFE infrastructure for is/as check optimization
The CFE added this functionality (in a more general form) in [0] so we can
remove our implementation in dart2wasm.

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

Issue https://github.com/dart-lang/sdk/issues/54998

Change-Id: I4f3159fc1697d09aa1af68cc333e4b377b71f497
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357561
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-03-14 10:01:59 +00:00