Commit graph

85325 commits

Author SHA1 Message Date
Clement Skau 4258a59789 [vm][ffi] Passes FFI handles on stack.
Passing handles in FFI calls has significant overhead due to
how each handle requires a runtime entry to allocate in the
handle scope.

This change removes that runtime entry by relying on the
register allocator to allocate all handle arguments on the stack,
so that we don't need to allocate them separately.
To pass the stack handles to the native call we then pass a pointer
to the stack slot as the native argument.

Testing:
- We already have comprehensive tests for correctness in the form
  of the FFI tests. These make calls with various combinations of
  Handle and non-handle arguments.
- Correct GC behaviour is likewise covered in
  `vmspecific_handle_test.dart` which makes calls with handles
  arguments and triggers GC in-flight.
  In case we do not correctly pass the handles on the stack, the
  GC will trash them during the call.

TEST=Existing.
Bug: https://github.com/dart-lang/sdk/issues/47624
Change-Id: Ic837bad5484daaa5534b7c2e8707ac2c5dfa480f
Cq-Include-Trybots: luci.dart.try:vm-kernel-gcc-linux-try,vm-kernel-linux-debug-simriscv64-try,vm-kernel-nnbd-mac-release-arm64-try,vm-kernel-precomp-android-release-arm64c-try,vm-kernel-precomp-android-release-arm_x64-try,vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-debug-simarm_x64-try,vm-kernel-precomp-linux-debug-simriscv64-try,vm-precomp-ffi-qemu-linux-release-arm-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243320
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2022-05-11 06:43:14 +00:00
Nicholas Shahan 112cba1957 [ddc] Add flag to use the new runtime type system
Currently the flag does nothing. Follow up changes will add support
incrementally.

Add a `--canary` flag to DDC that will enable all features in
development to simplify use in tests and benchmarks.

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

Change-Id: I4878c771bdb4f4c6e8b8cd618737009268b02cbe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237602
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Anna Gringauze <annagrin@google.com>
2022-05-10 23:47:04 +00:00
Mayank Patke 34ebfc6594 [dart2js] Add regression test for https://dart-review.googlesource.com/c/sdk/+/225320
Change-Id: Iff348b9ce13ea249b8c63f8c0952cd446ad5cb7d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243528
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2022-05-10 22:56:23 +00:00
Mayank Patke e5498bcd40 [dart2js] Clean up some file paths.
* The wrapped abstract value domain is moved out of the powersets folder
  since they're unrelated.
* {inferrer,ssa}/builder_kernel.dart renamed to just builder.dart since
  we only operate on kernel.
* inferrer/inferrer_engine.dart renamed to engine.dart since it was
  redundant.

Change-Id: I355e626431d8a49e9a944341360b2d6401895929
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243645
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2022-05-10 21:36:13 +00:00
Ryan Macnak 4ee35ee998 [vm, compiler] Load unboxed doubles directly from the literal pool.
TEST=ci
Change-Id: I4f881bc3e29059bce09eb0aa0ba99928e7fb10a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244120
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-05-10 21:31:40 +00:00
Konstantin Shcheglov 34bca35835 Update packages files in analyzer_cli to package_config.json format.
We need this for https://dart-review.googlesource.com/c/sdk/+/238181

Bug: https://github.com/dart-lang/sdk/issues/48272
Change-Id: I8dffd0d5bb9bc635dd60a690466b89ace25b9a71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244283
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-10 20:48:53 +00:00
pq b0f9470a83 test to validate deferred elements can't be used in constant contexts
Change-Id: Iadc534f9f99943e60966e18867010a56df9065d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244281
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-05-10 20:16:43 +00:00
Ahmed Ashour e630a3adef [analyzer] fix for use_key_in_widget_constructors should use super parameters when possible.
Fixes #48946

Change-Id: I45afc5717eb17845f50ef4aa77fb554fb88e2ec6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244242
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2022-05-10 18:20:33 +00:00
Liam Appelbe a8a29cffbb [ VM / Service ] Add libraryFilters to getSourceReport RPC
Bug: https://github.com/dart-lang/sdk/issues/48754
Change-Id: I42519d7dd751aa024860f940cbf51d2e38f7ea69
Tested: CI and new integration test
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241180
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2022-05-10 18:08:43 +00:00
Danny Tuppeny 6b6a199806 [analysis_server] Switch to LSP v3.17 spec + regenerate types
Change-Id: I6e1b79f3e814c44784dbf37d859ae46d303db2dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244243
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-10 18:08:35 +00:00
Devon Carew 063ee76dc7 [pkg/dart2native] address several lint issues
Change-Id: I3414710e504e1c63a9689028bbcca066f913d7b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243923
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2022-05-10 16:50:13 +00:00
Konstantin Shcheglov c40fe123f9 Thread OperationPerformance through link() and macro applications.
So, I can see the performance statistics during tests, but in the
future it could be possible to connect it to the analysis operations
tree.

Change-Id: I56ee80e92427f53471e062824467f8572341a851
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244185
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-10 16:15:13 +00:00
Ryan Macnak 3c01efcbb0 Reland "[build] Fix Android build for ARM64 Mac."
Account for simarm_x64 in TargetCpuForArch.

TEST=local
Bug: https://github.com/dart-lang/sdk/issues/48792
Change-Id: I820cb49ee8925c50196cb2472266f9e248c9089d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243642
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-05-10 16:11:53 +00:00
Paul Berry 0d636e5543 Ensure that partial inference results aren't refined by later partial inference stages.
As part of the implementation of
https://github.com/dart-lang/language/issues/731 (improved inference
for fold etc.), I expanded the front end's type inference logic so
that instead of just having a downward phase and an upward phase, it
could have 3 or more phases.  The function that previously did
downward inference became repurposed to do "partial inference" (which
could either be the first, downward stage, or a later, horizontal
stage).  However, I failed to generalize the logic that prevents types
assigned by one inference stage from being refined by later
stages--previously this logic was only needed for upward inference,
but now it's needed for horizontal inference stages as well.  (This
logic is needed because of Dart's "runtime checked covariance"
behavior--it means that we want to stick with the type from downward
inference, even if a later horizontal inference stage is able to find
a more precise type, because that more precise type may lead to
runtime failures).

As part of this change I've re-architected the inference methods so
that they are responsible for creating and returning the list of
inferred types.  This makes the inference logic more similar between
the front end and analyzer, and is easier to read IMHO.  The total
number of list allocations is the same as before.

Change-Id: I19bfcede9c2968e50f110b571164549f16495217
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243707
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-05-10 15:10:44 +00:00
Paul Berry 51d578cf91 Fix horizontal inference logic for extension method invocations.
The front end desugars extension methods by inserting a synthetic
`this` argument before all other arguments.  But this synthetic
argument isn't included in the `formalTypes` and `actualTypes` arrays.
So when recording a value into
`_DeferredParamInfo.evaluationOrderIndex` we may need to subtract 1 in
order to ensure that later logic will find the correct argument.

Fixes a corner case of https://github.com/dart-lang/language/issues/731.

Change-Id: Idbf136195e40555199f7c5b61a575a430f6ec6bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243854
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2022-05-10 14:54:53 +00:00
Ahmed Ashour a67c07c40f Fix for use_key_in_widget_constructors to add key at the end
Fixes #48917

Change-Id: Ie9a1e06188ad958ba89cd7b37081878211b3e90b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243905
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-10 14:15:43 +00:00
William Hesse 542aee1e51 [co19] Roll co19 to 9849573cd1b8317e58247b8c1672e89b1cd842e2
2022-05-09 stereotype441@gmail.com Fix type of onError. (dart-lang/co19#1339)

Change-Id: I78b2c218acb97881b9feb05e74c9775a2f6cd360
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244102
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2022-05-10 13:06:24 +00:00
Jonas Termansen 5eb2734296 [infra] Remove .packages from filesets.
.dart_tool/package_config.json is already present in each fileset.

Bug: https://github.com/dart-lang/sdk/issues/48275
Change-Id: Ib75fd91060f0b9eaeb1446cf65cb8678b2ddc63c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240842
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2022-05-10 11:34:15 +00:00
Aske Simon Christensen 6c7604291c [dart2wasm] Build platform dill and compile dart2wasm to AOT snapshots
This adds a --platform= option to dart2wasm to read the SDK libraries
from that dill file instead of compiling them from source every time.
If the option is not given, the SDK libraries are compiled, like before.

Also adds a "dart2wasm" build target, which will build the dart2wasm
platform dill and compile dart2wasm to two AOT snapshots (with and
without asserts). The dart2wasm scripts in sdk/bin are updated to run
via these snapshots and use this platform dill.

This speeds up test runs for the dart2wasm-hostasserts-linux-x64-d8
configuration by approximately 45x.

Change-Id: If2c7750a6eb39725310745f887792784d0dfc583
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243624
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
2022-05-10 10:06:06 +00:00
Alexander Aprelev 2a12dd3315 [vm/simd] Add Float64x2 clamp simd implementation
Fixes https://github.com/dart-lang/sdk/issues/40427

TEST=ci, float64x2_clamp_test

Change-Id: I12618c37135feecffb115ce4aca02af1ecb03167
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243848
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2022-05-10 04:56:25 +00:00
Joshua Litt 2783cca57d [dart2js] Fix bug in impact data serialization.
Change-Id: I1e4915624b609aafa9392fc651f5935bf658a71b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244184
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Auto-Submit: Joshua Litt <joshualitt@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2022-05-10 03:34:13 +00:00
Mark Zhou f5f26c9c61 Revert "[dart2js] Exporting as package: to allow non-SDK usage"
This reverts commit 8aeeffb848.

Reason for revert: Bad fix. Doesn't resolve underlying bug

Original change's description:
> [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>

TBR=markzipan@google.com,joshualitt@google.com

Change-Id: I0e2f8ff70c86ff1e69608f715fa5545419e63314
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244182
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Auto-Submit: Mark Zhou <markzipan@google.com>
2022-05-10 02:54:34 +00:00
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