Commit graph

85353 commits

Author SHA1 Message Date
Mark Zhou 8aeeffb848 [dart2js] Exporting as package: to allow non-SDK usage
Change-Id: I0235f524904a1a4c54c83161eb51ab0277473d1e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244180
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-05-10 00:34:32 +00:00
Devon Carew 53161dd26c [deps] rev package:file
Change-Id: I5f8118a0ada53498c7e9309111523c99ff848e8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244043
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-10 00:08:42 +00:00
Nate Bosch fac9bbb5d6 Revert "Sync packages from shelf mono repo"
This reverts commit 072603d40a.

Reason for revert: Causing issues with rolling into flutter engine.

Original change's description:
> Sync packages from shelf mono repo
>
> Drop the DEPS entries for the repositories which will be archived. Each
> of the packages has been merged into the `shelf` repository.
>
> Add the `shelf` repository to the specially handled directories with
> nested packages in `generate_package_config`.
>
> Update path dependencies in pubspecs to the new location.
>
> R=​devoncarew@google.com
>
> Change-Id: Iefca4fdb2abb6bafa273b9b6b1b4f25d6c91b005
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243929
> Reviewed-by: Alexander Thomas <athom@google.com>
> Reviewed-by: Devon Carew <devoncarew@google.com>
> Commit-Queue: Nate Bosch <nbosch@google.com>
> Auto-Submit: Nate Bosch <nbosch@google.com>

TBR=devoncarew@google.com,athom@google.com,nbosch@google.com

Change-Id: Ic610d47a3294a7dac9503e8a7b160173e0009056
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244140
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2022-05-09 22:58:22 +00:00
Konstantin Shcheglov 359e597cec Switch Workspace to Packages.
PackageMapUriResolver is still based on Map.

Change-Id: I7d68f9dbc7d970b22c8e1a01d8e816b3e5723f34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244047
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-09 22:42:32 +00:00
Konstantin Shcheglov d2c7d93fbf Use 'package_config.json' for elements tests.
Change-Id: Iad25674ff2e26fdbb8813a5cda8314b8bdb4bac0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244045
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-09 22:38:32 +00:00
Danny Tuppeny 3c0289d618 [analysis_server] Improve performance of LSP textDocument/codeActions with no range
Fixes https://github.com/Dart-Code/Dart-Code/issues/3952.

Change-Id: Ie523dc628ab72705259810baccafa949af96280e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244101
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-09 22:20:42 +00:00
Nate Bosch 072603d40a Sync packages from shelf mono repo
Drop the DEPS entries for the repositories which will be archived. Each
of the packages has been merged into the `shelf` repository.

Add the `shelf` repository to the specially handled directories with
nested packages in `generate_package_config`.

Update path dependencies in pubspecs to the new location.

R=devoncarew@google.com

Change-Id: Iefca4fdb2abb6bafa273b9b6b1b4f25d6c91b005
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243929
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
2022-05-09 19:14:52 +00:00
Danny Tuppeny 091454876e [analysis_server] Record more granular timings for LSP textDocument/codeAction request
Change-Id: I29d16b4e4f077cc0bfa9bff6a930dce506ba100c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244100
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-09 18:35:43 +00:00
Danny Tuppeny 934f4802bd [analysis_server] Update to latest 3.16 LSP spec
+ add trailing commas to improve formatting performance.

Change-Id: I62d76ef94b8c53a19e2385dc6d072401fe444ba1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244062
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-09 18:18:23 +00:00
Konstantin Shcheglov 10d16590b1 Extract a method to report that a feature is not enabled in AstBuilder.
Change-Id: Ic9c4b0cc9259ff9f21f87e33ab95646428e381b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244041
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-09 18:10:43 +00:00
Devon Carew c2abcec9b1 [owners] ecosystem can review tools/ changes
Change-Id: Id3046a9b5c02fae1ff9ad23871e44c2387998659
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244042
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2022-05-09 17:38:29 +00:00
asiva 96d59fe998 [VM/io] - Add missing native entry to enable resolution.
TEST=ci

Change-Id: Ie293903d1fe637f05e3e70926ae4fa648e752a22
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243886
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2022-05-09 16:24:02 +00:00
Devon Carew 488212b90b [pkg/analyzer] remove an unused top level field
Change-Id: I44b6660f8bfe2a04094e847c887541c234f846f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243922
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-09 16:20:12 +00:00
Joshua Litt d753b61535 [dart2wasm] Implement runtime type test for FutureOr.
Change-Id: I9ad00f5e9b1ca77f52f03e24115f8f4bae5910b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243166
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
2022-05-09 16:13:22 +00:00
Ahmed Ashour 087c57f488 [analyzer] fix for use_key_in_widget_constructors to handle non-constant value
Fixes #48915

Change-Id: I9103f02f6b5a7668e0a937e27e237b310fa22958
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243462
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-09 15:54:25 +00:00
Ahmed Ashour 2aa31c9046 Hint.UNUSED_RESULT to handle callable instances.
Fixes #48913

Change-Id: I55e6572946b7418a4de0f0778c298bc0b2df4cfb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242868
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-09 15:54:22 +00:00
Sigmund Cherem 98e565a7f7 [test_runner]: provide package_config.json by default.
As we intend to remove the '.packages' file in the SDK, the test runner
should no longer use it as a default value for the '--packages' flag.

Change-Id: Iaaa16a974f8fc137e6f779494903859a242d7f9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243643
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
Auto-Submit: Sigmund Cherem <sigmund@google.com>
2022-05-09 14:07:42 +00:00
Jens Johansen 3bf3c8b44f [CFE] Add --traceStepTiming to strong and weak suite
This option traces in which steps time is spent when running a suite.

On my machine for instance I get these results on a run ofstrong and
weak suites:

$ out/ReleaseX64/dart --enable-asserts pkg/front_end/test/fasta/strong_suite.dart -DsemiFuzz=true --traceStepTiming
Running suite strong...
[ 02:58 | 100.0% | +  571 | -    0 ]: strong/value_class/value_mixin_error

             check errors: 0:00:00.156828 ms
stress constant evaluator: 0:00:00.269382 ms
                    print: 0:00:00.439196 ms
                typeCheck: 0:00:02.575744 ms
       match expectations: 0:00:04.869435 ms
                   verify: 0:00:04.951524 ms
                  compile: 0:00:18.307246 ms
      transform component: 0:00:22.121665 ms
                 semifuzz: 0:00:59.717862 ms
              write .dill: 0:01:05.066461 ms
                      run: 0:01:15.028423 ms

$ out/ReleaseX64/dart --enable-asserts pkg/front_end/test/fasta/weak_suite.dart -DsemiFuzz=true --traceStepTiming
Running suite weak...
[ 10:11 | 100.0% | + 2225 | -    0 ]: weak/variance/unconstrained_inference

             check errors: 0:00:00.506722 ms
stress constant evaluator: 0:00:00.759073 ms
                    print: 0:00:01.293962 ms
                typeCheck: 0:00:09.974299 ms
       match expectations: 0:00:16.386842 ms
                   verify: 0:00:17.585821 ms
                  compile: 0:01:01.966016 ms
      transform component: 0:01:23.560216 ms
                 semifuzz: 0:02:50.969460 ms
              write .dill: 0:04:08.087519 ms
                      run: 0:05:17.911549 ms

In both cases writing dill and running takes quite a while, and
interesting writing the dill is almost as slow as running it.

Change-Id: Ie528e8f7e8a493e17e40a7235b456cc75381ca61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242874
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-05-09 14:03:33 +00:00
Danny Tuppeny f6e025ed27 [dds] Unskip tests for checking devtools base href tags
Change-Id: Ic31344a65b04cb252aa661b2f9af411b5a148bd2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243903
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2022-05-09 13:28:23 +00:00
Danny Tuppeny 5ee800b366 [dds] Fix potential test flake if test runs just happen to straddle midnight at exactly this time
Very unlikely, but happened in Flutter: https://github.com/flutter/flutter/issues/103215

Change-Id: Ic2acff02fcfe1f15b9ebbe371d6a9ec766ee9575
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243904
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2022-05-09 13:28:18 +00:00
Alexander Thomas 660d985695 [testing] Use absolute paths as default value for Chrome and Firefox
The browser_controller now checks if the file exists, but that check
fails for the default Linux paths. We use absolute paths on all other
platforms.

Change-Id: Ifde383cc680047f103abbb79d3bb2ce8502a91e7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243906
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2022-05-09 07:54:52 +00:00
Brian Wilkerson 748ee46cf4 Stop using main in test code in more places, part 4
This is the last set of changes in the analysis_server package.

Change-Id: I0cffd41118ba985fc1d90cc3ae25447abb62a212
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243934
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-05-08 14:32:41 +00:00
Konstantin Shcheglov c8e3fe3d7f Use 'releaseVersion' for 2.17 features errors in AstBuilder.
Change-Id: I80590d162fb79d426d7e39f514c8ff1ccd547663
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243930
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-07 22:10:51 +00:00
Konstantin Shcheglov b9ed46190f Fabricate reference strings for ParameterElement(s) in textual dumps.
Change-Id: If80fe7d9862d900a6cca65b06a3a8205c23a940d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243931
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-07 17:17:50 +00:00
Stephen Adams daba3529cb [dart2js] Migrate constants/constant_system.dart
Most of the change is changing `foo.isInt` to `foo is IntConstantValue` to get promotion and avoid downcasts.

Change-Id: Ie38bc5500dcb22ed9e194e6b810702dd94f2f79e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243926
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-05-07 01:05:50 +00:00
Leaf Petersen 240719eb86 Tighten types on error stream handler to avoid dynamic calls.
Make a private field typed to avoid an unnecessary dynamic call in the error handler for a stream.  Also remove an unused private member found in passing.

Change-Id: I29ebba5a3818a4c24df436e504d159731fd6531e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241243
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Leaf Petersen <leafp@google.com>
2022-05-07 00:24:21 +00:00
Nate Bosch 9a8fc2ae92 Update to the latest package:glob
R=devoncarew@google.com

Change-Id: I42840132c480cf69dc33098ef217b5601df1c733
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243683
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
2022-05-07 00:06:10 +00:00
Elliott Brooks 108ee959a3 Roll DevTools to version 2.13.1
Change-Id: Ifec16273b341cce17bdffbb60dd60658cbe78fc3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243927
Reviewed-by: Kenzie Davisson <kenzieschmoll@google.com>
Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
2022-05-06 23:43:40 +00:00
Konstantin Shcheglov aba4f12680 Use textual dumps in more metadata tests.
Change-Id: I78475e2a2ba7928f9d44dfa629833d0538ca67b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243928
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-06 23:30:50 +00:00
Konstantin Shcheglov 891682bd5e Issue 48962. Refactor FfiNative check.
Bug: https://github.com/dart-lang/sdk/issues/48962
Change-Id: I674be0cbe8ea49d2f94590c94c3bae4d83b120c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243924
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-06 23:12:00 +00:00
Konstantin Shcheglov 401506c09c Issue 48969. Check Annotation for required named parameters.
Bug: https://github.com/dart-lang/sdk/issues/48969
Change-Id: I8fd8a13fc7174d936d27062e2d41787f241b2b07
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243925
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-06 23:11:50 +00:00
Brian Wilkerson 45d8c7ee4b Stop using main in test code in more places, part 3
Change-Id: Ia35343f4d79037875fe154a38a3adcf8117d9369
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243881
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-06 22:34:50 +00:00
Konstantin Shcheglov 1f42a21c2c Use textual dumps in ExtensionMethods tests.
Change-Id: Id38abf287f51d01686e4b09f977f89a4114dee08
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243852
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-06 21:27:26 +00:00
Konstantin Shcheglov 2d1dc8523a Implement _ClassIntrospector.fieldsOf() and FieldDeclarationImpl.
Change-Id: I93f836c1b9772f42facf0f7f0728dbc8c7b47191
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243859
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-06 17:35:50 +00:00
Devon Carew 5676c672ce [deps] rev package:yaml and package:yaml_edit
Change-Id: I4f570a80a3a3b38b06f36de1d98f2c5d248df120
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243857
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-06 16:57:50 +00:00
pq 226fceaef2 bump to linter 1.23.0
Tested internally w/ `blaze run //ads/acx/devcycle/lints/find_violations -- 446742744`.  Should be a clean roll.


Change-Id: I5ebd2fab7b79e108a82e2790fcb754e74767e435
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242391
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2022-05-06 16:08:50 +00:00
Stephen Adams e3e9aed1f5 [dart2js] Migrate constants/values.dart
Change-Id: Ia042b4ba17407bd8a4da404ce832ae83d046cb1a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243880
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
2022-05-06 15:58:15 +00:00
Alexandre Ardhuin 04bcc30c58 add trailing comma fix for literals
This PR extends the`add_trailing_comma` fix to handle for the [upcoming support of list/set/map literals in `require_trailing_commas`](https://github.com/dart-lang/linter/pull/3340).

It's likely the tests in this PR will fail until sdk update the linter dependency to include https://github.com/dart-lang/linter/pull/3340

Closes https://github.com/dart-lang/sdk/pull/48968

GitOrigin-RevId: 24b374ec39b313640f7c06fbf8f725c09d3ed7ac
Change-Id: I066a8524d18a4213eb5300b9310bdb4a562f0e27
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243920
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-06 15:07:20 +00:00
Jesse Seales bb3135586c Create scorecards-analysis.yml
Enables scorecards for sdk repo as part security scanning effort on multiple dart-lang repos.

scorecards-analysis.yaml generated through integration with OSSF Scorecards

Closes https://github.com/dart-lang/sdk/pull/48949

GitOrigin-RevId: 89dd40b4fe8f2a440d6b79f583fcf4a5e4a5b72e
Change-Id: I16e5cb892883bfa93a7a1bc89d155d43085ed1db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243560
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Jesse Seales <jseales@google.com>
2022-05-06 14:43:39 +00:00
Paul Berry d5635390aa Remove unnecessary TODO comment.
This comment was meant as a note to myself as part of the
implementation of https://dart-review.googlesource.com/c/sdk/+/243002.
I accidentally forgot to delete it even though I added the necessary
test cases (`testLaterUnnamedParameterDependsOnNamedParameter` and
`testEarlierNamedParameterDependsOnUnnamedParameter` in
`tests/language/inference_update_1/horizontal_inference_enabled_test.dart`).

Change-Id: I80f0c63fa19256a4cd3fa657578124fa9bddf6d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243845
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-05-06 14:40:40 +00:00
Ben Konyi 4d77e3e645 [ VM ] Ensure TypeArguments register is preserved when regenerating allocation stubs for parameterized classes
Fixes https://github.com/flutter/flutter/issues/88104

TEST=pkg/vm_service/test/regress_88104_test.dart

Change-Id: I87affc62189bc076cf6e46c47e76f4fb005f9068
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243850
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2022-05-06 12:57:44 +00:00
Daco Harkes efa7439c16 Revert "[vm] Only call .hashCode once when adding to Map and Set"
This reverts commit 438c1ed2ba.

Reason for revert: b/231617607 and b/230945329.
Will reland after b/230945329 is addressed.

Original change's description:
> [vm] Only call `.hashCode` once when adding to `Map` and `Set`
>
> The methods to add to hash maps and hash sets are recursive: if the
> index needs to be rehashed then the same method is called again after
> rehashing.
>
> This CL nests the actual implementation in a private method that takes
> the full hashCode as an extra argument.
>
> No significant code size or run time changes are reported on our
> benchmarks. (Our benchmarks do not contain purposefully slow hashCodes.)
>
> Note that hashCode can be called again later if rehashing of the index
> is required on adding subsequent elements.
>
> Bug: https://github.com/dart-lang/sdk/issues/48948
> Change-Id: Ia3ccff9e592d675b4922ac78c4aa7ee0287ecb50
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243623
> Reviewed-by: Martin Kustermann <kustermann@google.com>
> Commit-Queue: Daco Harkes <dacoharkes@google.com>

TBR=kustermann@google.com,dacoharkes@google.com

Change-Id: I214251b65ea89e7f729564a125e226f2e6d580c0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/48948
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243900
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2022-05-06 10:24:29 +00:00
Stephen Adams b488bd1a75 [dart2js] Migrating cycle in io/ and js/
This migrates js/js.dart which will unblock the {ConstantValue,OutputUnit} cycle.


Change-Id: I6d49c2c588ac3a58e7698228e1b276d4cfb931d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243531
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
2022-05-06 03:54:16 +00:00
Sam Rawlins f3c2d2ee81 Support an sdk-path option in dart analyze
Bug: https://github.com/dart-lang/sdk/issues/48959
Change-Id: I4c386f1f7c474c1ff809d15d597d3f8f2de0418a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243847
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-05-06 03:08:28 +00:00
Konstantin Shcheglov 0c8e32d98c Use textual dumps in CommentReference resolution tests.
Change-Id: If8cb7648a03a3261ea1362a30a30e6d149fedbcd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243851
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-06 02:32:55 +00:00
Sigmund Cherem bf2cff83d5 [dart2js]: Update README
One pass to update the general description of the compiler pipeline.

Change-Id: I0597958139e9ea11b27dcb6072b8d70a90c9c937
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242505
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2022-05-06 01:16:25 +00:00
Devon Carew 4f0ed6a45c [repo] remove no longer used github metadata
Change-Id: Ic166a239c4f5ca5b483b002f534a38d51ed95d93
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242720
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2022-05-05 23:40:35 +00:00
asiva d856e058ea [VM/Runtime] Inline first zone in a StackZone when we are not using
fibers.

TEST=ci

Change-Id: I1308b2450d77ac83c89208acb7d18ad1be5bdcbf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243856
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2022-05-05 23:20:25 +00:00
Ryan Macnak df21baa407 [vm, compiler] Use shorter sequences for load/store with larger offsets on ARM64.
flutter_gallery
Instructions(CodeSize): 4634496 -> 4629408 (-0.11%)
       Total(CodeSize): 7312019 -> 7306931 (-0.07%)

TEST=ci
Change-Id: Iae104eb7da82590dee2bc2018905f51efe344597
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243382
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-05-05 22:37:26 +00:00
Ryan Macnak 322410e5cd [vm] Function::packed_fields is not used in AOT.
flutter_gallery
Isolate(CodeSize): 2199986 -> 2181807 (-0.83%)
  Total(CodeSize): 7312019 -> 7293839 (-0.25%)

TEST=ci
Change-Id: I5f71df4f0020b7702162fd44b5c0f1a9ce4c143f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243563
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2022-05-05 22:36:56 +00:00