Commit graph

73279 commits

Author SHA1 Message Date
Alexander Thomas
5f8c21f9e9 [build] Use a sysroot also for the host toolchain when cross compiling
Previously, we didn't use a sysroot for the host toolchain used to
create the host_tool used in dart_actions. The compile action then
failed on the new goma backend causing long build times.

Before (dart-sdk-linux-try/429, ~38 mins):
finished=10627 cache_hit=7334 retry=3277 fail=3277

After (dart-sdk-linux-try/430, ~12 mins):
finished=10625 cache_hit=7352 retry=0 fail=0

Change-Id: Iebf967be6eb67c3056f766839a3d58d18fc608f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150421
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
2020-06-08 16:50:21 +00:00
Paul Berry
b7abe2cf00 Migration: change how migration_cli_test checks for a correct SDK.
When tests are run internally under bazel, there's no `version` file
we can look for to verify that we are looking at an SDK directory.
Looking for a `bin` directory works equally well.

Change-Id: Ib19350eaf90d105ebaa3d197fb45b5a41a10179d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150285
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-08 16:47:16 +00:00
Brian Wilkerson
87300e9081 Rename getClassDeclaration to getClassOrMixingDeclaration
Change-Id: Ide9ca130a5141d4a970652c0b9893d389a6a7a6f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150380
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-06-08 16:25:46 +00:00
Aske Simon Christensen
cf6f8903a5 [vm] IL instruction for UTF-8 scan.
Speeds up decoding across the board, with medium-length pure ASCII
strings seeing about 2x on X64 and IA32.

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

Change-Id: I1c8e0bc69baaaeb6755d4c775e6fa0e6d18e1c57
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148762
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-06-08 15:03:34 +00:00
Brian Wilkerson
e0386cbb92 Convert the remaining fixes to use producers
This also cleans up FixProcessor by removing some now unused field, etc.

Change-Id: Id4df8b196e3930cdf2f0872c421571edc021041e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150273
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-06-08 14:05:44 +00:00
sgrekhov
81d35e0743 [co19] Enable tests migrated to null safety
Change-Id: Ic95afdd0bdfabbc40ff4cad4ef8e514153e48f5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150107
Reviewed-by: Alexander Thomas <athom@google.com>
2020-06-08 12:46:42 +00:00
Alexander Thomas
dd2de24516 [infra] Shard the VM AOT NNBD builder more to prevent timeouts
It was close to the 3 hour timeout and sometimes exceeded it.

Change-Id: I01cca72f64bc88ec6aeb921358a46ce209c1598b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150105
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2020-06-08 12:26:23 +00:00
Jens Johansen
652bac12b4 [CFE/VM] Fix 'reject' when using experimental invalidation strategy
Change-Id: Ib7c75584dec6fa605f82487a5b0291894964bed0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150026
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2020-06-08 12:02:43 +00:00
Tess Strickland
df435c9235 [vm/aot] For ELF output, make DW_AT_high_pc the end of the isolate text.
This avoids treating addresses within segments added after the isolate
text section as valid PC addresses for our DWARF information.

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-release-simarm_x64-try,vm-kernel-precomp-linux-product-x64-try
Change-Id: Ibdac611d97b5a24226c226a3904c958f131ab961
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149290
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2020-06-08 08:35:32 +00:00
Sam Rawlins
66e2b22d14 Analyzer: report conflicting extension type variables
Fixes https://github.com/dart-lang/sdk/issues/42216

Report when an extension declares a type parameter with the same name as the
extension.

Report when an extension declares a member with the same basename as the name
of any of the extension's type parameters.

Move tests into diagnostics/.

Move tests for RECURSIVE_INTERFANCE_INHERITANCE.

Change-Id: If19041571008b9b14122d9ff458d1d30ea0ff034
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150270
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-06-08 05:44:12 +00:00
Konstantin Shcheglov
87c5e3612b Issue 42201. Use fresh type parameters in extension inference.
Bug: https://github.com/dart-lang/sdk/issues/42201
Change-Id: I6dd8071821fa03c5c20541b65a7c143d4a739730
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150271
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-07 17:43:22 +00:00
Jaime Wren
48b4528a44 Fix completion issue with the shadowing inside of function declarations
Change-Id: I3bcef03e47400d937b9064a49baa950a3a306f5b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150289
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2020-06-07 00:23:11 +00:00
Stephen Adams
4b9c2356e9 [dart2js] Don't confuse value and location.
A HParameterValue can be an SSA value or a mutable local variable
accessed via HLocalFet/HLocalSet. The latter happens in code that is not
completely SSA-converted (due to exception control flow).

The main bug is that the check on a mutable-variable-mode HParameterValue
should have been on a HLocalGet of the value, and not the HParameterValue
itself. This means that a reference to the HParameterValue cannot be
replaced with a strengthening check, as that breaks the invariant that
HLocalGet/Set refer to variables. There was code in types_propagation
that tried to work around this broken invariant.

The bug (issue 42189) required
  - An elided instance method parameter
  - try(-catch)(-finally) to avoid complete SSA-conversion
  - -O0 to avoid optimizing away the check early with inferred types

The first attempt at a fix was to not check the elided parameter at all
since the default value is statically checked. This is still worthwhile.

Bug: 42189
Change-Id: Idd5e2b1485eba4950a36d1e4ff57ebe35e4c98a0
Fixed: 42189
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150171
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2020-06-07 00:11:11 +00:00
Robert Nystrom
578fa6bee9 Migrate language_2/prefix to NNBD.
Change-Id: I5149b18d796c6991404c22322e5fb4b4c8372613
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150287
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2020-06-06 01:44:40 +00:00
Robert Nystrom
c959c9aba7 Migrate language_2/optimize to NNBD.
Change-Id: I3f67dd79ff2ee745cc2ea161ce7150630e805c97
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150186
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2020-06-06 01:42:35 +00:00
Martin Kustermann
2c69fb1d53 [vm] Update PRESUBMIT.py to also check for synchronized changes between runtime/tests/vm/{dart,dart_2}
Change-Id: Iaa026a312933e14fd3d56acb4d89257efd40b6b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150221
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-06-06 00:50:10 +00:00
Robert Nystrom
f1a4cc8778 Migrate language_2/override to NNBD.
Change-Id: Ic9fe9c8e89e3782b754f8404b48c3d27604d76e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150281
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2020-06-06 00:46:50 +00:00
Leaf Petersen
db36f1190f [Language] Various NNBD Tests.
Add a variety of small nnbd tests covering the specification
changes/clarifications landed in
https://github.com/dart-lang/language/pull/1003 .

Change-Id: I0716f14652128323bf103df154efb5bf978091d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150160
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-06-05 23:53:20 +00:00
Régis Crelier
c48263e901 Revert "[VM/nnbd] Canonicalize TypeParameter objects in the VM."
This reverts commit 6a98e2719e.

Reason for revert: Unexpected test failures

Original change's description:
> [VM/nnbd] Canonicalize TypeParameter objects in the VM.
> 
> Prior to this CL, type parameters were all assumed canonical, even duplicate ones.
> 
> Per a new convention introduced in this CL, the type parameter array in generic classes and generic functions contains canonical type parameters. As these type parameters get cloned with a different nullability, they are inserted in a new hash table of canonical type parameters.
> 
> This fixes performance issue https://github.com/dart-lang/sdk/issues/41421
> 
> Change-Id: I9086158fa6b6261e9997bb50edec6d7c54abbfa1
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148223
> Commit-Queue: Régis Crelier <regis@google.com>
> Reviewed-by: Ryan Macnak <rmacnak@google.com>

TBR=rmacnak@google.com,alexmarkov@google.com,asiva@google.com,regis@google.com

Change-Id: I0ca3b6b66e2281c285eba6b564f78c0e6b2f2217
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150265
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2020-06-05 23:36:45 +00:00
Regis Crelier
6a98e2719e [VM/nnbd] Canonicalize TypeParameter objects in the VM.
Prior to this CL, type parameters were all assumed canonical, even duplicate ones.

Per a new convention introduced in this CL, the type parameter array in generic classes and generic functions contains canonical type parameters. As these type parameters get cloned with a different nullability, they are inserted in a new hash table of canonical type parameters.

This fixes performance issue https://github.com/dart-lang/sdk/issues/41421

Change-Id: I9086158fa6b6261e9997bb50edec6d7c54abbfa1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148223
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-06-05 22:56:50 +00:00
Alexander Markov
889d6a9565 [benchmarks/nnbd] Migrate TypedDataDuplicate benchmark to NNBD
Also:

* Clean up lints in both unmigrated and migrated versions of benchmarks.

* Cache lists in local variables in Uint8ListCopyViaLoopBenchmark and
  Float64ListCopyViaLoopBenchmark to make the same number of field
  accesses as in other benchmarks, in order to make comparison between
  different ways of copying typed data more fair.

Change-Id: I1e7e726ebf1f3cf6c199fce515c2a56d94576ba6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150280
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-06-05 22:22:40 +00:00
Jaime Wren
403955cf34 Fix completion issue with the shadowing of enum declarations and enum constants
Change-Id: I955fb7a0137552299097d8a77a81f6d27a44f354
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150282
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2020-06-05 20:21:26 +00:00
Regis Crelier
a5f8ddac99 [VM/runtime] Introduce a trail in IsSubtypeOf() to avoid cycles.
Clean up signatures of runtime functions in object.{cc,h} using the trail to avoid cycles. Move the trail to the last parameter of these functions.
Introduce a trail in IsSubtypeOf() to avoid cycles introduced by bounds of F-bounded types. Issue uncovered by the new normalization tests.

Change-Id: I3241c7e4023a09c122e1594b7aff90b5b103f4f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150180
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2020-06-05 19:57:46 +00:00
Robert Nystrom
99564b09b4 Migrate language_2/null to NNBD.
Change-Id: I9336b7fa58c144c8b946e7aac3128a9d9925d7d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149787
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2020-06-05 18:59:56 +00:00
Alexander Markov
b42aa2df68 [vm] Properly synchronize EnsureInitializerFunction
Initializer functions are created lazily at compile time when generating
LoadField which calls initializer. This may happen in the background
compiler thread, where Field objects are cloned.
EnsureInitializerFunction should be called from original field, and it
should be properly synchronized to make sure there are no races with
mutator thread.

Change-Id: Icc339afa2ee410385019c72c717737719767d367
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150166
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-06-05 17:55:14 +00:00
Brian Wilkerson
b81fd7af4a Update printing of per-location mrr values in completion_metrics
The values are now only printed when `verbose` is enabled, and are
sorted based on how mig an impact completions in those locations are
impacting the total.

Change-Id: I913f82e57cf0a97d3465b0b41d9431ca3cf56e30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150262
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-06-05 17:13:34 +00:00
Jaime Wren
1e0611cfac Refactor the LocalConstructorContributor into the LocalReferenceContributor.
local_declaration_visitor.dart was updated to better implement ConstructorDeclarations

This adds the API of _recordCompletionElement() and _elementAlreadyInCompletionSet() to local_reference_contributor.dart, if this API looks good and lands, I will use it in the rest of the contributor to fix other known shadowing bugs.

local_constructor_contributor_test.dart was removed (a large copied & pasted body of tests not providing value) and tests were added at the beginning of local_reference_contributor_test.dart.  Tests in this file were also updated accordingly.

The change of the testCommentSnippets025 test in completion_test.dart is due to the framework not supporting (in a more robust way) the allowance of both a class and an implicit constructor

The addition of the testCommentSnippets045 test in completion_test.dart is to show that constructor invocations don't need the new keyword.

Change-Id: Ic4a52e3cb94320a92f24b1c743dd61e18c6c7b16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150165
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2020-06-05 16:15:04 +00:00
Brian Wilkerson
4f0ead16eb Clean up the implementation of DartCompletionRequest.libraryElement
I believe that the original code was written before ResolvedUnitResult
had a direct pointer to the library element. This is a little cleaner
and might possibly be more performant.

Change-Id: I232aa5747c62986f37601f042ce5a1d659d11d19
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150222
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-06-05 15:14:14 +00:00
Jaime Wren
fbfb3a29c5 Small optimization in named_constructor_contributor.dart to not reference the libraryElement until we know that the contributor will be used.
Change-Id: Ic0624568bd8ae4caec6f49c9ea132fcd17230b95
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150167
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2020-06-05 15:03:54 +00:00
David Morgan
48d105a551 Fix unused_shown_name in parser_impl.dart.
Change-Id: Id512c06920ed61162ba07a6fb0b74f4794274686
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150220
Auto-Submit: David Morgan <davidmorgan@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-06-05 09:36:54 +00:00
Stephen Adams
249cb9c974 [benchmark] BigIntParsePrint lint fixes
Change-Id: Ia68ec34588bfb7b83c6a40e21e0fd5b8a5c0a874
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149891
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2020-06-05 01:41:23 +00:00
Ben Konyi
32615994fd [ VM Service / DDS ] Redirect web socket connection requests made to VM Service to DDS
Also fixes issue where test_helper wasn't running tests provided by
runDDSTest

Change-Id: I031a741a2aec30a3055153afce042105af2e5398
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149660
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2020-06-05 00:30:03 +00:00
Ryan Macnak
1cbf6c31e5 [vm, gc] Prevent a program with sufficient idle time and dominated by direct old-space allocations from avoiding scavenges for too long.
This is the idle equivalent of 3451c348db.

Change-Id: Ica6e0595c39257540ea731355868a107de2c2597
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149960
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-06-05 00:01:12 +00:00
Konstantin Shcheglov
a12fd560b7 Implement allowedExperimentsJson for EmbedderSdk.
https://github.com/flutter/engine/pull/18830

Change-Id: Iab1a3dd319da12d192a042b75a8ff6affc4d11cb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150169
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-04 23:29:12 +00:00
Robert Nystrom
062cd60ee2 Migrate language_2/number to NNBD.
Change-Id: Ie2bdcec491603f231a762ad211ba1d087a4c5c94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150000
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2020-06-04 23:07:53 +00:00
Konstantin Shcheglov
42fd487b08 Fix type cast exception in AddExplicitCast.
Change-Id: If4b3b2d680bf36b77aa60a96ec70d3bc721d1d8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150163
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-04 22:25:19 +00:00
Ben Konyi
62903873df [ VM ] Fix crash when expression compilation is attempted without an internal or external compilation service
Discovered using the DevTools widget inspector with a Flutter
application which did not have a flutter_tools instance connected. The
widget inspector attempts to evaluate expressions, the VM service
realizes there's no external compilation service and attempts to fall
back onto the kernel isolate's compilation service. The crash occurs as
KernelIsolate::InitializeState had not been called during initialization
as Dart_InitializeParams.start_kernel_isolate == false.

Fixes b/155649002

Change-Id: I9b1225f17dc4d4dff39503d4353b3bb539b08267
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149880
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-06-04 22:06:09 +00:00
Nicholas Shahan
092789f1ac [ddc] Fix legacy type in covariance bounds check
There should be no way this could cause an unexpected failure
or break soundness but there is no reason to be marking the type
parameter as a legacy type in the check.

Change-Id: Ib4cf22cacd78d6cb9b55dd6ed594c75aa81ceead
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149887
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-06-04 21:18:39 +00:00
Nicholas Shahan
2ed302bfbb [ddc] Update ddb script to use SDK js from gen dir
When running ddb with `--debug` pull the SDK .dill and .js files from
ReleaseX64/gen/utils/dartdevc and require.js from third_party/require.

Change-Id: Ibcfd5e1d32c39cca3583cfef14fe8393e0846d69
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149886
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-06-04 21:10:39 +00:00
Nate Bosch
7815150be1 Update to latest package:path
Change-Id: If9006620414f7c0a857b4ebeb733f97a63d52e2d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150161
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2020-06-04 19:58:59 +00:00
Martin Kustermann
d7e2f9ba3b [infra] Remove wheezy left overs from SDK
Also removes some dart editor related code which is unused nowadays.

Related https://dart-review.googlesource.com/c/sdk/+/150104

Change-Id: I97f91a35e82af09ac715a4eb93a945f335a71d5e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150106
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-06-04 18:32:29 +00:00
David Morgan
026e1cf01d Upgrade package:quiver from 2.0.0+1 (2.0.0+1 in pubspec.yaml) to 246e754fe45cecb6aa5f3f13b4ed61037ff0d784 (2.1.3 in pubspec.yaml).
Change-Id: Ida42edc0b5ce634c263232ed6fa5f25b5c4c56be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150103
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2020-06-04 18:13:19 +00:00
Joshua Litt
451694e855 [dart2js] Move dart2js_native to dart2js/native.
Change-Id: I2f879fe18376b8c1b82fc201d488425dc154d2b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149341
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2020-06-04 18:11:49 +00:00
Konstantin Shcheglov
e36f8a6645 Fix NPE in RemoveConst when implicit 'const'.
Change-Id: I563ce8bc9283ef8e393b68be7fd2dca0a653fb0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149890
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-04 17:14:17 +00:00
Konstantin Shcheglov
4b9c8db412 Fix cast exception in RemoveUnusedParameter.
Change-Id: I2905933f3f2aee68505ee7dba1335a87bc8c84a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149888
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-04 17:13:57 +00:00
Devon Carew
88f20ece1e [nnbd_migration] re-land a fix for migrating packages with multiple contexts
Change-Id: I60365e4a159f8696b17a8dd7f6d3fa0641a5afae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149889
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-06-04 17:05:57 +00:00
Danny Tuppeny
f92a7d2669 Add Plugin column to LSP status table
Change-Id: I02d16133b898bdfd1ed781ad4aed7748700f6fb0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150027
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Danny Tuppeny <danny@tuppeny.com>
2020-06-04 15:39:37 +00:00
Alexander Thomas
a05162b6fc [co19] Roll co19 to c6adf63baea76b1f7e7833482eec023fd244fc33
2020-06-04 irina.arkhipets@gmail.com Issue 720: Language\Functions tests adopted for nnbd.
2020-06-04 irina.arkhipets@gmail.com Issue 716: Language\Functions\Formal_Parameters tests adopted for nnbd.
2020-06-04 sgrekhov@unipro.ru Fixes 719. Migrate Language\Classes\Superinterfaces to null safety
2020-06-04 sgrekhov@unipro.ru Fixes 718. Migrate Language\Classes\Superclasses\Inheritance_and_Overriding to null safety
2020-06-04 sgrekhov@unipro.ru 717. Typo fixed
2020-06-04 sgrekhov@unipro.ru Fixes 717. Migrate Language\Classes\Superclasses to null safety
2020-06-04 irina.arkhipets@gmail.com Issue 716: Language\Functions\Formal_Parameters\Required_Parameters test adopted for nnbd.
2020-06-04 irina.arkhipets@gmail.com Issue 716: Language\Functions\Formal_Parameters\Optional_Parameters test adopted for nnbd.
2020-06-04 sgrekhov@unipro.ru Fixes 715. Migrate Language\Classes\Static_Methods to null safety
2020-06-04 irina.arkhipets@gmail.com Issue 714: Language\Functions\External_Functions test updated.
2020-06-04 sgrekhov@unipro.ru Fixes 710. Migrate Language\Classes\Setters to null safety
2020-06-04 irina.arkhipets@gmail.com Issue 713: Language\Expressions\Unary_Expressions tests adopted for nnbd.
2020-06-04 irina.arkhipets@gmail.com Issue 712: Language\Expressions\Type_Test tests adopted for nnbd.
2020-06-04 irina.arkhipets@gmail.com Issue 711: Language\Expressions\Type_Cast tests adopted for nnbd.
2020-06-04 sgrekhov@unipro.ru Fixes 709. Migrate Language\Classes\Instance_Variables to null safety
2020-06-04 sgrekhov@unipro.ru 478. Definite assignment tests for conditional assignment added
2020-06-03 irina.arkhipets@gmail.com Issue 707: Errors in the tests corrected.
2020-06-03 sgrekhov@unipro.ru 478. Definite assignment tests for different statements added
2020-06-02 sgrekhov@unipro.ru Typos fixed
2020-06-02 sgrekhov@unipro.ru Use nnbd-weak mode for tests that import legacy code
2020-06-02 sgrekhov@unipro.ru 672. Don't ignore root delete event
2020-06-02 sgrekhov@unipro.ru Relative import in multytest fixed
2020-06-02 irina.arkhipets@gmail.com Fixed Issue 706: expected result updated according to the discussion in the Issue 41804.
2020-06-01 sgrekhov@unipro.ru 478. Definite assignment tests for if and for statements added
2020-06-01 sgrekhov@unipro.ru 478. Reachability after return statement tests added
2020-06-01 irina.arkhipets@gmail.com Fixed Issue 703: future flattening tests updated according to the recent Spec changes.
2020-06-01 sgrekhov@unipro.ru 688. Weak mode failures of subtyping tests fixed
2020-06-01 sgrekhov@unipro.ru Fixes 701. Migrate ExpectException tests to null safety
2020-05-30 irina.arkhipets@gmail.com Fixed Issue 705: Language\Expressions\Throw tests adopted for nnbd.
2020-05-30 irina.arkhipets@gmail.com Fixed Issue 704: Language\Expressions\This tests adopted for nnbd.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 702: Language\Expressions\Strings\Strings tests adopted for nnbd.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 702: Language\Expressions\Strings\String_Interpolation tests adopted for nnbd.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 700: Language\Expressions\Shift tests adopted for nnbd.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 699: Language\Expressions\Relational_Expressions tests adopted for nnbd.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 698: Language\Expressions\Property_Extraction tests adopted for nnbd.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 698: Language\Expressions\Property_Extraction\Getter_Access_and_Method_Extraction tests adopted for nnbd.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 683: Correct testcase for postfix ++ operator with Map.
2020-05-29 irina.arkhipets@gmail.com Fixed Issue 693: Language\Expressions\Postfix_Expressions tests adopted for nnbd.
2020-05-29 sgrekhov@unipro.ru Fixes 697. Migrate Language\Classes\Instance_Methods\Operators to null safety
2020-05-29 sgrekhov@unipro.ru Fixes 696. Migrate Language\Classes\Instance_Variables to null safety
2020-05-29 sgrekhov@unipro.ru 688. Fix subtyping right legacy tests
2020-05-29 sgrekhov@unipro.ru 688. Fix subtyping left legacy tests tests
2020-05-28 sgrekhov@unipro.ru Fixes 695.  Language\Classes\Getters tests migrated to null safety
2020-05-28 sgrekhov@unipro.ru 688. Fix subtyping right promoted variable tests
2020-05-28 irina.arkhipets@gmail.com Fixed Issue 607: Instantiate-to-bounds tests adopted for nnbd, Issue tags added for 41963, 41964.
2020-05-28 sgrekhov@unipro.ru 688. Fix subtyping tests
2020-05-28 sgrekhov@unipro.ru 688. Fix right-promoted variable static tests
2020-05-27 sgrekhov@unipro.ru 688. Fix right-nullable static test
2020-05-27 sgrekhov@unipro.ru 688. Use correct override for FutureOr
2020-05-27 sgrekhov@unipro.ru Fixes 686 and 687. Use null for dynamic type checking of nullable types
2020-05-27 irina.arkhipets@gmail.com Fixed Issue 692: Language\Expressions\Object_Identity tests adopted for nnbd.
2020-05-27 irina.arkhipets@gmail.com Fixed Issue 691: Language\Expressions\Numbers tests adopted for nnbd.
2020-05-27 irina.arkhipets@gmail.com Fixed Issue 690: Language\Expressions\Null tests adopted for nnbd.
2020-05-27 irina.arkhipets@gmail.com Fixed Issue 689: Language\Expressions\Multiplicative_Expressions tests adopted for nnbd.
2020-05-27 sgrekhov@unipro.ru Fixes 685. Use correct types for left top tests
2020-05-26 irina.arkhipets@gmail.com Fixed Issue 678: canonicanization issue clarified.
2020-05-26 irina.arkhipets@gmail.com Fixed Issue 684: Language\Expressions\Method_Invocation tests adopted for nnbd.
2020-05-26 irina.arkhipets@gmail.com Fixed Issue 683: Language\Expressions\Maps adopted for nnbd.
2020-05-26 irina.arkhipets@gmail.com Fixed Issue 682: Language\Expressions\Lookup tests adopted for nnbd.
2020-05-26 irina.arkhipets@gmail.com Fixed Issue 681: Language\Expressions\Logical_Boolean_Expressions tests adopted for nnbd.
2020-05-26 irina.arkhipets@gmail.com Fixed Issue 680: Language\Expressions\Lists tests adopted for nnbd.
2020-05-26 irina.arkhipets@gmail.com Fixed Issue 679: Language\Libraries_and_Scripts\Imports tests adopted for nnbd.
2020-05-26 sgrekhov@unipro.ru 478. Reachability tests for continue statement added
2020-05-25 sgrekhov@unipro.ru 478. Reachability tests for break statement added
2020-05-25 irina.arkhipets@gmail.com Fixed Issue 677: Language\Expressions\Instance_Creation\New tests adopted for nnbd.
2020-05-23 irina.arkhipets@gmail.com Issue tag for 42031 added
2020-05-23 irina.arkhipets@gmail.com Fixed Issue 678: Language\Expressions\Instance_Creation\Const tests adopted for nnbd.
2020-05-22 irina.arkhipets@gmail.com Fixed Issue 676: Language\Expressions\Instance_Creation tests adopted for nnbd.
2020-05-22 irina.arkhipets@gmail.com Fixed Issue 675: Language\Expressions\If_null_Expressions tests adopted for nnbd.
2020-05-22 sgrekhov@unipro.ru 478. More Reachability tests added
2020-05-22 irina.arkhipets@gmail.com Fixed Issue 674: Language\Expressions\Identifier_Reference tests adopted for nnbd.
2020-05-22 sgrekhov@unipro.ru 672. By default testFileSystemEvent ignores root events now
2020-05-21 irina.arkhipets@gmail.com Fixed Issue 671: Language\Expressions\Function_Invocation tests adopted for nnbd.
2020-05-20 sgrekhov@unipro.ru 478. Reachability tests fixed and new ones added
2020-05-20 sgrekhov@unipro.ru 478. Reachability tests fixed and new ones added
2020-05-20 irina.arkhipets@gmail.com Fixed Issue 670: Language\Expressions\Function_Invocation\Unqualified_Invocation tests adopted for nnbd.
2020-05-20 irina.arkhipets@gmail.com Fixed Issue 669: Language\Expressions\Function_Invocation\Function_Expression_Invocation to null-safety tests adopted for nnbd.
2020-05-20 irina.arkhipets@gmail.com Fixed Issue 668: Language\Expressions\Function_Invocation\Binding_Actuals_to_Formals tests adopted for nnbd.
2020-05-20 irina.arkhipets@gmail.com Fixed Issue 667: Language\Expressions\Function_Invocation\Actual_Argument_List_Evaluation tests adopted for nnbd.
2020-05-20 irina.arkhipets@gmail.com Fixed Issue 666: failing test corrected.
2020-05-19 sgrekhov@unipro.ru For some Language\Classes\ tests migration to null-safety fixed
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 664: get rid of useless SharedOptions tag in Language/Expressions/Equality tests.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 663: Get rid of useless SharedOptions tags in Language/Expressions/Constants tests.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 662: Get rid of useless SharedOptions tags in Language/Expressions/Conditional tests
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 660: get rid of useless SharedOptions tags in Language/Expressions/Booleans tests.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 659: Get rid os useless SharedOptions tags in Language/Expressions/Bitwise_Expressions.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 658: got rid of useless SharedOptions tags in Language/Expressions/Await_Expressions.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 656: got rid of useless ShareOptions tags in Language/Expressions/Assignment tests.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 655: Useless SharedOptions tags removed from Language/Expressions/Assignable_Expressions tests
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 653: Useless SharedOptions tags removed from Language/Expressions/Additive_expressions tests.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 652: Useless SharedOptions tags removed for Language/Errors_and_Warnings.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 651: useless SharedOptions tags removed in Language/Enums.
2020-05-19 sgrekhov@unipro.ru Fixes 654. Language\Classes\Constructors\Generative_Constructors migrated to null-safety
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 646: Language/Generics tests adopted for nnbd.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 650: useless SharedOptions tags removed from Language/Generics Superbounded_types tests.
2020-05-19 irina.arkhipets@gmail.com Fixed Issue 665: Language/Expressions/Function_Expressions tests adopted for nnbd.

Failures will be triaged on https://github.com/dart-lang/co19/issues/722.

Change-Id: I1bf1437e94c7963285eeea575ca31d6491035428
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150028
Reviewed-by: William Hesse <whesse@google.com>
2020-06-04 15:07:59 +00:00
William Hesse
0d187ee47f [infra] Fix test runner error when force closing subprocess stdio
The code tried to create the command output object twice in this case.

Change-Id: Icfb413ba329738cb732330d22885f62ccb7a99e2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150102
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2020-06-04 15:04:27 +00:00
Jens Johansen
cbbbc09b3e [parser] Better recovery of typedefs with bad name
Note that this leaves differences in errors issued between
"typedef void void();" and "typedef void = void Function();" though.

Fixes #42158

Change-Id: I0785f99234c87bdeadbb2865e089b1389851333e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149599
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-06-04 14:21:11 +00:00