Commit graph

96986 commits

Author SHA1 Message Date
Paul Berry 2ecc88e7ef Flow analysis: Replace merge with join followed by unsplit.
The `merge` operation is equivalent to a `join` operation followed by
an `unsplit` operation, so there is no real benefit to having both
`merge` and `join` as separate methods. Removing `merge` will make it
easier to refactor the behavior of `join` in follow-up CLs.

Change-Id: I4a42cdd1cb2e795dcfeae86703fe5d3356c131ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322140
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2023-08-23 20:28:00 +00:00
Parker Lougheed 7383613e1a Add analyzer team as owners of pkg/linter
Bug: https://github.com/dart-lang/linter/issues/4411
Change-Id: I639ccb50cef07c1a09baccb5ab87355c0b5ef093
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322420
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2023-08-23 20:05:49 +00:00
Devon Carew 0e2e8595f3 [deps] rev ecosystem, mockito, tools, webdriver
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ecosystem (dfeda1a..f777da7):
  f777da7  2023-08-22  Devon Carew  updates to the label normalization tool (#151)
  73a3464  2023-08-04  Moritz  Add permissions to `post_summaries.yaml` (#149)

mockito (e54a006..70aabfc):
  70aabfc  2023-08-23  Copybara-Service  Merge pull request #686 from parlough:fix/example-analysis-errors
  9737d71  2023-08-15  Parker Lougheed  Fix analysis errors in example directory

tools (2be6c2e..e5ce42a):
  e5ce42a  2023-08-22  Jonas Finnemann Jensen  Support optional packageUri (#148)
  1c46390  2023-08-21  Kenzie Davisson  Improve exception messages for `ExpectJson` extension (#147)

webdriver (d0f78d0..20ec47f):
  20ec47f  2023-08-21  sigmundch  Add content-type to async xhr request headers. (#277)

Change-Id: If6483e07c9d2a3670d2a9043bd56f40965e25c3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322362
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2023-08-23 18:13:51 +00:00
Kallen Tu b3c433c761 [linter] Add more const errors to hasConstError in the linter.
More errors surfaced from the changes in https://dart-review.googlesource.com/c/sdk/+/319911.

This CL allows them to be marked as const errors when we check that a constructor can be const-ified.

Bug: https://github.com/flutter/flutter/issues/133152
Change-Id: Ic514fba9d544d5019ca76567be04738a5d5db768
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322361
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2023-08-23 18:06:31 +00:00
Kallen Tu ac901b52bf [analyzer] Avoid evaluating the argument list of an InstanceCreation if not const.
Fixes a breakage caused by https://dart-review.googlesource.com/c/sdk/+/319911. This reverts a mistake in evaluating the argument list for constant errors if it's not even constant.

b/297178967

Change-Id: I88db872025d10dd75e07d1349ceef61bc251cfc2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322441
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2023-08-23 18:05:47 +00:00
Elliott Brooks 28434dfa83 Pin webdev dep
Bug: https://github.com/dart-lang/webdev/issues/2201
Change-Id: Icf2d8755b5063797c22d457ee25f7d637df0fd42
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322226
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
2023-08-23 16:41:56 +00:00
Danny Tuppeny 7e68622678 [analysis_server] Extract a UserPromptSender to simplify sending prompts to the user
This mirrors a similar change made for OpenUriNotificationSender to avoid callers having to check the `supportsShowMessageRequest` flag before calling `showUserPrompt`. Instead, they can ask for a sender and get a `null` if it's not supported.

Also removed a `!` in initialization options that was a bit dangerous (I triggered errors while testing surveys) and instead made all code that reads initialization options handle the case where initialization hasn't happened with a safe default where appropriate.

This should not change any functionality, it just makes an upcoming CL (with functional changes) smaller/simpler.

Change-Id: I730b7879b5f49a3b6c99414b054724e2c0ca6515
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322402
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2023-08-23 16:39:33 +00:00
William Hesse 53106f8188 [linter] Change linter pubspec.yaml to obey rules for internal packages
These rules are checked by tools/package_deps/bin/package_deps.dart.

Bug: https://github.com/dart-lang/linter/issues/4411
Change-Id: I394cac48793ff0c96ff897b0a72bd967af683f38
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322400
Reviewed-by: Jonas Termansen <sortie@google.com>
2023-08-23 14:50:05 +00:00
William Hesse 401073af3e [linter] Only run linter unit tests on the vm runtime
Bug: https://github.com/dart-lang/linter/issues/4411
Change-Id: Ib5d4389df4ada62b480ea907034d99c7563fc641
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322343
Reviewed-by: Jonas Termansen <sortie@google.com>
2023-08-23 13:13:47 +00:00
Ivan Inozemtsev 3176cfcd21 Revert "[vm, gc] Mark through new-space."
This reverts commit 3fb88e4c66.

Reason for revert: b/297175670

Original change's description:
> [vm, gc] Mark through new-space.
>
>  - Initial and final marking no longer visit all of new-space, reducing the STW pause for major GC.
>  - A scavenge during concurrent marking must forward / filter objects in the marking worklist that are moved / collected, increasing the STW pause for minor GC.
>  - Unreachable intergenerational cycles and weak references are collected in the next mark-sweep instead of first requiring enough scavenges to promote the whole cycle or weak target into old-space.
>  - Artificial minor GCs are no longer needed to avoid memory leaks from back-to-back major GCs.
>  - reachabilityBarrier is now just a count of major GCs.
>
> TEST=ci
> Change-Id: I6362802cd93ba5ba9c39f116ddff82e4feb4c312
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321304
> Commit-Queue: Ryan Macnak <rmacnak@google.com>
> Reviewed-by: Siva Annamalai <asiva@google.com>

Change-Id: I33075156160dc35861355d738a5776b74dce88b9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322344
Reviewed-by: Martin Kustermann <kustermann@google.com>
Auto-Submit: Ivan Inozemtsev <iinozemtsev@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2023-08-23 13:13:28 +00:00
William Hesse 6d8ef05196 Fix generate_package_config script for Windows paths
The change
https://dart-review.googlesource.com/c/sdk/+/321722
does not handle a package path on Windows that uses backslashes.
Add handling for this case.

Bug: https://github.com/dart-lang/linter/issues/4411
Change-Id: I38fe39491ed60306dec1717b32f275c19ed0076b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322342
Reviewed-by: Jonas Termansen <sortie@google.com>
2023-08-23 12:58:40 +00:00
William Hesse 86c86d638a Add linter repository to sdk, preserving its commit history
Added using git-subtree command git subtree add -P pkg/linter linter/main

Bug: https://github.com/dart-lang/linter/issues/4411
2023-08-23 14:05:34 +02:00
William Hesse 6e77184d71 [linter] Handle linter migration in generate_package_config.dart
The linter repository is moving into the SDK repo, moving
from third_party/pkg/linter to pkg/linter. Make generate_package_config.dart compatible with a non-breaking migration, that adds the package in the new location, changes Flutter and Dart
to use the new location, then removes the copy from the old location.

Bug: https://github.com/dart-lang/linter/issues/4411
Change-Id: I0653562a8af09a06582bbf17a44766fa64e2881f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321722
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2023-08-23 11:47:19 +00:00
Nate Biggs 84ff6dd74e [dart2js] Prep Dart2JS for better internal metric gathering.
Change-Id: Ide1023d1207a5f91f2a104f779a77fc041191eb9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/317621
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2023-08-23 02:19:02 +00:00
Parker Lougheed a0d8796c94 [dart:html] Fix incorrect parameter mention in drawImageScaledFromSource docs
Closes https://github.com/dart-lang/site-www/issues/5138

Bug: https://github.com/dart-lang/site-www/issues/5138
CoreLibraryReviewExempt: Only updating a doc comment in dart:html which is web specific.
Change-Id: I58bd36764a6a86cfb7c30dbc60070025dfb2e51c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322181
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2023-08-23 00:25:29 +00:00
Ryan Macnak 7d23f32389 [vm, compiler] Kick CSP ahead of SP in FFI callback stub.
TEST=profiler
Bug: https://github.com/dart-lang/sdk/issues/53303
Change-Id: Id73046f91c52e39e675c89797e8896ba09d4baa6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322200
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Liam Appelbe <liama@google.com>
2023-08-23 00:17:02 +00:00
Nate Biggs 1f61b1d521 [dart2js] Clean up old IndexedSink/Source logic.
We've been using the Unordered version (which support deferred serialization) of these for a while now. Removing the ordered version (and associated flags) since they're essentially dead code at this point.

Change-Id: I522682b8e0688deda6784628b65d41389cdb9791
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322161
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2023-08-22 21:18:33 +00:00
Zijie He 21ae9657a9 [Fuchsia] Import test scripts from chromium and use it to download image
The with_envs.py works with the test script by providing the required
environment variables.

This change in theory does nothing since the `product download` is in
12.20230413.0.1, but `run` is removed before that,
https://fxrev.dev/831319. So the DEPS cannot really download the images.
The issue will be addressed in a coming change.

Bug: #38752
Change-Id: Ib5f3d1d619921651208fa442201ba607a99e54d5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319867
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Zijie He <zijiehe@google.com>
2023-08-22 19:59:25 +00:00
Johnni Winther 84b7f7959f [cfe] Update parser test expectations
Missing update caught between commits.

Change-Id: I6ed08d541fc3767a3ab78d9c16b936dd97f039e2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322122
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2023-08-22 19:57:48 +00:00
Ryan Macnak 4fb7b66b8c [vm, compiler] Implement exactness tracking for all architectures.
TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/34170
Change-Id: Ibc6924e138a3c885478f17e66555992ea7e134b6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322062
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-08-22 18:22:29 +00:00
Kallen Tu 8c2f088481 [analyzer] Separate exception and evaluation errors in the const evaluator.
Some errors like type checking of fields should be reported directly, so this CL separates these errors from evaluation exception errors. This reverts some changes we have before.

Additionally, we move error reporting for the constructors to an outer-most method to avoid reporting multiple times.

Change-Id: Ie2fde0ea7d389a633051cb106012a0738354f821
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319911
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2023-08-22 18:21:10 +00:00
Ryan Macnak ef4984566b [vm, io] Skip global destructors when using dart:io's exit.
TEST=msan
Bug: https://github.com/dart-lang/sdk/issues/51271
Bug: https://github.com/dart-lang/sdk/issues/51560
Change-Id: Ie3a487656173790d48c41c272a131ce51f667a9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321921
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-08-22 16:24:40 +00:00
Ryan Macnak 3fb88e4c66 [vm, gc] Mark through new-space.
- Initial and final marking no longer visit all of new-space, reducing the STW pause for major GC.
 - A scavenge during concurrent marking must forward / filter objects in the marking worklist that are moved / collected, increasing the STW pause for minor GC.
 - Unreachable intergenerational cycles and weak references are collected in the next mark-sweep instead of first requiring enough scavenges to promote the whole cycle or weak target into old-space.
 - Artificial minor GCs are no longer needed to avoid memory leaks from back-to-back major GCs.
 - reachabilityBarrier is now just a count of major GCs.

TEST=ci
Change-Id: I6362802cd93ba5ba9c39f116ddff82e4feb4c312
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321304
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2023-08-22 16:19:06 +00:00
Alexander Markov 46ede00e28 [dart2wasm] Add hidden options to dump kernel
The following command line options are added:

--dump-kernel-after-cfe=<filename>
--dump-kernel-before-tfa=<filename>
--dump-kernel-after-tfa=<filename>

These options can be used during debugging in order to dump
kernel AST of the whole program.

Change-Id: Ie1d5bc992994b6ad816d0755ef9c80dfa6dbb935
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321521
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
2023-08-22 15:09:08 +00:00
Johnni Winther ef10dcacec [cfe] Check representation vs implemented types
Close #53170

Change-Id: Ib8f85cf54de7f0e34dcdbb3159139ab4e7f677fa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320822
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2023-08-22 14:49:39 +00:00
Ben Konyi ba1f302aae Update OWNERS_DEVTOOLS to include all members of the DevTools team
Change-Id: I10fbe18376f9bd771f77f2a159802036ad2875bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322160
Reviewed-by: Dan Chevalier <danchevalier@google.com>
Commit-Queue: Dan Chevalier <danchevalier@google.com>
2023-08-22 14:35:00 +00:00
Paul Berry 5c018e5c65 Flow analysis: Simplify Reachability class.
Remove the `Reachability.restrict` method--it hasn't been used since
2021, and was only kept around by mistake.

Remove the `Reachability.join` method--it was only used in the
circumstance where two flow control paths were being joined that had
equivalent reachability, in which case, it did nothing but return a
new reachability that was equivalent to one of its inputs. Call sites
have been updated to assert that the two control flow paths are indeed
equivalent, and then simply use the first control flow path's
reachability.

Change-Id: Ie24789ccd18723425b7db405d2122954dfae7b5b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321841
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-08-22 14:19:10 +00:00
Johnni Winther 7e9c1c8018 [parser] Add error recovery to extension type declaration parsing
This changes the parser to always interpret `extension type` as the
start of an extension type declaration.

Recovery is added to handle missing identifier, primary constructor,
parameter constructor parameters, and extension type declaration body.

Change-Id: I98cac0b2641167c4708fa20b22f0de0a70336457
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321704
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-08-22 12:05:10 +00:00
Johnni Winther 29003657e2 [parser] Remove support for 'inline class' syntax
+ removes tests using 'inline class' syntax or replace them with
  extension type syntax.

TEST=existing

Change-Id: Ic98178c4df9a1585ad0167cfd8847caa7b771e3e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321120
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2023-08-22 11:26:54 +00:00
Slava Egorov f5d3814455 [ffi] Update comment for NativeFinalizer
Closes https://github.com/dart-lang/sdk/pull/53306

GitOrigin-RevId: d91cb731ae74042a3e210bc1aaa1bf3d0beafcc0
Change-Id: Id38ceb846009dfebbe8b9e3c05d9e79b7a458a74
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322064
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-08-22 11:17:47 +00:00
Daco Harkes 8d0a93fd17 [tool] Add features to tools/bisect.dart
`-Dtest_command` is now a multi-argument, commands will be run in
sequence when multiple are passed.

The test commands now need to include the executable. Previous
invocations now need to be passed python3 in front of tools/test.py.

Both stdout and stderr from test commands are now taken into account
for matching on the error string.

The above changes enable bisecting failures other than tests failing
through test.py invocations such as:
https://github.com/dart-lang/sdk/issues/53267#issuecomment-1686528611

Change-Id: I4c3cb800b69e34a15c375f45a417bb2c28d9df8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322020
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2023-08-22 09:52:18 +00:00
Parker Lougheed b199896be5 Mark packageConfigSync and resolvePackageUriSync as released in 3.2
Closes https://github.com/dart-lang/sdk/issues/53285

Bug: https://github.com/dart-lang/sdk/issues/53285
CoreLibraryReviewExempt: dart:isolate is only supported on the VM and this CL only changes a Since annotation.
Change-Id: If525aed83d3ccd69558f348e6a4a287a35b1d2ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322040
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-08-22 08:05:19 +00:00
Jens Johansen 258ad10f30 [CFE] Weak suite fuzzes by default
Change-Id: Ibe549771430c44264893655d46a0206fd5e438e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321880
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-08-22 07:03:50 +00:00
Srujan Gaddam f73350d83e Add confuse statements for js_types_test
Some of these is checks can be optimized away by dart2js.

Change-Id: I76b5b253a24a4ded2394664985665fc875b60f52
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321750
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2023-08-21 21:54:15 +00:00
Srujan Gaddam a38fb595cf [dart:js_interop] Add JS types for Symbol/BigInt
Adds JSSymbol and JSBigInt and erases to either their respective
interceptor types in the JS backends or JSValue in dart2wasm.

CoreLibraryReviewExempt: Backend-specific library.
Change-Id: Ib2c70d22a70c6308733cd170b91eafa8ec3b3aeb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321749
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2023-08-21 21:54:15 +00:00
Srujan Gaddam c738fe1d7b [ddc] Add BigInt and Symbol interceptors
Adds the same interceptors from dart2js as JsPeerInterfaces
and handles typeof differences in getReifiedType. These must
be JsPeerInterfaces so that Object members can be stored in
their prototype. Tests are added so that dart2js and ddc are
consistent.

Change-Id: Iadc3dd26957c0a21b4039c49c1c1ff162ae286e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321748
Reviewed-by: Stephen Adams <sra@google.com>
2023-08-21 21:54:15 +00:00
Kenzie Schmoll caedf8214d Bump DevTools to 2.26.2 and devtools_shared to 3.0.0 in DDS
Change-Id: I8601b54fffa34d2c3dba678b3bc6d86f68223ec7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321620
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Kenzie Davisson <kenzieschmoll@google.com>
2023-08-21 19:43:52 +00:00
Devon Carew f61107b4f6 [deps] rev collection, dartdoc, http, mockito, protobuf, test, tools, webdev
Revisions updated by `dart tools/rev_sdk_deps.dart`.

collection (1ed009e..1a9b7eb):
  1a9b7eb  2023-08-15  ebraminio  Minor typo fix (#304)

dartdoc (5cfb1f3..e148373):
  e1483735  2023-08-14  Parker Lougheed  Adjust links to dart.dev class modifier documentation (#3476)

http (9f167a7..631d4ec):
  631d4ec  2023-08-18  Alex James  Add java_http .gitattributes file (#999)
  58a5462  2023-08-17  Alex James  JavaClient can stream the HTTP response body (#1005)
  df1f625  2023-08-15  Brian Quinlan  Add some additional header tests (#1006)

mockito (ff79de6..e54a006):
  e54a006  2023-08-18  Copybara-Service  Merge pull request #685 from LuisDuarte1:feature/build-extensions
  5f3a4ca  2023-08-18  Luís Duarte  Format files
  2d4ec1e  2023-08-17  Luís Duarte  Update lib/src/builder.dart
  bc06f9f  2023-08-17  Luís Duarte  Make builder not merge generic extension.
  af043a0  2023-08-16  Luís Duarte  Replace double-quotes with single quotes
  034e6c1  2023-08-16  Luís Duarte  Update lib/src/builder.dart
  4ff995f  2023-08-10  Luís Duarte  Make MockBuilder support build_extensions option.

protobuf (a852ba4..5e8f36b):
  5e8f36b  2023-08-16  Ömer Sinan Ağacan  Add dart2wasm targets to benchmark builder (#806)
  41d0156  2023-08-15  Ömer Sinan Ağacan  Document why we add '$' prefix to result local in constructors (#870)
  41193fd  2023-08-14  Devon Carew  Rename a local variable to avoid proto field name conflicts, re-generate protos (#869)

test (bc0a992..d0fc4bd):
  d0fc4bde  2023-08-16  Nate Bosch  Extend the timeout for runtime_matrix_test (#2084)
  cdf80280  2023-08-16  Nate Bosch  Add some console logging to browser test startup (#2083)
  6146c292  2023-08-16  Nate Bosch  Add an ignore for an SDK deprecation (#2082)
  27142079  2023-08-15  Parker Lougheed  Fix improperly rendered changelog entry (#2081)
  46cf4de0  2023-08-15  Nate Bosch  Timeout browser suite loads (#2080)

tools (295ff92..2be6c2e):
  2be6c2e  2023-08-16  Ben Konyi  Added `dartCliCommandExecuted` and `pubGet` events (#123)

webdev (19aad27..fc876cb):
  fc876cb0  2023-08-16  Elliott Brooks  Reset Webdev to 3.0.8-wip (#2197)
  1aa7c523  2023-08-16  Elliott Brooks  Prepare webdev for release to 3.0.7 (#2196)

Change-Id: Idc228d0f3f70f5b3e7bfc6e777260dfe84fe96f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322060
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2023-08-21 18:05:38 +00:00
Sam Rawlins c0dd7a0092 Remove duplicate keys in dartfuzz_api_table
Duplications introduced in
cfa03ed971

Change-Id: I9720822611aacefb9b1538d9fc59e234f96475bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321842
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2023-08-21 17:43:28 +00:00
Nicholas Shahan 7b6d9fb46e [ddc] Cleanup temporary fix in strSafe
Fix allowed it to accept null but it should never be called with a
nullable value.

Change-Id: I03b5d9b4906e9e4557a4f2720350c0c8176fec53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320841
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Auto-Submit: Nicholas Shahan <nshahan@google.com>
2023-08-21 17:42:33 +00:00
Parker Lougheed ca9730325c Update generic issue template/info
- Consolidates "related to" section to what users are familiar with.
- Adds some other related repositories.
- Switches to `dart info` instead of `dart --version` for more information

Change-Id: I70eb03293e5946b51cee7d5a7f02634a593f3bc2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320901
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2023-08-21 17:07:18 +00:00
Graciliano Monteiro Passos cb690e6698 Optimize thisOrAncestorOfType
Closes https://github.com/dart-lang/sdk/pull/53288

GitOrigin-RevId: 8fcdfaf9f6d64be0c91bdd49a57d64a516cf0778
Change-Id: Ic49d50594464fd1d7eccc6c1c98627d7854bc3e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321840
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2023-08-21 16:58:46 +00:00
Derek Xu eb7368356d [VM/Service] Improve documentation of reloadSources
TEST=Only changes documentation.

Change-Id: I00fa8afce200f53420c1b712c91768d586d31514
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322000
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Derek Xu <derekx@google.com>
2023-08-21 16:52:19 +00:00
Ryan Macnak 7920d53b89 [vm] Fix gcc 12.2.0 build.
TEST=local build
Change-Id: I9aa9830134d922465d7aa1194edc29bc857f97b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321747
Reviewed-by: Derek Xu <derekx@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-08-21 16:46:46 +00:00
Danny Tuppeny cd4b9527eb [analysis_server] Fix "dart fix" not handling directives_ordering
Fixes https://github.com/dart-lang/sdk/issues/53261

Change-Id: I5b7f87efeee1046959b81f0a07f07ce1f81706d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321881
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2023-08-21 16:44:11 +00:00
Ryan Macnak 8fcd42096e [vm, fuchsia] Fix inconsistent alignment of callback trampolines.
Cf. a129675a0a

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/53275
Change-Id: Ieb0d80ee99a5a899eeb2487ed786d9cffaed930f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321744
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2023-08-21 15:47:39 +00:00
Paul Berry fdc4e301e3 [dartfuzz] Fix trybot breakage
`DartType.VOID` and `DartType.VOID_NULLABLE` are the same constant,
therefore only one of them should be listed in
`DartLib.typeToLibraryMethods`, to avoid an `equal_keys_in_map`
warning.

Change-Id: I65beef01f8a810af96be5e458eeecef7a7acff01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321820
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
2023-08-21 15:18:24 +00:00
Danny Tuppeny 45d06f2302 [dds/dap] Include Isolate IDs in Threads when used over DDS
See https://github.com/dart-lang/sdk/issues/53086

Change-Id: I380744f9e0d604168f026684b31fe689bb8947c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/317701
Reviewed-by: Ben Konyi <bkonyi@google.com>
2023-08-21 14:17:40 +00:00
Danny Tuppeny eda6963e4d [dds/dap] Revert using Isolate numbers for DAP threadIds
This reverts 95e6f1e110 (minus the changelog/version, which have been updated accordingly).

Fixes https://github.com/dart-lang/sdk/issues/53086 although a replacement for mapping threads/isolates needs to be implemented.

Change-Id: I5e4d71f3b4683a04cabec6bda9e6d23caa7901d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/317700
Reviewed-by: Ben Konyi <bkonyi@google.com>
2023-08-21 14:17:26 +00:00
Ben Konyi dc6731ba20 [ CLI ] Add new cli template to dart create
This new template will create a simple project with basic command line
argument processing using `package:args`.

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

Change-Id: I70f370bc348bb85547e4fcf2131c007416a48262
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321800
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2023-08-21 14:09:39 +00:00