Commit graph

82344 commits

Author SHA1 Message Date
Brian Wilkerson 1aaed6385f Remove unnecessary ignore comment
Change-Id: I0498ff6ec3f7e5b88da07970fd01773749e21097
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217021
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-15 17:17:30 +00:00
Konstantin Shcheglov 0ca96b793d Make DartCompletionRequest.libraryElement non-nullable.
Change-Id: I778c354717bc426403a92ace3c86c160cb5bde8c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216962
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-15 17:13:39 +00:00
Brian Wilkerson 328e171772 Remove unnecessary ignore comments
Change-Id: I9bb4875f857ca43f39983642ad644dc6ae2fe432
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217023
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-15 16:54:00 +00:00
Joshua Litt 7e76dd6b28 [dart2js] Select main method manually when compiling from dill.
Change-Id: I45ddca41b9bff49606e49dfd9b6110b7fc7f2283
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215683
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-10-15 16:40:29 +00:00
Konstantin Shcheglov c7138fe8cd Add FindNode.methodInvocations, use in BaseRangeFactoryTest.
Change-Id: I3c4749bca79004f800a74d84a9c3ae5c5b63f7bc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216961
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-15 16:01:50 +00:00
Jeff Kwoh e898eef6a2 Add ConstructorReference node for lints to subscribe
Bug: https://github.com/dart-lang/sdk/issues/47464
Change-Id: I3b0f8bf154e0f9d18c3040632c4ae2f73c56ba31
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216980
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Auto-Submit: Jeff Kwoh <jeffkwoh@google.com>
2021-10-15 13:55:55 +00:00
Martin Kustermann 1be6f891de [gardening] Try to configure TSAN to produce coredumps on aborts
We seemingly don't get coredumps on the "iso-stress" builder when
running under TSAN. This is an attempt of setting TSAN settings via
an environment variable to explicitly force this behavior.

We also add a print to an existing test to help identify in which
section a crash happens.

TEST=Attempt to obtain cores on iso-stress when running under TSAN.

Change-Id: I698eb62e537923dc6733b4ed496a47f67338da34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217010
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-10-15 11:47:42 +00:00
Daco Harkes be195ad329 [analyzer/ffi] Report non-const fromFunction argument
* Adds missing error to analyzer.
* Adds analyzer test.
* Adds analyzer/cfe negative test.
* Formats the analyzer/cfe negative tests file.

TEST=pkg/analyzer/lib/src/generated/ffi_verifier.dart
TEST=tests/ffi/vmspecific_static_checks_test.dart

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

Change-Id: Ibc2a3d1c3b4b4d8b2285605f084237a55253fb20
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217007
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
2021-10-15 11:21:23 +00:00
Chloe Stefantsova 43d91dd031 [cfe] Use expriment flag "named-arguments-anywhere"
Part of https://github.com/dart-lang/sdk/issues/47451.

Change-Id: I7befc385261f2489b79f6c90f1bb903b02a413a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217001
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <dmitryas@google.com>
2021-10-15 10:20:03 +00:00
Martin Kustermann d77a4af894 [gardening] Mark service/async_generator_breakpoint_test/ as slow in release mode
This test uses --stacktrace-every= which will cause it to be slow. It
was marked only as slow in debug mode, which this CL extends to all
other modes as well.

This addresses timeout of service/async_generator_breakpoint_test.

TEST=service/async_generator_breakpoint_test

Change-Id: I7576d7c1a392ff75ee779278ceb79f9681b8157c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217005
Reviewed-by: Tess Strickland <sstrickl@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-10-15 10:11:20 +00:00
Sigurd Meldgaard c176084c0a Bump pub to 35681b0126a1fb48bf2062dd09f74296715402c2
The pub client still won't send analytics with this PR. (This will be
enabled in a follow-up).

Changes:
```
> git log --format="%C(auto) %h %s" 0764437..35681b0
 https://dart.googlesource.com/pub.git/+/35681b01 Analytics (#2778)
 https://dart.googlesource.com/pub.git/+/9c65d31c Accept 'platforms' property in pubspec.yaml (#3176)
 https://dart.googlesource.com/pub.git/+/1af0de54 Accept 'screenshots' property in pubspec.yaml (#3174)
 https://dart.googlesource.com/pub.git/+/19045b95 Tests related to token authentication (#3147)
 https://dart.googlesource.com/pub.git/+/f36da07f Use applicationConfigHome from package:cli_util (#3164)

```

Diff: https://dart.googlesource.com/pub.git/+/0764437088fd58eb7af779ecef66bab40dfcf2e9~..35681b0126a1fb48bf2062dd09f74296715402c2/
Change-Id: I7313f3125934aba3473b2725074bfc7fd92e25e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217004
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2021-10-15 09:51:33 +00:00
Alexander Thomas 52294b4056 [testing] Remove self-check runtime
This config hasn't been running at least since Dart 2.0. This basically
reverts https://codereview.chromium.org/2549793002.

test.py no longer supports these options:
* --skip-compilation (skipped compilation commands)
* --runtime=self-check (ran the self-check tests)

Change-Id: I135c8d488a9319ee3482131cd22eb7cd3dfa3f25
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217003
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2021-10-15 09:43:22 +00:00
Daco Harkes 4031e6a82c [cfe/ffi] Refactor transform lists into sets and maps
Addressing https://dart-review.googlesource.com/c/sdk/+/216900/3/pkg/vm/lib/transformations/ffi.dart#77

TEST=FFI test suite

Change-Id: I96a88534d452fd727b7cc693cc5d37fd49d06977
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217002
Reviewed-by: Clement Skau <cskau@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2021-10-15 09:23:42 +00:00
Martin Kustermann edf9fa73ec [gardening] Fix memory leak of Dart::FeaturesString() buffer
The CL in [0] introduced a new usage of Dart::FeaturesString() but
missed to free the resulting buffer (it's not a compile-time constant
but rather built via TextBuffer).

Closes https://github.com/dart-lang/sdk/issues/47460

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

TEST=Fixes asan failures, e.g. vm/cc/DartAPI_InvokeVMServiceMethod

Change-Id: I954bd4a0af5959f1c38d4b70978bef6c6baed407
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216802
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2021-10-15 09:12:02 +00:00
Johnni Winther 0e7d0f5205 [cfe] Move createLibraryBuilder methods to loaders
Change-Id: I912ab0494cc91a4a2b665a24a7d55362402542ff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216940
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-10-15 06:13:07 +00:00
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