Commit graph

82279 commits

Author SHA1 Message Date
Siva Annamalai b70a134933 Revert "Re-land "Add a generic return type for js_util functions""
This reverts commit 66cbeb6718.

Reason for revert: Causes dart analyzer and dart linter to find
issues within google3 and flutter, causing breakages and blocking
the roll.

Original change's description:
> Re-land "Add a generic return type for js_util functions"
>
> This relands commit 46486cf260.
>
> The differences from the original commit:
>   - jsify is no longer being made generic
>   - Updated the CHANGELOG
>
> Change-Id: Ibc3402833cce2babbec9a57ad73963d7b9442ed8
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216920
> Commit-Queue: Riley Porter <rileyporter@google.com>
> Reviewed-by: Sigmund Cherem <sigmund@google.com>

TBR=sigmund@google.com,srujzs@google.com,rileyporter@google.com

Change-Id: Ic2ff63bc9658ccafcab3db75bdd06814d2f17b76
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216963
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2021-10-15 03:40:28 +00:00
Alexander Aprelev 9129c7303c [gardening] Fix spawn_uri_nested_vm_test so main isolates waits for child isolates before exiting.
Fixes https://github.com/dart-lang/sdk/issues/28192

TEST=spawn_uri_nested_vm_test

Change-Id: I5ad55a52e45a722d49c99797794115950cf7fb9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216925
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-10-15 02:30:10 +00:00
Konstantin Shcheglov 7154635d4d Issue 47404. Evaluate 'kIsWeb = identical(0, 0.0)' to BoolState.UNKNOWN_VALUE
Bug: https://github.com/dart-lang/sdk/issues/47404
Change-Id: I29626bd11379580c6a090384c57882de98f619b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216923
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-10-14 23:04:49 +00:00
Brian Wilkerson 391e900e5e Improve remove_argument fix to better handle comments
Fixes https://github.com/dart-lang/sdk/issues/47396

Change-Id: I56d68646dab23d3471a28a12b8979f658a06d022
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216921
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-14 23:02:36 +00:00
Riley Porter 66cbeb6718 Re-land "Add a generic return type for js_util functions"
This relands commit 46486cf260.

The differences from the original commit:
  - jsify is no longer being made generic
  - Updated the CHANGELOG

Change-Id: Ibc3402833cce2babbec9a57ad73963d7b9442ed8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216920
Commit-Queue: Riley Porter <rileyporter@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-10-14 22:56:45 +00:00
Paul Berry 72daafd70c Fix correction message for CompileTimeErrorCode.INSTANCE_ACCESS_TO_STATIC_MEMBER.
Previously, it assumed that the static member was always a class; it
could also be an extension or a mixin, and the extension could be
unnamed.  This change causes extensions (named and unnamed) to be
handled properly.

Handling mixins will be more complicated (since it will require
expanding ElementKind to include mixins), so that is not addressed
right now (see https://github.com/dart-lang/sdk/issues/47452).

Change-Id: Ie01a6abfdb560d97e545d36255909da19500b3c4
Bug: https://github.com/dart-lang/sdk/issues/47452
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216680
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-14 22:13:55 +00:00
Alexander Markov bb06e649f4 [vm] Handle entry point object pool entries only in AOT
Avoid touching stubs in JIT mode when reading object pool
as stubs may not be initialized yet. This may happen if
using a core-jit snapshot.

TEST=ci

Change-Id: I598ef2ca4b6b22fb1bb560ad25b6ada9939799a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216924
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-10-14 21:39:05 +00:00
Mark Zhou ff26406d72 [dart2js] Representing late/lazy fields with arrow functions.
Change-Id: Ic47077253eb07f5caa60b9409ccbf9bb87f34d4a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209856
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2021-10-14 21:04:15 +00:00
Johnni Winther 2bbb5dc907 [cfe] Encapsulate Dill/SourceLoader.builders
Change-Id: Ie98b3a243932cebeb845adb1cbe6c2cab1e92e0e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216287
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-10-14 20:34:45 +00:00
Alexander Thomas 938e7ae54e [co19] Roll co19_2 to a93f8484f7265f0849692d3b1208323393733f8d
2021-10-04 irina.arkhipets@gmail.com Issue dart-lang/co19#1202: i-2-b typedef tests updated: Issue tags added, needless dynamic tests removed.
2021-10-04 irina.arkhipets@gmail.com Issue dart-lang/co19#1202: i-2-b tests updated: Issue tags added, needless dynamic tests removed.
2021-10-03 irina.arkhipets@gmail.com Issue dart-lang/co19#1202: LanguageFeature/typedef/static tests updated.
2021-09-28 irina.arkhipets@gmail.com Issue dart-lang/co19#1202: LanguageFeature/typedef/fynamic tests updated: missing Issue tags added, needless dynamic tests removed.
2021-09-28 irina.arkhipets@gmail.com Issue dart-lang/co19#1202: LanguageFeature/class tests updated: missing Issue tags added.

Change-Id: I186bcd9721e39cb145b2518e156bb0ab862a1a95
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215544
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2021-10-14 19:22:36 +00:00
Ryan Macnak 63177bc4fc [vm, gc] Use idle time to deallocate cached new-space pages.
New-space pages are cached because deallocation, not allocation, is slow.

TEST=ci
Change-Id: I8439aa0477518a1fb7ac643a435de53bf6679ac7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216687
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-14 18:58:35 +00:00
Mark Zhou fc868e7ff8 [dart2js] Simplifying arrow functions that return a single expression
expressions like this:
() => { return 0; }
become:
() => 0

May have sourcemap ramifications down the line. See: https://github.com/dart-lang/sdk/issues/47354

Change-Id: I66c2794a73fbe2013c3352250f501abcdb0a002c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210288
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2021-10-14 18:44:45 +00:00
Konstantin Shcheglov c9a7ed43d1 Increment DATA_VERSION after Feature changes.
https://dart-review.googlesource.com/c/sdk/+/216801

Change-Id: I1904b6f0b37b7dbca1628acd23d352ea9cc49159
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216880
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-14 15:30:27 +00:00
Konstantin Shcheglov b6349445df Update _ContextTypeVisitor to support ConstructorName / ConstructorReference.
We need it to trigger constructor reference suggestions.

Change-Id: I2a04520c85393b25f6db7fdd1e478aad81398a96
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216762
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-14 15:21:52 +00:00
Konstantin Shcheglov 7e717e3ff7 Remove extra hashCode in Object.hash().
Change-Id: Ifad348ae035dd69764c3264b7ddfd8036bc1dc54
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216763
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-14 15:20:12 +00:00
Sigurd Meldgaard fa50b7e5d1 Bump usage to f0cb8f7cce8b675255c81488dbab8cf9f2f56404
This is a reland of https://dart-review.googlesource.com/c/sdk/+/216184
that was reverted due to b/203034967

The new commit f0cb8f7 `Don't batch per default` works around the issue
(manually tested internally).

Changes:
```
> git log --format="%C(auto) %h %s" e0780cd..f0cb8f7
 https://dart.googlesource.com/usage.git/+/f0cb8f7 Don't batch per default (#164)
 https://dart.googlesource.com/usage.git/+/ac53249 Fix timeout (#162)
 https://dart.googlesource.com/usage.git/+/117d3a1 Allow sendRaw to send Map<String, dynamic> (#161)
 https://dart.googlesource.com/usage.git/+/016dd30 Prepare release (#160)
 https://dart.googlesource.com/usage.git/+/076c653 Merge pull request #152 from sigurdm/batching
 https://dart.googlesource.com/usage.git/+/1d6b343 Remove debug print
 https://dart.googlesource.com/usage.git/+/c073fb7 Use correct limit for bytes
 https://dart.googlesource.com/usage.git/+/1d89875 Send batch early if full
 https://dart.googlesource.com/usage.git/+/2896a85 Update README.md
 https://dart.googlesource.com/usage.git/+/da20fab Delete travis.sh
 https://dart.googlesource.com/usage.git/+/7c351a3 Merge
 https://dart.googlesource.com/usage.git/+/0424091 Update build.yaml (#159)
 https://dart.googlesource.com/usage.git/+/4f2a050 Use a Duration for batching delay
 https://dart.googlesource.com/usage.git/+/aa3f3ce address review
 https://dart.googlesource.com/usage.git/+/318ebe5 Fix
 https://dart.googlesource.com/usage.git/+/71ddec1 Send remaining hits on waitForLastPing
 https://dart.googlesource.com/usage.git/+/1c895a7 Parametrize client-id in test
 https://dart.googlesource.com/usage.git/+/0ae7733 Fix pubspec
 https://dart.googlesource.com/usage.git/+/2255b3d Merge remote-tracking branch 'origin/master' into batching
 https://dart.googlesource.com/usage.git/+/14d3702 Merge remote-tracking branch 'origin/master' into batching
 https://dart.googlesource.com/usage.git/+/1c3393d Handle batching implicit waiting for a 'batchDelay' future
 https://dart.googlesource.com/usage.git/+/219b764 TODO about size of payloads
 https://dart.googlesource.com/usage.git/+/aaee6d9 Fix AnalyticsMock
 https://dart.googlesource.com/usage.git/+/a8ec5b4 Remove mockito as dep - didn't use it
 https://dart.googlesource.com/usage.git/+/e26fcce Allow batching of hits

```

Diff: https://dart.googlesource.com/usage.git/+/e0780cd8b2f8af69a28dc52678ffe8492da27d06~..f0cb8f7cce8b675255c81488dbab8cf9f2f56404/
Change-Id: Iccac84c5182953209d7c05ac47cbde82e59a590d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216803
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
Reviewed-by: Jonas Jensen <jonasfj@google.com>
2021-10-14 14:45:32 +00:00
Chloe Stefantsova 448e44191c Add "named-arguments-anywhere" experiment flag
Part of https://github.com/dart-lang/sdk/issues/47451

Change-Id: I049519061d132eb681cc3aa67b1dea5d296e540e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216801
Commit-Queue: Chloe Stefantsova <dmitryas@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-10-14 14:16:52 +00:00
Chloe Stefantsova a666b5a72b [analyzer,parser] Check for named before positional in analyzer
Since the check or the absence of the check for a named argument
appearing before a positional parameter is feature-specific
considering the language feature that allows placing the named
arguments anywhere, it should be performed by the listeners of the
parser and guarded by an experiment flag, in alignment with other
experimental featuers. This CL moves the check and the reporting of
the error from the parser into the Analyzer, so that later this check
can be skipped if the corresponding experiment flag is enabled.

Part of https://github.com/dart-lang/sdk/issues/47451.

Change-Id: Ib795d418af429ee04ecfff6dfa71ec1e836fe798
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216640
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Chloe Stefantsova <dmitryas@google.com>
2021-10-14 13:25:23 +00:00
Daco Harkes 8516cdc587 [test/ffi] Split generated files on isLeaf
Splits up tests/ffi/function_structs_by_value_generated_test.dart in
- compounds
- non-leaf calls
- leaf calls

We could also consider splitting on chunks from the `functions` from
tests/ffi/generator/structs_by_value_tests_configuration.dart as a
follow up.

TEST=This only splits up the tests, please reapprove failures.
Expected failures:
https://dart-ci.firebaseapp.com/current_results/#/filter=ffi
- windows precompiled https://github.com/dart-lang/sdk/issues/40564
- mac arm64 https://github.com/dart-lang/sdk/issues/46349

Bug: https://github.com/dart-lang/sdk/issues/45007

Change-Id: Id3d9987cbc1e09f579b8cc68ce72fe5d36348b80
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-nnbd-win-release-x64-try,vm-kernel-precomp-win-release-x64-try,vm-kernel-precomp-win-debug-x64c-try,pkg-mac-release-arm64-try,vm-kernel-mac-release-arm64-try,vm-kernel-nnbd-mac-debug-arm64-try,vm-kernel-nnbd-mac-release-arm64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216666
Reviewed-by: Clement Skau <cskau@google.com>
2021-10-14 13:05:33 +00:00
Daco Harkes e512402b05 [test/ffi] Make the test generator async
The `dart format` step takes 8 seconds currently on the large files.
This cuts down the total time from 21 seconds to 9 on my machine.

TEST=This only changes the test generator, nothing should change.

Bug: https://github.com/dart-lang/sdk/issues/45007

Change-Id: Ie4940fdd3a43a923ca28cb39b0673cc19f81a10a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216664
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
2021-10-14 13:05:33 +00:00
Lasse R.H. Nielsen 3403e31094 Improve documentation of BigInt operators.
Fixes #46578.

Bug: http://dartbug.com/46578
Change-Id: I77d6e0a549f1a73673c53d25bacfabf79a6518b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206221
Auto-Submit: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2021-10-14 12:30:42 +00:00
Chloe Stefantsova cfa5d6cdcb Add "enhanced-enums" experiment flag
Part of https://github.com/dart-lang/sdk/issues/47453.

Change-Id: I6d1fdc4bc170354985a9d216b13ad8f153717adf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216662
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <dmitryas@google.com>
2021-10-14 12:19:42 +00:00
Devon Carew 2d2dace5cd [api docs] update the docs for dart:convert
Change-Id: Ia595ff80148327c0d94c8fbf6e295f97796f9371
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216562
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2021-10-14 12:16:11 +00:00
pq 53a3080c25 linter 1.13.0
NOTE: this release introduces a new dependency on `test_reflective_loader`; the SDK roll that picks this up will need to update the linter's `dart_vm_test` target in `third_party/dart/linter/BUILD` to include it.



Change-Id: Ica8e200d333a2574abefa3c56df1153869259adc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216263
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-10-14 12:07:52 +00:00
Tess Strickland 14bcf0f3d4 [build] Make app snapshot build failures copy/pastable.
* Use a filename without spaces for the non-existent DFE path.

* Convert a relative path to the executable to an absolute one in
  gn_run_binary so the command can be run outside the build directory
  without editing.

Change-Id: I31421acb54ad940115d4e000c4ec31605a33b5cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216800
Reviewed-by: Alexander Thomas <athom@google.com>
2021-10-14 11:51:32 +00:00
Erik Ernst 63e5b0db57 Update CHANGELOG.md to include information about function updates
In 2.15, function objects have had their specification and
implementation updated such that several inconsistencies have been
eliminated, and the specification has been clarified and generalized.
In particular, equality is now more consistent and compositional,
canonicalization is applied also for expressions that are constant
but not in a constant context, generic instantiation gives rise to
function objects that are identical/equal in cases where they weren't
previously, and similarly for some tearoffs.

Change-Id: Ic26bbc1f047500c1030f52fe69bb06963b0193f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216289
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2021-10-14 09:23:52 +00:00
Michael Thomsen 3f931429c3 Roll deps of web template
Bug: https://github.com/dart-lang/sdk/issues/47450
Change-Id: I49c27714fd36ea60dd6e6f40928526ccf2554c99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216621
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2021-10-14 08:50:52 +00:00
Sigurd Meldgaard 31437a699b Revert "Bump usage to ac53249e5230a77624f46c07c2ed965efcfc0c59"
This reverts commit b2ea872861.

Reason for revert: Broke //third_party/fuchsia_gui_tools/fuchsia_devtools:tests_test_fuchsia_devtools_app_test.host

Original change's description:
> Bump usage to ac53249e5230a77624f46c07c2ed965efcfc0c59
>
> This is a reland of: https://dart-review.googlesource.com/c/sdk/+/213349
> Reverted in https://dart-review.googlesource.com/c/sdk/+/213440 due to http://b/199988795
>
> The two failures in that issue has been addressed by "ac53249 Fix timeout" and "117d3a1 Allow sendRaw to send Map<String, dynamic>"
>
>
> Most of these commits stem from a non-squashed merge.
>
> Changes:
> ```
> > git log --format="%C(auto) %h %s" e0780cd..ac53249
>  https://dart.googlesource.com/usage.git/+/ac53249 Fix timeout (#162)
>  https://dart.googlesource.com/usage.git/+/117d3a1 Allow sendRaw to send Map<String, dynamic> (#161)
>  https://dart.googlesource.com/usage.git/+/016dd30 Prepare release (#160)
>  https://dart.googlesource.com/usage.git/+/076c653 Merge pull request #152 from sigurdm/batching
>  https://dart.googlesource.com/usage.git/+/1d6b343 Remove debug print
>  https://dart.googlesource.com/usage.git/+/c073fb7 Use correct limit for bytes
>  https://dart.googlesource.com/usage.git/+/1d89875 Send batch early if full
>  https://dart.googlesource.com/usage.git/+/2896a85 Update README.md
>  https://dart.googlesource.com/usage.git/+/da20fab Delete travis.sh
>  https://dart.googlesource.com/usage.git/+/7c351a3 Merge
>  https://dart.googlesource.com/usage.git/+/0424091 Update build.yaml (#159)
>  https://dart.googlesource.com/usage.git/+/4f2a050 Use a Duration for batching delay
>  https://dart.googlesource.com/usage.git/+/aa3f3ce address review
>  https://dart.googlesource.com/usage.git/+/318ebe5 Fix
>  https://dart.googlesource.com/usage.git/+/71ddec1 Send remaining hits on waitForLastPing
>  https://dart.googlesource.com/usage.git/+/1c895a7 Parametrize client-id in test
>  https://dart.googlesource.com/usage.git/+/0ae7733 Fix pubspec
>  https://dart.googlesource.com/usage.git/+/2255b3d Merge remote-tracking branch 'origin/master' into batching
>  https://dart.googlesource.com/usage.git/+/14d3702 Merge remote-tracking branch 'origin/master' into batching
>  https://dart.googlesource.com/usage.git/+/1c3393d Handle batching implicit waiting for a 'batchDelay' future
>  https://dart.googlesource.com/usage.git/+/219b764 TODO about size of payloads
>  https://dart.googlesource.com/usage.git/+/aaee6d9 Fix AnalyticsMock
>  https://dart.googlesource.com/usage.git/+/a8ec5b4 Remove mockito as dep - didn't use it
>  https://dart.googlesource.com/usage.git/+/e26fcce Allow batching of hits
>
> ```
>
> Diff: https://dart.googlesource.com/usage.git/+/e0780cd8b2f8af69a28dc52678ffe8492da27d06~..ac53249e5230a77624f46c07c2ed965efcfc0c59/
> Change-Id: I1284db2a23a3e9ac037d1d2a80627c0caa1e9385
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216184
> Reviewed-by: Jonas Jensen <jonasfj@google.com>
> Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Ib58c23769f263435237881e6a57a4cab18bc2850
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216780
Reviewed-by: Sigurd Meldgaard <sigurdm@google.com>
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2021-10-14 08:43:23 +00:00
Alexander Thomas 2ffbc477ae [co19] Roll co19 to cd6510c8346444792b37f6f26feffcc234a44dd1
2021-10-14 sgrekhov@unipro.ru dart-lang/co19#1207. Constructor call tests added
2021-10-13 sgrekhov@unipro.ru Fixes dart-lang/co19#1207. Implementing Enum tests added
2021-10-13 sgrekhov@unipro.ru Fixes dart-lang/co19#1222. Change the test to expect correct behaviour
2021-10-12 irina.arkhipets@gmail.com More fix for dart-lang/co19#523: one more Language/Metadata test which use reflection moved to LibTests/mirrors tests.
2021-10-12 irina.arkhipets@gmail.com More fix for dart-lang/co19#523: one more Language/Metadata test which use reflection moved to LibTests/mirrors tests.
2021-10-12 asashour@yahoo.com Remove extra `be` (dart-lang/co19#1220)
2021-10-12 sgrekhov@unipro.ru dart-lang/co19#1207. More enhanced enums tests grammar tests added
2021-10-12 asashour@yahoo.com Remove extra `be` (dart-lang/co19#1217)
2021-10-12 asashour@yahoo.com Remove extra `be` (dart-lang/co19#1216)
2021-10-12 asashour@yahoo.com Remove extra `be` (dart-lang/co19#1214)
2021-10-12 asashour@yahoo.com Remove extra `be` (dart-lang/co19#1215)
2021-10-11 asashour@yahoo.com Remove extra `the` (dart-lang/co19#1213)
2021-10-11 sgrekhov@unipro.ru dart-lang/co19#1207. More enhanced enums tests grammar tests added
2021-10-11 sgrekhov@unipro.ru Fixes dart-lang/co19#1212. Use correct instance for the comparison
2021-10-08 sgrekhov@unipro.ru dart-lang/co19#1207. More grammar tests added and experimental flag added
2021-10-07 sgrekhov@unipro.ru dart-lang/co19#1207. Some grammar tests added
2021-10-06 sgrekhov@unipro.ru Fixes dart-lang/co19#1210. Typo fixed

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I29e9f5460540e09e46fb13820bc9a3fe28914d65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216665
Reviewed-by: Erik Ernst <eernst@google.com>
2021-10-14 08:30:25 +00:00
Irina Arkhipets d23b0966e5 [co19] Status files updated according to Issue 523: tests which use mirrors moved to LibTest/mirrors
Change-Id: Ifb670caf5def3f7064b3876a0bdb97086ab629bc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216284
Reviewed-by: Alexander Thomas <athom@google.com>
2021-10-14 08:30:25 +00:00
Kevin Moore 3816e247c5 pkg:native_stack_trace - enable and fix a few more lints
Change-Id: I1c0c572bc87480a8f935c51965423f0d5fbe6d0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216692
Auto-Submit: Kevin Moore <kevmoo@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2021-10-14 07:35:43 +00:00
Kevin Moore b0874f26b7 pkg:native_stack_traces - use Object.hash
Require Dart 2.14

Change-Id: Iec3e1b0563c6402840bfbcb66bd68478b40063c4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216691
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2021-10-14 07:35:43 +00:00
Kevin Moore 0fb4f647cc pkg:native_stack_traces - Migrate to pkg:lints, fix new failures
Change-Id: I54aa779471c3cfb723be99238650bc786cf84643
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216690
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2021-10-14 07:35:43 +00:00
Kevin Moore ca00a4b27e pkg:native_stack_traces - fix existing lints
And validate lints as part of test matrix

Change-Id: Ia074c56f0c7a7f9a674202667ac4729d06993302
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216689
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2021-10-14 07:35:43 +00:00
Ryan Macnak fbcacd7c05 Reapply "[vm] Streamline Zones."
Fix imprecision in Zone::SizeInBytes that was finally noticed by vm/cc/AllocateZone because the size of the initial inline buffer changed.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/47399
Change-Id: I152d24d03a59b21267a9a24e5d929b51af57af71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215980
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-14 00:10:12 +00:00
Ryan Macnak b5c911e2a3 [observatory] Report AppJIT/AOT feature string.
TEST=examine main page
Change-Id: I368b96e1a871a8d5da4cfab5c3fcf7c297a589be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215945
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-14 00:05:01 +00:00
Konstantin Shcheglov 519c222101 Use Uint8List in more places.
Change-Id: Ib3bd4c4833c2f3fa497ffbadf9c4f95dd7a062b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216688
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-13 22:56:56 +00:00
Devon Carew 1e1c730140 [api docs] speed up API doc validation
Change-Id: Ieb4f8f8a406f28afb6e43c10727aa74a194e9b8c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216686
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-13 22:53:07 +00:00
Paul Berry fe0e921728 Test CompileTimeErrorCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS_CONSTRUCTOR with .new.
Change-Id: If4bb810904581527e8e1dd806a1c5db319bc8566
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216720
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-13 22:06:07 +00:00
Brian Wilkerson d6936a5749 Make the use of Example and Examples more consistent
I think the headings are now 'correct' in the sense that they are
singular when there's a single example and plural when there is more
than one.

In the process I noticed that we have a similar problem with 'Common
fixes' in that sometimes there's one fix and sometimes multiple. I
don't think it would read well to say 'Common fix', so I'm disinclined
to change those, but it makes me wonder whether I should have just
used 'Examples' everywhere.

Change-Id: Idbfc3354b52cf1da677db51f4c626bb3269465b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215983
Commit-Queue: Kathy Walrath <kathyw@google.com>
Reviewed-by: Kathy Walrath <kathyw@google.com>
2021-10-13 21:41:17 +00:00
Ryan Macnak b4b7b8f116 [build] Add support for building for Fuchsia from Mac.
TEST=./tools/build.py --os=fuchsia --mode=all runtime create_sdk
Change-Id: I6b15d1cc174b84d900d526730e5f58d64d2596cb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216540
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Liam Appelbe <liama@google.com>
2021-10-13 21:14:56 +00:00
Konstantin Shcheglov 238a72a321 Support for experimental fields in analyzer_plugin common_types_spec.html
Change-Id: Id91cf321f4f99e29fd3f2be672335ae5c349f195
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216683
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-13 20:16:26 +00:00
Alexander Aprelev 3b1d941ae8 [io/sendmessage] Update CHANGELOG with note about newly added RawSocket sendMessage/receiveMessage
Bug: https://github.com/dart-lang/sdk/issues/46328
Change-Id: Ibab66e04c61647968cc8531cfc7533f3a8d7daad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216700
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-10-13 18:24:26 +00:00
Konstantin Shcheglov aa27de8501 Tweaks for BundleReader.
Change-Id: If3823a4eb79b399c336c125c2a9673cc121226b5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216701
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-13 17:57:46 +00:00
Ryan Macnak 2997bc12af [build] Update Clang and GN.
TEST=ci
Change-Id: I199bdd75d57dbec0b64ddbb7a1b6c71845f4660d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216581
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-13 17:54:16 +00:00
Siva Annamalai b6c659ae8f Revert "[ VM / Profiler ] Update MacOS thread interrupter to use Mach APIs instead of SIGPROF"
This reverts commit 4daa257b32.

Reason for revert: Flutter Engine build breaks on iOS builds (32 bit)

Original change's description:
> [ VM / Profiler ] Update MacOS thread interrupter to use Mach APIs instead of SIGPROF
>
> Enabling the CPU profiler on OSX/iOS with a lldb connection would cause
> applications to slow to a crawl due to lldb performing checks on each
> SIGPROF. This change replaces the SIGPROF based thread interrupter for
> MacOS with one based on the Mach Thread APIs.
>
> Fixes https://github.com/dart-lang/sdk/issues/47139
>
> TEST=Manual testing, CQ
>
> Change-Id: Iedfd73a83f92d51e01b98bfa281440c7d1ba9e08
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216220
> Commit-Queue: Ben Konyi <bkonyi@google.com>
> Reviewed-by: Ryan Macnak <rmacnak@google.com>

TBR=bkonyi@google.com,rmacnak@google.com,asiva@google.com

Change-Id: I4edf1b73d8f90934fff92971fac8ef7b0f165971
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216682
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2021-10-13 17:19:30 +00:00
Ryan Macnak 868b6a898c [vm, gc] Use relaxed loads when reading the header of an ephemeron's key.
The ephemeron and its key may be processed by different workers, so there is a race when accessing the key's header. This race is harmless: if the key becomes a survivor, it will trigger another round of ephemeron processing.

TEST=tsan, splay_ephemeron_test
Bug: https://github.com/dart-lang/sdk/issues/47412
Change-Id: I20339c2215f2d37ad8b9687aebe62492b36a8a61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216340
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-13 16:56:06 +00:00
Ryan Macnak 81c87d25eb [build] Update Fuchsia SDK.
TEST=ci
Change-Id: I5a2c18c91aee364b5a5f81e1fed60cf84cdaeca6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216561
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-13 16:47:26 +00:00
Devon Carew 2a273a60ec [api docs] make dart:ffi doc samples analysis clean
Change-Id: I70caf6543f231905dd45b78816f2fc8a4e7f4ea3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216600
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-10-13 16:32:14 +00:00
Paul Berry a5714b1290 Fix error messages that don't properly name members.
The error messages for INVALID_NON_VIRTUAL_ANNOTATION and
INVALID_SEALED_ANNOTATION appeared to reference the name of the
erroneously declared member, with messages like "The member '{0}'
can't be '@nonVirtual' because it isn't a concrete instance member.",
however the actual text that was substituted into the error message
wasn't the name of the member, but rather the name of the element
declaring the annotation.  So the error message would always be "The
member 'nonVirtual' can't be '@nonVirtual' because it isn't a concrete
instance member.", which was unhelpful and confusing.

Rather than fix the code to come up with the correct name of the
member (which would have been challenging, because the target of the
annotation could be an extension without a name, and wouldn't have
been that useful anyway, since the error location points to the
member), I've simply rephrased the error messages so that they don't
name the member in question.

Change-Id: I34f74e04607e16211b357429820c0336e0a03059
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216563
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-13 16:13:16 +00:00