Commit graph

81883 commits

Author SHA1 Message Date
Danny Tuppeny d74199de8f [analysis_server] Add support for new TEAR_OFF highlight kinds to LSP
Change-Id: I924037e639a8f37df085a7831f970ebc5334ba16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213263
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-13 15:15:00 +00:00
Chloe Stefantsova 2048ab37f1 [cfe] Add shown and hidden elements to Extension Kernel node
TEST=existing

Change-Id: I8271cb7f4731dea289c855b0c5384f8e181530c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212761
Commit-Queue: Chloe Stefantsova <dmitryas@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-13 13:18:19 +00:00
Sigurd Meldgaard a7041168e7 Roll pub
New commits in this version:

git -C third_party/pkg/pub log --oneline cd7a43f2109f7e5eb22e73c7f4e15d25fd57598e..d95c5713dda518ed53ada70e00789e6aadbfbe48
d95c5713 (HEAD, origin/master, origin/HEAD) Remove duplicate global invocation on Windows (#3055)
4c5198df master->main (#3101)
e793fd52 More tool/test.dart tweaks (#3097)
1b228edd Report retracted packages (#3093)
4fedb6c5 Tweak strict dependencies error message for `_validateBenchmarkTestTool` (#3087)
e608ab6e Improve test script (#3091)
abf702c4 Detect potential leaks in `dart pub publish`. (#3049)
9941c1f9 Fix broken simplification of prerelease constraints (#3078)
f0cdfa27 format (#3086)
5a1242c6 Fix unicode terminal detection windows (#2933)
58e2296d Dart format (#3084)
1426601c use incremental compilation in the tool/test.dart script (#3075)
9954f851 Fix a typo (#3062)
44489b31 Use relative import for path.dart (#2959)
77702ab1 Always precompile scripts before running them (#3074)

Change-Id: I913ab9e3b5bc7181d483a2de96ec4ad917028b75
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213262
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2021-09-13 11:02:19 +00:00
Jens Johansen e47850a197 [CFE] Reproduce issue 47176
This CL reproduces - but does not fix - issue #47176
(https://github.com/dart-lang/sdk/issues/47176)

Change-Id: I03384a6933a6f8181e909d8b6bc812e5550f903f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213261
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-13 09:32:59 +00:00
Clement Skau 7d467e8933 [vm] Adds args_n to FFI resolver.
This makes it more closely mirror the Dart_NativeEntryResolver,
and acts as an extra sanity check that signatures (roughly)
align between the FfiNative decl. and the native function.

TEST=Updated runtime/vm/dart_api_impl_test.cc

Change-Id: I40799dc583ec14db14dc453afed4e2d1eb06fced
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212566
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2021-09-13 07:57:00 +00:00
Murtaza Raja 7c7f6623a9 typo: patter -> pattern in lib/core/pattern.dart
Closes https://github.com/dart-lang/sdk/pull/47198
https://github.com/dart-lang/sdk/pull/47198

GitOrigin-RevId: 647929b9ed24826261d37f60bd2180d79917e954
Change-Id: Ic857fffa8232e29f8ae5248bc7c4ce9264a090b5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213220
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2021-09-12 18:23:08 +00:00
Stephen Adams 763988d7f4 [dart2js] Rename Setlet/Maplet.from to .of for consistency with Set/Map
Modernize setlet and maplet unit tests.

Change-Id: I8508e9e48dc80e1a00b984c7ac82e1d57278ad6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212872
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-09-12 07:52:19 +00:00
Konstantin Shcheglov dea3861e5f Stop using FeatureSet.forTesting() in analyzer/.
Change-Id: Ic4de7d6bcb3397aaa86ff6d82cce1531afbffa50
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213118
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-11 18:46:27 +00:00
Konstantin Shcheglov ddce4b3535 Rename AbstractTypeSystemTest -> AbstractTypeSystemWithoutNullSafetyTest, AbstractTypeSystemNullSafetyTest -> AbstractTypeSystemTest.
There are a few subclasses that could be renamed to be more consistent,
will do this in a separate CL.

R=brianwilkerson@google.com

Change-Id: I3adccf32e463b4c622a08d206d2ec0d9e49e72cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213117
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-11 01:17:26 +00:00
Konstantin Shcheglov 289cadb70a Remove explicit EnableString.non_nullable in BazelWorkspacePackage.
It is already enabled by default in the latest language version.

Change-Id: I91feabd596c35410890601ae82c446be5ea6ad3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213116
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-11 00:28:37 +00:00
Konstantin Shcheglov a512845350 Use AbstractTypeSystemNullSafetyTest in more places.
R=brianwilkerson@google.com

Change-Id: Idcba60ab93ff4783a35da3c009e63094eb09e3d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213111
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-11 00:15:46 +00:00
Konstantin Shcheglov d793ef9bcf Support for ConstructorReference and FunctionReference in AstTextPrinter.
R=brianwilkerson@google.com

Change-Id: I1fecf2a9fd63e6abb5b0ebf1b0c7b818b4d49520
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213113
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 23:34:16 +00:00
Konstantin Shcheglov e5efe55d4a Change how FeatureSet is created in nnbd_migration.
Change-Id: I0fd902b4e1b6cc0d59dc6a136d1312ec60511169
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213109
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 22:45:46 +00:00
Ryan Macnak f51fe8fca4 [vm] Reimplement BaseDirectChainedHashMap to use less memory.
gen_snapshot dart2js.dill ...
Maximum resident set size (kbytes): 432920 -> 412908 (-4.6%)

gen_snapshot dart2js.dill --write-v8-snapshot-profile-to=...
Maximum resident set size (kbytes): 904756 -> 662024 (-26.8%)

Also shrinks the VM's binary size by ~100k.

TEST=ci
Bug: b/196510517
Change-Id: I73ea0f87b75e3c1dacb5f31a687effe293e5a350
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212920
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2021-09-10 22:21:36 +00:00
asiva c8040131c6 [VM/Runtime] - Switch DartInitializationState to use atomic operations instead of mutex/condition variables
TEST=ci

Change-Id: Ifbcbfdba4874930e83e17de4882b535dc3e76a7a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212865
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2021-09-10 22:18:20 +00:00
Ryan Macnak 802dfdfd62 [vm, compiler] Restore the performance of LoadUniqueObject.
The purpose of LoadUniqueObject (77c206f231) is to avoid the cost searching for matching object pool entries. Pass kPatchable to AddObject to skip the work of inserting / rehashing. This also fixes incorrect use of DirectChainedHashMap::Insert with an already-present key.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/23249
Bug: https://github.com/dart-lang/sdk/issues/38018
Change-Id: I30cc3212720d3ddfc9bc515b092a4cd6f6879b8f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213027
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2021-09-10 21:53:26 +00:00
Sam Rawlins 8132940357 Support function types in const is checks
Fixes https://github.com/dart-lang/sdk/issues/47161

Change-Id: Ibe39331217c88bccc331d4d569f469905c70c66e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212867
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 21:46:49 +00:00
Konstantin Shcheglov b3590baf88 Stop using FeatureSet.forTesting() in analysis_server.
Change-Id: Icdc454107d2f63fde7ac906cb459d861e426631d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213110
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 21:39:36 +00:00
Konstantin Shcheglov 143adf7dbf Replace ExperimentStatus.latestSdkLanguageVersion with 'currentVersion' and remove it.
Change-Id: I9094aa712e2c6c6ec5c68cd81a6e5515dc52fde2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213108
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 21:38:47 +00:00
Srujan Gaddam b1d4b29faf [dart:html] Await completer future instead in js_interop_1_test
js_interop_1_test awaits the completer itself instead of the
future which is triggered when the completer completes.

Change-Id: I6a784ced7caaade457cd444823e8cd21d338b9b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213025
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2021-09-10 21:17:26 +00:00
Sam Rawlins 1122440fc7 Fix accidentally commented tests
Change-Id: I7dc14ea10f769dd36ff15f3ee9ffc40ce78cf4bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213105
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-10 20:11:17 +00:00
Konstantin Shcheglov 78c09bcc38 Update latestSdkLanguageVersion to 2.14
Eventually we will remove it completely, but for now let's make it
more correct.

Change-Id: I09c338bcf2e12aecb75b5b9646104e97cf35705c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213030
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 20:01:47 +00:00
Nate Bosch 9b7af67da3 Update to the latest package:async
Change-Id: Ie097d1c49ac0f27f0d9afbc8f8fa01e1bd4f07c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213106
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2021-09-10 19:58:38 +00:00
Konstantin Shcheglov 79950b989f Remove ExperimentStatus.testingSdkLanguageVersion
Change-Id: Ia8993c3ca29c79ede835db46fe5e1d660a3621d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213104
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 19:22:57 +00:00
pq b2eb0c5eb2 skip result use checking in comments
Fixes: https://github.com/dart-lang/sdk/issues/47181

Change-Id: I1761b600d3a8b94551f853896544b64f590af0b6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213102
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2021-09-10 19:13:27 +00:00
Konstantin Shcheglov ce46e99e3d Include Annotation.typeArguments in AstTextPrinter.
Change-Id: Id1ee5cac6b0b84fe153d0e21554e381d34d8b5bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213101
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 18:00:47 +00:00
Alexander Markov 28532bae7a [vm/aot/tfa] Cleanup support for non-constant annotations
This change removes handling of StaticGet and ConstructorInvocation
nodes in annotations. This code became redundant since constant
evaluation was moved into the front-end.

TEST=ci

Change-Id: Idfa16624d28cdf73da09b52aec429d881e43a36e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212871
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-09-10 16:50:27 +00:00
Lasse R.H. Nielsen 64f06ac544 Fix bug in Duration.toString().
The `toString` called `(-this).toString()` recursively
for negative durations.
If instantiated with the minimal integer on native,
that call would recurse infinitely.

The code has been wrong since we removed arbitrary precision integers.

TEST= Add test for regression case, otherwise covered by existing tests.

Change-Id: Ifb58bbc5aee38ef760f9352aede1694b79bae931
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212300
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2021-09-10 14:58:47 +00:00
Nate Bosch 828d1904e5 Rephrase bool getter doc
We want to avoid the "Returns" phrasing for getters.

Change-Id: Ia738c1566f720200a7b65a4ff441e1196129a6f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210286
Auto-Submit: Nate Bosch <nbosch@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2021-09-10 14:35:28 +00:00
Sam Rawlins a3a7e2786c analyzer: Allow function tearoffs in const context
`typeInstantiate` is a new "operation" in const expressions. It doesn't
do much, but does find the correct staticElement to be used in the
FunctionState.

Instantiated static type is necessary on a FunctionMember.

Change-Id: I15b72c870ce9bfc2b8b1fc592553c988e9cc243c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212604
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-10 14:28:18 +00:00
Sigurd Meldgaard 7e07452cc6 Bump pub_semver
git log --oneline baeea5ac3503546269d25c66523d4334c784a4f9..a43ad72fb6b7869607581b5fedcb186d1e74276a
a43ad72 Add `Version.canonicalizedVersion` to help scrub leading zeros. (#50)
205db1d Annotate `Version` with `@sealed`. (#49)

Change-Id: Id1f9788b37731cb474110a6d1bcf65fa975380dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213044
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2021-09-10 13:51:57 +00:00
Martin Kustermann 260eac5f80 [gardening] Give vm/dart{,_2}/use_strip_flag_test more time in TSAN mode
Issue https://github.com/dart-lang/sdk/issues/42986

TEST=Updating status file

Change-Id: I30a6cbb2926145e393287fbc684615fa00911bb1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213045
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-09-10 13:34:29 +00:00
Johnni Winther 0214c5873d [cfe] Add test for issue 47154
Closes #47154

Change-Id: I23ad2582a2f90c081066870bcd64890c71c5b421
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213040
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-10 13:10:47 +00:00
Johnni Winther a4a1f2c0d5 [cfe] Update precedence for instantiation and constant nodes in ast-to-text
TEST=existing

Change-Id: I6269aaef293765e68e5f119184f0d24f40da9aec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212821
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2021-09-10 12:10:27 +00:00
Jens Johansen 48d8225b17 [VM] [CFE]: Expression compilation inside extension method
This CL handles expression compilation inside extension methods better.
It is now possible to evaluate "this" and other methods defined in the
extension.

https://github.com/dart-lang/sdk/issues/46757

TEST=service tests added.

Change-Id: I3c71eb23117e26b01961f32103f4046f0b537976
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212286
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Anna Gringauze <annagrin@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-10 12:02:57 +00:00
Johnni Winther d80cff6b2b [cfe] Rename isCovariant and isGenericCovariantImpl
- to isCovariantByDeclaration and isCovariantByClass, respectively.

This is done to align the terminology with the spec.

TEST=existing

Change-Id: I96b2e5d6e05caca431aad2b54545e928aee034e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213041
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2021-09-10 11:27:37 +00:00
Alexander Thomas a82a2205aa [infra] Update find_base_commit.dart to default to main
This should fix the base builder.

Bug: b/198416551
Change-Id: I900a22f6e7d2f5b013de35a00103c987cff5a605
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213042
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2021-09-10 11:18:59 +00:00
Johnni Winther 6567ad63ce [cfe] Handle extensions in Scope.merge
This fixes a bug where an extension wasn't available when multiple
imports had the same name but the extension wasn't exported through
the first import.

Change-Id: Idfb6836111465baa66b339e1114206b5d8216715
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212820
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-10 10:45:37 +00:00
Jens Johansen 497a331365 [parser] Set 'recovered' in more cases
Fixes https://github.com/dart-lang/sdk/issues/47009
Fixes https://github.com/dart-lang/sdk/issues/47008

Change-Id: I4d00e378ad7cfe3b84fe0f48b11cb83ad7a14fc4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212826
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2021-09-10 08:18:17 +00:00
pq b533eed0fb master => main
Change-Id: Ib5abdd36858828fde46ee3898489ffd1362e99b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213028
Reviewed-by: Alexander Thomas <athom@google.com>
2021-09-10 08:02:49 +00:00
Michael Thomsen dca853faca Add 2.14.1 to changelog
Also add release dates for 2.14.0 and 2.14.1

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

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

GitOrigin-RevId: 0830cdc0bb4546a95a13458aa93134bb646e0dad
Change-Id: Ia7909f5cfb57d5a037d169889c3b6a1520cfb843
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213060
Reviewed-by: Alexander Thomas <athom@google.com>
2021-09-10 07:57:35 +00:00
Sam Rawlins e319cfa6aa Enable in-line ignores per 'type' such as 'lint'
This uses the class ErrorType which may be an outdated field on ErrorCode, but it works for a prototype.

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

Change-Id: I98de8faf7f3ad738e9e27b0d5dd5add531b78b77
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211460
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-09-10 01:30:27 +00:00
Konstantin Shcheglov 73d90bd400 Issue 47171. Apply Substitute also to InstantiatedTypeAliasElement.
Bug: https://github.com/dart-lang/sdk/issues/47171
Change-Id: Ifcc9ea79cdcd2cc55a876e25fc6bd6d710180d1b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213022
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-10 00:38:38 +00:00
Brian Wilkerson 2a7237bd05 Include field in the element kinds associated with a property access
Fixes: https://github.com/dart-lang/sdk/issues/47173
Change-Id: Ic96ddfe00f7bd9fe3883abe6b6f30a1d5211908c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213024
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-09 23:53:47 +00:00
Konstantin Shcheglov bf9c829f82 Issue 47171. Don't store initializers of static final fields, even when has const constructor.
Bug: https://github.com/dart-lang/sdk/issues/47171
Change-Id: I22efdadaaa3348048f2b50a80795ae5c64870b47
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212874
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-09 23:32:57 +00:00
Sam Rawlins 3f53e574d4 analyzer: additional tests for invoking expressions from constructor and function tearoffs
While confirming things related to the staticElement of these tearoffs, I wanted to make sure that type checking of expressions derived from tearoffs are functional.

Change-Id: I83c48b03a620bdc5c3e81775fae48f2d5d3a39a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212801
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-09-09 22:42:17 +00:00
Stephen Adams cc9040245b [dart2js] Modernize allocations and initializations in universe/
- Use literals instead of Map/Set constructors.
- Make more use of inferred type arguments.
- Rewrite some conditionals to use `??`.

Change-Id: Ifb844226e29ccedb2b1b409e8e4f99bbdb96cfe5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212401
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2021-09-09 21:10:57 +00:00
Ryan Macnak 9ab7c09356 [vm, compiler] Fix incorrect merging of doubles that are equal but not identical.
TEST=implicit_double_context_test (flaky)
Change-Id: I1c4d285897fb4dd3aae15323ab4e671bec88c564
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212870
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-09-09 20:26:35 +00:00
Sam Rawlins 6d5de3d19c Remove unnecessary imports in vm_service
TEST=N/A

Bug: https://github.com/dart-lang/sdk/issues/44569
Change-Id: I61adbdb6666fee9f34372a83d4c3383b636f76e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212606
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-09-09 19:03:44 +00:00
pq dd35db6192 "master->main" migration
Change-Id: I773e0a60a782f9e6678cea22e2a7d8fae48cffa3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212869
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2021-09-09 18:14:36 +00:00