Commit graph

74343 commits

Author SHA1 Message Date
sgrekhov debb4dddea [co19] Language/Types and Language/Variables tests enabled
Change-Id: Ida34b66799e4b0f4a109cb50cc1db4b051d4060a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153760
Reviewed-by: William Hesse <whesse@google.com>
2020-07-23 10:34:32 +00:00
William Hesse 3661464297 [infra] Update checked-in SDKs to 2.10.0-0.0.dev
Change-Id: I9dc310aedbb91f9adfb6bfd1dd38b6045a8c1722
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155601
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-07-23 09:49:52 +00:00
Johnni Winther b8dc7627a9 [cfe] Handle NullCheck in constant evaluation
Closes #42802
Closes #42803

Change-Id: I282539cbfef90309dd343950101aefe0820785b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155600
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-07-23 09:16:09 +00:00
Zichang Guo 40fd1c456e Revert "[dart:io] Add Abort() on HttpClientRequest"
This reverts commit 4b96f20a79.

Reason for revert: Windows bots are broken. Because --socket-short-read is specified, the server doesn't receive full header at once.

https://dart-ci.appspot.com/log/vm-kernel-win-debug-x64/dartk-win-debug-x64/8907/standalone_2/io/http_client_connect_test/3

Original change's description:
> [dart:io] Add Abort() on HttpClientRequest
> 
> The breaking change request for this cl: https://github.com/dart-lang/sdk/issues/41904
> 
> Bug: https://github.com/dart-lang/sdk/issues/22265
> Change-Id: I36db64b4db307b78cd188a2f1701ec733f2e73db
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147339
> Commit-Queue: Zichang Guo <zichangguo@google.com>
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>

TBR=lrn@google.com,zichangguo@google.com

Change-Id: I48f7a2ee3bb75e0e0ba0bd24ed53fcac372e016d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/22265
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155548
Reviewed-by: Zichang Guo <zichangguo@google.com>
Commit-Queue: Zichang Guo <zichangguo@google.com>
2020-07-23 02:31:10 +00:00
Alexander Markov 17d7296a42 [vm/nnbd/bytecode] Fix reuse of type arguments in bytecode
Type arguments should not be reused if type parameter has a nullability
other than non-nullable or undertermined, as instantiating such type
parameter may alter the type.

Also, this change adds printing of nullability when dumping bytecode
and updates expectations accordingly.

Fixes language/nnbd/is_type_test/null_is_type_in_legacy_lib_test in
bytecode mode.

Change-Id: I4378a4e42fa0bf014840b9b1ef09a633c1825e20
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155560
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-07-23 00:35:29 +00:00
Konstantin Shcheglov 58b6f40c73 Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns. (reland)
Initial: https://dart-review.googlesource.com/c/sdk/+/155500
Reverted: https://dart-review.googlesource.com/c/sdk/+/155540

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

Change-Id: I5f0f1df594ac678718f347ee80b1764f971e42e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155541
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-23 00:01:12 +00:00
Regis Crelier fc8a6d9f9b [VM/compiler] Dereference TypeRef literal when propagating constants.
This fixes https://github.com/dart-lang/sdk/issues/42753

Change-Id: Ibb179c0cf45c77d5b1f29a75ca2dea88d449ed99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155503
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2020-07-22 23:22:39 +00:00
Robert Nystrom 0689ec527a Move "test.dart" (well, most of its contents) into pkg/test_runner.
I don't like having a large volume of Dart code sitting under tools/
where it is hard to analyze, lint, test, and reuse. Also, eventually
we want to merge test.dart and test.py. This seems like an easy mostly
mechanical first step.

All I did was:

1. Move the contents of tools/test.dart to
   pkg/test_runner/lib/test_runner.dart. (That's not a great file name
   since we already have pkg/test_runner/bin/test_runner.dart, but it
   was the best I could come up with.

2. Copy tools/bots/results to pkg/test_runner/bot_results.dart. I
   don't like duplicating this, but there are other scripts under tools
   that import the old location. Eventually, we should have those
   scripts import it from package:test_runner/bot_results.dart, but I
   didn't want to do that here since I'm not familiar with those other
   scripts.

3. Make tools/test.dart import and forward to
   pkg/test_runner/lib/test_runner.dart.

4. Fix any linter and type errors. The test_runner package has a bunch
   of strictness checks and lints enable to keep it cleaner.

5. Run dartfmt --fix to format and get rid of "new", etc.

Change-Id: Ifc89817508d3fc147fa78dbc6744d547aeaf4c55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155240
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2020-07-22 23:00:49 +00:00
Robert Nystrom 1094b3c61d Prepare static error test updater tool to handle web tests.
This doesn't actually run DDC to generate the web errors yet, but it
changes the CLI in anticipation of that, and adds tests to verify that
once web errors are reported that the updater handles them correctly.

Change-Id: I31264e3d468969b07f9eb60353a9b02a93bec7ea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155102
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
2020-07-22 22:48:49 +00:00
Ryan Macnak b258585f2f [observatory] Migrate from deprecated isInstanceOf to isA.
Change-Id: Ie68ebbb1ed46b8000fe6c6110774cd031c20aeaf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155280
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-07-22 22:31:59 +00:00
Konstantin Shcheglov dfe1d9b682 Disable OverrideContributor for Cider.
We see that it is slow, about 600ms, at least in some cases.

R=brianwilkerson@google.com, keertip@google.com

Change-Id: I5c1170a84c06aa9c28000c03fbc138d2909e7f2c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155504
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-22 22:23:19 +00:00
pq aea99b2f5c scope debug property assist to Diagnosticables
Fixes: https://github.com/dart-lang/sdk/issues/42783

Change-Id: Ied9b0fa04e0f99b4d5b4604c72696b5cfaec737d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155501
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-22 22:18:24 +00:00
Zichang Guo 4b96f20a79 [dart:io] Add Abort() on HttpClientRequest
The breaking change request for this cl: https://github.com/dart-lang/sdk/issues/41904

Bug: https://github.com/dart-lang/sdk/issues/22265
Change-Id: I36db64b4db307b78cd188a2f1701ec733f2e73db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147339
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2020-07-22 22:03:09 +00:00
Roland McGrath 1b1a39708c [build] Use frameworks instead of libs
Newer GN doesn't allow `*.framework` elements in `libs`.  It
requires using `frameworks` instead.  The toolchain definitions need
to pass the new substituted variable to the link to make use of the
new required way to express these dependencies.

Bug: fxbug.dev/56683
Change-Id: I62e68a8e5bdfef095b72b38d9d41f757e510012b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155482
Auto-Submit: Roland McGrath <mcgrathr@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-07-22 21:40:39 +00:00
Filip Filmar 3fef522496 Revert "Reland "[vm] Replaces fuchsia.deprecatedtimezone""
This reverts commit e3a682480a.

Reason for revert: Broke time reporting on new
devices.

Original change's description:
> Reland "[vm] Replaces fuchsia.deprecatedtimezone"
>
> This is a reland of 16f09f20b3
>
> The apparent break of internal tests was not caused by this change.
>
> Original change's description:
> > [vm] Replaces fuchsia.deprecatedtimezone
> >
> > (prior attempt was rolled back as it caused downstream tests to time
> > out.  See prior attempt at: See:
> > https://dart-review.googlesource.com/c/sdk/+/149206)
> >
> > The FIDL library fuchsia.deprecatedtimezone is going away.  There are
> > different and better ways to obtain the same functionality.  This change
> > removes the dependency on fuchsia.deprecatedtimezone from the Dart SDK.
> >
> > Adds inspect metrics that allow whitebox testing of the runners.  Here's
> > a sample `fx iquery` excerpt from a running device, showing both a dart
> > and a flutter runner exposing the same OS diagnostic metrics.
> >
> > ```
> > /hub/c/dart_jit_runner.cmx/70981/out/diagnostics:
> >   /hub/c/dart_jit_runner.cmx/70981/out/diagnostics#os:
> >     dst_status = 0
> >     get_profile_status = 0
> >     timezone_content_status = 0
> >     tz_data_close_status = 0
> >     tz_data_status = 0
> > /hub/c/flutter_jit_runner.cmx/29567/out/diagnostics:
> >   /hub/c/flutter_jit_runner.cmx/29567/out/diagnostics#os:
> >     dst_status = 0
> >     get_profile_status = 0
> >     timezone_content_status = 0
> >     tz_data_close_status = 0
> >     tz_data_status = 0
> > ```
> >
> > Under nominal operation, all of the above values should be equal to 0.
> > Nonzero values indicate an error.
> >
> > This functionality is guarded by Fuchsia integration tests at
> > //src/tests/intl.
> >
> > Tested:
> >   (compile locally for Fuchsia and deploy)
> >   fx test //src/tests/intl
> >
> > See:
> >   - https://github.com/dart-lang/sdk/issues/42245
> >   - https://github.com/dart-lang/sdk/issues/39650
> >
> > Fixes #39650
> >
> > Change-Id: I97f6e17e57000f6eec71246aee670bca65b7e1d1
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150662
> > Commit-Queue: Filip Filmar <fmil@google.com>
> > Reviewed-by: Martin Kustermann <kustermann@google.com>
>
> Change-Id: I5da6b0f481af0eb42c3b5e74c920588ac2ef5be9
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151862
> Reviewed-by: Martin Kustermann <kustermann@google.com>
> Commit-Queue: Filip Filmar <fmil@google.com>

TBR=kustermann@google.com,kaushikiska@google.com,fmil@google.com

Change-Id: I6e590cf22347f9153e5203b255f37872dbd91fa6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155505
Commit-Queue: Filip Filmar <fmil@google.com>
Reviewed-by: Filip Filmar <fmil@google.com>
2020-07-22 21:36:19 +00:00
Konstantin Shcheglov 8c664d4f3f Revert "Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns."
This reverts commit 6bba75079a.

Reason for revert: Starts reporting new hints in front-end libraries. Breaks bots. Will clean-up and reland.

Original change's description:
> Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns.
> 
> R=​brianwilkerson@google.com
> 
> Bug: https://github.com/dart-lang/sdk/issues/42797
> Change-Id: I14e50c231935a4025d33762843f5a54a1ee2154c
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155500
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>

TBR=scheglov@google.com,brianwilkerson@google.com

Change-Id: I99e845d9bd1d9c0882fecc8d72d18d5582454461
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/42797
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155540
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-22 20:56:51 +00:00
Ben Konyi 2efb5bebc7 [ dart:_http ] Fix typo in HTTP response timeline event
Fixes https://github.com/dart-lang/sdk/issues/42800

Change-Id: I4ce660f496484255614b019bbb56976f5c2b31ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155481
Reviewed-by: Kenzie Schmoll <kenzieschmoll@google.com>
2020-07-22 20:30:53 +00:00
Filip Filmar 0884dae36c Revert "Fix the #include path for ICU headers"
This reverts commit 444cb00610.

Reason for revert: The original change broke time reporting on new
devices.  Since this was a touch-up, it will need to change as well.

Original change's description:
> Fix the #include path for ICU headers
> 
> The ICU headers in os_fuchsia.cc have been included with their path
> relative to the dart root directory.  They should instead be included
> relative to the paths mentioned in `-I` directives of the current
> compiler invocation.
> 
> This allows downstreams that have a different directory organization to
> build dart sdk even if they don't exactly replicate the directory
> structure of dart sdk.
> 
> Change-Id: Iec79f261aee5ccc7b74448978fc69244e260400a
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154163
> Reviewed-by: Martin Kustermann <kustermann@google.com>
> Commit-Queue: Filip Filmar <fmil@google.com>

TBR=kustermann@google.com,kaushikiska@google.com,fmil@google.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Ib2c22c2bfaabb07001acb707d996d90a18df3fd0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155502
Reviewed-by: Filip Filmar <fmil@google.com>
Commit-Queue: Filip Filmar <fmil@google.com>
2020-07-22 19:45:04 +00:00
Konstantin Shcheglov 5171534e81 Scope tweaks. Report REFERENCED_BEFORE_DECLARATION in more places.
Change-Id: Iac395adf15c3f636e3e7e7241e0573f83ab61372
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155304
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-22 19:15:59 +00:00
Konstantin Shcheglov 6bba75079a Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns.
R=brianwilkerson@google.com

Bug: https://github.com/dart-lang/sdk/issues/42797
Change-Id: I14e50c231935a4025d33762843f5a54a1ee2154c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155500
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-22 19:13:57 +00:00
Roland McGrath b4ebbb7f5c [build] Update gn to match Fuchsia
Bug: fxbug.dev/56683
Change-Id: I1442dde1cb4ac834b55e7460f5c3533ccf097be1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155306
Auto-Submit: Roland McGrath <mcgrathr@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-07-22 18:48:46 +00:00
Joshua Litt cb428a7a02 [dart2js] Remove old bug work around in collector.
Bug: http://dartbug.com/18175
Change-Id: Ife479c390e02d30a37a19288a381df9b3e4de958
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155222
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2020-07-22 17:51:00 +00:00
William Hesse 08663c20ab Change flutter patch to match existing DEPS on master branch
Change-Id: Idb0fd43ed680839f24e8be03e6703e3be31b8802
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155445
Reviewed-by: Jonas Termansen <sortie@google.com>
2020-07-22 15:48:22 +00:00
Jacob MacDonald 146ad014d9 update js/meta for the 2.10 dev sdk
- bumps the meta version so it can be published
- updates sdk constraints to be consistent with all other packages (should have been equivalent anyways)

Change-Id: I83520d291625f13b0029e28aecb9714f365a75b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155460
Reviewed-by: William Hesse <whesse@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
2020-07-22 15:28:34 +00:00
William Hesse 488c718793 [co19] Roll co19 to d79951e06e443213243e54c2c32694b79a221b65
2020-07-22 sgrekhov@unipro.ru Allow abstract variables in Language tests
2020-07-22 sgrekhov@unipro.ru Fixes 857. LibTest\html\IFrameElement tests migrated to null safety
2020-07-22 sgrekhov@unipro.ru Fixes 856. LibTest\html\HttpRequestUpload tests migrated to null safety
2020-07-22 sgrekhov@unipro.ru Fixes 855. LibTest\html\HttpRequest tests migrated to null safety
2020-07-22 irina.arkhipets@gmail.com Issue tag for 42788 added.
2020-07-22 sgrekhov@unipro.ru Language tests fixed after the next roll
2020-07-21 sgrekhov@unipro.ru Fixes 854. LibTest\html\Event migrated to null safety
2020-07-21 irina.arkhipets@gmail.com Issue 852: migration LanguageFeatures/Constant-update-2018 tsts to null safety
2020-07-21 sgrekhov@unipro.ru Fixes 851. LibTest\html\Element migrated to null safety
2020-07-20 irina.arkhipets@gmail.com Fixes 848: LibTest\mirrirs tests adopted for null safety.
2020-07-20 sgrekhov@unipro.ru Fixes 850. LibTest\html\Document migrated to null safety
2020-07-20 sgrekhov@unipro.ru Fixes 849. LibTest\html\CanvasRenderingContext2D migrated to null safety
2020-07-17 irina.arkhipets@gmail.com Fixes 847: LibTest\core\RegExp tests adopted for null safety.
2020-07-17 irina.arkhipets@gmail.com Fixes 833: LibTest\core\RegExp\Pattern_semantics tests adopted for null safety.
2020-07-17 sgrekhov@unipro.ru Fixes 846. LibTest\core\UriData migrated to null safety
2020-07-17 sgrekhov@unipro.ru Fixes 845. LibTest\core\Uri migrated to null safety
2020-07-16 sgrekhov@unipro.ru Fixes 844. LibTest\core\Stopwatch migrated to null safety
2020-07-16 sgrekhov@unipro.ru Fixes 843. LibTest\core\Symbol migrated to null safety
2020-07-16 sgrekhov@unipro.ru Fixes 842. LibTest\core\StateError migrated to null safety
2020-07-16 sgrekhov@unipro.ru Fixes 841. LibTest\core\UnsupportedError migrated to null safety
2020-07-16 sgrekhov@unipro.ru Fixes 840. LibTest\core\StringBuffer migrated to null safety
2020-07-16 sgrekhov@unipro.ru Fixes 839. LibTest\core\Runes migrated to null safety
2020-07-16 sgrekhov@unipro.ru Fixes 837. It is allowed to import/export libraries with the same name now
2020-07-16 sgrekhov@unipro.ru Fixes 836. LibTest\core\String tests migrated to null safety
2020-07-15 sgrekhov@unipro.ru Fixes 835. LibTest\core\RangeError tests migrated to null safety
2020-07-15 sgrekhov@unipro.ru Fixes 834. LibTest\core\Object tests migrated to null safety
2020-07-15 sgrekhov@unipro.ru Fixes 832. LibTest\core\RuneIterator migrated to null safety
2020-07-15 sgrekhov@unipro.ru Fixes 831. LibTest\core\BidirectionalIterator migrated to null safety
2020-07-15 sgrekhov@unipro.ru Fixes 830. LibTest\collection\UnmodifiableMapView migrated to null safety
2020-07-15 sgrekhov@unipro.ru Merge branch 'master' of https://github.com/dart-lang/co19
2020-07-15 sgrekhov@unipro.ru Fixes 829. LibTest\collection\UnmodifiableMapBase migrated to null safety
2020-07-14 irina.arkhipets@gmail.com Issue 602: New tests for least and greatest closure added.
2020-07-14 sgrekhov@unipro.ru Fix isWeakMode/isStrongMode getters
2020-07-14 sgrekhov@unipro.ru Fixes 828. LibTest\collection\UnmodifiableListView migrated to null safety
2020-07-14 sgrekhov@unipro.ru Fixes 827. LibTest\collection\SplayTreeSet migrated to null safety
2020-07-14 sgrekhov@unipro.ru Fixes 826. LibTest\collection\SplayTreeMap migrated to null safety
2020-07-14 sgrekhov@unipro.ru Fixes 825. LibTest\collection\SetBase and LibTest\collection\SetMixin migrated to null safety
2020-07-14 sgrekhov@unipro.ru Fixes 824. LibTest\collection\MapMixin and LibTest\collection\MapView migrated to null safety
2020-07-14 sgrekhov@unipro.ru Fixes 823. Add isWeakMode/isStrongMode constants. Use them in typedef_A04_t03 to fix expectations
2020-07-13 sgrekhov@unipro.ru Fixes 822. LibTest\collection\MapBase tests migrated to null safety
2020-07-13 sgrekhov@unipro.ru Fixes 820. LibTest\collection\ListQueue tests migrated to null safety
2020-07-13 irina.arkhipets@gmail.com Fixes 821: LibTest\core\Function tests apdated according to the Dartv 2 changes. New tests added.
2020-07-13 irina.arkhipets@gmail.com Fixes 819: LibTest\core\Match tests adopted for null safety.
2020-07-13 sgrekhov@unipro.ru Fixes 816. List tests migrated to null safety
2020-07-13 irina.arkhipets@gmail.com Fixes 818: LibTest\core\Invocation tests adopted for null safety.
2020-07-13 irina.arkhipets@gmail.com Fixes 817: LibTest\core\int tests adopted for null safety.
2020-07-13 sgrekhov@unipro.ru Fixes 812. LibTest\collection\LinkedListEntry migrated to null safety
2020-07-10 irina.arkhipets@gmail.com Fixes 815: LibTest\core\FormatException tests adopted for null safety.
2020-07-10 irina.arkhipets@gmail.com Fixes 814: LibTest\core\Error tests adopted for null safety.
2020-07-10 irina.arkhipets@gmail.com Fixes 813: LibTest\core\Duration tests adopted for null safety.
2020-07-10 irina.arkhipets@gmail.com Fixes 810: Lest and greatest closure tests moved to the proper folder.
2020-07-10 irina.arkhipets@gmail.com Fixes 809: LibTest\core\double tests migrated to null safety.
2020-07-10 sgrekhov@unipro.ru Fixes 811. LibTest\collection\LinkedList migrated to null safety
2020-07-10 irina.arkhipets@gmail.com Fixes 808: LibTest\core\DateTime tests migrated to null safety.
2020-07-10 sgrekhov@unipro.ru Fixes 804. LibTest\collection\LinkedHashSet migrated to null safety
2020-07-10 irina.arkhipets@gmail.com Fixes 807: LibTest\core\CyclicInitializationError tests migrated to null safety.
2020-07-10 sgrekhov@unipro.ru Language/Types and Language/Variables tests fixed after tryjobs run
2020-07-09 irina.arkhipets@gmail.com Fixes Issue 803: LibTest\core\AssertionError tests adopted to nnbd
2020-07-09 sgrekhov@unipro.ru Fixes 800. LibTest/core/Set and LibTest/collection/HashSet migrated to null safety
2020-07-09 irina.arkhipets@gmail.com Fixes Issue 802: LibTest\core\ArgumentError tests adopted to nnbd
2020-07-09 irina.arkhipets@gmail.com Issue 801: Migrate LibTest\core\AbstractClassInstantiationError tests adopted to nnbd
2020-07-09 irina.arkhipets@gmail.com Issue 790: LibTest\convert\Latin1Codec tests adopted to nnbd
2020-07-09 irina.arkhipets@gmail.com Issue 790: LibTest\convert\JsonUtf8Encoder tests adopted to nnbd
2020-07-09 irina.arkhipets@gmail.com Issue 790: LibTest\convert\JsonCodec, 790: LibTest\convert\JsonDecoder, JsonEncoder tests adopted to nnbd
2020-07-09 irina.arkhipets@gmail.com Fixed issue 790: LibTest\convert\ByteConversionSink, LibTest\convert\Encoding tests adopted to nnbd
2020-07-09 irina.arkhipets@gmail.com Fixed issue 790: LibTest\convert\ByteConversionSink, LibTest\convert\ChunkedConversionSink tests adopted to nnbd
2020-07-09 sgrekhov@unipro.ru Fixes 793. LibTest/core/Iterable migrated to null safety
2020-07-08 sgrekhov@unipro.ru Fixes 799. Fix expected results in LanguageFeatures/nnbd/extension_method_resolution_A03_t01
2020-07-08 sgrekhov@unipro.ru Fixes 798. Typo in LanguageFeatures/nnbd/extension_method_resolution_A03_t02 fixed

Change-Id: Ib03d5a425dbe2e6d4f238402e569df0adde70bc9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155327
Reviewed-by: Jonas Termansen <sortie@google.com>
Reviewed-by: Sergey Grekhov <sgrekhov@unipro.ru>
2020-07-22 15:01:10 +00:00
William Hesse ba20edd7be Add patch for flutter-engine when changing to version 2.10
Change-Id: I4e17161abd7d8c390821a5e19a102a45de01a2ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155442
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-22 14:22:39 +00:00
William Hesse 24c7666def Update tests that have the current version number hardcoded
Some package configuration tests have the current version hardcoded
in local package_config.json files. Update these from 2.9 to 2.10.

Change-Id: I77bf63c0e5dfa73aa8a86fb1b4e8a404e8cfaa7f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155441
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-22 13:22:07 +00:00
William Hesse f88ce7aef5 Increase Dart version to 2.10
Change-Id: Ic6b556f935602834564aca24690608aa624efa43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155440
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-22 13:22:07 +00:00
Ben Konyi a3815b6590 [ VM ] Fix issue where ExitCodeHandlerEntry could get stuck in an
infinite loop if wait(...) returned an error

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

Change-Id: Ied4cc53dcfbbb6e04179721a00f04a8cd0ef9f29
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155282
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-22 03:45:35 +00:00
Konstantin Shcheglov 6f8ce20c99 Move asInstanceOf(ClassElement) to DartType.
This follows to the change to the specification.
https://github.com/dart-lang/language/pull/1106

R=brianwilkerson@google.com

Change-Id: I6575f201161c454de98e9bcbec74b9974d91d062
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155242
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-22 01:22:05 +00:00
Sam Rawlins 041e0dd618 Analyzer: Enforce strict-inference
Change-Id: Iba49bfa7cf10f8a3b1d3be03e73fdca280f0940a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155062
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-07-22 00:44:55 +00:00
Sam Rawlins 23cf1230d0 Analyzer: Re-categorize StrongModeCode.INVALID_CAST_* codes as CompileTimeErrorCodes
I found literally zero tests for INVALID_CAST_FUNCTION_EXPR, and I was
unable to write any code that triggers it. :/

The rest are classified as compile-time errors in CFE; I am confident
that "compile-time error" is the correct classification.

Change-Id: Ib0cf543b983f8e28b45d40cc9cd4dc9f14b2f387
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155302
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-07-22 00:34:45 +00:00
Ben Konyi a24192e786 Revert "[ VM ] Print a meaningful error message when a user attempts to run an AOT snapshot with a JIT VM."
This reverts commit d870a71b20.

Reason for revert: ASAN failures

Original change's description:
> [ VM ] Print a meaningful error message when a user attempts to run an AOT snapshot with a JIT VM.
> 
> Fixes https://github.com/dart-lang/sdk/issues/42482
> 
> Change-Id: I284a5673e30f59b127e69c712df93552cdfcde41
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154834
> Commit-Queue: Ben Konyi <bkonyi@google.com>
> Reviewed-by: Ryan Macnak <rmacnak@google.com>

TBR=bkonyi@google.com,rmacnak@google.com,asiva@google.com

Change-Id: I3639ede6987fbb51fb95584685c472abb789970e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155303
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-21 23:49:47 +00:00
Sam Rawlins 3eaa777384 Analyzer: Remove unnecessary usage of StaticTypeAnalyzer2TestShared
Change-Id: I21dfbe84ced399a1204f43952171f41d453faaaf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155340
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-07-21 23:36:55 +00:00
Brian Wilkerson 79a2aca554 Generalize data-driven changes to support references to named parameters
Change-Id: I75162225f88c2a50b4f5e0ca6601c685be6436b5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155300
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-07-21 23:31:55 +00:00
Jonas Termansen 2454b45000 Roll benchmarks-internal 1e4d9df24078..0e59a6bc3ee9
0e59a6bc3ee912273865b87709cdb698be358e30 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2140

R=sra@google.com

Change-Id: I32e67147264211f44cfad6f45ed571eef3dda06e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155320
Auto-Submit: Jonas Termansen <sortie@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2020-07-21 22:39:26 +00:00
Nicholas Shahan ca2da56786 [ddc] Fix return type to avoid cast to bool
Now the call in `dtest()` (directly above) is known to never return
so the type of `obj` can be promoted and there is no cast in the
return statement.

Change-Id: I9096dab87cfba5ea2289530070d0214974379ebc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155068
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-07-21 22:38:06 +00:00
Alexander Markov b2ef76a4d1 [vm/aot] Keep source positions when replacing casts and null checks with unsafeCast
Fixes https://github.com/dart-lang/sdk/issues/42784

Change-Id: I1c507c65696b186ec34b1051e22ed23a4356e548
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155260
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-07-21 22:15:45 +00:00
Ryan Macnak d68d2e9e0a [vm, gc] Account for unbounded number of images pages in the compactor.
Bug: https://github.com/dart-lang/sdk/issues/41974
Change-Id: I23201f28e5d1e2ba298611206fc3eb0a9a989c2b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155241
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-07-21 21:57:05 +00:00
Nicholas Shahan 9b04db0683 [ddc] Avoid null checks on the result of ! op
Change the non-nullable inference to treat the result of the null
check operator as non-nullable, otherwise it will already fail at
runtime.

Compiled code examples:

dart:      `nullableInt!.isEven`
js before: `dart.notNull(dart.nullCheck(nullableInt)).isEven`
js after:  `dart.nullCheck(nullableInt).isEven`

dart:      `if (nullableBool!)`
js before: `if (dart.test(dart.nullCheck(nullableBool)))`
js after:  `if (dart.nullCheck(nullableBool))`

Change-Id: I98c4a4637b29568ddbd27a539095b6c2b2951c22

Issue: https://github.com/dart-lang/sdk/issues/42754
Change-Id: I98c4a4637b29568ddbd27a539095b6c2b2951c22
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155069
Reviewed-by: Mark Zhou <markzipan@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-07-21 21:42:45 +00:00
Ben Konyi a2fc68c8d2 [ DartDev ] Update CompileNative subcommand help messages to no longer reference dart2native
Fixes https://github.com/dart-lang/sdk/issues/42600

Change-Id: I1e29b0ec1133d13d25f7925a9bd152d671e5a686
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155243
Reviewed-by: Jaime Wren <jwren@google.com>
2020-07-21 20:50:04 +00:00
Ryan Macnak f3e0e4ad9a Reland "[observatory] Avoid confusion of RSS for the VM's memory usage."
Don't assert that RSS > VM memory as VM memory might not be all resident.

Change-Id: Ie00c3e382d7b219fdb462a6e61d649f4d5276964
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155140
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-07-21 20:14:55 +00:00
Liam Appelbe f66eb7228a [test] Infra for running tests on Fuchsia emulator
The IO tests aren't working yet, but basic tests work:
tools/test.py -n dartk-fuchsia-debug-x64 language_2/list/literal3_test

You may need to run this first:
sudo chmod 666 /dev/kvm

Change-Id: I04915ce11f671f1d493f9eeb6bc832089ba9bfa4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154828
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-07-21 19:40:15 +00:00
Ben Konyi d870a71b20 [ VM ] Print a meaningful error message when a user attempts to run an AOT snapshot with a JIT VM.
Fixes https://github.com/dart-lang/sdk/issues/42482

Change-Id: I284a5673e30f59b127e69c712df93552cdfcde41
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154834
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-07-21 19:29:15 +00:00
Paul Berry eae54cf02c Fix reachability logic for expression types.
Previously, we considered an expression unreachable if its type was
exactly `Never`.  This CL switches to using TypeSystem.isBottom, which
correctly handles types like `T extends Never`.

Change-Id: Ia6ce580caab6bc7ce7cceb1d0097b50f1da88f8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154746
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-07-21 18:56:25 +00:00
Konstantin Shcheglov e653358a6c Issue 42770. Support closures when checking for instance elements referenced from static.
Bug: https://github.com/dart-lang/sdk/issues/42770
Change-Id: Ic9ea429a50ad8aa807f2f2c33667d3c4fbc9b169
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155144
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-21 18:12:04 +00:00
Ben Konyi 3450026c21 [ package:dds ] Fixed issue where an exception could be thrown during startup if the target
process had an isolate without an associated pause event.

Change-Id: I2c833335129d120aec84e3a2327d1f10560fe186
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155145
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-21 17:56:44 +00:00
Ryan Macnak 27a5d2d65f [vm, gc] Remove the 'limit shrinkage' heuristic.
This heuristic can cause the heap to consume memory in excess of the growth ratio after the application's memory usage shrinks.

Bug: https://github.com/dart-lang/sdk/issues/18147
Change-Id: I3d4aa0bc4b74d22e974e3cac00ee9e42967e0826
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125000
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-07-21 17:45:34 +00:00
Konstantin Shcheglov 284ba97259 Call getFileContext() once for Cider completion.
R=brianwilkerson@google.com, keertip@google.com

Change-Id: If6332ad5a7a3153e7bc67376294df9bbb2468ce7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155141
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2020-07-21 17:07:02 +00:00
Brian Wilkerson 052f100a95 Fix newly reported hints in analysis_server
Change-Id: Ie39a0f1f67019282c9d2bb4548ac553fa7061a65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155131
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-07-21 17:01:42 +00:00