Commit graph

81613 commits

Author SHA1 Message Date
Srujan Gaddam f34eef5b91 [dart:html] Migrate python scripts to python 3
Migrates syntax and semantics from python 2.7.

Major changes include:

- filters
- sorting
- print statements
- higher-order functions
- hashing and comparison

and other misc changes. go.sh consistently gives the libraries
in this and the previous commits with these changes.

Change-Id: I66365739887158d8f321015d36e556447da1bcd3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211542
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
2021-09-08 22:10:53 +00:00
pq 8cee82debb constructor tearoff fix support for unnecessary_lambdas
Fixes: https://github.com/dart-lang/sdk/issues/47103

Change-Id: I521461a587b9272503772e9b13999d8e4e688352
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212803
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-08 21:56:02 +00:00
pq e5c659b55f quick fix for unnecessary_constructor_name
Fixes: https://github.com/dart-lang/sdk/issues/47102

Change-Id: Idd8b44379d49f416eb4d671ed95ed5f9433af00c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212800
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-08 21:39:12 +00:00
Konstantin Shcheglov d2bde7a29d Issue 47041. Fix false positive for call() declaration in a private extension.
Bug: https://github.com/dart-lang/sdk/issues/47041
Change-Id: Ib37c03ad7350c489f6ee0673000705bdc3f1d01c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212840
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-08 20:26:33 +00:00
Joshua Litt aed53191e7 [dart2js] Add modular analysis logic.
This is an initial step to get the modular analysis in place, it
includes:
 * flag to emit modular data
 * flag to load modular data
 * new modular strategy that uses serialized modular data
 * serialization of part of the modular data
     - currently only impact-builder-data
 * new flag in our modular test suite to play with the new feature. This
   flag is off by default and will not be tested in the bots
   unless we enable it by default or add a test matrix step for it.

(See original https://dart-review.googlesource.com/c/sdk/+/105702)

Change-Id: I951ab68567f907117a1e868aaf673841ae948484
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210061
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-09-08 19:56:03 +00:00
Stephen Adams 101cc8a655 [dart2js] Modernize allocations in common/ and native/
Change-Id: Ia7a521210865edba0c58b40383cbdc7105875ae9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212541
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-09-08 19:33:32 +00:00
Stephen Adams 3d9bef762b [dart2js] dart format --fix on elements/
Change-Id: Ib36a81b39ac27160567fd9714380a3e1e8846b0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212543
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-09-08 19:33:13 +00:00
Srujan Gaddam 8100b4de02 [dart:html] Fix implements order for classes
Using a set does not guarantee a consistent order from python 3
onwards, so use a OrderedDict to get a consistent order while
removing any duplicates.

Change-Id: I02d9aae2a82fd119f22b3a5e353b9445ffca963b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211541
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
2021-09-08 18:45:02 +00:00
Stephen Adams 813358e6b5 [dart2js] Fix GenericInstantiation.hashCode
Change-Id: Ia63034f7361d5ba7b227322d588e5afba2d0aaf4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212544
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-08 17:45:28 +00:00
Ryan Macnak 31a1fd4b6b [vm, gc] Fix a bug handling WeakProperties under the combination of concurrent marking and write-barrier elimination.
The compiler will in certain cases eliminate write barriers and the runtime will compensate by adding certain objects to a deferred marking stack. These objects will be revisited when marking is finalized. There is no header bit indicating an object has already been added to the deferred marking stack. The same object may be seen by markers multiple times: once as part of ordinary marking and several times as part of deferred marking.

When visiting a WeakProperty, if the fate of its key is not yet known, it is placed in a (worker-local) delayed weak properties list, which is a linked list threaded through the WeakProperties themselves. If more than one worker adds the same WeakProperty to its list, or a single worker does so multiple times, the lists will be corrupted. A previous fix (40cd5fc5f6) attempted to avoid this by ensuring only the worker which marked the WeakProperty would add it to a delayed weak properties list, but this can result in no worker adding the WeakProperty if the WeakProperty is allocated marked and added to the deferred marking stack.

This CL changes the processing of the deferred marking stack to treat WeakProperties as strong references. This ensures a WeakProperty will only be added to a delayed weak properties list by the single worker that encounters it during ordinary marking. This is also very similar to what would happen if the write barrier had not been eliminated: the writes into the marked WeakProperty would cause the new key and value to also become marked.

This CL also fixes another bug where when processing the delayed weak properties lists, the worker would try to ask whether a new-space object was marked.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/47128
Change-Id: Id9abaeb4dd52538ebc22ac58e48abcb7ed760854
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212612
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-09-08 17:40:19 +00:00
Ryan Macnak f9b7ed74dc [vm] Remove dead library references from the object store.
- dart:_builtin is only available in the standalone embedder, and should have never been referenced by the VM proper.
 - dart:profiler was long ago renamed to dart:developer.

TEST=build
Change-Id: I0743f52efc3331a8500494b2d87f621190566b62
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212680
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-09-08 16:29:19 +00:00
Ahmed Ashour ff63fdcba8 Add fix for SWITCH_CASE_COMPLETES_NORMALLY
Fixes #46999

Change-Id: I00b7d9fe6fdd2431d90cdee5248ce58473620807
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212283
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-08 16:22:39 +00:00
Sam Rawlins c0b5d99d82 Do not report BODY_MIGHT_COMPLETE_NORMALLY for setters
Fixes https://github.com/dart-lang/sdk/issues/42303
Change-Id: I4b0f6ac1f446c22eec278b3421a41e4176864e13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-09-08 16:07:13 +00:00
Sam Rawlins 450dc37e6b Remove unnecessary imports from nnbd_migration
Bug: https://github.com/dart-lang/sdk/issues/44569
Change-Id: I847603b5a1debb55b5c78e0d837ebcfa2d133d77
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212607
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2021-09-08 14:15:03 +00:00
Paul Berry 706c7e4a58 Revert "Remove explicit bool type hack."
This reverts commit 4a54307a39.

Reason for revert: Broke internal build, golem

Original change's description:
> Remove explicit bool type hack.
>
> During the fix for https://github.com/dart-lang/language/issues/1785,
> an explicit `bool` type was added to the variable `nullable` to ensure
> that it would properly participate in type promotion while the fix was
> still being rolled out.  Now that the fix is in place, this explicit
> type is no longer needed.
>
> TEST=standard trybots
> Change-Id: Ied468b17dafa03075fd54c0df915e0a539420697
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212266
> Reviewed-by: Alexander Markov <alexmarkov@google.com>
> Commit-Queue: Paul Berry <paulberry@google.com>

TBR=paulberry@google.com,alexmarkov@google.com

Change-Id: I748060275968e1a87a78e90d3770b17543549f33
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212783
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-09-08 14:07:25 +00:00
Vyacheslav Egorov d8d7af15ce [vm] Migrate away from native 'name' syntax.
As part of deprecating support for native extensions we are also
migrating away from legacy VM-specific `native 'name'` syntax
towards metadata based encoding which does not require any special
syntax.

This CL is a step 1 in migration:

- introduces support for `@pragma('vm:external-name', 'name')`
which serves as a direct replacement for `native 'name'`;
- all core libraries and tests are migrated to use the annotation;

Once this CL lands and rolls we will edit internal and external embedders
to eliminate uses of the native keyword (step 2) and finally remove
support for native keyword across our parsers (step 3).

TEST=ci

Bug: https://github.com/dart-lang/sdk/issues/28791
Change-Id: Id6dea878db82dd4fd81149243c425b5c5dc6df86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212461
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2021-09-08 13:39:34 +00:00
Johnni Winther fbc70d8be6 [cfe] Don't replace concrete stubs with abstract methods in mixin transformation
Closes #46389
Closes #46390

Change-Id: If3446d08d0feaf8f778dc396bbed1ebb1c5c0bc7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212745
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-08 12:43:35 +00:00
Paul Berry 4a54307a39 Remove explicit bool type hack.
During the fix for https://github.com/dart-lang/language/issues/1785,
an explicit `bool` type was added to the variable `nullable` to ensure
that it would properly participate in type promotion while the fix was
still being rolled out.  Now that the fix is in place, this explicit
type is no longer needed.

TEST=standard trybots
Change-Id: Ied468b17dafa03075fd54c0df915e0a539420697
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212266
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-09-08 12:04:13 +00:00
Martin Kustermann ebcf042ed2 [vm] Remove kFfiPointerCid/kFfiDynamicLibraryCid
There have been duplicate cids

  * kPointerCid / kFfiPointerCid
  * kDynamicLibraryCid / kFfiDynamicLibraryCid

Only one of each made sense. This CL ensures we have only the former.

TEST=ci

Change-Id: Icdcef40c80ed09815da6074a774a02c707f6be37
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212592
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2021-09-08 11:58:55 +00:00
Alexander Thomas e9b287a9c1 [infra] Force app-jit snapshots on mac builders
On arm64, mac builders default to kernel snapshots because build tools
are running in Rosetta.

Change-Id: Ia7eabb9e6f4f11df5f683b9af2cf8dba46306777
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212746
Reviewed-by: William Hesse <whesse@google.com>
2021-09-08 10:20:09 +00:00
Johnni Winther 8edd562bdc [cfe] Support general implicit instantiation
https://github.com/dart-lang/language/pull/1812

Closes #47147

Change-Id: Iaba365a583bca456c19a6edba8801bab630304c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212590
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-08 09:25:35 +00:00
Johnni Winther ddac811256 [cfe] Disable lowering in constructor_tearoffs/ test folder
Change-Id: I0bc9915133588958af544d0d820d5a8be4e39924
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212282
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-08 09:22:46 +00:00
Johnni Winther 8c6ba91e98 [cfe] Add AsExpression to forwarding super stubs where needed
Change-Id: I87cda549802f4cde8ed9b5ee56b3dfbea69a0e0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212588
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-08 08:42:36 +00:00
Emmanuel Pellereau 0933086397 Revert "[dart:html] Update Trusted Types APIs"
This reverts commit bda31c2c13.

Reason for revert: Breaks google3 (See b/195948578).

Original change's description:
> [dart:html] Update Trusted Types APIs
>
> Closes b/195948578
>
> Modifies Trusted Types APIs to be compliant with the spec in
> https://w3c.github.io/webappsec-trusted-types/dist/spec/.
>
> Change-Id: I65d52ace12342ce777ab596a9dd2e9a3f74b2f05
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212270
> Commit-Queue: Srujan Gaddam <srujzs@google.com>
> Reviewed-by: Riley Porter <rileyporter@google.com>

TBR=sra@google.com,srujzs@google.com,rileyporter@google.com

Change-Id: I6c74fe5bfb1ecb39e01304b882ec306d5cf34442
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212741
Reviewed-by: Emmanuel Pellereau <emmanuelp@google.com>
Reviewed-by: Michal Terepeta <michalt@google.com>
Commit-Queue: Emmanuel Pellereau <emmanuelp@google.com>
2021-09-08 08:35:45 +00:00
Erik Ernst 02b2e6c23f Adjust explicit_instantiation_syntax_test
This test used `..` as a continuationToken (that is, it did not expect
a syntax error for `g(C<int, int> .. toString())`). This CL changes the
test to expect that to be a syntax error, and also eliminates the
static warning caused by using `?.` on a receiver with a known non-null
value (that's not relevant to the topic of this test, I just didn't
avoid it when the tests were written).

Change-Id: I275de6423710c3a598bedd2f54f4e9e7463a6d04
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212587
Auto-Submit: Erik Ernst <eernst@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-09-08 06:51:34 +00:00
Sam Rawlins 3dc34806da Remove unnecessary imports from front_end
Bug: https://github.com/dart-lang/sdk/issues/44569
Change-Id: I92e93777ee4f62e82f179338475828edeaac15dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212608
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-08 06:19:17 +00:00
Michal Terepeta 898d0cbb5b Detect changes to and always use the bazel-bin symlink
Previously if we found a file was generated using one Bazel
configuration, then we'd continue using its path even if a new build
with a different configuration was more recent. In other words, we'd use
a stale generated file.

This commit gives `bazel_watcher.dart` the ability to detect changes to
symlinks which means that we'll do a refresh if `blaze-bin` changes
(it's already being watch in `context_manager.dart`). But since
`binPaths` previously always looked at all the possible "bin paths",
even after a refresh we could end up with using the wrong one. So the
second change of this commit is to look only at the `blaze-bin` symlink
in `findFile` (the symlink is updated by Blaze) to make sure that we
pick only the most recent path. This doesn't change `binPaths` itself
as it's also used for other purposes.

Bug: b/193636339
Change-Id: I641a0c9a5694121435360ca46b275d0b920d2911
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209701
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Michal Terepeta <michalt@google.com>
2021-09-08 05:52:45 +00:00
Sam Rawlins 48dd9da323 Report type variables in const constructor tearoffs
This requires adding `isConst` to the ConstructorReference AST node,
which I think is appropriate, as it they can be in a constant context,
and we choose to report errors based on this state.

Change-Id: I4649c73a8bb3c2651a0e28838f0fc82574ce1622
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212603
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-08 03:41:23 +00:00
Ryan Macnak bc43e97b74 [vm] Place only Dart heap pages in the 4GB compressible region.
Don't allocate zones, timeline events or profile samples in the compressible region, since these allocations don't yeild compressed pointers and are competing for a limited resource.

TEST=ci
Bug: b/196510517
Change-Id: I4fc2f0d67060f927fa10d241b15b1cae3b73d919
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212400
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-09-08 01:16:57 +00:00
Ryan Macnak 77467fe2f7 [vm] Remove excess types from the object store that were needed by the old serializer.
Many of these types were added by 93c5134a69 so that they would be serialized by reference and easier to skip over in the API message deserializer. With the new deserializer, any type can be successfully skipped over.

TEST=ci
Change-Id: Ie8150e382c69ee5d2e575bc16b42f8d80b9b0969
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208682
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-09-08 00:37:46 +00:00
pq 52b70d488f bump to released linter 1.11.0
Change-Id: Ib26921cdee1a00ee18e485988546af8a413b3506
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212611
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-07 23:43:54 +00:00
Joshua Litt 6604d5be1a [dart2js] Fix bug with prioritizing holders.
Change-Id: I3f7f151e54e5592716138386c962708ea7f50a38
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212621
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2021-09-07 23:07:14 +00:00
Sam Rawlins ef06bf2130 Remove unnecessary imports in analysis_server
Bug: https://github.com/dart-lang/sdk/issues/44569
Change-Id: Ied7a1ed105ac82cf9e0f38454bce8cb4a69e17e7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212605
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-07 22:32:04 +00:00
Alexander Aprelev bbe0791f2e Revert "linter 1.11.0"
This reverts commit 281b0d3257.

Reason for revert: broke mac buildbots, builds on macs

Original change's description:
> linter 1.11.0
>
> Change-Id: I81870800408fe15fdbc0fedebbb5d4d8f8fd15ab
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212480
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
> Commit-Queue: Phil Quitslund <pquitslund@google.com>

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

Change-Id: I73af2cfc919a1a9c1841f74cbd07a1e89654ef8e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212613
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2021-09-07 22:16:27 +00:00
Ahmed Ashour c45a24f6bf Fix expectations in ReplaceReturnTypeFutureTest
Fixes #47123

Change-Id: I734951c36069150cdefa39f8d20913bf6691d23d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212575
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-07 21:40:42 +00:00
Paul Berry b65a18f54f Add a flow analysis ID test of new constructor-tearoffs behaviors.
These behaviors were introduced during the fix for
https://github.com/dart-lang/language/issues/1785, and at the time
they were tested using both unit tests and language tests.  But it was
not possible to write ID tests for them, because ID tests don't
support turning on experimental language feature flags.

Now that the "constructor-tearoffs" feature has been turned on we can
test these behaviors using ID tests.

Change-Id: I6e1ccda4b5837ab61de80f15d2f31a82a90b4a22
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212265
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-09-07 21:39:46 +00:00
Konstantin Shcheglov 3efe7a45ff Issue 47134. Resolve (invalid) default values of formal parameters of GenericFunctionType(s) in ConstructorName(s).
Bug: https://github.com/dart-lang/sdk/issues/47134
Change-Id: I3ec0117854fd511f1fe4433e02b6862bdffd3a42
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212628
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-07 20:59:34 +00:00
pq 281b0d3257 linter 1.11.0
Change-Id: I81870800408fe15fdbc0fedebbb5d4d8f8fd15ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212480
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2021-09-07 20:55:46 +00:00
Nate Bosch 193610d9f8 Update to the latest package:collection
Change-Id: I0d51668fa7279eea93478048ac3e07c65e3ebca1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212626
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-09-07 20:38:56 +00:00
Nate Bosch fd675c17e9 Update to the latest package:csslib
Change-Id: I08c6450e398c8d4b9a16ef484ef714280bd034a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212625
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-09-07 20:29:02 +00:00
Alexander Thomas 6a68128a80 [sdk] Update checked-in SDKs to 2.15.0-82.0.dev
Change-Id: I0ee1fc41a110942fe1d54e63de49338650d3c3e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212591
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2021-09-07 20:22:36 +00:00
Konstantin Shcheglov 3e6ece2bd6 Support for constructor tear-offs in rename refactoring.
Change-Id: Ia6b32e8ac24cfecbc915c008ce78f2a8b561c7a4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212623
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-07 20:21:00 +00:00
pq 3e0456e70b fix cascade targeting for result use checking
Change-Id: I325eb2bc0bfbe199793c3724ff2894e9cc93e840
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212624
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2021-09-07 20:12:24 +00:00
Daco Harkes 2816eba69e [gardening] Skip complex_reload_test
Bug: https://github.com/dart-lang/sdk/issues/47130

TEST=disables failing/flaky test

Change-Id: Idf91a4a654ecd52dbeec3271750c61f18aafeab5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212589
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-09-07 20:05:14 +00:00
Alexander Markov 16e8dc257e [vm] Faster double.floor()/ceil()/truncate() in AOT mode (x64, arm64)
1) double.truncate() now simply calls toInt(), omitting
truncateToDouble() call.

2) double.floor() and ceil() are now intrinsified on arm64 and AOT/x64
and generated using DoubleToInteger instruction.

3) DoubleToInteger instruction is extended to support floor and ceil.
On arm64 DoubleToInteger is implemented using fcvtms and fcvtps
instructions. On x64 DoubleToInteger is implemented using roundsd
under a check if it is supported (with a fallback to a stub and a
runtime call).

AOT/x64:
Before: BenchFloor(RunTime): 318.82148549569655 us.
After:  BenchFloor(RunTime): 133.29430189936687 us.

TEST=ci
Closes https://github.com/dart-lang/sdk/issues/46876
Closes https://github.com/dart-lang/sdk/issues/46650

Change-Id: I16ca18faf97954f8e8e25f0b72a2bbfac5bdc672
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212381
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2021-09-07 19:52:04 +00:00
Janice Collins 176a0f42f5 Update dartdoc to 3.0.0.
Release notes: https://github.com/dart-lang/dartdoc/releases/tag/v3.0.0

Change-Id: I70eb988e7912a1c1fb065f9ee06bcde770fd37e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212622
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2021-09-07 19:49:54 +00:00
Ahmed Ashour ac840e5dc7 Fix grammar in quick_fix.md
Fixes #47129

Change-Id: I16ce124f43d661e59ede174fbdd346705b00a539
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212583
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-07 18:58:54 +00:00
Sam Rawlins 956cdb63d6 Check function-typed type annotations in const ctor calls for type params
These checks have just been missing from analyzer since the small
features feature.

Change-Id: I38ceb4f9baf7289807efff63af9e6f97fd73ae5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212601
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-09-07 18:36:23 +00:00
Konstantin Shcheglov 06f0ecb8e8 Add more HighlightRegionType.xyz_TEAR_OFF
Change-Id: I357d621439c68b77545bdd01719310c60684e1f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212602
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-07 18:31:03 +00:00
Nate Bosch 68bbdf3718 Update to the latest package:yaml
Change-Id: I4552b3e241dda9d3b720e0da699ec70c14a70640
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212620
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-09-07 18:14:23 +00:00