Commit graph

97205 commits

Author SHA1 Message Date
Srujan Gaddam 76193718d2 Reland "[dart:js_interop] Re-enable type checks on external APIs"
This is a reland of commit 2a669c571f.

External APIs when using dart:js_interop should only allow
primitives, JS types, and other static interop types. This
was previously checked in a more restrictive mode called
"strict mode" but is not checked everywhere where dart:js_interop
APIs exist.

Change-Id: I1a8d04071a519c4965b266eb2800bcc3c3bb8393
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325961
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2023-09-18 19:53:40 +00:00
Paul Berry ef74475404 Create an enum to represent links used in "why not promoted" context messages.
This makes it easier to see at a glance which messages need to be
supported by the website.

I've included the new links that I intend to support as part of the
new "field promotion" feature.

Bug: https://github.com/dart-lang/sdk/issues/53102
Change-Id: I67ad47c5a00db9807a6c726677a06427cdbe02c2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325803
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2023-09-18 18:44:32 +00:00
Brian Wilkerson cc399708d3 Move more keyword completions
Change-Id: Ibdd1175731317acc91bff3e08ac57f706775bf56
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326540
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2023-09-18 18:02:25 +00:00
Nicholas Shahan 34e1b89286 [ddc] Delete unused build targets
The last uses were removed in
b04c2a3783

Change-Id: I3eae2145ba5d5fdab8e9e13c20b466f5a0c9eb14
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326248
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2023-09-18 17:56:35 +00:00
Ryan Macnak 782611f29a [vm, service] Adjust GetProcessMemoryUsage and scavenger stats to avoid races.
TEST=tsan
Bug: https://github.com/dart-lang/sdk/issues/52862
Change-Id: I90d31ff28e2517ddd2b1e7b387fa38152144f45c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324766
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-09-18 16:31:05 +00:00
Paul Berry f66254a0c5 Enable private field promotion in pkg/front_end
Change-Id: I71c8eb0e5783b2309efc2230cc1cc3ce59df4790
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325449
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2023-09-18 15:39:47 +00:00
Kevin Chisholm a744a03491 Update CHANGELOG.md to add release date to 3.1.0 release.
Change-Id: I17720269d12431e2ba705ee709414d77a6621d6c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326660
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Kevin Chisholm <kevinjchisholm@google.com>
2023-09-18 14:14:09 +00:00
Daco Harkes 959f849d93 [deps] rev native
Bug: https://github.com/dart-lang/native/issues/133
Change-Id: Ic9aca93f8408fc27e7cfb8dfe0a91bfcd33474e9
Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326640
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Hossein Yousefi <yousefi@google.com>
2023-09-18 12:53:18 +00:00
Johnni Winther 15b4758745 [cfe] Make Statement, Expression, Initializer, Constant and DartType sealed
Adds Auxiliary* nodes to support extending the AST from outside package:kernel

TEST=existing

Change-Id: I350718a1b02c188f212b3390050b60484f9f4b3b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326305
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2023-09-18 10:36:28 +00:00
sgrekhov 95dea183d3 [co19] Roll co19 to 00292501dd4d8b0e246130d55a024727e31d62eb
2023-09-15 sgrekhov22@gmail.com dart-lang/co19#1400. Update error expectations for CFE (dart-lang/co19#2282)
2023-09-15 sgrekhov22@gmail.com Fixes dart-lang/co19#2147. Add access to this tests (dart-lang/co19#2280)
2023-09-15 sgrekhov22@gmail.com dart-lang/co19#2258. Add missing experimental flag (dart-lang/co19#2281)
2023-09-14 sgrekhov22@gmail.com dart-lang/co19#2258. Only private field of an extension type is promotable (dart-lang/co19#2279)
2023-09-14 sgrekhov22@gmail.com Fixes dart-lang/co19#2261. Remove obsolete inference-update-2 experimental flag (dart-lang/co19#2278)
2023-09-14 sgrekhov22@gmail.com dart-lang/co19#2258. No error ib case of the `noSuchMethod` forwarder of a method (dart-lang/co19#2277)
2023-09-13 sgrekhov22@gmail.com dart-lang/co19#2258. Add more private fields promotion tests (dart-lang/co19#2276)
2023-09-13 sgrekhov22@gmail.com Fixes dart-lang/co19#2265. Extension types. Add more member conflict tests (dart-lang/co19#2270)
2023-09-12 sgrekhov22@gmail.com dart-lang/co19#1400. Add type aliases test (dart-lang/co19#2274)
2023-09-12 sgrekhov22@gmail.com Fixes dart-lang/co19#2271. Fix typo in promotion_A01_t01.dart (dart-lang/co19#2272)

Change-Id: Icc18b7b8e8c7aea103fc255e0da01a5f15601dac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326303
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2023-09-18 08:06:46 +00:00
Alexander Thomas 9394b30b77 Fix incorrect file reference in license headers
Bug: b/286184681
Change-Id: I903528c4adfbc576644aec7541903df6b9633e26
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325523
Reviewed-by: Jonas Termansen <sortie@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2023-09-18 06:44:08 +00:00
Alexander Thomas 8336e36761 [DEPS] Remove unused package:characters
Bug: b/286184681
Change-Id: Ieef469a55528d03ae9bbaa3f16bb802f850f12cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326304
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2023-09-18 06:38:49 +00:00
pq d1b6ea9f4d +annotate_redeclares
Fixes: https://github.com/dart-lang/linter/issues/4747

Change-Id: I7bf3e83dbe279f5b1a03dc5e5806c7c0fe3e3486
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326263
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2023-09-18 02:41:29 +00:00
Sam Rawlins 6170698492 [linter] Move avoid_unnecessary_containers tests
Change-Id: Id516f3543a0bc319a2513e739828f563fa91afe3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326560
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2023-09-18 01:03:59 +00:00
Sam Rawlins 45f7b438bd linter: Move sort_child_properties_last tests
Change-Id: I5d369a3a911695681713060ebf0bfb1239078087
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326541
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2023-09-18 01:03:11 +00:00
Sam Rawlins 6d6ce9c1c3 linter: Move use_decorated_box tests
Change-Id: Ie2b37e54546806da0da362f29ac6a654146d4ede
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326244
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2023-09-15 23:27:13 +00:00
Nicholas Shahan 6bf8844ab9 [ddc] Change JSArray rti property into a getter
- Avoids the need to set the value in the JSArray factories.
- Delays the construction of the rti value until it is actually needed.

Issue: https://github.com/dart-lang/sdk/issues/48585
Change-Id: Iecc28533453742eaeedc0cbc48053b7660e3eee3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325450
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2023-09-15 22:02:20 +00:00
Konstantin Shcheglov 183420bb1d Macro. Restructure tests.
Change-Id: I6cadf2afb3b3835300de8a196220ca4bb95f199d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326262
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2023-09-15 21:44:48 +00:00
Devon Carew 2d86df29c7 Bump webkit_inspection_protocol to 82f0c1c46dfdba5edf7c5fa84456233121dd69e1
Changes:
```
> git log --format="%C(auto) %h %s" 39a3c29..82f0c1c
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/82f0c1c fix nullability of some type annotations (110)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/0458999 add publishing automation (109)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/19f80fb Bump actions/checkout from 3.5.2 to 3.6.0 (106)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/e64288f Bump nanasess/setup-chromedriver from 2.0.0 to 2.2.0 (107)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/709c595 update references to the older branch name (108)

```

Diff: 39a3c297ff..82f0c1c46d/
Change-Id: Iff79ed745840bcbc4c6e904cd90bf7f9646e693a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326241
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2023-09-15 21:30:59 +00:00
Sam Rawlins a8a9cc0337 analyzer: Change switch expression used as statement to statement
I'm not sure what our paradigm / style will be, but for now, we should
use a switch statement in this case, as I believe void-expressions in
switch-expressions are not allowed until Dart 3.1.0, and analyzer's
lower bound is still 3.0.0.

Change-Id: Ida7b9694cdaae2bd808caaa7f25c1063207e5bba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326245
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2023-09-15 20:51:51 +00:00
Konstantin Shcheglov 36fd6eabf2 Macro. Build actual augmentation library after the types phase.
Change-Id: Iad7825acbf42d91e0cea4cc974a6be564a2b959d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326243
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2023-09-15 19:43:57 +00:00
Sam Rawlins a46738c378 analysis_server: enforce prefer_void_to_null
Change-Id: I9dbb5d28ef92ac1af3a505e2790e42a136e3a417
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325801
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2023-09-15 19:35:21 +00:00
Kenzie Schmoll 1fb70eea21 Update DevTools rev to 532dc39c7a2820a6dc759590e03a9c18fec915f8
Change-Id: I04958f650840d4da214dc13a9e907bd6e6b1fa99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325969
Reviewed-by: Derek Xu <derekx@google.com>
Commit-Queue: Kenzie Davisson <kenzieschmoll@google.com>
2023-09-15 19:13:33 +00:00
Ryan Macnak 139ff289db [vm, compiler] Allocation canaries.
Before each allocation, check the memory hasn't been touched since page initialization. This more reliably detects the issue fixed in a4381f127c.

TEST=ci
Change-Id: I5c0ed0a18a32515eab2ae90110b5a7e7f48779dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325366
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2023-09-15 17:04:55 +00:00
Alexander Markov 4b9c7c05d4 [vm, dart2wasm] Early lowering of FunctionTearOff nodes
FunctionTearOff node represents a tear-off of the 'call' method of
a Function, so it is basically a no-op:

  FunctionTearOff(receiver) == receiver

So we can remove this node early, during lowering transformation on
kernel AST and clean up handling of FunctionTearOff nodes from the VM
and dart2wasm compilation pipelines.

TEST=ci

Change-Id: Ia1500a066a0261076162e018ff0ab502258f606f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325924
Reviewed-by: Ömer Ağacan <omersa@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-09-15 16:54:08 +00:00
Alexander Markov 3ca05545fa [pkg/vm] Cleanup uses of *VisitorDefaultMixin to enable static checking of visitors
Implementing a *Visistor and not extending *VisitorDefaultMixin enables
compile-time checking that visitor has all visit*** methods and
protects it from possible omissions when new AST nodes are added.

TEST=ci

Change-Id: Ie6204b06d13cebba2164af7313141a136997eb14
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325800
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-09-15 14:52:25 +00:00
Johnni Winther 1683fd5c16 [_fe_analyzer_shared] Ensure beginToken on class, enum, mixin, extension and extension type
This passes the first token of these top level declaration directly
to the endX listener method.

In the CFE this is used to ensure that can handle the new modifiers in
the textual outline. Furthermore, support for extension types is added
and having an "unknown chunk" now results in an error. The latter should
help us keep the textual outline up-to-date wrt new features.

Change-Id: I813d6162b6cba0a2bf550ed33a6091abf9bf49f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324702
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2023-09-15 13:01:10 +00:00
Johnni Winther bf8ce771ef [cfe] Inline handleIdentifier in DietListener/OutlineBuilder
+ remove listener events for hide/show used for the old, now deleted,
extension type experiment.

Change-Id: I5258ce10507305a993b36bf75fd781bf1f16ddff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326341
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-09-15 12:58:25 +00:00
Mayank Patke 7299cc82d7 [dart2js] Remove uses of OnceConstantVisitorDefaultMixin
Change-Id: I055338a5c7cf26a77303363a47b365b07d5f368e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325970
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
2023-09-14 22:26:39 +00:00
Mayank Patke 4a8b39ce3c [dart2js] Fix missing null case in MemorySourceFileProvider
Change-Id: I43956623b369fc1eb10a878ed67210ad02ddc6b6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326161
Reviewed-by: Nate Biggs <natebiggs@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2023-09-14 22:07:47 +00:00
Vyacheslav Egorov 98d9a31dbc [vm/testing] Improve il_matchers obfuscation support
Recognize "Instance of C" string and handle it in special way:
apply renaming to class name (C) only.

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

TEST=vm/dart/comparison_canonicalization_il_test in obfuscate configuration

Fixed: 53512
Cq-Include-Trybots: luci.dart.try:vm-aot-obfuscate-linux-release-x64-try
Change-Id: I3fa31ab52aef01417d523a075913a0971158be72
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326062
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-09-14 21:58:52 +00:00
pq 74bdcded45 @visibleForTesting validation for extension type members
See: https://github.com/dart-lang/sdk/issues/53434

Change-Id: I0cca5b38fc6e432a8eb5e1ab3381625203063cab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326180
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2023-09-14 20:46:48 +00:00
Vyacheslav Egorov c7f604bd3e [vm/compiler] In CP ignore constant Redefinitions
Only replace Redefinition with a constant if the
original definition is a constant.

It used to be the case that Redefinition could
be constant only if the origin definition was
however 5c320a108 changed that: we would augment
graph with additional redefinitions after branches
on equlity comparisons. This meant that constant
value would propagate to other already inserted
redefinitions and than these redefinitions started
to be replaced by their constant value. Something
that we wanted to prevent to begin with.

Also fix the comment for InsertRedefinitionsAfterEqualityComparisons
as pointed by @aam

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

R=alexmarkov@google.com
TEST=issue found by CI and so covered by existing tests

Fixed: 53514
Change-Id: I5e547d34de3aabc340329da1a43341689bfc58e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326120
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Auto-Submit: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-09-14 20:28:39 +00:00
Parker Lougheed 9b34c52aef Update analyzer_utilties to Dart 3 and enable more lints
All the packages that depend on it now have constraints greater or equal to 3.0.0.

The added linter rules are taken from other analyzer packages.

Change-Id: If51f9209dab9c58525a1207534bccb6491a409c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325904
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2023-09-14 20:27:26 +00:00
pq 240ef465e6 fix unsafe cast
Change-Id: If2a2f72c62e8bda14c04de88cb37bf416e5b0c86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326181
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2023-09-14 19:27:58 +00:00
Devon Carew 9de782cecb [deps] rev ecosystem, http, native, shelf, tools, webdev
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ecosystem (e96fbdb..babf5d1):
  babf5d1  2023-09-13  Devon Carew  add additional lints to dart_flutter_team_lints (#167)
  7740bef  2023-09-13  Moritz  Write comments on forks for `firehose` (#165)

http (de19214..e19094a):
  e19094a  2023-09-14  Brian Quinlan  Use efficient operations when copying bytes between Dart and Java (#1019)
  d7e4375  2023-09-13  Parker Lougheed  Cleanup `package:http` utils (#1011)
  eafbbb0  2023-09-12  Brian Quinlan  Separate the cronet callbacks from the `send` method (#1017)
  2cbb703  2023-09-12  Brian Quinlan  Switch `cronet_http` to use jnigen (#1016)

native (bbcbc1f..7faf62c):
  7faf62c  2023-09-14  Gabriel Terwesten  Add `includes`, `flags`, `std`, `language`, `cppLinkStdLib` options (#125)

shelf (2926f76..e2a02b7):
  e2a02b7  2023-09-13  Kevin Moore  Move to latest pkg:dart_flutter_team_lints, bump min sdk to Dart 3 (#378)

tools (fa01f9b..1512f3d):
  1512f3d  2023-09-13  Elias Yishak  Add Fake Analytics instance that uses list to save events sent (#149)

webdev (6b21ecf..501ccc2):
  501ccc28  2023-09-12  Elliott Brooks  Update DCM triggers to match Dart DevTools (#2230)

Change-Id: Ic3dc1924da48454a28e4c0d8705244ac1565e74a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325967
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2023-09-14 18:36:33 +00:00
Martin Kustermann 8637cbe26c [dart2wasm] Allow package:ui/* to import dart:_wasm
Change-Id: I4fc17b992db272d6154a7c58fc1f4229c5368ee4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325620
Reviewed-by: Jackson Gardner <jacksongardner@google.com>
Auto-Submit: Martin Kustermann <kustermann@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
Commit-Queue: Jackson Gardner <jacksongardner@google.com>
2023-09-14 18:10:27 +00:00
Kevin Chisholm 07c5092444 [docs][release] Merge stable Changelog to main and update broken links.
Change-Id: Iba25e89e98332ccd8b0f4e18213cebc39bbe7f0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326141
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Kevin Chisholm <kevinjchisholm@google.com>
2023-09-14 17:56:08 +00:00
Sam Rawlins 66b58414eb Move diagnostic_describe_all_properties tests
Change-Id: I541f7e9a39b3b0f3de60cf68117e643ba5b661b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325966
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2023-09-14 17:33:34 +00:00
pq 04ad6c22f9 test tidying
Follow-up from: https://dart-review.googlesource.com/c/sdk/+/325980

Change-Id: Ie6e8b2ca8d686c9a5c77cb3c2b5964afc581c679
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326142
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2023-09-14 17:25:38 +00:00
Martin Kustermann f340a23cde [gardening] Exclude standalone{,_2}/io/issue_32052_test from iso-stres
This test uses `dart:cli`s `waitFor` which only works under a flag now.

TEST=ci

Change-Id: I9efe139c868d12c6fa2af1c0d7bfa64a5af5b2a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326100
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2023-09-14 13:11:44 +00:00
Johnni Winther 01f582df78 [cfe] Make (Tree)Visitor(1) pure interfaces
This splits visitors for (Tree)Visitor(1) into pure interfaces, mixins,
and a base class with the base implementation. This is a step towards
avoid having an accidental default implementation where a static error
would have been preferable.

This extract a ConstantReferenceVisitor(1) and its corresponding
DefaultMixin from the Visitor(1) interface.

TEST=existing

Change-Id: Ibc55bed9cff76581deaade91a10600c17fafc6dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325704
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2023-09-14 10:59:26 +00:00
Vyacheslav Egorov 9900af07d4 Add CHANGELOG.md for waitFor
R=kustermann@google.com

Change-Id: I64d09f62790790bc1f35a565a5ecf6ebbc109377
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326061
Reviewed-by: Martin Kustermann <kustermann@google.com>
2023-09-14 10:58:14 +00:00
Daco Harkes f016dbb007 [deps] Roll dart-lang/native packages
Bug: https://github.com/dart-lang/native/issues/130
Change-Id: I6ec9f934c227b7eb9f8ee724598d9d557e42dab6
Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326020
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Hossein Yousefi <yousefi@google.com>
2023-09-14 10:45:22 +00:00
rmasarovic 1cd720afe9 web_audio is not part sky_engine
Closes https://github.com/dart-lang/sdk/pull/53242

GitOrigin-RevId: 74b22f59aed05bce89b0d17d5e0aba5477c1060a
Change-Id: Iedb79fc297009cb4b046ebd57ff61b26939c1bbe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321340
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-09-14 10:33:17 +00:00
Vyacheslav Egorov 61b03b49b1 [vm] Disable dart:cli waitFor by default
Per breaking change request we are now disabling
waitFor by default.

Users can still enable it by passing the flag:

     --enabled-deprecated-wait-for

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

TEST=standalone/io/wait_for_deprecation_test

CoreLibraryReviewExempt: standalone VM only change
Change-Id: Ied78f91344d15cb77e932514e2b752bb6ac5dc5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326021
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Michael Thomsen <mit@google.com>
2023-09-14 10:08:29 +00:00
Johnni Winther 8d7198661e [cfe] Make more visitor pure interfaces
This splits visitors for Initializer, Expression, Statement, Member,
and MemberReference into pure interfaces and mixins with the base
implementation. This is a step towards avoid having an accidental
default implementation where a static error would have been preferable.

TEST=existing

Change-Id: I4aa243ce3b3436e05d6164c934df3c44119cd1fa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325521
Reviewed-by: Ömer Ağacan <omersa@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2023-09-14 08:16:49 +00:00
Nate Biggs 8cc1b544e0 [dart2js] Write source maps via a buffered output sink rather than creating the entire source map in memory.
Rather than build the entire source map as a string in memory, we can use buffered writes to efficiently emit the string as we build it.

In local testing this brought memory consumption down from ~6480MB to ~6330MB (-160MB).

Change-Id: Ic40f819a849f933d8662011647d4775eaa1462e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325941
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2023-09-14 02:19:32 +00:00
Nate Biggs 090db5a5ba [dart2js] Clear source location mappings after they've been processed.
The data within this maps is apparently hanging around in memory longer than it needs to. We only read from each map in a short window and once it's been read we don't use that data again. By clearing the maps ater we use them we end up saving ~700MB (out of ~7.1GB) for phase 3b on a large program.

References to all these maps are being retained by this higher level map:
https://github.com/dart-lang/sdk/blob/main/pkg/compiler/lib/src/io/code_output.dart#L143

This change clears the internal maps while that larger map is being iterated over.

Change-Id: I132dbf469391f257685b05fa69c302f1f1c44e31
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325940
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2023-09-14 02:19:32 +00:00
Jackson Gardner 986770f744 Revert "[dart2wasm] Fix nullable JS type and int parameters in J..."
Revert submission 323446

Reason for revert: This breaks flutter web engine unit tests. See https://github.com/dart-lang/sdk/issues/53521

Reverted changes: /q/submissionid:323446

Change-Id: I9095f0791a556d4bc912e29fde274f3cb8824317
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325964
Commit-Queue: Jackson Gardner <jacksongardner@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2023-09-14 01:00:59 +00:00