Commit graph

85691 commits

Author SHA1 Message Date
Daco Harkes 81584f5d03 [samples/ffi] Update sqlite sample
The sample wasn't working for the longest time.

Fixes:

- Null safety, and late fields.
- `dart pub` instead of `pub`.
- Use the new `NativeFinalizer` and `Finalizable` features.

Change-Id: I0a397abae511ab3f6762d1b2c4047226d15e36d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143804
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Michael Thomsen <mit@google.com>
2022-06-07 12:11:39 +00:00
Aske Simon Christensen 79abd5ea56 [dart2wasm] Emit unreachable as default case when switch is exhaustive
The front-end variable initialization analysis considers a variable
definitely initialized if it's initialized in all `case` branches of an
"explicitly exhaustive" `switch` statement, i.e. a `switch` statement switching on an enum value where the `case` branches cover all variants
of the enum.

In order for the emitted Wasm code to validate according to the
flow-sensitive non-nullable locals validation scheme being discussed in
https://github.com/WebAssembly/function-references/issues/44 this
definite initialization must be reflected in the static control flow of
the Wasm code. Thus, such a switch statement must not have static
control flow exiting the switch statement through the (dynamically
unreachable) default case.

Change-Id: I53628d2c6e9690214ffb4c60498c4f2b895f33e7
Cq-Include-Trybots: luci.dart.try:dart2wasm-linux-x64-d8-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245985
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2022-06-07 10:45:39 +00:00
Aske Simon Christensen 608b95c9b4 [kernel] Add exhaustiveness information to switch statements
Tested: Added flag to text output and updated expectation files
Change-Id: I44bb82242ad608b19894e22c41d8404c5003c2d1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245982
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-06-07 10:45:39 +00:00
Ömer Sinan Ağacan 1456af7b97 [dart2wasm] Implement backward jumps in switch statements
Change-Id: I1c39722edb72d7fb5128bb9fe7e4d03ce4041849
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246443
Commit-Queue: Ömer Ağacan <omersa@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
2022-06-07 08:30:29 +00:00
Stephen Adams 6384eceedc [dart2js] Late instance field optimizations
Late fields start out holding a sentinel value and after they are initialized or assigned, never hold a sentinel value again.
This CL implements some removal of checks and loads based on this monotonic behaviour.

On two large Dart Angular apps, this reduces the number of late-instance-field checks by ~25%.
One app is 0.44% smaller, the other is 0.98% smaller.

The optimization_test.dart no longer forces `--disable-inlining` because that prevents the inlining that exposes the optimization opportunities.
Most tests already use `@pragma('dart2js:noInline')` to prevent inlining where relevant.

Change-Id: I2327a96e69191313ed6c07eabe94aa2962fb2648
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246881
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2022-06-07 05:57:59 +00:00
Konstantin Shcheglov a89370324e Issue 49188. Fixes for enhanced enum and switch.
Bug: https://github.com/dart-lang/sdk/issues/49188
Change-Id: Ie23327fe813de45b2ad63d25f038d070de243d53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247421
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-07 01:10:49 +00:00
Mark Zhou d76e36fbcb [dart2js] Adding kernel dump info regression tests
Ensures that kernel dump info doesn't break the original dump info's behavior.

Change-Id: I9bfe22cea0d1a5597db9c98fe736f20369b80c82
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247122
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-06-06 22:35:29 +00:00
Konstantin Shcheglov 98a193f07e Fix linkLibraries() for Cider, release data.
1. We cannot just discard the LibraryContext instance, if there are
   linked bundles loaded, we need to release them, otherwise the
   byte store will keep it forever.

2. But we don't want to release them if there is a chance that there
   are no other isolates that reference it. So, we release after reload.

Change-Id: I92e01b57e83466d4679718e23eebcbfdc70d5602
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247330
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 22:21:39 +00:00
DEPS Autoroller 3fd6912bc2 Roll Dart Documentation Generator from 8549817bb1b5 to f5bcc4bd46f4 (5 revisions)
https://dart.googlesource.com/dartdoc/+log/8549817bb1b5..f5bcc4bd46f4

2022-06-06 49699333+dependabot[bot]@users.noreply.github.com Bump actions/cache from 3.0.2 to 3.0.3 (#3058)
2022-06-02 106621169+klr981@users.noreply.github.com Issue #3052: up/down arrox bug fix (#3054)
2022-06-01 49699333+dependabot[bot]@users.noreply.github.com Bump ossf/scorecard-action from 1.0.4 to 1.1.0 (#3053)
2022-05-25 kevmoo@users.noreply.github.com Require Dart 2.17, enable and fix latest lints (#3051)
2022-05-25 6655696+guidezpl@users.noreply.github.com Update styles.css (#3046)

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

To file a bug in Dart Documentation Generator: https://github.com/dart-lang/dartdoc/issues
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

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

Tbr: dart-ecosystem-gardener@grotations.appspotmail.com
Change-Id: I6c49e95569b83b08c53158079febaeb8a9ab2f64
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247301
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2022-06-06 21:03:49 +00:00
Konstantin Shcheglov c9e956a7b3 Use existing 'exportedLibrary', a few renames.
Change-Id: I35bf712bb400ac7935724ce137e446e30688d204
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247324
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-06 20:58:21 +00:00
Ben Konyi d5cabea15f [ package:vm_service ] Migrate server_test.dart to null safety
Fixes https://github.com/dart-lang/sdk/issues/49184

Change-Id: Ibebab647fd8479e3a33aa0b71ca267c37e6553be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247362
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-06-06 19:59:18 +00:00
Danny Tuppeny 225291c803 [analysis_server] Improve naming of LSP codegen types
Change-Id: I51f97c5a7bfdbc1fb420c7d59855efd2f9f4b2f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247381
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 19:53:48 +00:00
Konstantin Shcheglov 38f6d41e55 Add FileResolver.dispose(), instead of collectSharedDataIdentifiers().
Also include 'loadedBundles' into the textual dump.

Change-Id: Iba7bfe89dcb085bdcddcd20902d4148b9fa5095a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247325
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-06 19:28:40 +00:00
Nate Biggs cb2d5c972f [dart2js] Refactor Indexed(Sink/Source) to OrderedIndexed(Sink/Source)
- Rename to OrderedIndexed(Sink/Source)
- Add an interface to be shared with UnorderedIndexed(Sink/Source).
- Move 'reshape' logic into subclass.

Change-Id: I1f891aab961bde6685d77af342729ed6b5f31260
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247400
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-06-06 19:11:21 +00:00
Sam Rawlins d028c0e3c1 Feedback from https://dart-review.googlesource.com/c/sdk/+/247300
Change-Id: I49d6dc399c09295b408f6a05952f5830734d5117
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247360
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
2022-06-06 18:19:48 +00:00
Joshua Litt d872e74a6d [js] Support js_util on Dart2wasm.
This CL consists of:
1) Moving most of the contents of `js_util_wasm_patch` to
   `js_util_patch` and `js_helper`.
2) Addressing the inconsistencies between `js_util` and `js_util_wasm`.
3) Fixing a minor bug with nested `allowInterop` in
   `js_util_wasm_optimizer`.
4) Removing hardcoded eval.

Change-Id: Ie43cdc91d344745ef9b40e273192b34af2a84138
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246380
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2022-06-06 18:18:20 +00:00
Konstantin Shcheglov 5ac2e45cf0 Remove unused getLibraryElementIfReady()
Change-Id: I8764a4fd05e34d48c1ef7511cd7bdba6da40edfa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247323
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-06-06 17:59:30 +00:00
Danny Tuppeny 06ee6405e6 [analysis_server] Drop Token/TokenTypes from LSP codegen
Change-Id: I8290f3aa94fe3d44ba5b0ce6aee813b15db7ec86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247380
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 17:56:18 +00:00
pq 467a1b05c0 dart fix for single files
Fixes: https://github.com/dart-lang/sdk/issues/43892

Change-Id: If1dca6bdef59e9de6dfd74e9774f61072651166d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246160
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 17:42:14 +00:00
pq 3290d7a137 [data driven] support moving symbols across packages
See: https://github.com/dart-lang/sdk/issues/48997

Change-Id: Iad16b9eae0523bc4bc14537af642b05efa75b6f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246663
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 16:53:38 +00:00
Sam Rawlins 4786b785f8 Report generic instantiation of non-generic getters
Fixes #49145

Change-Id: I3b39e7f1042a43f495db3cbec70ce62bb3ed352b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247300
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 16:50:29 +00:00
Danny Tuppeny ab9a9fe9c0 [analysis_server] Simplify documentation comments in LSP codegen
Change-Id: Ifb808331ea3bcec5b292ed245811102d6374e71d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247342
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 15:49:18 +00:00
Konstantin Shcheglov e1794b4b74 Use Uri instead of String in LinkedElementFactory.
As a general push toward using more semantical types instead of general.

Change-Id: I26aac3572c4a77be7741aaf807a2aeeca93af6d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247321
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 15:32:18 +00:00
Konstantin Shcheglov 5dbbd113d4 Remove unused members from summary's Scope.
Change-Id: Ia465e0b3ee8de8fb747b3a630dd8da978889c1ea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247320
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-06 15:31:18 +00:00
Danny Tuppeny b05b832a2e [analysis_server] Remove/rename code from legacy LSP spec/parsing
Change-Id: I72e9e146b4961c7757c2885bc109fd1e43258137
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247341
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 15:00:28 +00:00
Danny Tuppeny 086727ee6f [analysis_server] Migrate from using Markdown/TypeScript spec for LSP types to JSON model
Change-Id: I58dbbbee48febc45304b27a95fedfef289479265
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247340
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 14:27:48 +00:00
Danny Tuppeny 2deae5a599 [analysis_Server] Sync with latest published LSP (TS) spec
Change-Id: If5003354491047bf18538c6c097ea21a34e44843
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247222
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-06 14:11:13 +00:00
Konstantin Shcheglov 633822fe73 Fix Cider tests on Windows.
It is not very useful to run Cider tests on Windows.
And we could just disable these tests on Windows.

But this kind of tests might be useful to verify the state of the
system in DAS, when we un-fork Cider and DAS implementations.

Change-Id: I4a7ed641cd750b7626427cdab5104c533ea5407e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247132
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2022-06-05 20:18:08 +00:00
Konstantin Shcheglov e407bc9d7b Restore Cider CacheData.
We don't use it in the analyzer, but Cider's implementation still
references it (will be removed, but not yet).

Bug: https://buganizer.corp.google.com/issues/234959849
Change-Id: Ic26a1a760de7f562cd019236796aedc3d6b061ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247131
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-05 18:48:39 +00:00
Konstantin Shcheglov 09967d8c25 Use textual state dumps for Cider tests.
This allows us to see which files were read, unlinked summary created,
how many many references to data we have, how we discard data from the
byte store, how we discard libraries from LinkedElementFactory,
and linked summaries from the byte store, etc.

Change-Id: I4eb57d96db8e1f816e7b932b727a6a92e6b07248
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247244
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-05 03:11:37 +00:00
Konstantin Shcheglov 408379ce32 Replace CiderByteStore methods with variants without signature.
Initial: https://dart-review.googlesource.com/c/sdk/+/246986
Reverted: https://dart-review.googlesource.com/c/sdk/+/247081
Bug: https://b.corp.google.com/issues/234768079

Presubmit: https://fusion2.corp.google.com/presubmit/tap/452990606
Looks green.

Change-Id: I02c04a17e9ea036e5b8e9acce3bc5695e63d5294
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247261
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-05 02:33:47 +00:00
Alexander Thomas 8d6e0a85ee [test_runner] Prepare static error testing for null safety migration
Bug: b/232495224
Change-Id: I3c9de9574637bbc114d42da9804ca77cf0d054f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247082
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2022-06-04 18:42:47 +00:00
Konstantin Shcheglov 9c0c80db7b Remove assertParameterElement(), assertEnumConstant(), assertNamedParameterRef().
These are now covered by textual dumps.

Change-Id: I5521c437dbb438053b9dead44d0167e47d818477
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247246
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-04 17:08:47 +00:00
Carolyn Qu 21b07646f5 Fixing typo in comment
Change-Id: I3a64ee58f2d3d5c23492c799a8cf50876fe8b4a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246987
Reviewed-by: Elliott Brooks <elliottbrooks@google.com>
Reviewed-by: Carolyn Qu <carolynqu@google.com>
Commit-Queue: Islina Shan <islinashan@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Islina Shan <islinashan@google.com>
2022-06-04 00:35:16 +00:00
Mark Zhou 7769360d2b [dart2js] Moving dart2js info treeshaking filters to a separate visitor
Prelude to adding kernel dump info tests

Change-Id: I9b349700ec422da3833ee08514946fcd9b7d9b30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246860
Commit-Queue: Mark Zhou <markzipan@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
2022-06-03 22:17:26 +00:00
Brian Wilkerson 84402e7824 Capture analytics about notifications
Let me know if there's other information you think we should be
reporting or if this won't accurately capture the time it takes to
handle notifications.

Change-Id: I7c57316ad37bd6bb9add9ab6d27e6f3428f4b491
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247241
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Danny Tuppeny <danny@tuppeny.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-03 19:51:12 +00:00
Keerti Parthasarathy 2257009633 Fix for exception on null check
Change-Id: I3f64abcc5cc971bc12cf997ec5dfa7d90b664f3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247042
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-06-03 18:23:26 +00:00
Nate Bosch 75ed6c01fb Make path argument optional for Uri.http(s)
Closes #49165

The empty string argument can be confusing to read since it is not clear
what it means. Allow omitting the argument entirely to default to an
empty path.

R=lrn@google.com

Change-Id: I05ca432a679a0df751a16d1beb241b14f80d4681
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246988
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
2022-06-03 18:07:27 +00:00
Sigmund Cherem e808fa1751 [jsinterop] Add static check for JSName of static class members.
Static class members could technically be mapped to a name with dots,
but in the early days of JSInterop we thought this was not necessary
since it could also be modeled as a top-level member or by adding
additional classes and exposing the member as a simple name on a deeper
class.

This invariant was assumed by DDC (which crashed if this was not the
case) and ignored by dart2js.

This change adds a static check to ensure both compilers act
consistenlty.

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

Change-Id: I20e59fbb75f0378a58ca88dc3910e079b4eeb7a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247180
Reviewed-by: Riley Porter <rileyporter@google.com>
Commit-Queue: Riley Porter <rileyporter@google.com>
2022-06-03 17:02:26 +00:00
Sigmund Cherem 0517e97250 [dart2js] Fix stub generator.
When generating the tear-off stub of a JSInterop method, dart2js
associated the full JSName as the target name, as opposed to a
target path. This meant that code like:

  @JS('console.log')
  external consoleLog(arg1, [arg2]);

  main() => (consoleLog)(1);

Generated a tear-off with code like:

  self[console.log](arg);

Instead of:

  self.console.log(arg);

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

Change-Id: I7abb320ce790e2ce533031fefd3abc15f8958b5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246340
Reviewed-by: Stephen Adams <sra@google.com>
2022-06-03 17:02:26 +00:00
Nate Bosch 051af04443 Bump collection to f9b433dfc7dba5c8a987b1a8e6a9050292f5582e
Changes:
```
> git log --format="%C(auto) %h %s" 69766da..f9b433d
 https://dart.googlesource.com/collection.git/+/f9b433d Introduce a new lastBy() function (#223)
```

Diff: https://dart.googlesource.com/collection.git/+/69766daafbaa8535d1343fb7cd87e713f57c107f~..f9b433dfc7dba5c8a987b1a8e6a9050292f5582e/
Change-Id: I1d5f0e6578a96f5378c82c8f87ebfffac3e24186
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247123
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
2022-06-03 16:57:06 +00:00
Nate Bosch ed13a8f351 Bump string_scanner to c637deb8d998b72a5807afbd06aba8370db725c0
Changes:
```
> git log --format="%C(auto) %h %s" 6579871..c637deb
 https://dart.googlesource.com/string_scanner.git/+/c637deb Add better support for dealing with supplemental-plane code units (#46)
 https://dart.googlesource.com/string_scanner.git/+/1259807 rev to 1.1.1 in preparation for publishing (#45)

```

Diff: https://dart.googlesource.com/string_scanner.git/+/6579871b528036767b3200b390a3ecef28e4900d~..c637deb8d998b72a5807afbd06aba8370db725c0/
Change-Id: I12e3d67ba793f2a78844097ea71660fec88bab88
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247120
Reviewed-by: Devon Carew <devoncarew@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2022-06-03 16:42:46 +00:00
Brian Wilkerson fad5a668a9 Use a JSON encoding for percentile data being sent to analytics
Change-Id: Ie96f81e9cdc7585a5027db7b44f7f39cb7e763b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247240
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-03 16:38:21 +00:00
Martin Kustermann 7a8f742425 [gardening] Mark some tests using optcounter flags Pass, Slow
On ia32 the kernel service runs from .dill file instead of app-jit
snapshot which makes it already slow (even more so in debug mode because
we run e.g. FlowGraphChecker).

The tests additionally use --optimization-counter-threshold flags,
causing more optimized compilations which makes it even slower.

=> Give tests more time.

TEST=ci

Change-Id: If09b4eb0971fed0c4572373598bbf171f4452eb2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247083
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2022-06-03 09:58:08 +00:00
Johnni Winther a7b921e3ff [cfe] Use InferableTypeBuilder.inferType to trigger inference
This CL splits the OmittedTypeBuilder into two concrete subclasses:
1) ImplicitTypeBuilder for omitted types that are not inferred. For
   instance omitted types in function types. These always build the
   `dynamic` type.
2) InferableTypeBuilder for types that can be inferred. The
   inference is provided by an Inferable object which define how the
   inference is performed. For instance SourceFieldBuilder implements
   Inferable to implement the field type based on the initializer and
   DeclaredSourceConstructorBuilder implements Inferable to implement
   the initializing formal types through the field types.

With this change, implicitly typed fields are no longer registered
directly, but are instead handled through the InferableTypeBuilder.

Change-Id: I06e153015de89802d7151941d480d6506347c732
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247080
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-06-03 09:24:06 +00:00
Naveen 55a4649075 chore: Included githubactions in the dependabot config
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

Closes https://github.com/dart-lang/sdk/pull/49168

GitOrigin-RevId: afc9a321581047a18b4992663062c8148563ca61
Change-Id: I371263d2ee93375a2b9756b344ed70c7cdf14a66
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247160
Reviewed-by: Alexander Thomas <athom@google.com>
2022-06-03 07:17:56 +00:00
Ilya Yanok 8f1a15daca Revert "Replace CiderByteStore methods with variants without signature."
This reverts commit 3a1a08106e.

Reason for revert: breaks dartd, can you maybe add instead of replace?

Original change's description:
> Replace CiderByteStore methods with variants without signature.
>
> Change-Id: I42c3aa456554974c1f44b95833e14487542539a5
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246986
> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
> Reviewed-by: Keerti Parthasarathy <keertip@google.com>

TBR=keertip@google.com,scheglov@google.com

Change-Id: Ia05a618cde2f87b9c3162e28709de31baed18796
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247081
Reviewed-by: Ilya Yanok <yanok@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Ilya Yanok <yanok@google.com>
2022-06-03 07:14:06 +00:00
Alexandre Ardhuin 42778832a1 allow rename on extension via fix_data.yaml
Closes https://github.com/dart-lang/sdk/pull/49164

GitOrigin-RevId: 3bc7a3de9781d0005c041145affe6c0ed3ae744b
Change-Id: I7e0357cd928636d0556d3dea2aac083529d089c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246983
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-03 00:39:55 +00:00
Ryan Macnak 4c82eb5836 Reland "[vm, compiler] Prune dictionaries to only contain elements needed at runtime."
This is a reland of commit 6de162e014

Original change's description:
> [vm, compiler] Prune dictionaries to only contain elements needed at runtime.
>
> flutter_gallery
> Isolate(CodeSize): 2116400 -> 1981238 (-6.28%)
>   Total(CodeSize): 7217938 -> 7082600 (-1.87%)
>
> TEST=ci
> Bug: https://github.com/dart-lang/sdk/issues/48910
> Change-Id: I8cd285ddab3a611cd7a2a91d50414be402f8543a
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244303
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Commit-Queue: Ryan Macnak <rmacnak@google.com>

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/48910
Change-Id: I3d3ecd04369585547963fb3efff1b3ff0723d8f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246990
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2022-06-03 00:09:25 +00:00
Alexander Markov 3d1c991fcf [cfe] Update test expectations after new async/async* implementation in the VM
The new implementation of async/async* doesn't use async kernel
transformation.

TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/48378
Change-Id: I86594d8c0df382512e64e59847c178569f7fc38e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246083
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-06-02 23:47:49 +00:00