Commit graph

82122 commits

Author SHA1 Message Date
Ryan Macnak 88d7f53359 [standalone] Truncate names passed to pthread_setname_np.
pthread_setname_np ignores names that are too long rather than truncating. This was causing most dart:io threads to remain unnamed.

Cf. eec49f34c4.

TEST="thread info" in gdb
Change-Id: I12f47b06b81f1204f742d829e14784d792a4fb96
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215800
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2021-10-06 17:46:29 +00:00
Sam Rawlins 2369d59b19 Support constructor references, function references, and type literals as potentially constant
Fixes https://github.com/dart-lang/sdk/issues/47153

Change-Id: Ia86464e1b460a30540c3314e2d6fbf477a9285b6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215685
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-10-06 16:58:09 +00:00
Nate Bosch 72de2cbfcd Update to the latest package:csslib
Change-Id: I74d6a46652bd07fb26c1edc0ab62550011d9a64f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215781
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
Reviewed-by: Michael Thomsen <mit@google.com>
2021-10-06 16:32:59 +00:00
Ryan Macnak 1a4d708580 [vm] Remove disused "mode" argument in timeline events.
TEST=ci
Change-Id: I746f592d30c5e4384a451c131d357d5843807567
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215642
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-06 16:30:19 +00:00
Konstantin Shcheglov 5ac578538e Fix CiderFixesComputerTest on Windows.
Change-Id: I53cb22e043140d6f99dd8464aa34605949897d7e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215780
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-06 16:19:19 +00:00
Paul Berry a706779df1 Refactor additional logic for analyzer error message generation.
This change moves a lot of logic into `error_code_info.dart`.  In a
follow-up CL I'll make use of this code to re-work
`verify_diagnostics_test.dart` and the code generator for the
analyzer's `diagnostics.md` file.

Change-Id: I0dca7d30a9def771f03c6a51d26335aeab1c964c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215662
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-06 16:08:49 +00:00
Sam Rawlins 15324c793d Support const implicit instantiation for prefixed identifiers and property access
Bug: https://github.com/dart-lang/sdk/issues/46020
Change-Id: I99bfa6d96b84a41abdd02d41ff6ad7dd5c99789c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215687
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-10-06 15:26:38 +00:00
WonYoung Choi 1951cce55a typo: thin -> this in lib/async/zone.dart
Fix typos in comments of Zone.bindUnaryCallback() and Zone.bindBinaryCallback()

Change-Id: I359bdd3623399fae163e57453b52e97039859392
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215700
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2021-10-06 15:08:48 +00:00
Danny Tuppeny 1cc4c11257 Add changelog for DAP classes + some docs on DAP
Change-Id: Ic74f02ec29b45c70dcf71f5d395d2bf80b85a269
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215552
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-10-06 12:54:18 +00:00
Clement Skau d5fada929d [vm/ffi/test] Replaces FfiNative transform test with expect.
We can't rely on GC to trigger the finalizer of a given test object,
so the previous liveness test was unreliable.

Instead we add an expect test to verify we generate the necessary
`reachabilityFence(..)`s to ensure liveness.

TEST=Adds expect.
Bug: https://github.com/dart-lang/sdk/issues/47362
Change-Id: Ia57a07522c8b8265b24780f00f3339b50534eb60
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-nnbd-mac-release-arm64-try,vm-kernel-nnbd-mac-debug-x64-try,vm-kernel-mac-product-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215542
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2021-10-06 10:40:16 +00:00
Jens Johansen 9836909f3d [CFE] Make unit_test_suites report errors
Change-Id: I4ede539b5508b7206fd486c6a4556ba01e78b299
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215740
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-10-06 08:16:15 +00:00
Daco Harkes 862e473c2e [vm] Native API DL: dllexport on Windows
`DART_EXTERN` in `dart_api_dl.h` was missing `__declspec(dllexport)` on
Windows, causing `Dart_InitializeApiDL` to not be visible.

Using `DART_EXPORT` instead doesn't work because the definitions added
by `DART_API_ALL_DL_SYMBOLS` do not support having a 'used' attribute.

Instead, define a `DART_EXPORT_DL` for these which is identical but
without the 'used' attribute.

Note that the precompiler `DART_SHARED_LIB` macro must be defined for
`__declspec(dllexport)` to be part of `DART_EXPORT`/`DART_EXPORT_DL`.

Also fixes `#define DART_EXTERN_C` to be `extern` in C. Without this,
the linker will see duplicate symbols for things `DART_EXPORT`ed when
the `dart_api_dl.h` is included in C files.

TEST=SDK build on all OSes

Change-Id: I0af1d46d22409599203d9be310d54bd16c6a5b59
Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try,dart-sdk-mac-arm64-try,dart-sdk-mac-try,dart-sdk-win-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215550
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2021-10-06 07:42:44 +00:00
Johnni Winther 3171c7cc0e [cfe] Remove UnresolvedType
All NamedTypeBuilder objects from user code contain the needed file uri
and char offset.

Change-Id: Ia067c5ef740967302aa207eaf2d46fc2f75c1c8f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215600
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-10-06 07:39:34 +00:00
Alexander Markov 1d28bf98da [vm] Fix equality of closures instantiated from the same closure
TEST=co19/LanguageFeatures/Constructor-tear-offs/equality_A03_t01
TEST=co19/LanguageFeatures/Constructor-tear-offs/equality_A03_t02
TEST=co19/LanguageFeatures/Constructor-tear-offs/equality_A03_t04

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

Change-Id: I380cbabe5406f1a8cd5ccf180eb392f36f77f164
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215620
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-10-06 00:24:02 +00:00
Konstantin Shcheglov a4aeee7d6b Remove deprecated elements from Cider support.
Change-Id: I01d753153e6564adccb77cb5ff7a6c0810f0b0cc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215645
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-05 23:51:42 +00:00
Nicholas Shahan 198dc43075 [ddc] Migrate module_metadata to null safety
* Migrate the library and tests.
* Update comments per effective dart recommendations.

Change-Id: Ibc8da1fe68c977fb3c084208b96734354ad2705b
Issue: https://github.com/dart-lang/sdk/issues/46617
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215122
Reviewed-by: Anna Gringauze <annagrin@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2021-10-05 22:57:42 +00:00
Ryan Macnak 38920c9585 [vm] Remove dead ObjectPool entry type NativeFunctionWrapper.
This became obsolete when we added separate exit stubs for each wrapper.

TEST=ci
Change-Id: Icf73452aebd20e00e16d0a75ffec877715c9e5c4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215646
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-10-05 22:49:22 +00:00
Brian Wilkerson 8254783056 Mark newly published diagnostics as having been published
Change-Id: I78c6a15abd6e8a3e077a74c0951c28a543873336
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215647
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-10-05 22:30:32 +00:00
Konstantin Shcheglov 34b2bcb50d Prepare to publish analyzer 2.5.0 and _fe_analyzer_shared 28.0.0
Change-Id: I72d6b6b6634a949c1b1fb5ff5aa3dfa51ad835e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215644
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-05 22:05:32 +00:00
Ahmed Ashour 32d12aa305 [analyzer] Add a fix to add a method body
Fixes https://github.com/dart-lang/sdk/issues/47141

Change-Id: Ica44eb7fa0dbb00cf722126917949551bd0d478b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215420
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-10-05 21:29:42 +00:00
Devon Carew ff7c693221 Several fixes to the core lib docs.
Change-Id: I09156b3b70eec90007a5295fddb0828bd3015995
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215180
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-10-05 21:29:02 +00:00
Ahmed Ashour 532c6d94b1 [analyzer] Add a quick fix for require_trailing_commas
Fixes https://github.com/dart-lang/sdk/issues/47232

Change-Id: Ie907dc74bbe2a1a02a846ae1609c4b2488c934f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215403
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-10-05 21:03:42 +00:00
Alexander Aprelev c0e5cec5da [vm/isolates] Fix Isolate.exit() message validation.
Isolate.exit() message validation diverged from SendPort.send one, so this CL aligns them back.

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

TEST=sendandexit_test

Change-Id: I4c85933acb87a29892df5eb3cd2843e3207418b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215502
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2021-10-05 20:44:31 +00:00
Konstantin Shcheglov 5eeb0b3964 Support for 'Import Library' quick fixes in Cider.
Bug: https://buganizer.corp.google.com/issues/201080674
Change-Id: Ie3c410f51df9d29725823f2aa6797fff54391f88
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215640
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-05 20:44:22 +00:00
Srujan Gaddam 017850fe5b [dart:html] setAttribute value should be Object
Bug: b/195948110

`setAttribute` stringifies any non-string value. `setAttributeNS` is
also similarly modified for consistency.

Change-Id: I883516f5ed2c977cdc591b697594817378607e53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215621
Reviewed-by: Gary Roumanis <grouma@google.com>
Commit-Queue: Gary Roumanis <grouma@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2021-10-05 20:08:41 +00:00
Ahmed Ashour a242b4d6cc [analyser] Sort TypeHierarchy results
Fixes https://github.com/dart-lang/sdk/issues/26412

Change-Id: I0d00e8be645532695bb52a8b7c9afec455c39319
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215546
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-10-05 19:44:31 +00:00
pq eb9d7b1d14 add SDK mocks
Required for: https://github.com/dart-lang/linter/issues/2969

Change-Id: I74ea56145cf7e0dea2481e945f2e7810c3cffd9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215501
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-05 19:22:00 +00:00
Joshua Litt a78d0ce047 [dart2js] Reuse serialization ids for codegen.
Impact on CM:

Before(3a):
  Serialized 1,224,950,828 bytes data to 520,676,411 bytes
Before(3b):
  Compiled 1,745,627,239 bytes data to 425,409,433 characters

After(3a):
  Serialized 1,224,950,828 bytes data to 350,134,862 bytes
After(3b):
  Compiled 1,575,085,690 bytes data to 425,409,433 characters


Change-Id: Ie0247e33f7bcccd0492c3d209ad02dc947341098
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215480
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2021-10-05 17:32:30 +00:00
Paul Berry 25532307c4 Clean up code for parsing analyzer documentation and extracting code samples.
Previously this logic was duplicated in two separate locations,
`verify_diagnostics_test.dart` and the code generator for
`diagnostics.md`.  Unifying it will pave the way for a follow-up CL in
which I intend to parse the documentation directly from the
`messages.yaml` files (rather than from comments in the analyzer
classes that are generated from those files).

I've also taken this opportunity to add some more checks to the
parsing logic, so that mistakes in the documentation (e.g. misspelling
a section header) will be reported as errors rather than causing a
silent loss of functionality.

Change-Id: Icfcb52229eb94bb06bc57334e265ef4d6db299de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215580
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-10-05 17:29:41 +00:00
Martin Kustermann 0cab42bbea [gardening] Ignore normal exceptions/compile-time errors when trying to archive coredumps
TEST=Makes iso-stress builder not run into issues during coredump archiving

Change-Id: I2998328f63759cf4c02d29e6480b3d8410730e2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215548
Reviewed-by: Clement Skau <cskau@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-10-05 16:56:40 +00:00
Alexander Markov 1d5b9ed046 [vm/aot] Remove PatchGlobalObjectPool step from AOT snapshot reading
This change removes the extra pass over global object pool after AOT
snapshot is loaded by adding extra kSwitchableCallMissEntryPoint and
kMegamorphicCallEntryPoint object pool entry kinds which are handled
during ReadFill phase.

On a low-end phone and large Flutter app compiled in release mode
with dwarf_stack_traces, FullSnapshotReader::ReadProgramSnapshot time
Before: 232.41 ms
After:  202.43 ms (-12.8%)

Also, this change adds PrintTimeScope utility class which can be used
to measure and print time in release mode without timeline and profiling
tools:

ApiErrorPtr FullSnapshotReader::ReadProgramSnapshot() {
  PrintTimeScope tm("FullSnapshotReader::ReadProgramSnapshot");
  ...
}

TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/46116
Change-Id: I42bd46761eac8fc1e52ca695cacd2b86705034d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215500
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-10-05 16:32:40 +00:00
Konstantin Shcheglov bde81f21c6 Issue 46515. Stop lookup when scope lookup gives an instance member.
Bug: https://github.com/dart-lang/sdk/issues/46515
Change-Id: I70bd7e74365dc4cb073201ef95df2263b47b8441
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215581
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-10-05 16:22:40 +00:00
Ben Konyi fad6dab20c Roll DevTools to version 2.7.0
Change-Id: Ib98f2396be310a176cb0c4861cdfcd01320c323a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215520
Reviewed-by: Kenzie Schmoll <kenzieschmoll@google.com>
2021-10-05 15:24:41 +00:00
Paul Berry b6d00aea17 Fix bad %uri directives in analyzer error messages.
The code for parsing `%uri` directives requires them to use double
quotes.  In a follow-up change I will be improving the error checking
around these directives, so this fix will prevent that CL from
provoking test failures.

Change-Id: I39353f5705442aafeb760c2912aec6c0217e18d5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215560
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-10-05 15:22:41 +00:00
Johnni Winther c8cf6d6bba [cfe] Fix reference lookup for external extension fields
Change-Id: Ibd540d6b4aa56ee15f50e39184b420eca427845d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215551
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-10-05 15:16:20 +00:00
Martin Kustermann bcedf9f99a [gardening] Fix benign nullptr-dereference reported by UBSAN
Fixes https://github.com/dart-lang/sdk/issues/47341

TEST=Fixes service_2/break_on_function_many_child_isolates_test/service in UBSAN

Change-Id: I4de303e99604b9ffeca36a8e62bbaac421b1e7ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215547
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-10-05 15:11:00 +00:00
Michael Thomsen baaf9200f5 Update readme
Fix a number of stale entries. Didn't touch the ones already
being cleaned up here:
https://dart-review.googlesource.com/c/sdk/+/215300

Change-Id: I4e694c3d6a855bdcbba755c2dfd8bc990ee30526
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215400
Commit-Queue: Michael Thomsen <mit@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2021-10-05 13:46:41 +00:00
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