Commit graph

919 commits

Author SHA1 Message Date
Dmitry Stefantsov
535ee87c21 [kernel] Add NORM implementation
Change-Id: I6292a4247ed0c418f2d3d6fa841ed086894c31c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134335
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-02-07 15:00:24 +00:00
Alexander Thomas
43b751c15b [co19] Roll co19 to def1183bacc28f008db4fdd3d0442ed05f1889f8
2020-02-06 irina.arkhipets@gmail.com Fixed Issue 465: Issue tags updated.
2020-02-04 irina.arkhipets@gmail.com Fixed Issue 465: re-factoring.
2020-02-04 irina.arkhipets@gmail.com Fixed Issue 465: re-factoring.
2020-02-04 irina.arkhipets@gmail.com Fixed Issue 465: New nnbd tests added (overriding).
2020-02-03 irina.arkhipets@gmail.com Fixed Issue 465: Overriding tests updated.
2020-01-31 irina.arkhipets@gmail.com Fixed Issue 465: New tests for overriding added.
2020-01-31 irina.arkhipets@gmail.com Fixed Issue 465: New tests for overriding added.
2020-01-31 irina.arkhipets@gmail.com Fixed Issue 518: Issue tags updated.
2020-01-30 irina.arkhipets@gmail.com Fixed Issue 518: Minor tests correction.
2020-01-30 irina.arkhipets@gmail.com Fixed Issue 518: Minor tests correction.
2020-01-30 irina.arkhipets@gmail.com Merge branch 'master' of https://github.com/dart-lang/co19
2020-01-30 sgrekhov@unipro.ru NNBD tests updated according last roll results (fixed, issue numbers added)
2020-01-30 sgrekhov@unipro.ru Null aware test fixed
2020-01-30 sgrekhov@unipro.ru Null aware test fixed
2020-01-29 irina.arkhipets@gmail.com Fixed Issue 518: Issue tags added for the NNBD tests which fail because of the issues 40367, 40368
2020-01-29 sgrekhov@unipro.ru NNBD tests fixed after the next roll results investigation
2020-01-28 irina.arkhipets@gmail.com Fixed Issue 516: expected result for the tests which check methods with required arguments updated.

Change-Id: I8efb2e49a7dd5f6ef4422dd068264d0cfb57586e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134701
Reviewed-by: Jonas Termansen <sortie@google.com>
2020-02-06 13:07:20 +00:00
Johnni Winther
80dacdf3a0 [kernel] Add Class.hasConstConstructor and Member.isNonNullableByDefault predicates
Closes #40440

Change-Id: I2776c165d23e2aa2bf5d7515741bd0f0d067b26d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134292
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2020-02-06 12:27:37 +00:00
Devon Carew
c8ed304e97 [dartdev] add a dartdev 'create' command
Change-Id: I95625a9c422335ba5de92c887afce9eb564d6a04
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133460
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Jaime Wren <jwren@google.com>
2020-02-02 02:23:13 +00:00
Zichang Guo
91a3ea89c8 Revert "[dart:io] Stop forcing lower case on HttpHeaders"
This reverts commit b2b7337ad4.

Reason for revert: flutter build broke!!

Original change's description:
> [dart:io] Stop forcing lower case on HttpHeaders
> 
> This is a breaking change. Request: https://github.com/dart-lang/sdk/issues/33501
> 
> HttpHeaders use lowercase by default for all headers, since it is supposed to be case insensitive. Some servers incorrectly treat case as significant, however, and expect headers with capitalization or in uppercase. The current implementation forces headers to be lower cases when adding values. Users cannot even manually modify the headers.
> 
> This change removes this restriction here so that users can modify the headers to whatever form they want. The new behavior is backwards compatible except if class was implemented. All headers inside http.dart are written as lower cases, adding values to HttpHeaders is still receiving lower cases input.
> 
> The other cl (https://dart-review.googlesource.com/c/http_multi_server/+/121411) migrates multi_headers.dart to be compatible with this change.
> 
> Bug: https://github.com/dart-lang/sdk/issues/33501
> Change-Id: I6f7f2ef907b229773c283140c07f2de4cd500981
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119100
> Commit-Queue: Zichang Guo <zichangguo@google.com>
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>

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

Change-Id: I4d4299393ad6549b250053df8823e726855e2baf
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/33501
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134102
Reviewed-by: Zichang Guo <zichangguo@google.com>
Commit-Queue: Zichang Guo <zichangguo@google.com>
2020-01-31 22:32:22 +00:00
Johnni Winther
54c8066f6f [cfe] Add new flags to AsExpression and IsExpression
Change-Id: I31eba9b4ced051a1067945fd68e60a09b1fa6ed7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133100
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-01-31 19:55:22 +00:00
Zichang Guo
b2b7337ad4 [dart:io] Stop forcing lower case on HttpHeaders
This is a breaking change. Request: https://github.com/dart-lang/sdk/issues/33501

HttpHeaders use lowercase by default for all headers, since it is supposed to be case insensitive. Some servers incorrectly treat case as significant, however, and expect headers with capitalization or in uppercase. The current implementation forces headers to be lower cases when adding values. Users cannot even manually modify the headers.

This change removes this restriction here so that users can modify the headers to whatever form they want. The new behavior is backwards compatible except if class was implemented. All headers inside http.dart are written as lower cases, adding values to HttpHeaders is still receiving lower cases input.

The other cl (https://dart-review.googlesource.com/c/http_multi_server/+/121411) migrates multi_headers.dart to be compatible with this change.

Bug: https://github.com/dart-lang/sdk/issues/33501
Change-Id: I6f7f2ef907b229773c283140c07f2de4cd500981
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119100
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2020-01-31 17:08:52 +00:00
pq
9c04bdf1c6 bump to linter 0.1.110
Change-Id: I4763c5f99e06036f990a347954fc13e9d5f42d0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133436
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2020-01-28 17:15:28 +00:00
Alexander Thomas
cdad337d1a [co19] Roll co19 to 5a3388d1f79cc3c61f9cdc1b3eaaa405bd62c882
2020-01-28 sgrekhov@unipro.ru Implicit onversions tests added
2020-01-27 sgrekhov@unipro.ru Null-aware  static errors tests fixed
2020-01-27 sgrekhov@unipro.ru More static errors tests
2020-01-24 sgrekhov@unipro.ru Fix legacy warning test
2020-01-24 sgrekhov@unipro.ru Static errors swithc statement tests added
2020-01-23 irina.arkhipets@gmail.com Fixed Issue 465: NNBD generics tests updated.
2020-01-23 irina.arkhipets@gmail.com Fixed Issue 465: Refactoring of the tests, some typos corrected.
2020-01-23 sgrekhov@unipro.ru Static errors swithc statement tests added
2020-01-23 irina.arkhipets@gmail.com Fixed Issue 465: New tests for Exports added (type aliases).
2020-01-23 sgrekhov@unipro.ru Optional parameters of abstract method test added
2020-01-23 sgrekhov@unipro.ru Issue number added
2020-01-22 irina.arkhipets@gmail.com Fixed Issue 465: New tests for Exports added (function typedefs).
2020-01-22 irina.arkhipets@gmail.com Fixed Issue 465: New tests for Exports added (function typedefs).
2020-01-22 irina.arkhipets@gmail.com Fixed Issue 465: New tests for Exports added (function typedefs).
2020-01-22 irina.arkhipets@gmail.com Fixed Issue 465: New tests for Exports added (generic classes).
2020-01-22 irina.arkhipets@gmail.com Merge branch 'master' of https://github.com/dart-lang/co19
2020-01-22 irina.arkhipets@gmail.com Revert "Fixed Issue 465: New tests for Exports added (generic classes)."
2020-01-22 irina.arkhipets@gmail.com Fixed Issue 465: New tests for Exports added (generic classes).
2020-01-22 sgrekhov@unipro.ru More static errors tests added
2020-01-22 irina.arkhipets@gmail.com Fixed Issue 465: Copyrights updated.
2020-01-22 irina.arkhipets@gmail.com Fixed Issue 465: tests for Exports added updated.
2020-01-21 irina.arkhipets@gmail.com Fixed Issue 465: tests for Exports added updated.
2020-01-21 sgrekhov@unipro.ru More static errors tests added
2020-01-21 sgrekhov@unipro.ru Function invocation with ! test added
2020-01-20 sgrekhov@unipro.ru Prefix operators added
2020-01-20 sgrekhov@unipro.ru if (t is Object) tests fixed
2020-01-17 sgrekhov@unipro.ru Late variables tests changed according to the spec (await and late final)
2020-01-17 sgrekhov@unipro.ru Fixes 514. It's a warning to use null-aware operator on type Never
2020-01-17 sgrekhov@unipro.ru Fixes 513. It's a warning to use function type with ! operator
2020-01-17 sgrekhov@unipro.ru Fixes 515. Second write to local final late variable is a compile error not a runtime one
2020-01-14 irina.arkhipets@gmail.com Fixed Issue 511: test assertion updated.
2020-01-13 irina.arkhipets@gmail.com Fixed Issue 512: nonfunction-type-aliases option added.
2020-01-11 irina.arkhipets@gmail.com Fixed Issue 512: nonfunction-type-aliases option added.
2020-01-10 irina.arkhipets@gmail.com Fixed Issue 510: typo in the test comment corrected.
2020-01-10 irina.arkhipets@gmail.com Fixed Issue 465: tests for overriding with NNBD re-named and corrected. New tests added.

Change-Id: I3e3b525c373ef46cda0422c5e278465ac5525275
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133232
Reviewed-by: Jonas Termansen <sortie@google.com>
2020-01-28 11:12:51 +00:00
Sigurd Meldgaard
be1ddc8a64 Bump pub revision in DEPS
New commits included in this revision:
```
$ git log --pretty=oneline 4d8ecbd409d773fec47da33b7e6c8db0b51487fd..429a06039d185149f387a65e3503b0693ce6d24e
429a06039d185149f387a65e3503b0693ce6d24e (HEAD -> master, origin/master, origin/HEAD) Parallel fetching of available versions (#2280)
6705b085b9bf4754a4c8002a070f436f115dc4d1 Retry on all SocketExceptions (#2254)
a1820273b9f3c7bb5a13d26cd14d30d5bab187ae Use a unqiue file name for the snapshot during testing. (#2303)
72686563e767f8a359e48a267a2c323953a6a0ef Include osx and windows testing on Travis (#2299)
a7a66821d13920b9b22cc394dfa55c679e971e40 Fail travis for lints and warnings (#2301)
25aa24c023453f064dad8f3cce1bbd55269d0efa Omit languageVersion when there is no SDK constraint (#2300)
82e60a3dcb3afe753563e7d304827fb650bc4833 Use LOCALAPPDATA for system cache on windows (#2297)
ceaa86f2c7eb35f044b4c202268a17361de68d13 Enforce and fix lints from package:pedantic (#2291)
6ce1606564352c305bd0f6d97704f0f7f6ebbca0 Use more collection literals for args (#2293)
be245e6baeebb71aaf3b3a260fcfbbb011a9a7e0 Rename some test utilities from Mock to Fake (#2294)
f7638ce85298df7d9e73d717dd4d81f499681720 Refactor Set.add following !Set.contains (#2295)
390022b24bc076cb934385936ac7904f045a75ba Filter out `null` from `getCachedPackages`. (#2292)
0eea0c4421ed0b83c8597b62dacf68b93de172b9 Fix existing hints and lints (#2290)
7cf2fe860a40517ccb65f5efdda9e4dc350142c3 promote strict deps failures to errors from warnings (#2289)
```

Change-Id: I62782b29e16092114940df00811bfdd20c8045fa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131839
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2020-01-16 14:45:59 +00:00
pq
55637a41a8 linter bump to 0.1.109
Change-Id: I975655beb1fd8c5eca986da498e9707b85efd50f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131840
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2020-01-15 17:27:34 +00:00
Johnni Winther
d302d7f10a [cfe] Insert member signatures for nnbd aware inheritance
Change-Id: I86dbbd586434af81b6dc4f4ae748cbd8177d06e0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129080
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-01-15 07:36:28 +00:00
Alexander Thomas
283a65b377 [co19] Roll co19 to 6d84d8db719f2076e0c2bbc41db9297e803ab445
2019-12-30 sgrekhov@unipro.ru Requirements=nnbd-strong added to NNBD tests
2019-12-27 sgrekhov@unipro.ru NNBD. Minor wording change
2019-12-26 sgrekhov@unipro.ru Override checking NNBD tests fixed
2019-12-26 irina.arkhipets@gmail.com Fixed Issue 465: Needless Issue tag removed.
2019-12-26 irina.arkhipets@gmail.com Fixed Issue 465: tests for overriding with NNBD re-named and corrected. New tests added.
2019-12-25 sgrekhov@unipro.ru Issue numbers added to some NNBD tests
2019-12-24 irina.arkhipets@gmail.com Fixed Issue 465: tests for overriding with NNBD re-named and corrected. New tests added.
2019-12-23 irina.arkhipets@gmail.com Fixed Issue 465: tests for overriding with NNBD re-named and corrected. New tests added.
2019-12-19 sgrekhov@unipro.ru Analyzer failures triaged. Some tests fixed, for some issue numbers added
2019-12-19 sgrekhov@unipro.ru Requirements=nnbd-strong flag added to the 'late' tests
2019-12-19 sgrekhov@unipro.ru Late variables tests fixed and new ones added

Reported issues:
https://github.com/dart-lang/sdk/issues/40055
https://github.com/dart-lang/sdk/issues/40057
https://github.com/dart-lang/co19/issues/510
https://github.com/dart-lang/co19/issues/511

Change-Id: I4c2737ce3b9fb392d9035079611f85db0b116351
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131060
Reviewed-by: William Hesse <whesse@google.com>
2020-01-10 10:39:32 +00:00
Janice Collins
e894d06abc Upgrade dartdoc to 0.30.0.
Release notes: https://github.com/dart-lang/dartdoc/releases/tag/v0.30.0

Change-Id: I7d4f30d95e806492a41aa08ddea613b48279ffd0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130883
Auto-Submit: Janice Collins <jcollins@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-01-09 18:06:16 +00:00
pq
c0dfdb27e7 linter 0.1.108
UPDATE (1/3): blocked on a new analyzer roll (details: https://github.com/dart-lang/linter/issues/1927)
UPDATE (1/8): updated to 0.1.108


Change-Id: I4fc825c5019fee05b4d9e1ec38bd50f9044f42dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130081
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: David Morgan <davidmorgan@google.com>
2020-01-08 19:28:51 +00:00
Alexander Thomas
8b290d92f9 [co19] Roll co19 to 9e3512c90f9110353909a0da71a871e33324034e
2019-12-18 sgrekhov@unipro.ru Fixes 508. Relative import in multitests fixed
2019-12-13 sgrekhov@unipro.ru Increasing List length tests added
2019-12-13 sgrekhov@unipro.ru 491. Generic function type null-check operator tests fixed
2019-12-12 sgrekhov@unipro.ru Analyzer error in Expect library fixed
2019-12-12 sgrekhov@unipro.ru 491. Null-check operator tests improved and new ones added
2019-12-11 sgrekhov@unipro.ru 491. Null-check operator tests improved and new ones added
2019-12-11 sgrekhov@unipro.ru Tests for calling of 'call()' method via 'this()' and 'super()' added
2019-12-09 sgrekhov@unipro.ru 491. Static errors tests extended according to the updated specification
2019-12-09 irina.arkhipets@gmail.com Fixed Issue 465: tests for overriding with NNBD re-named and corrected. New tests added.
2019-12-08 irina.arkhipets@gmail.com Fixed Issue 465: tests for overriding with NNBD re-named and corrected. New tests added.
2019-12-06 irina.arkhipets@gmail.com Fixed Issue 465: tests for overriding with NNBD re-named and corrected.
2019-12-06 irina.arkhipets@gmail.com Fixed Issue 507: needless compile-error expectation removed.
2019-12-06 irina.arkhipets@gmail.com Fixed Issue 506: test expected result corrected.
2019-12-06 irina.arkhipets@gmail.com Fixed Issue 505: --enable-experiment=nonfunction-type-aliases option added.
2019-12-06 irina.arkhipets@gmail.com Fixed Issue 465: tests for NNBD (Overriding Section) corrected, new tests added.
2019-12-05 sgrekhov@unipro.ru 491. Static errors tests extended according to the updated specification
2019-12-04 sgrekhov@unipro.ru 491. Static errors tests extended to check all possible nullable/non-nullable types
2019-12-03 sgrekhov@unipro.ru Fixes 504. Fix typos in the tests
2019-12-02 irina.arkhipets@gmail.com Get rid of useless references to the issue 34950 which is fixed now.
2019-12-02 irina.arkhipets@gmail.com Fixed Issue 498: compile error diagnostic improved.
2019-12-02 irina.arkhipets@gmail.com Fixed Issue 498: get rid of self-references in non-function type aliases tests.
2019-11-28 sgrekhov@unipro.ru 491. Static errors tests extended to check all possible nullable types
2019-11-27 sgrekhov@unipro.ru Required keyword tests improved
2019-11-26 sgrekhov@unipro.ru Fixes 503. Allow multiple return statements of different kind
2019-11-26 sgrekhov@unipro.ru 491. Static errors tests extended to check all possible nullable types

Change-Id: Icbf4057fa6ee8def864069200dd199712cb22bce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128729
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-18 10:15:09 +00:00
Janice Collins
0f50c454a4 Upgrade SDK to dartdoc 0.29.3
Release notes:  https://github.com/dart-lang/dartdoc/releases/tag/v0.29.3

Change-Id: Icad97c60f11eb7424b3eebde571303f5b1d343f0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128780
Auto-Submit: Janice Collins <jcollins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-12-17 20:47:19 +00:00
Sigurd Meldgaard
1fe9d7c4b6 Bump pub version
This includes the single commit:

```
4d8ecbd409d773fec47da33b7e6c8db0b51487fd Don't precompile on pub get/upgrade by default (#2277)
```

Change-Id: I1e72498487858cfc61f3af03e2eeb3397499d246
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128070
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
Reviewed-by: Jonas Jensen <jonasfj@google.com>
2019-12-13 08:06:28 +00:00
pq
3e8e11b95a bump to linter 0.1.106
Change-Id: I59aa5f6ad1c469c281d09697c701a10b27e68054
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128100
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-12-11 18:52:07 +00:00
Alexander Thomas
1d9cd1d83f [infra] Update checked-in SDKs to 2.8.0-dev.0.0
Also change the script to use gsutil.py, which is usually in the path
because it's in depot tools.

Closes #39672

Change-Id: If434b4ebc4c0cb6054f6eb6d15f85a221a9ab1e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127894
Commit-Queue: Alexander Thomas <athom@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-11 13:23:59 +00:00
pq
a3953b607d linter 0.1.105
Change-Id: Id3d59bf77326a6fb98e8d5632953e9a3f1ddf512
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127340
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-12-05 23:01:41 +00:00
Janice Collins
6c42984383 Update dartdoc to 0.29.2.
Release notes:  https://github.com/dart-lang/dartdoc/releases/tag/v0.29.2

Change-Id: I4f2a3b3b36ac5eab3273cb29f5dcde8dd2c2b588
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127080
Auto-Submit: Janice Collins <jcollins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2019-12-03 19:43:48 +00:00
Clement Skau
89e31069e8 Revert "[vm/cfe] Elaborate for-in statements during async transform"
This reverts commit 63333deed6.

Reason for revert: Causes failures on Flutter HHH CI in the "flutter test hostonly_devicelab_tests" step due to kernel binary format version mismatch.

Original change's description:
> [vm/cfe] Elaborate for-in statements during async transform
> 
> This allows us TFA to analyze the iterator calls and we generate much tighter
> code in AOT.
> 
> However, due to the increased inlining opportunities, we end up emitting 0.5%
> more code. Inlining of the _GrowableList iterator specifically also includes the
> concurrent modification check and error handling.
> 
> Calls to get:iterator, moveNext and get:current account for 7.12% of all InstanceCall
> instructions in Flutter Gallery.
> 
> Fixes https://github.com/dart-lang/sdk/issues/39516
> Issue https://github.com/dart-lang/sdk/issues/39566
> Issue https://github.com/dart-lang/sdk/issues/39565
> 
> Change-Id: I8dcc08b7571137e869a16ceea8cc73539eb02a5a
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126381
> Commit-Queue: Samir Jindel <sjindel@google.com>
> Reviewed-by: Martin Kustermann <kustermann@google.com>

TBR=kustermann@google.com,sjindel@google.com,johnniwinther@google.com

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

Change-Id: I89b88c3d9f7c743fc340ee73a45c3f57059bcf30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126734
Reviewed-by: Clement Skau <cskau@google.com>
Reviewed-by: Teagan Strickland <sstrickl@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2019-12-03 12:29:35 +00:00
Sigurd Meldgaard
175ceca1fa Bump pub version in DEPS
This includes only commit
ff5ad1eab1649a8eee6cc593302d3624d9853049
'Warn in Flutter plugin validator with implicit flutter
sdk dependency'.

Bug: https://github.com/dart-lang/pub/issues/2264
Change-Id: I8d7c9e95d0c1121917a55e4d85c665c09dda8524
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127000
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2019-12-03 11:02:41 +00:00
Samir Jindel
63333deed6 [vm/cfe] Elaborate for-in statements during async transform
This allows us TFA to analyze the iterator calls and we generate much tighter
code in AOT.

However, due to the increased inlining opportunities, we end up emitting 0.5%
more code. Inlining of the _GrowableList iterator specifically also includes the
concurrent modification check and error handling.

Calls to get:iterator, moveNext and get:current account for 7.12% of all InstanceCall
instructions in Flutter Gallery.

Fixes https://github.com/dart-lang/sdk/issues/39516
Issue https://github.com/dart-lang/sdk/issues/39566
Issue https://github.com/dart-lang/sdk/issues/39565

Change-Id: I8dcc08b7571137e869a16ceea8cc73539eb02a5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126381
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-11-29 16:42:36 +00:00
Alexander Thomas
3524bb1a93 [co19] Roll co19_2 and add co19 (nnbd) to DEPS.
Initial import of co19 (nnbd) at 8767031866e8243eafdb46011d4d8a7b5705019d.

Roll co19_2 to 368bfa9e877a2df003547f64bb17e30596af10c7:
2019-11-22 irina.arkhipets@gmail.com Issue 501 fixed: correct expected result adjusted.
2019-11-22 irina.arkhipets@gmail.com Issue 501 fixed: correct expected result adjusted.
2019-11-22 irina.arkhipets@gmail.com Issue 499 fixed: correct expected result adjusted.
2019-11-22 sgrekhov@unipro.ru Fixes 500. Expected result corrected
2019-11-12 sgrekhov@unipro.ru Fixes 495. Partial fix. Explicit extension member invocation tests added
2019-11-11 sgrekhov@unipro.ru 495. Partial fix. Null-aware explicit extension member invocation tests added
2019-11-07 sgrekhov@unipro.ru Remove hint in analyzer
2019-11-07 sgrekhov@unipro.ru 495. Partial fix. Explicit extension member invocation tests for composite member invocation added
2019-11-06 sgrekhov@unipro.ru 495. Partial fix. Explicit extension member invocation tests for composite member invocation added
2019-11-05 sgrekhov@unipro.ru 495. Partial fix. Explicit extension member invocation tests for composite member invocation added
2019-10-31 sgrekhov@unipro.ru 495. Partial fix. Explicit extension member invocation tests for binary operations added
2019-10-30 sgrekhov@unipro.ru 495. Partial fix. Explicit extension member invocation tests for binary operations added
2019-10-29 sgrekhov@unipro.ru 495. Partial fix. Explicit extension member invocation tests added
2019-10-10 irina.arkhipets@gmail.com Fixed Issue 494: expected result corrected.
2019-10-09 irina.arkhipets@gmail.com Fixed Issue 493: typo corrected.
2019-10-09 irina.arkhipets@gmail.com Fixed Issue 492: typo corrected.

Failures are due to:
* Triple-shift is not yet implemented.
* https://github.com/dart-lang/sdk/issues/39527

Change-Id: I81578e1e3e18b396f1d20cee7aaa34cd4df54bbf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125973
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-11-26 17:10:18 +00:00
Mike Fairhurst
5c111a217c Update package:watcher in SDK
Change-Id: Iad90c6aa9924ed616164ba42c67c11b4ce9beb9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125992
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2019-11-22 21:39:47 +00:00
pq
bb29b1545b linter 0.1.104
Change-Id: I03b72ba583146d1c3224f6941bdaaaa68a6997e7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124915
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-11-14 14:30:06 +00:00
Sigurd Meldgaard
0e9eadcb71 Upgrade pub revision
$ git log --pretty=oneline 80ac76400ff58fde3c5a335d860d196c3febe837..HEAD
d15067931a6b671a1c9dcc98b5923347676269cf Add link to Flutter plugin docs to warning message (#2253)
61601357ac5857ddf7507ef71678cb9d15344f26 Improve error message when .dart_tool/package_config.json is missing (#2252)

Change-Id: I01726a0dd3d1c96301425d97294c7251ed4681fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124685
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2019-11-11 10:04:12 +00:00
Janice Collins
cfec969eff Update dartdoc version to 0.29.1.
Release notes:  https://github.com/dart-lang/dartdoc/releases/tag/v0.29.1

Change-Id: I2ad924de906d171c6d17ba05f80eed815d8cd97f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124590
Commit-Queue: Janice Collins <jcollins@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Auto-Submit: Janice Collins <jcollins@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2019-11-08 21:28:57 +00:00
Stephen Adams
51016532e8 DEPS: update d8 to 7.8.279
Change-Id: I6362e7e1da69ac91dbd6d9a87d6e5f135949c25d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124169
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2019-11-06 01:03:27 +00:00
Alexander Thomas
8b050df2db [infra] Remove duplicate args_tag from DEPS
Seems to have been accidentally introduced here:
https://dart-review.googlesource.com/c/sdk/+/119645

Change-Id: Ie72dd1e06960ee148cf262923b6d779e85181a4f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124130
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2019-11-05 15:49:23 +00:00
Aske Simon Christensen
8bdca37e98 [vm] Bump minimum kernel version to 29.
This paves the way for removing the old constant evaluator from the VM,
by no longer supporting versions without front-end constant evaluation.

For the front-end test that tests old kernel versions on the newest VM,
the dill files for versions before 29 are deleted.

Version 29 is from 2019-08-16: eae781c73e

Change-Id: Icb472bffc764d6e37ed1349a0cb4ff281e0e1b21
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123739
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2019-11-05 13:31:41 +00:00
Alexander Thomas
d0e51573fc [infra] Update checked-in SDKs to 2.6.0
TBR=whesse@google.com

Change-Id: Ifb8dedcca33840208807dd0278e89e1f8efe2fd7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124124
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2019-11-05 10:23:41 +00:00
Ari Aye
5bae0f23cf Increase completion model token lookback to 100
In moving to a pointer mixture network from a traditional language
model I had initially decreased model lookback to 50 tokens to
facilitate faster model training iteration. Now that we've landed
on a configuration that works well, increasing lookback to 100 tokens
improves accuracy further.

I also went ahead and followed a recommendation from Jacob to
oversample Flutter sources since they're greatly underrrepresented
in our training corpus compared to our users' code at prediction time.

Change-Id: I885ddb606270394198f3aca2554e381f4465bdae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124083
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Ari Aye <ariaye@google.com>
2019-11-04 18:00:16 +00:00
pq
b76ab4012d linter 0.1.103
Change-Id: Ibdb145bde6617d25885a6cc666e34404e487290f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123940
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-11-01 22:16:38 +00:00
Janice Collins
fb5c75c506 Upgrade dartdoc to 0.29.0.
Release notes:
https://github.com/dart-lang/dartdoc/releases/tag/v0.29.0

Change-Id: I822b9997f55957f550412ef0f974508d025056d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123886
Commit-Queue: Janice Collins <jcollins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Janice Collins <jcollins@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2019-11-01 16:49:22 +00:00
pq
ebd059030b bump to linter 0.1.102
Change-Id: I749f392901734ac265ccd2fe2650930edc579a72
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123466
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-10-29 20:06:56 +00:00
Sigurd Meldgaard
3ce89fdfff Update the pub version
Includes the following commits:
80ac76400ff58fde3c5a335d860d196c3febe837 Warn about authors field in pubspec.yaml
6b6e02fcdd8094ccbba919b2fdc74947b1cebb71 Warn about old flutter plugin registration format (#2233)
8308acbc48ebd4da4ab7f45169af8dee4df18e79 Language versioning
b18d4f6a5d035f4f72ef187e9cdb133d18848c2d update doc
408bdd58ab01689fd82cc036b4142f7b592b4ba0 Added utility for faster local testing (#2235)
055fc19d2e06e819dbd47b3b56909c47bd893f66 Upgraded package:yaml to 2.2.0 (#2237)
0f3baf7abb13702f7fb1ff3709c584065df1435c Remove unused Map `availableVersions`
cfa9dc760b6b601f9473e65d15f15b60a319336d Fix to show proper error message when git is not installed (#2209)
d99b0d58f4059d7bb4ac4616fd3d54ec00a2b5d4 Rephrase warnings for missing deps (#2203)
76b8c30395b37f96d3db3e842344cc842bdd7c24 Don't mention 'transformed dependencies'. (#2199)
4bd65e0f54e6e4540f03467b0272a5666e8d54ba return the hashCode of the description (#2198)
92b52682e8fc6eed9ef2e77ed890647f75570165 Test more pre-release behavior. (#2175)
066ac118d406500f672339e25f0154af9321deac update to latest pkg:analyzer (#2172)
289804a5d2c9746b4e86c271c2abcfe17417e20f Minor typo fixed (#2166)

Change-Id: I3922bcaacb5399853a291b92d7192d21f719d224
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123404
Reviewed-by: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2019-10-29 14:28:44 +00:00
Jens Johansen
a14bf89eb9 [CFE] Move old dill files to CIPD
Remove from git, add to CIPD, DEPS and gclient sync.

Change-Id: Ib215f51a53108c56c2b129de3fdb156814a31a88
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123245
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2019-10-28 14:07:18 +00:00
Dmitry Stefantsov
9910fa8454 [cfe] Implement the first part of NNBD-aware isSubtypeOf
This CL is a squashing of the following smaller CLs:

* https://dart-review.googlesource.com/c/sdk/+/120669/
* https://dart-review.googlesource.com/c/sdk/+/120670/
* https://dart-review.googlesource.com/c/sdk/+/121331/
* https://dart-review.googlesource.com/c/sdk/+/121381/
* https://dart-review.googlesource.com/c/sdk/+/121383/
* https://dart-review.googlesource.com/c/sdk/+/121620/
* https://dart-review.googlesource.com/c/sdk/+/121707/
* https://dart-review.googlesource.com/c/sdk/+/122144/
* https://dart-review.googlesource.com/c/sdk/+/122360/
* https://dart-review.googlesource.com/c/sdk/+/122381/
* https://dart-review.googlesource.com/c/sdk/+/122783/
* https://dart-review.googlesource.com/c/sdk/+/122787/

Change-Id: I9d850f531f0fce07055ff9b5cd39abb605752005
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122868
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
2019-10-25 16:37:39 +00:00
Sigurd Meldgaard
539c10b4d1 [vm] Make the protobuf aware treeshaker robust against name mangling
Before we used the literal name to discover accessors related to a field.
This will fail when the name has been mangled to be a valid Dart
identifier in the given scope.

This requires: https://github.com/dart-lang/protobuf/pull/282 and a DEPS
update to work.

Bug: https://buganizer.corp.google.com/issues/132616050
Change-Id: I2950402d072a772b887e53953916cfe3669456b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116208
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-10-24 06:48:23 +00:00
Ryan Macnak
635c47b1c9 Reland "Update BoringSSL to 4dfd5af70191b068aebe567b8e29ce108cee85ce."
This reverts commit 7eeaeade6b.

Change-Id: I6e2d9f5b3f9a43b70db321d15c81e568857f303e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122488
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-10-23 18:08:16 +00:00
Siva Annamalai
e1c409792c Revert "Reland "Update BoringSSL to 4dfd5af70191b068aebe567b8e29ce108cee85ce.""
This reverts commit 7eeaeade6b.

Reason for revert: This change requires some changes to he Flutter license script before it can be rolled into Flutter, Since changes on the Dart side are mounting up I am reverting this change so the roll can move forward and then we will reland this change with the right fixes to the license checking script.

Original change's description:
> Reland "Update BoringSSL to 4dfd5af70191b068aebe567b8e29ce108cee85ce."
> 
> Change-Id: I7bdc0f0d55af2ecced789f1aa8f37b804641eaf4
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121887
> Reviewed-by: Jonas Termansen <sortie@google.com>
> Commit-Queue: Ryan Macnak <rmacnak@google.com>

TBR=sortie@google.com,rmacnak@google.com

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

Change-Id: I548844e9d58559e6ed5796dff08f3ab0644c6dc2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122410
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-10-22 05:54:53 +00:00
Robert Nystrom
13a5893d1c Update dart_style to 1.3.2.
This fixes an obscure but serious bug in the new NNBD support. See:

https://github.com/dart-lang/dart_style/issues/862

No existing formatting is affected by this change, so it should be safe
to land without rolling a new pre-built SDK.

Change-Id: Ic73f05128f1103ccefb7e29f811af5af0443c442
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122401
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-10-21 18:52:34 +00:00
Nate Bosch
6c36630958 Update to latest package:yaml
Closes #38958

Tweak an analyzer test that fails after the update. There is a change in
package:yaml where map keys are now iterated in the order they are
defined in the file rather than an arbitrary order based on hash codes.

It is not clear to me whether this is safe or if it indicates a deeper
bug in the analyzer.

Change-Id: Ie02f1bc4277999f991583f9019e67ef70c33a895
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122029
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-10-18 20:40:48 +00:00
Ryan Macnak
7eeaeade6b Reland "Update BoringSSL to 4dfd5af70191b068aebe567b8e29ce108cee85ce."
Change-Id: I7bdc0f0d55af2ecced789f1aa8f37b804641eaf4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121887
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-10-17 15:39:40 +00:00
Daco Harkes
b28b9ae8fc Fix analyzer on windows
Changes the tflite_native pinned version in DEPS to be one that works with the new `dart:ffi` API but does not have a problem on windows (see https://github.com/dart-lang/tflite_native/issues/33).

Change-Id: I08ddbef8825d68550c93f031cdedb270ff564c96
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64-try,app-kernel-linux-debug-x64-try,vm-kernel-linux-debug-ia32-try,vm-dartkb-linux-debug-simarm64-try,vm-kernel-win-debug-x64-try,vm-kernel-win-debug-ia32-try,vm-dartkb-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-dartkb-linux-release-x64-abi-try,vm-kernel-precomp-android-release-arm64-try,vm-kernel-asan-linux-release-x64-try,vm-kernel-linux-release-simarm-try,vm-kernel-linux-release-simarm64-try,vm-kernel-precomp-android-release-arm_x64-try,vm-kernel-reload-mac-release-simdbc64-try,vm-kernel-precomp-obfuscate-linux-release-x64-try,vm-kernel-reload-rollback-linux-debug-x64-try,vm-kernel-precomp-mac-release-simarm_x64-try,dart-sdk-linux-try,analyzer-win-release-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121850
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2019-10-16 13:45:56 +00:00
Daco Harkes
bdf02028cd [vm/ffi] Remove deprecated methods
Removes deprecated `load`, `store`, `allocate`, `free`, and `asExternalTypedData` methods from Pointer because these have been replace by extension methods and `package:ffi`.

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

Change-Id: I76d21bcfd2fdd6ee504a51db821345125beb92d2
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64-try,app-kernel-linux-debug-x64-try,vm-kernel-linux-debug-ia32-try,vm-dartkb-linux-debug-simarm64-try,vm-kernel-win-debug-x64-try,vm-kernel-win-debug-ia32-try,vm-dartkb-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-dartkb-linux-release-x64-abi-try,vm-kernel-precomp-android-release-arm64-try,vm-kernel-asan-linux-release-x64-try,vm-kernel-linux-release-simarm-try,vm-kernel-linux-release-simarm64-try,vm-kernel-precomp-android-release-arm_x64-try,vm-kernel-reload-mac-release-simdbc64-try,vm-kernel-precomp-obfuscate-linux-release-x64-try,vm-kernel-reload-rollback-linux-debug-x64-try,vm-kernel-precomp-mac-release-simarm_x64-try,dart-sdk-linux-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121708
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-10-16 01:15:42 +00:00
Daco Harkes
d82ca1a9c7 [vm/ffi] Remove Struct type argument
This has coupled changes in package:ffi and package:tflite_native which are pinned in DEPS.

This CL includes the required analyzer changes from https://dart-review.googlesource.com/c/sdk/+/121647.

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

Change-Id: I712a886fd28ce0a2954fc42c90e1dfa495057732
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64-try,app-kernel-linux-debug-x64-try,vm-kernel-linux-debug-ia32-try,vm-dartkb-linux-debug-simarm64-try,vm-kernel-win-debug-x64-try,vm-kernel-win-debug-ia32-try,vm-dartkb-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-dartkb-linux-release-x64-abi-try,vm-kernel-precomp-android-release-arm64-try,vm-kernel-asan-linux-release-x64-try,vm-kernel-linux-release-simarm-try,vm-kernel-linux-release-simarm64-try,vm-kernel-precomp-android-release-arm_x64-try,vm-kernel-reload-mac-release-simdbc64-try,vm-kernel-precomp-obfuscate-linux-release-x64-try,vm-kernel-reload-rollback-linux-debug-x64-try,vm-kernel-precomp-mac-release-simarm_x64-try,dart-sdk-linux-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121422
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-10-15 18:35:57 +00:00