Commit graph

82085 commits

Author SHA1 Message Date
Michael Thomsen edb76fa0a7 Add changelog entry for TLS change
Change-Id: I0fe114426b0b0747d5080ab5bbbf6d2334d222d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215404
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2021-10-05 13:25:30 +00:00
Johnni Winther 74fd108a69 [cfe] Handle nullable function types in explicit instantiation
Part of https://github.com/dart-lang/sdk/issues/46232

Change-Id: I390dc15a253cf0b335ed41bf945bbab2a3b2bdcc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215545
Reviewed-by: Chloe Stefantsova <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-10-05 13:01:41 +00:00
Johnni Winther cf1591f935 [cfe] Refactor detection of instance type variable access in static context
NamedTypeBuilder is now created with a state that determines whether it
can validly be resolved to an instance type variable.

Change-Id: I1e7f5f8e05a5f68ec18a063476b6cda291a1aca8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214643
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-10-05 11:58:04 +00:00
Jens Johansen b683e9c481 [CFE] Serialize when fuzzing
Change-Id: Id06a81243630f3bca682ec7722113df6d07a87c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215423
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2021-10-05 10:58:31 +00:00
Alexander Thomas e4890276b5 [co19] Roll co19 to 3f7916727cf025bdedbe2b49625a8c403bead66b
2021-10-05 sgrekhov@unipro.ru Fixes dart-lang/co19#1205. Mixin methods equality tests added
2021-10-04 sgrekhov@unipro.ru dart-lang/co19#1205. Extension methods equality tests added
2021-10-01 sgrekhov@unipro.ru Fixes dart-lang/co19#1206. Use one object when calling 'call' method
2021-09-30 sgrekhov@unipro.ru dart-lang/co19#1205. More functions/methods equality tests added
2021-09-29 sgrekhov@unipro.ru dart-lang/co19#1205. Static methods equality tests fixed
2021-09-29 sgrekhov@unipro.ru dart-lang/co19#1205. Local and global functions equality tests fixed
2021-09-28 sgrekhov@unipro.ru dart-lang/co19#1205. Local and global functions equality tests added
2021-09-27 sgrekhov@unipro.ru Fixes dart-lang/co19#1204. Typo in method name 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: I2a5bbad38e38db2b2770e9971470181f61522cde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215543
Reviewed-by: Erik Ernst <eernst@google.com>
2021-10-05 10:24:06 +00:00
Johnni Winther 3aaea30f10 [cfe] Pass references to lowered tear-offs
TEST=existing

Change-Id: I7e2625f87b357ceec45ec2664f7444af38ec0cf1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215402
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-10-05 09:20:41 +00:00
Konstantin Shcheglov 2b36a3945d Issue 47364. Add context messages to TYPE_ARGUMENT_NOT_MATCHING_BOUNDS.
We include two pieces of data:
1. If the named type was raw, the instantated type.
2. If the type was not regular bounded, also the inverted type.

Bug: https://github.com/dart-lang/sdk/issues/47364
Change-Id: Idc8fce998f755e68bee0ada2caa715b59101cc84
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215484
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-04 22:23:00 +00:00
Konstantin Shcheglov 6e987219c4 Make LibraryCycle more null safe.
Change-Id: I1298651fcac80ec20db6c68b9b969da8c6320bde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215486
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-04 22:16:20 +00:00
Janice Collins 549bb52d89 Update dartdoc to match v4.0.0
Release notes: https://github.com/dart-lang/dartdoc/releases/tag/v4.0.0

Change-Id: I219ba57cdcd3090b301f40807e5d12256f4e32dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215485
Reviewed-by: Janice Collins <jcollins@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2021-10-04 21:42:16 +00:00
Paul Berry 757d179380 Update nomenclature in ErrorCode and related classes.
This change standardizes most of the analyzer to refer to problem
messages and correction messages using the names `problemMessage` and
`correctionMessage` (consistent with the naming convention used in the
analyzer and CFE `messages.yaml` files).

Change-Id: I72f078a368c65b346626f560cc721fcff4836452
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215151
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-04 19:50:37 +00:00
Ryan Macnak 04e184d791 [vm, gc] Don't grow new-space in response to idle or low-memory GC.
The vm-service sees alternating bursts of activity and idle periods. Before this change, the vm-service would often quickly reach the maximum new-space size; after it usually stays at the initial size.

TEST=--verbose-gc
Change-Id: I13e80a114e04ae91a837fbe9c8b1967ad5e8c4c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215141
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Liam Appelbe <liama@google.com>
2021-10-04 19:15:26 +00:00
Ryan Macnak 5da8050f86 [vm, gc] Move GCType and GCReason out of Heap, making them accessible to Scavenger and PageSpace.
Add a GCReason for store buffer overflow instead of using a separate print.

This is a pure refactoring that doesn't change GC policy.

TEST=ci
Change-Id: Idcd95b0701a36f45ebaa02db2c2fac9a9081d7c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215102
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-04 18:57:19 +00:00
Brian Quinlan 4933f44a82 Add a test for Platform.localeName
Change-Id: I53b995239426b463b8a3dbd529447f016fe81d81
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215156
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
2021-10-04 18:41:50 +00:00
Robert Nystrom b927288ed1 Remove "dartfmt" entrypoint from the SDK.
Change-Id: I32a9f95d7b22d3311767ba22c350f197592abcab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215300
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2021-10-04 18:40:57 +00:00
Robert Nystrom a6fb77f02e Remove "resource" package from DEPS.
As I was fixing up old references to "dartfmt", I noticed the resource
package is marked archived. It doesn't seem to be used anywhere in the
SDK, so can we remove it?

Change-Id: I9a2230c6f8c42c446e7d2576a8d26f8d06e0cfb0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215157
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-10-04 18:33:47 +00:00
Robert Nystrom c9862d5438 Remove a reference to "dartfmt" in a TODO comment in analyzer.
Change-Id: I0f47aa783625d01e3e632cde8a36e865bb85fd27
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215481
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-10-04 18:32:07 +00:00
Robert Nystrom 82affd7ac6 Change "dartfmt" -> "dart format" in test generator.
Change-Id: I1da2fc67dcfa1502b63b2cdbb7e460a86ac22967
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215159
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2021-10-04 17:11:27 +00:00
Konstantin Shcheglov 40e52cc878 Add BazelWorkspace.clearCache() and clear a cache.
Change-Id: I1fcd38b91effdde8dd5791d433047d9234c13d56
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215460
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-04 16:34:36 +00:00
Konstantin Shcheglov f7a0e16bf6 Call changeFile() for ChangeType.ADD
AnalysisDriver.addFile() means: analyze this file when anything about
its dependenciea changes, e.g. it is a part of an open directory. But
generated files are not, we don't want to analyze *them* per se. But
they might affect added files, so we should call changeFile() instead.

Change-Id: I729119b3be077cbc99480ca66698d6b67425c79f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215380
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Michal Terepeta <michalt@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-04 16:20:48 +00:00
Konstantin Shcheglov d3b03b128d Skip das-flutter-completion in tests.
Change-Id: I2cd0db84358064da264b21b07aba2ecb5cd197f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215381
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-04 16:20:40 +00:00
Paul Berry 90cfd7afd0 Rename syntactic_errors.analyzer.g.dart to syntactic_errors.g.dart
Change-Id: Ibf80d44306313950c309af76122151086c7e7dc6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215362
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-04 15:09:46 +00:00
Johnni Winther 5574b1e59f [cfe] Support implicit tear off in explicit instantiation
Part of https://github.com/dart-lang/sdk/issues/46232

Change-Id: I578ae9d78dd71da40630a3d6da75c4344876944b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215021
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <dmitryas@google.com>
2021-10-04 14:35:30 +00:00
Johnni Winther 81839ddcc1 [cfe] Generate tear off lowering for named mixin application constructors
Closes #47313

Change-Id: I41f822cdc026214b538e5bcf562b51a065e50904
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215200
Reviewed-by: Chloe Stefantsova <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-10-04 13:55:37 +00:00
Paul Berry b2c2acee09 Adjust front end nomenclature for error messages.
This change updates the classes Message, MessageCode, Template,
LocatedMessage, and FormattedMessage so that they uniformly refer to
error message text using the terminology `problemMessage` and to
correction suggestions using the terminology `correctionMessage`.
This brings them into alignment with the names we've decided to use to
unify the structure of front_end and analyzer, and makes them match
the names used in the anlayzer and front end's `messages.yaml` files.

Change-Id: Idcbb7ccfff6bb4e99ca22a3ef3c19d83880cf3c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215154
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-10-04 13:32:46 +00:00
Jens Johansen c3d9664956 [CFE] Unmark dart2js late lowering as semi fuzz failures
It no longer fails.

Change-Id: I512d01a273c1c8f68991e92862f7bd9e87fdd7b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215421
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2021-10-04 13:07:46 +00:00
Paul Berry 33f69b0ced Clean up documentation/comments handling for shared errors.
For errors that are shared between the front end and the analyzer, we
move the `documentation` and `comment` fields from
`pkg/analyzer/messages.yaml` to `pkg/front_end/messages.yaml` (where
the rest of the information about the error is).  This eliminates the
need to have any entries at all for these shared errors in the
`pkg/analyzer/messages.yaml` file, so we no longer need the boolean
flag `copyFromCfe` in this file.

This simplifies generation of analyzer error codes, so we go ahead and
take this opportuntity to remove the old `syntactic_errors.g.dart`
file, and instead code generate all the shared messages directly into
`syntactic_errors.analyzer.g.dart`.

In a follow-up CL I'll rename `syntactic_errors.analyzer.g.dart` back
to `syntactic_errors.g.dart` to reduce confusion.

Change-Id: I1e314e51c94ef595d9d6de8ba2b30e12a18382a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215155
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-04 13:03:26 +00:00
Johnni Winther b6b81ebad1 [cfe] Setup correct scope for builder outline expressions on extension fields
Closes https://github.com/dart-lang/sdk/issues/47345

Change-Id: I3a666fde4d6dd802e6101ccbd55dff11c0179fba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215401
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-10-04 12:14:57 +00:00
Chloe Stefantsova fcd684e7d1 [cfe] Allow named arguments anywhere by the CFE
Change-Id: I36ecafe821fe328bd27cb40dafca78ad0bf5dd81
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214803
Commit-Queue: Chloe Stefantsova <dmitryas@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-10-04 11:57:41 +00:00
Loganaden Velvindron 8062c4cc67 Switch to TLS 1.2 as minimum requirement
According to https://tools.ietf.org/id/draft-ietf-tls-oldversions-deprecate-06.txt

TEST=Not applicable, config change.

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

GitOrigin-RevId: e1dc037c1e22996b2085e3d16427525c033bdc01
Change-Id: Ic8340eee7fa26846302727672ca7989ce1e93c99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140481
Commit-Queue: Michael Thomsen <mit@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-10-04 09:51:38 +00:00
Martin Kustermann 7abf6bfab7 [gardening] Add coredump archiving support to iso-stress builder.
This is an attempt to enable archiving of coredumps on the
"iso-stress" builder, since we're often unable to reproduce crashes from
that builder.

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

TEST=Adds test infra.

Change-Id: I9b7276198db9a6c98a74f55d466bf832b03e24f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214407
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-10-04 08:49:28 +00:00
mnordine 31afa1bf4b Incorrect wording
I think "contains" was meant here.

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

GitOrigin-RevId: ee2dee2b732723b7cf73413d8fde2612f5fb533a
Change-Id: I78be99af3584dee00e4253a1ac32e3e476a01da6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215340
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2021-10-04 08:39:38 +00:00
Johnni Winther e2a689bafd [cfe] Split Dill/SourceLoader and Dill/KernelTarget
This moves all implementation code from Loader and TargetImplementation
down to the concrete subclasses, Dill/SourceLoader and Dill/KernelTarget,
respectively, and removes all unneeded code. Since TargetImplementation
is now only an interface, it replaces the role of its supertype Target.

Change-Id: I8a556ac5bc559432dbd19a6a48151469a2cb0238
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214020
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-10-04 07:36:38 +00:00
Konstantin Shcheglov 6dd77ca4cc Prepare to publish analyzer_plugin 0.8.0
Change-Id: Ia1c799e7ed7e52eb86a01fe31fe05bb7c399720d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215244
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-10-04 05:04:58 +00:00
Konstantin Shcheglov 23cf71efba Fix g3/fixes_test on Windows.
R=brianwilkerson@google.com

Change-Id: Ib23fecc6b96b66b88f9d48d788f4509ecad78355
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215241
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-03 17:16:17 +00:00
Sam Rawlins f4180854c7 Refactor evaluateConstructorCall into a separate class
`ConstantEvaluationEngine.evaluateConstructorCall` was ~350 lines long,
with a few short-circuit returns scattered in various for-loops, and
variables used >100 lines from where they were declared or written to.
Much of the code in ConstantEvaluationEngine was dedicated to evaluating
some special functions like `String.fromEnvironment`, etc.
Moving to a new class, _InstanceCreationEvaluator, allows us to move
several helper methods which were only used by that method, and several
static functions. I also split the method into several single-purpose
helper methods.

Improvements to const instance creation expression evaluation should
be more straightforward with this new code, with more single-purpose
methods.

* Move `checkFromEnvironmentArguments`, `checkSymbolArguments`,
  `evaluateSuperConstructorCall`, `followConstantRedirectionChain`, and
  `isValidPublicSymbol` to the new class.
* ConstantEvaluationEngine is reduced from 800 lines to 300 lines.
* Make `getConstRedirectedConstructor` and `_nullObject` static.
* Refactor `ConstantEvaluationEngine.runtimeTypeMatch` into an extension
  on TypeSystem.
* Rename static strings and regexp to use lower_case.
* Use `var` where possible.
* Use single-quoted strings.


Change-Id: Ie28cb961d04c372836783ab2166b02d8ac67d149
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215158
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-10-02 03:01:37 +00:00
Nicholas Shahan ea4302d029 [ddc] Add constructor symbol information
- Adds tests for various types of constructors.
- Recognize when a constructor is const and mark the class symbol
  accordingly.

Change-Id: I9ae7fc2837a6821b196f06a267603fd18c3e5075
Issue: https://github.com/dart-lang/sdk/issues/40273
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208362
Reviewed-by: Anna Gringauze <annagrin@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2021-10-01 22:57:09 +00:00
Kevin Moore 6f4d79a7e9 Bump http to f35d1e1467092f6a5edb2abf7071c4a99e8c737a
Changes:
```
> git log --format="%C(auto) %h %s" 778174b..f35d1e1
 https://dart.googlesource.com/http.git/+/f35d1e1 Require Dart 2.14, prepare to release v0.13.4 (#626)

```

Diff: https://dart.googlesource.com/http.git/+/778174bca2c13becd88ef3353309190b1e8b9479~..f35d1e1467092f6a5edb2abf7071c4a99e8c737a/
Change-Id: I302deb4e99d9c040e05473cd944b1eb64b619191
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215243
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Auto-Submit: Kevin Moore <kevmoo@google.com>
2021-10-01 22:50:37 +00:00
Alexander Aprelev 48db681c66 [vm/sendandexit] Add CHANGELOG for Isolate.exit([port, message]) change.
This is follow-up to 56403a0d35.

Change-Id: I222c04fd4d41e272eeb3e8fd62c55035eee1c12c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215143
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2021-10-01 22:04:36 +00:00
Brian Quinlan c3171cf26e Add some more documentation for Platform.localeName.
Change-Id: I0b08cea81f47b03fcdf82fa378c37e28889113c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215153
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
2021-10-01 22:00:06 +00:00
Ahmed Ashour a4d8f343ae Add a quick fix for avoid_escaping_inner_quotes
Fixes #47158

Change-Id: I447cf68d2da682bab93fb43b0ad61546a2217755
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212825
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-10-01 21:55:15 +00:00
Konstantin Shcheglov 7fb8c7afea Rename analyzeSync() to analyze().
R=brianwilkerson@google.com

Change-Id: Ie05edb97b27d0820387184c5158c095549ab1a00
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215260
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-01 21:27:37 +00:00
Robert Nystrom 822140714d Script to scrape corpus to evaluate "super." parameter proposals.
Change-Id: I7c0635c2fbe7ec3f739c35b8e6a3cd1d0e2bfe22
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215120
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2021-10-01 18:54:48 +00:00
Alexander Markov f824db7bc2 [vm/compiler] Debug prints for flaky crash in compiler
This change adds debug prints for flaky crash in compiler which
only appears on bots.

TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/47314
Change-Id: I6653df11612d24e8a8e67e3e177484a70e308dcc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215152
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-10-01 18:33:26 +00:00
Robert Nystrom 3ac34f791d Change references to "dartfmt" in runtime and tools to "dart format".
In Dart 2.15, we're removing "dartfmt" in favor of "dart format", so I'm
going through and fixing all the dangling references to the old name.

TEST=Only changing tools

Change-Id: I83a5c00be925fdb536014a47dff2b488ed9f478b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215186
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-10-01 18:16:27 +00:00
Konstantin Shcheglov bc5a1138e0 Add several Flutter completion benchmarks.
When running DAS from sources, so might be not exactly as when running
from the snapshot, currently we have following numbers:

Before reverting to allow available declarations:
{das-flutter-completion-start: {micros: 15030209}, das-flutter-completion-smallFile-body: {micros: 619210}, das-flutter-completion-smallFile-body-withoutPrefix: {micros: 484791}, das-flutter-completion-smallLibraryCycle-largeFile-smallBody: {micros: 2348386}, das-flutter-completion-mediumLibraryCycle-mediumFile-smallBody: {micros: 3701027}, das-flutter-completion-mediumLibraryCycle-mediumFile-api-parameterType: {micros: 3332297}}

Current 2021-09-30 master:
{das-flutter-completion-start: {micros: 15194069}, das-flutter-completion-smallFile-body: {micros: 22721}, das-flutter-completion-smallFile-body-withoutPrefix: {micros: 7796}, das-flutter-completion-smallLibraryCycle-largeFile-smallBody: {micros: 552269}, das-flutter-completion-mediumLibraryCycle-mediumFile-smallBody: {micros: 3076925}, das-flutter-completion-mediumLibraryCycle-mediumFile-api-parameterType: {micros: 3010509}}

Current 2021-10-01 master, with snapshot:
{das-flutter-completion-start: {micros: 6657503}, das-flutter-completion-smallFile-body: {micros: 20596}, das-flutter-completion-smallFile-body-withoutPrefix: {micros: 7073}, das-flutter-completion-smallLibraryCycle-largeFile-smallBody: {micros: 556415}, das-flutter-completion-mediumLibraryCycle-mediumFile-smallBody: {micros: 85024}, das-flutter-completion-mediumLibraryCycle-mediumFile-api-parameterType: {micros: 331850}}

Change-Id: I1d76f4f15d36e316b553ffc6cfaf24551c7f9bf5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215240
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-10-01 18:01:49 +00:00
Konstantin Shcheglov 4f80522fe4 Prepare to publish analyzer 2.4.0 and _fe_analyzer_shared 27.0.0
Change-Id: I48d0f8fcd4f966c9c55542ae9d239095b81ea45c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215007
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-10-01 16:45:23 +00:00
Paul Berry 1954b914bc Add documentation to the analyzer messages.yaml file.
Change-Id: I967aba1bd189c7790df4c18c48d100839db7582a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215150
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-01 16:44:43 +00:00
Danny Tuppeny 98ee47a11a [dds] Export DAP classes required to build new debug adapters externally
Change-Id: I7bb05b2f467bad5e522898dfaa3d0f1e74c42b58
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215081
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-10-01 16:31:34 +00:00
Danny Tuppeny df67dc892b [dds] Add some basic test reporting for DAP test adapter
Change-Id: I39ca29ee5809fd0d6ef30ee163298f66749bed0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215080
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-10-01 16:31:34 +00:00
Robert Nystrom 1a218ca03f Remove dartfmt from SDK artifact size benchmark.
Dart 2.15 won't contain it as a separate snapshot.

Change-Id: I8f356a4b9c88fd736f755d8f85b68f8e18f6ec78
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215182
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-10-01 15:45:53 +00:00