Commit graph

74157 commits

Author SHA1 Message Date
Lasse Reichstein Holst Nielsen 084f9faf81 Move BytesBuilder class and implementation to dart:typed_data.
Change-Id: I3e66e61940a1060e4970427799e0d8ebdaebb310
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150523
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2020-07-15 15:09:14 +00:00
Jacob MacDonald ff3c4fcbf4 update to latest async
Change-Id: If0d7e5382a042cc089ce8744385b1f1eac198eb9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154480
Auto-Submit: Jake Macdonald <jakemac@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-07-15 15:06:14 +00:00
Martin Kustermann 06183779d7 [vm/compiler] Make the compiler use dyn:* selectors when calling getters
We already make the callsites use dyn:* selectors for normal method
calls as well as setters, this is doing the same thing for getters.

Once callsites use dyn:get:* various pieces in runtime need to be
adjusted to accomodate for that (e.g. NSM handling, etc).

A follow-up CL will then start actually generating dyn:* getters in
certain situations.

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

Change-Id: If219603bc0b8eb119edd08b211a8897d21ec0fb6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154320
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2020-07-15 12:38:04 +00:00
Sam Rawlins a48bebea1e Analyzer: Move tests for 7 more codes to diagnostics/
Change-Id: I1b646cff5bbc05538825434ce933e87e7ca075bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154365
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-07-15 12:22:13 +00:00
Martin Kustermann 89fe12b12a [infra] Always re-run GN in build.py
The workflow of using tools/gn.py followed-by tools/build.py is no
longer working as it used to (the latter will override whatever the
former configured).

Instead one should pick between:

  tools/gn.py & ninja
  tools/build.py

=> Both tools/gn.py and tools/build.py suport the same options.

This CL also makes tools/build.py stop using tools/generate_buildfiles.py (which
would get just overriden by the re-run of GN).

Change-Id: Ie698d7395e8c5862ae04a479c7c820c76ac5565d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154323
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-07-15 09:01:28 +00:00
David Morgan d559c8f635 Add missing LICENSE files for internal packages.
Change-Id: I7fabffa16202ea4cd1138283703cab1e98b29c63
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153613
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-07-15 08:33:53 +00:00
Kevin Moore 966078df3a Fix a number of outdated references to dartlang.org in doc comments
Eliminated several links to content that no longer exists

Change-Id: Icd7bf5796a061882ba384e39d78d5f8ff429696d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154362
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Auto-Submit: Kevin Moore <kevmoo@google.com>
2020-07-15 01:11:03 +00:00
Alexander Markov ab7b33d50b [vm/nnbd] Faster type tests for non-nullable Object
FfiCall.Handlex* benchmarks improved 290x-1708x in JIT mode with null
safety.

Change-Id: Iaed1d3ecacb929910c05b98fa951ba20612018f0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154344
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-07-15 00:55:03 +00:00
Robert Nystrom e314030e1f Fix list tests to not set length on non-nullable lists.
The fixes to list_concurrent_modify_test are I think correct and
preserve the intent of the test. The changes to list_test get the test
working correctly and preserve the intent of the test but are
workarounds that shouldn't be needed once #42496 is fixed.

Change-Id: I82b32b2256b9940ceb934fb0f628311b8e7c6567
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152988
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
2020-07-15 00:45:43 +00:00
Kenzie Schmoll 845d0bdc09 [vm_snapshot_analysis] Move utils.dart into bin/commands/
Change-Id: Ib5471b3effb223795f0cdcc6fcf7f2e7d487e1f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154345
Reviewed-by: Jacob Richman <jacobr@google.com>
Commit-Queue: Kenzie Schmoll <kenzieschmoll@google.com>
2020-07-15 00:34:03 +00:00
Nicholas Shahan 1332cf8c41 [ddc] Migrate tests in dartdevc suite
Change-Id: I2a35de7f79b8d768cdd0144b3bf5de87fa929942
Issue: https://github.com/dart-lang/sdk/issues/42107
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154301
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
2020-07-15 00:16:03 +00:00
Nicholas Shahan 461d01cd80 [ddc] Fix variance test migration to null safety
Change-Id: I5f6e446c72ae1a41d92f419eb57a8dd030a70372
Issue: https://github.com/dart-lang/sdk/issues/42107
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154292
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-07-15 00:15:23 +00:00
Konstantin Shcheglov b6773035ba Fix for Cider completion in libraries with parts.
R=brianwilkerson@google.com, keertip@google.com

Change-Id: I834d27cad96092d32d7c1bacb71fc4584ba3503d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154381
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 23:58:03 +00:00
Srujan Gaddam 63a57a76ce [dart:html] Revert "[dart:html] Revert commits using MDN compatibility info"
This reverts commit f8ff12008e.

This CL is a revert of the initial revert and should be landed once
Flutter changes have been merged to handle the changes here.

Change-Id: I300a5efd776bf2a596743971f4e15ad62da77f5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153368
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2020-07-14 23:18:43 +00:00
Kenzie Schmoll 4f55ba2639 [vm_snapshot_analysis] rearrange dart:io dep and move commands to bin
Change-Id: Ib22ae8d1ec3c4032c646915bad94361efef48a2c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154360
Commit-Queue: Kenzie Schmoll <kenzieschmoll@google.com>
Reviewed-by: Jacob Richman <jacobr@google.com>
2020-07-14 23:09:18 +00:00
Nate Bosch febf9cd39c Update to latest package:http
Change-Id: I29514f0ba94a9d402b3935a0e199180787d0e945
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154342
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-07-14 23:02:33 +00:00
Konstantin Shcheglov cd22c5cd21 Catch IO exceptions when resolving a file.
R=keertip@google.com

Change-Id: I0d0539f3730ba2a0f219c5ac9d18ea2107a83b62
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154363
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 23:01:13 +00:00
Joshua Litt cfeb1d647a [dart2js] Port some tests to nnbd #5.
Change-Id: Ic9912d94e1248df70a92e2504af87d42d5ca0528
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152617
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2020-07-14 20:02:02 +00:00
Jonas Termansen b19fefa712 Roll benchmarks-internal 9bfe209a53a5..ab5ac38ce09a
ab5ac38ce09a56f54e0500405042f0ab00187f81 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2100

R=regis@google.com

Change-Id: If1f072ccdf835f8916f7a9d7eaeece5c8e985a94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154328
Auto-Submit: Jonas Termansen <sortie@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
2020-07-14 19:28:50 +00:00
Stephen Adams 3c0422d02c [dart2js] Constant-fold some cases of x.toInt()
Change-Id: Ibb574ab971ccee3be22fc8e2b33394f50e96122c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154127
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2020-07-14 19:11:20 +00:00
Joshua Litt 7df03a752c [dart2js] Port ~20 tests to nnbd #2.
Change-Id: Iff3074c7882a4f8418f854424c6133b5a53bee4d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152609
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2020-07-14 19:04:30 +00:00
Alexander Markov cae620386e [vm/bytecode] Update Inliner_List_generate unit test in bytecode mode
Flow graph slightly changed in bytecode mode after
https://dart-review.googlesource.com/c/sdk/+/153388.
So unit test should be updated accordingly.

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

Change-Id: I095c40831436083b63a7bb0d1d95500e1b1077e7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153680
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-07-14 18:28:10 +00:00
Alexander Markov 0ac6ce5f9d [vm/aot/nnbd] Avoid deduplicating mixins with different NNBD modes
CFE adds signature members to classes based on the NNBD mode of
an enclosing library, so identical anonymous mixin applications
in libraries with different NNBD modes could end up being different.

This change fixes mixin deduplication transformation to take
NNBD mode of anonymous mixin applications into account.

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

Change-Id: Ib83ae55f8193177012fa1a592fecf381ca8fdbff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154164
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-14 18:27:10 +00:00
Danny Tuppeny e7f861023c Add dart.lineLength setting to the LSP docs
Change-Id: Ic517979497a0755683a8b5f2335ee75d103b5220
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154327
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Danny Tuppeny <danny@tuppeny.com>
2020-07-14 18:13:30 +00:00
Konstantin Shcheglov c3655ed435 Remove FolderBasedDartSdk.defaultSdkDirectory() and getSdkProperty().
It is up to the higher level clients to decide how to find SDK.

It is not API, and is not referenced internally, so we can land it
without going through breaking changes.

Change-Id: Id428519fa9bb3c38368f095c0f358e07f65c45b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154081
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 18:09:30 +00:00
Jacob MacDonald 2b4dc0fa6b update charcode in the sdk to the nnbd version
Change-Id: I737ef6499d459b8f0a462e82038743547bbd5f99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154340
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
2020-07-14 16:42:30 +00:00
Brian Wilkerson 9bb4fb680e Update the wrap-in-padding fix to not add the keyword const when in a constant context
Change-Id: Icc9a8ed08b1294757df336d0d7169ac8b75c95c2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154287
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 16:34:49 +00:00
Filip Filmar 444cb00610 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>
2020-07-14 16:30:19 +00:00
Konstantin Shcheglov 72bb1d1428 Stop using FormalParameter.kind in analyzer.
So that we could remove it from the public API in a breaking change.

Change-Id: I625bd650d6e6fb4734e40bd8d58ae2142d7fb25e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154304
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 16:23:09 +00:00
Jonas Termansen e7abc41107 [benchmark] Use the VM from the SDK for analyzer benchmarks.
Change-Id: Ia0beb25928a469cb22c77bed2709cf970d495225
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154325
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 16:05:47 +00:00
Paul Berry 4a4bb55150 Make "ID" tests insensitive to what directory they're run from.
Previously, they needed to be run from the root of the SDK repo, which
made testing under IntelliJ a pain, since by default IntelliJ runs
executables from the root of the local package.

Change-Id: I89d9bbbca38307016fcea4717010c19b9720b463
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154285
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-07-14 15:33:59 +00:00
Martin Kustermann 2a11b9b426 [infra] Add using_goma=False (fixes recent tools/build.py change)
Change-Id: I9edf8c4451c3a14597aa0927f5c63e2e62bb5c49
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154326
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2020-07-14 15:28:20 +00:00
Konstantin Shcheglov 8608726100 Stop supporting 'target?.[index]' and QUESTION_PERIOD_OPEN_SQUARE_BRACKET.
Change-Id: Icac4f851fbb9f283ce28ba8753c1b2e27a99cff3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154165
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 14:36:19 +00:00
Dmitry Stefantsov ac4de98a29 [cfe] Eliminate UnknownType in async type downcasts
Closes #42615.

Bug: https://github.com/dart-lang/sdk/issues/42615
Change-Id: Ieb289acee04b3868304d320d3c2231fd6eb94dd6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154322
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
2020-07-14 14:10:19 +00:00
Martin Kustermann be9b69553d [infra] Prepare to make tools/build.py always re-runs GN.
Also adds a '-nvh' short-hand for '--no-verify-sdk-hash'

Change-Id: If893953e592128a8fa0b2f2e5720748d4b9b76aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153770
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2020-07-14 14:10:11 +00:00
Johnni Winther 49d6781a54 [cfe] Update expectations after sdk change
Closes #42685

Change-Id: Id95c5f07d49811215dea21d10bfea3c92bf0109b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154321
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-14 13:36:50 +00:00
Johnni Winther e637f7054e [cfe] Add support for keeping const locals during constant evaluation
With this CL backends can opt in to retain constant local variables
in the AST that would otherwise have been removed through inlining.

Change-Id: I377a8679c89fe012d2ec4c7e087274a8052979ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153965
Reviewed-by: Anna Gringauze <annagrin@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-14 12:17:39 +00:00
Johnni Winther 76a4ae2931 [cfe] Ensure legacy result types for invocation and access in opt-out libraries
Closes #42660

Change-Id: Ied66fc6c704852d7ab7ad8fde0c78e04be6b9b0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154005
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-14 11:24:44 +00:00
Lasse Reichstein Holst Nielsen 5e31578877 Update ListMixin/ListBase documentation and insert for Null Safety.
Document that `add` must be implemented when using
`ListMixin` or `ListBase` with Null Safety.

Changes ListMixin.insert to not grow the list itself,
but instead rely on `add` to do that.
This means that a user of ListMixin/ListBase
*only* needs to implement `add`
to support growing a list with non-nullable elements
(which they do need to because of Null Safety).

Fixes #42496

Bug: http://dartbug.com/42496
Change-Id: I9476f3111330d7c7f1878f165e066f86d3108b87
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152853
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2020-07-14 11:04:08 +00:00
Martin Kustermann 20bf2fcf56 [vm/compiler] Make precompiler prune invocation dispatchers the same way we do for regular/closure functions
The precompiler has a notion of when a function should get its code
generated, when it should retain a functions types. This information
is used to prune function objects after AOT compilation.

This CL introduces the same pruning logic which we do for regular
functions as well as closure functions to invocation dispatchers.

Change-Id: I5c8a75f0cc822c71e876b8e2c9648d9976745895
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154002
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2020-07-14 09:46:23 +00:00
William Hesse c54f38f2c1 [build] Change flutter-engine patch for async to use updated Dart SDK hash
Change-Id: Ied50a96ba3bf7c1d9ca7bdf06f793822cb86167d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154011
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-14 09:32:07 +00:00
Jonas Termansen 574835aeb9 Roll benchmarks-internal 78e4b5975ab4..9bfe209a53a5
9bfe209a53a5731a972f13911f9dce1a8cc1c9e2 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2080

R=athom@google.com

Change-Id: I0ed4654d6ad49ab12549b2b842dbc22c036bba7e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154010
Auto-Submit: Jonas Termansen <sortie@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-07-14 09:25:13 +00:00
Martin Kustermann fd22357eba [vm] Remove unused function
Change-Id: Iea78d15c808a8d02c08f3d2468a55e39a7771302
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154007
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-07-14 09:20:53 +00:00
Jacob MacDonald 05c7980fff update async in the sdk, add flutter engine patch
Change-Id: I17e088df3024992c4ea19a6dc2bcd63ba0dbb11b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153620
Reviewed-by: William Hesse <whesse@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
2020-07-14 08:40:34 +00:00
Sam Rawlins 450d611068 analyzer: Move tests for 9 codes to diagnostics/
Change-Id: Ib933f7923a0eb08db80839bf0490adc22d38ef14
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154303
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-07-14 04:32:33 +00:00
Konstantin Shcheglov 89115ff4a2 Prepare to publish analyzer 0.39.13
Change-Id: Ifa40c7f7f62a2aa4fb1d312e29be6bd092bdbbde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154291
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-14 01:22:29 +00:00
Regis Crelier 994c6ba6cd [VM/nnbd] Class Future may be used for type normalization before it is cached in the object store.
Class Future is resolved on the fly if not already cached.
Note that postponing type normalization until type finalization does not help
and results in the same error.

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

Change-Id: Id4dbeba6a246dbc952cce4168a10137a49d3ce70
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153901
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2020-07-14 00:42:19 +00:00
Ben Konyi b75df6f268 [ package:dds ] Fixed expression evaluator expecting a double-nested
'result' from an external 'compileExpression' implementation

Also adds expression evaluation tests for external clients.

Change-Id: Ibc1ee098df1de4d191627cbccb44e24fbcb43adf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154300
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-14 00:32:49 +00:00
Nicholas Shahan 9460ac3c8d [ddc] Copy more .dill files to packaged sdk
Adds the sound full and outline as well as a weak full dill.

The outlines are required when compiling user applications. The full
dills will be used to compile the sdk to JS by the build system.

Change-Id: I74b3f1c34dba5fcdea2dfad07c6bf1af9c1e3f13
Issue: https://github.com/dart-lang/sdk/issues/42253
Fixes: https://github.com/dart-lang/sdk/issues/42083
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153701
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2020-07-14 00:09:29 +00:00
Nate Bosch 71d6b669a3 Update to latest package:matcher
Improves mismatch descriptions for deep collection matchers.

Change-Id: I915d238674a4feb2eb679e21175a588ad8cdae7d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154280
Commit-Queue: Nate Bosch <nbosch@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-07-13 23:41:59 +00:00