Commit graph

85646 commits

Author SHA1 Message Date
Naveen 55a4649075 chore: Included githubactions in the dependabot config
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

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

GitOrigin-RevId: afc9a321581047a18b4992663062c8148563ca61
Change-Id: I371263d2ee93375a2b9756b344ed70c7cdf14a66
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247160
Reviewed-by: Alexander Thomas <athom@google.com>
2022-06-03 07:17:56 +00:00
Ilya Yanok 8f1a15daca Revert "Replace CiderByteStore methods with variants without signature."
This reverts commit 3a1a08106e.

Reason for revert: breaks dartd, can you maybe add instead of replace?

Original change's description:
> Replace CiderByteStore methods with variants without signature.
>
> Change-Id: I42c3aa456554974c1f44b95833e14487542539a5
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246986
> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
> Reviewed-by: Keerti Parthasarathy <keertip@google.com>

TBR=keertip@google.com,scheglov@google.com

Change-Id: Ia05a618cde2f87b9c3162e28709de31baed18796
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247081
Reviewed-by: Ilya Yanok <yanok@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Ilya Yanok <yanok@google.com>
2022-06-03 07:14:06 +00:00
Alexandre Ardhuin 42778832a1 allow rename on extension via fix_data.yaml
Closes https://github.com/dart-lang/sdk/pull/49164

GitOrigin-RevId: 3bc7a3de9781d0005c041145affe6c0ed3ae744b
Change-Id: I7e0357cd928636d0556d3dea2aac083529d089c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246983
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-03 00:39:55 +00:00
Ryan Macnak 4c82eb5836 Reland "[vm, compiler] Prune dictionaries to only contain elements needed at runtime."
This is a reland of commit 6de162e014

Original change's description:
> [vm, compiler] Prune dictionaries to only contain elements needed at runtime.
>
> flutter_gallery
> Isolate(CodeSize): 2116400 -> 1981238 (-6.28%)
>   Total(CodeSize): 7217938 -> 7082600 (-1.87%)
>
> TEST=ci
> Bug: https://github.com/dart-lang/sdk/issues/48910
> Change-Id: I8cd285ddab3a611cd7a2a91d50414be402f8543a
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244303
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Commit-Queue: Ryan Macnak <rmacnak@google.com>

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/48910
Change-Id: I3d3ecd04369585547963fb3efff1b3ff0723d8f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246990
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2022-06-03 00:09:25 +00:00
Alexander Markov 3d1c991fcf [cfe] Update test expectations after new async/async* implementation in the VM
The new implementation of async/async* doesn't use async kernel
transformation.

TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/48378
Change-Id: I86594d8c0df382512e64e59847c178569f7fc38e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246083
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-06-02 23:47:49 +00:00
Alexander Markov b3544c44dc [vm] Enable new implementation of async/async* in JIT mode
TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/48378
Change-Id: I0fc069508cb1ce5648deb6604171dfdcd5bcb5c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246082
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-06-02 23:40:15 +00:00
Alexander Markov af4da780be [vm] New async/async* implementation in JIT mode
The new implementation is based on suspend/resume stubs and doesn't
use desugaring of async functions on kernel AST.

Previously, new implementation of async/async* was only supported in
AOT mode. This change adds all necessary bits for the JIT mode:

 * Suspending variable-length frames (for unoptimized code).
 * Handling of Code and pool pointers in Dart stack frames.
 * OSR.
 * Deoptimization.
 * Hot reload.
 * Debugger.

The new implementation is not enabled in JIT mode yet.

Design doc: go/compact-async-await.
TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/48378
Change-Id: I477d6684bdce7cbc1edb179ae2271ff598b7dcc5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246081
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2022-06-02 23:39:45 +00:00
Devon Carew 8f9e40b815 [deps] update bazel_worker, collection, mockito, pub_semver, test_descriptor, stack_trace, usage, watcher
bazel_worker (ceeba09..9710de6):
  9710de6  2022-04-19  Devon Carew  Update pubspec.yaml (#62)
  ec5905a  2022-03-20  Kevin Moore  Fix CI (#61)

collection (e1407da..69766da):
  69766da  2022-05-25  Nate Bosch  Add complexity bound on binary search methods (#239)
  5b43ad7  2022-04-08  Kevin Moore  Fix analysis issue with latest dev release (#236)
  e83c373  2022-04-08  Enrico Zamagni  fixed maxBy compare param signature (#224)
  c1a07e4  2022-04-08  Sandro Lovnički  Add a comment about NaN in min/max extensions (#234)
  2bbb27b  2022-03-07  Nate Bosch  Prepare to publish (#233)

mockito (1e977a7..fcd6b28):
  fcd6b28  2022-05-16  srawlins  Release mockito 5.2.0
  2faf8f1  2022-05-16  srawlins  Import https://github.com/dart-lang/mockito/pull/533
  0f8ed0c  2022-04-19  Devon Carew  Populate the pubspec 'repository' field.
  d399ca8  2022-05-13  fzyzcjy  Fix compile errors in Flutter 3.0
  948973e  2022-04-06  Samuel Rawlins  clarify docs for unsupportedMembers.
  b86c24d  2022-03-14  srawlins  Support `@GenerateMocks` annotations on `import` and `export` directives.
  c6971dd  2022-03-05  srawlins  Fix generation of methods with return type of `FutureOr<T>`.

pub_semver (ea6c540..5c0b4bf):
  5c0b4bf  2022-03-07  Devon Carew  Update README.md (#65)

test_descriptor (ead23c1..5ed5d7f):
  5ed5d7f  2022-05-24  Nate Bosch  Move TestOn annotation to library level (#41)
  ecb2447  2022-05-03  Devon Carew  populate the repository field (#40)
  776a4c4  2022-03-02  dependabot[bot]  Bump actions/checkout from 2 to 3 (#39)
  d8eb6bd  2021-10-04  Kevin Moore  Migrate to pkg:lints, enable two disable lints (#38)

stack_trace (5220580..17f09c2):
  17f09c2  2022-05-03  Devon Carew  Merge pull request #117 from dart-lang/repository_field
  a6403d0  2022-05-03  Devon Carew  switch to package:lints
  ae8b883  2022-05-03  Devon Carew  add markdown badges
  eed6081  2022-05-03  Devon Carew  populate the pubspec repository field
  46f6ee1  2022-02-01  Nate Bosch  Change a TODO to a permanent comment (#114)

usage (e85d575..79eef48):
  79eef48  2022-05-25  Devon Carew  refactor the github action (#177)
  f296352  2022-05-02  dependabot[bot]  Bump actions/checkout from 2 to 3 (#176)
  8852f1a  2022-05-02  Devon Carew  Update dependabot to watch github actions (#175)
  2d5b693  2022-04-26  Devon Carew  Update README.md (#174)
  2b2f3f8  2022-04-20  Devon Carew  Switch from homepage to repository in pubspec (#173)
  9b90d7c  2022-04-14  Devon Carew  Update dependabot.yaml (#172)

watcher (f76997a..e00c0ea):
  e00c0ea  2022-01-19  Danny Tuppeny  Add/enable Windows tests (#124)


Change-Id: I0d48d3a7831040a18c996120cd51898e24215512
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246725
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-06-02 23:07:16 +00:00
Konstantin Shcheglov 11971d2b3a Print 'parameter' for NamedExpression itself, not its value.
Change-Id: I9e8141a9f32dc85fc8c9b55a53ee9c561e029b1f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247041
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-02 22:20:25 +00:00
Nate Biggs 0c796a5964 [dart2js] Remove references to global growable list checks.
This is dead code, the field 'isFixedArrayCheckedForGrowable' is never read. Also drop code used to set this field.

The check suggested in the TODO in ssa/builder.dart doesn't reduce code size for cm_shell at all so it seems like all arrays that go through there end up getting "marked" anyway.

Change-Id: Ia4bf3eec3757fc7eadb503a7ccc58b8f60f86b6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244482
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-06-02 22:08:45 +00:00
Konstantin Shcheglov 30d0fd72cd Use initialized 'late final' in GoogleAnalyticsManagerTest.
Change-Id: I2d9775cf5f53e060162e0dd59f0fecc1a38f59fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246991
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-02 21:52:35 +00:00
Konstantin Shcheglov 3a1a08106e Replace CiderByteStore methods with variants without signature.
Change-Id: I42c3aa456554974c1f44b95833e14487542539a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246986
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2022-06-02 21:50:35 +00:00
Devon Carew f28a665c4e Bump markdown to e3f4bd28c9e61b522f75f291d4d6cfcfeccd83ee
Changes:
```
> git log --format="%C(auto) %h %s" 5699caf..e3f4bd2
 https://dart.googlesource.com/markdown.git/+/e3f4bd2 example: update CDN asset links (#435)
 https://dart.googlesource.com/markdown.git/+/a678bfc example: add GitHub markdown CSS (#434)
 https://dart.googlesource.com/markdown.git/+/bc79c43 Merge pull request #425 from dart-lang/pq-patch-1
 https://dart.googlesource.com/markdown.git/+/4e8aa03 add pub badge
 https://dart.googlesource.com/markdown.git/+/7987e1e Remove dependency on third party package:charcode.
 https://dart.googlesource.com/markdown.git/+/90995fd Split block_parser.dart and inline_parser.dart (#422)
 https://dart.googlesource.com/markdown.git/+/8bb9062 Add trailing commas to some parameter lists to get better formatting (#420)
 https://dart.googlesource.com/markdown.git/+/1c5f2e7 Enable raw strings lint rules (#418)
 https://dart.googlesource.com/markdown.git/+/4784153 Enable use_if_null_to_convert_nulls_to_bools lint rule (#417)
 https://dart.googlesource.com/markdown.git/+/0d67e99 Enable prefer_interpolation_to_compose_strings (#416)
 https://dart.googlesource.com/markdown.git/+/5561351 Enable prefer_final_locals lint rule (#415)
 https://dart.googlesource.com/markdown.git/+/6d39147 Create DelimiterSyntax to replace TagSyntax (#407)
 https://dart.googlesource.com/markdown.git/+/4f4e899 Add caseSensitive parameter on the InlineSyntax constructor (#400)
 https://dart.googlesource.com/markdown.git/+/e16aff0 Check parser.isDone when title is null in _parseInlineBracketedLink (#394)
 https://dart.googlesource.com/markdown.git/+/3471578 Use `Uri.toFilePath()` instead of `Uri.path` for locating tests (#396)

```

Diff: https://dart.googlesource.com/markdown.git/+/5699cafa9ef004875fd7de8ae9ea00e5295e87a4~..e3f4bd28c9e61b522f75f291d4d6cfcfeccd83ee/
Change-Id: Ie04b17dfcce57fcd9e814bd8b9a09677a91136d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246984
Auto-Submit: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2022-06-02 20:31:18 +00:00
Brian Wilkerson f9acb37545 Add some tests of analytics
Change-Id: Icd4b86346d199649b156776df9835414a1ad41cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246980
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-02 19:39:55 +00:00
Janice Collins be13f8b89a Add a fix to remove print expression statements for avoid_print.
Bug: https://github.com/dart-lang/sdk/issues/45921
Change-Id: I9dc1726e19fdd592d42bc3d7eb6aa6a1b1944279
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246051
Commit-Queue: Janice Collins <jcollins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-02 18:30:57 +00:00
Devon Carew cd4cc0d577 [deps] remove the dep on the http_io repo
Change-Id: Ic57f5fd7f42ce037ae483ca886691780390f2b86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246982
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2022-06-02 17:22:36 +00:00
Konstantin Shcheglov 19271551ff Cache error results locally in FileResolver.
There is no good mechanism to release these bytes from the shared
cache, we would have to either keep them forever, or release immediately
after we put them (so useless). So, as a compromise, we cache them
space-restrictedly locally.

Change-Id: Iae6227bda31b40374390a6a6bb02501222be4e92
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246981
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2022-06-02 17:00:48 +00:00
Jens Johansen ac60f6b07e [CFE] Don't serialize platform in suite
This takes running the weak suite - on my machine - from

```
[ 07:14 | 100.0% | + 2268 | -    0 ]: weak/variance/unconstrained_inference

             check errors: 0:00:00.517818 ms
stress constant evaluator: 0:00:00.748959 ms
                    print: 0:00:01.357741 ms
                typeCheck: 0:00:09.610927 ms
                   verify: 0:00:17.063594 ms
       match expectations: 0:00:17.186629 ms
                  compile: 0:00:56.952218 ms
      transform component: 0:01:23.143726 ms
                      run: 0:02:24.114175 ms
              write .dill: 0:04:07.470467 ms


real    7m19.983s
user    10m43.053s
sys     1m29.653s
```

to

```
[ 03:07 | 100.0% | + 2268 | -    0 ]: weak/variance/unconstrained_inference

             check errors: 0:00:00.521563 ms
stress constant evaluator: 0:00:00.760032 ms
                    print: 0:00:01.358365 ms
              write .dill: 0:00:02.451508 ms
                typeCheck: 0:00:09.750399 ms
                   verify: 0:00:17.081690 ms
       match expectations: 0:00:17.723327 ms
                  compile: 0:00:55.593688 ms
                      run: 0:01:11.893074 ms
      transform component: 0:01:21.368430 ms


real    3m12.619s
user    4m20.531s
sys     0m41.589s
```

Change-Id: I9d235e84d10df06737789e8765f3b55521697e21
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246961
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-06-02 16:58:24 +00:00
Jens Johansen 46c0695bf0 [CFE] Fix suite not always deleting dill files
Previously only target=vm test files had their dill file deleted.
This made 40-50 dill files stay behind after a weak suite test run for
instance.
Now all of them are deleted and no files should be left behind.

Change-Id: I9c94b9cfa05eb5ccf9ca62e5b6bae5be39dd26f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246960
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-06-02 16:52:45 +00:00
Ben Konyi 4e688b1a59 [ Service / AOT ] Include line numbers for Functions in AOT snapshots
Fixes https://github.com/dart-lang/sdk/issues/48839

TEST=Checked CPU profile for Flutter Gallery in profile mode

Change-Id: I83f372aebd77b93b459720ceb2dd9e5fa05b4475
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245200
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2022-06-02 16:50:19 +00:00
Konstantin Shcheglov aa0d0c56cb Make Cache.get() just return the value.
Change-Id: I816a1c28569011215ad6cba9a7559513a7900386
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246880
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-02 15:45:45 +00:00
Johnni Winther 0b065c1e19 [cfe] Update inferred types through listeners
This CL changes the way inferred types are updated in the AST. Instead
of updating the AST directly, builders register a listener with the
OmittedTypeBuilder, that will be called when the inferred type has been
computed. This prepares for propagating inferred types to macro types
that are references to omitted types.

Change-Id: Ica5e1ed259b552d5de24000235f114ab1b9eb682
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246642
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2022-06-02 15:07:35 +00:00
Kenzie Schmoll b14c872e27 Rev DevTools to 2.14.0
Change-Id: I6b393249e3268fd9139a5fcc65064d3e4e6d46f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246821
Reviewed-by: Ben Konyi <bkonyi@google.com>
2022-06-02 14:07:30 +00:00
Chloe Stefantsova baa2bdeb02 [cfe] Hoist named arguments in invalid expressions for serialization
Closes https://github.com/dart-lang/sdk/issues/49040

Change-Id: I49ee89a6ad288e034ab29bd4867747cca0cda8d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246646
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-06-02 13:49:15 +00:00
Chloe Stefantsova 05d7c1a74e [cfe] Account for super parameters in the arguments original order
This CL fixes a crash in the CFE discovered in
https://dart-review.googlesource.com/c/sdk/+/243901.
It happens because in the case of super parameters not all of the
arguments are listed in the original order of the arguments of the
super-constructor invocation. It breaks some assumptions down the
pipeline. This CL inserts the super-parameters into the list of the
arguments in the original order.

Change-Id: I0862e65624ac32f2a1cf24b6dd2534ca405b93ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244403
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-06-02 13:48:05 +00:00
Alex Li 0556d0122c Add the missing space for sdk/lib/core/num.dart
This is nit-picking that `sdk/lib/core/num.dart` is missing a single space at the start of the line.

6c210bbc57/sdk/lib/core/num.dart (L147-L153)

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

GitOrigin-RevId: 776499741409a78cb198021fdc6e12fcdf2cb12f
Change-Id: I9117a277a40bd6635d3b8865be1d9f33e251922c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246900
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2022-06-02 10:11:35 +00:00
Jaime Wren 6c210bbc57 Revert "Modify dartdev language-server to call the server snapshot"
This reverts commit 1598182907.

Reason for revert: The snapshot for the DAS needs to have the default set before this change can land.  Will work with Analyzer folks in the morning to put together a new PR.

Original change's description:
> Modify dartdev language-server to call the server snapshot
>
> Change-Id: I6fc7b2c1e55089fa0bf88633733c51ff768e699b
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246059
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
> Commit-Queue: Jaime Wren <jwren@google.com>

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

Change-Id: I848f4ad08405fee5aeb0d2eb166f95390e81bb3e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246840
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-02 05:13:26 +00:00
Konstantin Shcheglov 31dc8e3cef Fixes for Windows bots.
Change-Id: I38f52afd74de4795490b75e5e2d53212d4b10337
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246820
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-02 01:36:35 +00:00
Devon Carew 71daf25146 Bump http to 2993ea5dff5ffb066b4a35c707e7a2b8dcfa17c2
Changes:
```
> git log --format="%C(auto) %h %s" 2c9b418..2993ea5
 https://dart.googlesource.com/http.git/+/2993ea5 Implement the ability to run a particular Client implementation in a Zone (#697)
 https://dart.googlesource.com/http.git/+/fa0af10 Fix head, get, post, etc. links in Client docs (#703)
 https://dart.googlesource.com/http.git/+/6b3e3f3 Use spawnHybrid for the stub server (#700)
 https://dart.googlesource.com/http.git/+/74a4371 Separate the `post` description for "String" (#695)
 https://dart.googlesource.com/http.git/+/87d4379 Switch from homepage to repository in pubspec  (#687)

```

Diff: https://dart.googlesource.com/http.git/+/2c9b418f5086f999c150d18172d2eec1f963de7b~..2993ea5dff5ffb066b4a35c707e7a2b8dcfa17c2/
Change-Id: I121641dc9f75d8ccb6d62fd9baec20b951bdbcde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246761
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2022-06-01 22:06:34 +00:00
Helin Shiah d6665ae4cd Reland "[ Service / DDS ] Add method that can return local paths"
This is a reland of commit a091ff7b27

TEST=Check that a supplied URL conversion function is correctly applied when the `local` param is true.

Original change's description:
> [ Service / DDS ] Add method that can return local paths
>
> TEST=Check that a supplied URL conversion function is correctly applied when the `local` param is true.
>
> Change-Id: Ibe80b6229c574c976379a519baca5d1904b684b2
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245040
> Reviewed-by: Ben Konyi <bkonyi@google.com>
> Reviewed-by: Kenzie Davisson <kenzieschmoll@google.com>
> Commit-Queue: Ben Konyi <bkonyi@google.com>

Change-Id: I87433a410715393f853a6538dbfe67391e0c773b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246621
Commit-Queue: Helin Shiah <helinx@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2022-06-01 21:22:34 +00:00
Konstantin Shcheglov 74d1c7ffdb Use LibraryFileStateKind where a library is expected.
Change-Id: I871caa74d9b3630c07b78bee85946c4bed5aa8ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246765
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-06-01 20:43:54 +00:00
Brian Wilkerson 15a40305c3 Report plugin performance in analytics
Change-Id: I22e37031330e2d65aa1317965d1536932f5e6cc2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246764
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-06-01 20:36:16 +00:00
Nate Biggs f6e4242a5d [dart2js] Fix tests for dart2js_info.
Fixes errors introduced in https://dart-review.googlesource.com/c/sdk/+/246140.

Change-Id: I7d09e58e27bcea138d4945fbda1d45b12bd6f53f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246800
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
2022-06-01 19:56:14 +00:00
Ryan Macnak c588224163 [vm] Represent the slow object copy from_to table with a heap array.
- Greatly reduces the size of the root set, thus reducing pauses for scavenges or marking that occur during a copy.
 - Reduces the memory overhead of the from_to table from 6 words per object to 2 words per object.

TEST=ci
Change-Id: Icf81f4b25adff22590a9c84c40068e35dd4d502b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246305
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2022-06-01 17:52:28 +00:00
Ryan Macnak 188dfbd52b [vm] Check for safepoints while initializing or copying large arrays.
TEST=ci
Change-Id: I5ca25d3996e51210464b06492c0b8b6119c4242c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246304
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-06-01 17:45:24 +00:00
Danny Tuppeny e51af7cd0c [analysis_server] Improve failure messages if LSP JSON deserialisation tests fail
+ add test for fields declared as doubles where the client may pass numbers without decimals.

Change-Id: I6b709a4620a2688d948faae1103193ab6ff5ceea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246647
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-01 16:48:34 +00:00
Konstantin Shcheglov 7c652aff38 Change FileResolver() constructor to named parameters.
Change-Id: I9040d4947ce431002ef9469244aa582e3dd2de2d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246760
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2022-06-01 16:46:56 +00:00
Devon Carew 5d627b8910 Bump vector_math to 1c72944e8c2f02340a1d90b32aab2e3836cef8cc
Changes:
```
> git log --format="%C(auto) %h %s" 0cbed09..1c72944
 https://dart.googlesource.com/external/github.com/google/vector_math.dart.git/+/1c72944 CI: Remove explicit --packages arg to coverage (#263)
 https://dart.googlesource.com/external/github.com/google/vector_math.dart.git/+/9c2e6d3 Fix usage of pub (#258)

```

Diff: 0cbed0914d~..1c72944e8c2f02340a1d90b32aab2e3836cef8cc/
Change-Id: I8ade6b88cb2d8112be38367a917af82f12335370
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246724
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2022-06-01 16:39:04 +00:00
Devon Carew 31424f704f Bump json_rpc_2 to 2de9a1f9821807fa2c85fd48e2f70b9cbcddcb67
Changes:
```
> git log --format="%C(auto) %h %s" 7e00f89..2de9a1f
 https://dart.googlesource.com/json_rpc_2.git/+/2de9a1f Merge pull request #82 from dart-lang/devoncarew-patch-1
 https://dart.googlesource.com/json_rpc_2.git/+/692140c rev to a dev version
 https://dart.googlesource.com/json_rpc_2.git/+/b76975e Update pubspec.yaml
 https://dart.googlesource.com/json_rpc_2.git/+/f46a5ff Merge pull request #80 from scheglov/fix-HintCode.UNNECESSARY_TYPE_CHECK_TRUE
 https://dart.googlesource.com/json_rpc_2.git/+/006890b Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE
 https://dart.googlesource.com/json_rpc_2.git/+/799321a Prepare to publish (#78)

```

Diff: https://dart.googlesource.com/json_rpc_2.git/+/7e00f893440a72de0637970325e4ea44bd1e8c8e~..2de9a1f9821807fa2c85fd48e2f70b9cbcddcb67/
Change-Id: I124ff6bec4da227a8ad02b0f28f7186c737b82e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246723
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-06-01 16:38:54 +00:00
Alexander Aprelev 74b606f7f7 [benchmark] Add IsolateSendExitLatency benchmark.
This measures latency induced by one isolate send-and-exiting on concurrently running isolates.

The benchmark report format mimics EventLoopLatency benchmark, in a way it reports "runtime" as a latency.

TEST=manual run of benchmarks

Bug: https://github.com/dart-lang/sdk/issues/49050
Change-Id: I20642fd75bd24870658d553b0775f62083544bdb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246620
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2022-06-01 16:09:24 +00:00
Konstantin Shcheglov 23fe4b8c43 Remove AnalysisDriver.isLibraryByUri()
Change-Id: Id4461706a583a452e9869ed29dd40631fb9a6ff7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246721
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-01 15:58:36 +00:00
Konstantin Shcheglov 26b9563d2f Return NotLibraryButAugmentationResult when necessary.
Change-Id: I803617dd486d953a9d45f216a164e421b8d8731e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246720
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-01 15:54:34 +00:00
Danny Tuppeny 75d622a25d [analysis_server] Prevent failed LSP requests when refactors fail validation
Change-Id: I302492939b89f3c4d5fe6ef66ee2366a08dc7764
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246645
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-01 15:50:34 +00:00
Johnni Winther eab17a790c [cfe] Use OmittedTypeBuilder instead of null
This replaces the use of `null` as the lack of type annotation with
a OmittedTypeBuilder. This is a step towards handling omitted types
in macros.

Change-Id: I71619228ec3363221b06834f110b9317ed0ae196
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246580
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2022-06-01 10:45:54 +00:00
William Hesse 11d63e3fa0 [release] Add 2.17.3 release notes
Change-Id: I92ba9f098153a52797c2e294e36cb197d7b69f48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246640
Reviewed-by: Alexander Thomas <athom@google.com>
2022-06-01 08:38:51 +00:00
Ilya Yanok e1e5cf4581 Make dart2js_info work again after partial migration to null-safety
Change-Id: I09b87ce1d6978f2b8aed65ecefe55557dd7b5784
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246581
Reviewed-by: Nate Biggs <natebiggs@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Ilya Yanok <yanok@google.com>
2022-06-01 07:07:44 +00:00
Konstantin Shcheglov 8ded7af5f5 Add LibraryOrAugmentationFileKind.exports/imports
These will replace eventually FileState.exported/importedFiles,
because only libraries or augmentation can have them. Also, we will
build Export/ImportElement(s) from them, when google3 switches to
using AnalysisDriver.buildPackageBundle(), so we are free to make
changes to the way linker works.

Change-Id: I66674dc7720aa704cfc36d16fc78e17dd05a8b93
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246681
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-01 06:35:14 +00:00
Siva Annamalai 1e7bc687a7 Revert "[vm, compiler] Prune dictionaries to only contain elements needed at runtime."
This reverts commit 6de162e014.

Reason for revert: Local testing of a large Flutter app with this change causes the app to crash on startup

Original change's description:
> [vm, compiler] Prune dictionaries to only contain elements needed at runtime.
>
> flutter_gallery
> Isolate(CodeSize): 2116400 -> 1981238 (-6.28%)
>   Total(CodeSize): 7217938 -> 7082600 (-1.87%)
>
> TEST=ci
> Bug: https://github.com/dart-lang/sdk/issues/48910
> Change-Id: I8cd285ddab3a611cd7a2a91d50414be402f8543a
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244303
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Commit-Queue: Ryan Macnak <rmacnak@google.com>

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

Bug: https://github.com/dart-lang/sdk/issues/48910
Change-Id: Ie51f004e84970907fa1233e8e7c3ed63e2da1c4c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246683
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2022-06-01 00:58:24 +00:00
Nate Biggs 0d3d5e6712 [dart2js] Migrate second batch of dart2js_info files to nnbd.
Change-Id: Ie84897bc0e4cd376b815de672aadbdf82ad03ddc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246140
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
2022-05-31 21:44:23 +00:00
Jaime Wren 1598182907 Modify dartdev language-server to call the server snapshot
Change-Id: I6fc7b2c1e55089fa0bf88633733c51ff768e699b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246059
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2022-05-31 21:40:44 +00:00