Commit graph

86496 commits

Author SHA1 Message Date
Joshua Litt
9683862a4e [dart2wasm] Minor fixes to unblock building Flutter.
Change-Id: I58b9554b94f8a35432a04a27a7bf1b39701f45d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251781
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
2022-07-27 17:31:28 +00:00
Danny Tuppeny
627481bae1 [dds] Bump to version 2.2.6 and add changelog entry
Change-Id: Ie3f4710c80129f43f556f62b9b733e2e04e32850
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252361
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-07-27 17:18:13 +00:00
Ryan Macnak
c6a1eb1b61 [vm, gc] Very basic RAIL.
Related to https://github.com/dart-lang/sdk/issues/47574

TEST=ci
Change-Id: I2f07be6150b025a301e6e4d10935b606087cdf00
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252462
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-07-27 16:40:38 +00:00
Brian Wilkerson
1c45840b4b Fix a typo in the docs and add a todo
Change-Id: I4e61af2a34309adfba178c7e730050d7c0a83a5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252802
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-07-27 15:53:07 +00:00
Kevin Moore
401be8a029 Bump shelf to 0371a64bd3b99044ee3158bacf8813bba735a9c7
Changes:
```
> git log --format="%C(auto) %h %s" 9dab944..0371a64
 https://dart.googlesource.com/shelf.git/+/0371a64 Changed advertised server technology response header (#258)

```

Diff: https://dart.googlesource.com/shelf.git/+/9dab94469d50e89a6e4e2c0086b717bddb0bf78a~..0371a64bd3b99044ee3158bacf8813bba735a9c7/
Change-Id: I1ac864de24f5395e74816952618bcfd58d9f5d13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252800
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-07-27 15:42:17 +00:00
Zach Anderson
3b8817e7fc Revert "[vm/compiler] Add symbols for read-only data when requested."
This reverts commit 286326f834.

Reason for revert: Reverting for the regressions mentioned in https://github.com/flutter/flutter/issues/108378

Original change's description:
> [vm/compiler] Add symbols for read-only data when requested.
>
> Symbols for non-clustered objects in the read-only data section are
> now added to the static symbol tables for unstripped snapshots and
> separate debugging information.
>
> In DEBUG mode, the name for a non-String read-only data object also
> includes the name of the parent object.
>
> TEST=vm/dart{,_2}/readonly_data_symbols
>
> Change-Id: I623b023138aeca0580bc76392882eac5686f8f50
> Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251104
> Reviewed-by: Ryan Macnak <rmacnak@google.com>
> Commit-Queue: Tess Strickland <sstrickl@google.com>

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

Change-Id: I82bdabf07c137fbabe7b4c45bdf23011350c3d87
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252801
Reviewed-by: Tess Strickland <sstrickl@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2022-07-27 13:30:28 +00:00
Tess Strickland
27dc7de6d6 [benchmarks] Address post-review comments for InstantiateTypeArgs.
Change-Id: I7af16d3b10867f0cebabaf4579539889627cd234
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252741
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2022-07-27 08:54:57 +00:00
Sam Rawlins
aee2e21de8 Correct mustCallSuper documentation as per analyzer impl
See must_call_super_test.dart for tests covered by this documentation.

Bug: https://github.com/dart-lang/sdk/issues/49499
Change-Id: I50e6546dda155cb133b8ad314db27a266a94fa00
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252762
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-07-27 00:58:37 +00:00
Joshua Litt
63a9057f12 [dart2wasm] Implement unimplemented methods in DateTime.
Change-Id: Ia84d2e65ab6207fc70f6f8380c18ba3b89f7400f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251590
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-27 00:50:47 +00:00
Joshua Litt
fe78a23e9a [js_util] Generalize dartify, and make it more robust.
Change-Id: I3608bcbdf320f6d4da2a52119d48fb02df2ad0e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252565
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-26 21:49:27 +00:00
Mark Zhou
4f9002286f [dart2js] Adding tests for angularInfo conversion for runtime coverage
Change-Id: I143565cb2c36c551ed7e1189ffbcf64fb9b2a5de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252560
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-07-26 21:16:57 +00:00
Joshua Litt
eeb2212287 [dart2wasm] Implement Stopwatch on top of JS.
Change-Id: Ia9bde1b86fe80c33db4219e08a3ce0180227e104
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251591
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
2022-07-26 20:41:27 +00:00
Konstantin Shcheglov
a8be1c1e0b Deprecate Directive.element, use element2.
Change-Id: Ic18f9c579bcec0b6406070da04b476be2582a504
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252721
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-07-26 18:51:47 +00:00
Devon Carew
4a67055200 [deps] rev benchmark_harness, fixnum, http, http_parser, intl, logging, matcher, protobuf, shelf, sse, string_scanner, term_glyph, test, test_descriptor, vector_math, and webdev
Change-Id: I7cfe5b052d00349cc22e0210429471c06f1d3034
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252760
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-07-26 18:39:27 +00:00
Sam Rawlins
0cc284a083 Nit tweaks in LSP Analysis Server
Change-Id: I8f1dee82486f357dcfc64294852ea02d23b9e8a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252761
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-07-26 18:11:37 +00:00
Joshua Litt
9e83c53c61 [dart2wasm] Implement constant symbols.
Change-Id: I758576a7a35c6ffe127fd02eb394e97719750476
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250776
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-26 17:40:07 +00:00
Ryan Macnak
139d9216ad [vm, compiler] Discover the sole implementation of an interface when it is a different class than the interface.
TEST=ci
Change-Id: Ibeb83f1099a9dfdeeaee69814739bff84617c1fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252243
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-07-26 17:33:37 +00:00
Konstantin Shcheglov
955f1e90ec Update the documentation comment for parseFile().
Bug: https://github.com/dart-lang/sdk/issues/49512
Change-Id: I74a558be91055b3fae24b4e5db3f70875dc7a218
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252706
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-07-26 17:01:57 +00:00
Konstantin Shcheglov
4359108a8b Deprecate ClassOrMixinDeclaration.getField/getMethod
Change-Id: I312a1214b0babb03a3208dcf306753e0d75f77e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252705
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-07-26 16:54:27 +00:00
Tess Strickland
a174dd7e89 [vm/test] Handle any simulator architectures more generically.
In `use_flag_test_helper.dart`, there is code for SIMARM/SIMAR64,
but now we have SIMRISCV64.

For now, just look for `SIM` in the build directory to determine
whether or not we're running on a simulated architecture, and
disable the assembly part of `use_dwarf_stack_traces_flag_test.dart`
on all simulated architectures instead of just SIMARM/SIMARM64.
(They run fine locally for SIMARM/SIMARM64, but trybots don't
have the buildtools fetched currently as the configuration uses our
own ELF writer to generate snapshots, not an assembler.)

TEST=vm/dart{,2}/use_dwarf_stack_traces_flag

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

Change-Id: I710de16f29a24e6d64a8bce3469da9648ee25def
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-debug-simriscv64-try,vm-kernel-precomp-linux-release-simarm_x64-try,vm-kernel-precomp-linux-release-simarm64-try,vm-kernel-precomp-linux-release-simarm-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252604
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2022-07-26 13:27:18 +00:00
Tess Strickland
2df264a2a8 [benchmarks] Adding benchmarks for type argument instantiation.
The primary focus of the new benchmarks is measuring the current
overhead of caching instantiated versions of the type arguments
in the uninstantiated type argument.

Change-Id: If611e72ac4f7a94c82f58d06cc34dcef2b8382df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252423
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2022-07-26 07:53:17 +00:00
Konstantin Shcheglov
a31337548e Deprecate ClassDeclaration/ClassTypeAlias.isAbstract
Change-Id: I70fa1714fb31bb611d86054fc4538c01afda6763
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252563
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2022-07-26 01:51:27 +00:00
Joshua Litt
3e22f16204 [dart2wasm] Fix some uses of void.
Change-Id: Ia05014c2ce155834b0b3a327a40e500cd0c2941d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250540
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-25 23:05:16 +00:00
Aaron Clarke
4448741898 Updated Dart_Post docstring to mention Dart_PostCObject.
fixes https://github.com/dart-lang/sdk/issues/49524

TEST=n/a, documentation

Change-Id: Ia5154e9c2c1d6f6cce46e9bceb49f315cb840bc3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252681
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-07-25 22:55:06 +00:00
Sam Rawlins
7280525117 Implement mustBeOverridden annotation and enforcement
Fixes https://github.com/dart-lang/sdk/issues/30175
Fixes https://github.com/dart-lang/sdk/issues/28250

Change-Id: Id9c62448da9ade81258c2ae2355d05117057a8f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252463
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-07-25 22:17:18 +00:00
Konstantin Shcheglov
ea820da673 Prepare to publish analyzer 4.3.1 and _fe_analyzer_shared 43.0.0
Change-Id: I8dba10b407d00abae1ed05341c12470dba136753
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252702
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-07-25 22:17:15 +00:00
Joshua Litt
9ac9025e48 [dart2wasm] Fix minor bug in set.
Change-Id: I127539ae7c99d9b5ef519ed10077f33f019504b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251502
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
2022-07-25 21:20:46 +00:00
Konstantin Shcheglov
911675b007 Fix 'identifier' for LibraryExportElement/LibraryImportElement.
Change-Id: Ie6ecdd87a1fd5d1f212bc133ccf3221c962819fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252680
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-07-25 20:56:39 +00:00
Mark Zhou
11004430bf [dart2js] Extending coverage analysis to allow class filters
This format is emitted by AngularInfo internally (for identifying providers/components) but conforms to Dart2JS's qualified naming scheme.

Change-Id: I1a38e41105f7fb92a30d3358c08b72e892ccf3c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250344
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-07-25 20:40:10 +00:00
Joshua Litt
b9dc9a7fbe [dart2wasm] Support environmental constants.
Change-Id: I2e66c35c209b6c0a0e56b4fd7a5eefd8c3e15c5e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250482
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-25 20:13:02 +00:00
Ryan Macnak
f9e833416e [vm, ffi] Fail more gracefully when attempting to use FFI on a simulator.
TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/48846
Bug: https://github.com/dart-lang/sdk/issues/49472
Change-Id: I9083d1c4e2ff633d22747f80ce1fed970e2f771a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251849
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-07-25 19:29:09 +00:00
Nicholas Shahan
901d01a45c [ddc] Fix the use of the wrong null literal
This code should be using a `LiteralNull` from the JS AST but was
accidentally using the `NullLiteral` from the Kernel AST.

Add a test to trigger this code path in the expression compiler
because there must not be a source location for the code being
compiled.

Add a retry duration for getting a chrome tab in the test suite.
This fixes a failure I was seeing when I run the test locally.

Change-Id: I6900ace6280f1105c77ccafce4f47d0fc5771d6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252540
Reviewed-by: Anna Gringauze <annagrin@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2022-07-25 19:22:49 +00:00
Danny Tuppeny
38dc6e7dc8 [dds] [dap] Ensure debug adapter shuts down on clean termination
Change-Id: I1baa77dd933a49c1df435ccc31eb6cf8995e3ff3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252660
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-07-25 19:18:49 +00:00
Daco Harkes
f9722142ee Revert "[cfe/ffi] Improve FFI call mismatched types compile errors"
This reverts commit 206fdf148c.

Reason for revert: Flutter issues are caught by this CL, preventing
Flutter from building.
https://github.com/flutter/flutter/issues/108309

Original change's description:
> [cfe/ffi] Improve FFI call mismatched types compile errors
>
> This CL fixes two issues.
>
> 1. `FfiNative`s now check the Dart and native type for compatiblity.
> 2. Both `FfiNative`, `asFunction`, and `lookupFunction` check the type
>    correspondence between native and Dart type with a subtype check of
>    the expected Dart type and the provided Dart type. For functions,
>    any return type is a subtype of a void type. This is fine for Dart,
>    but not for native calls. This CL manually checks the return type
>    for void.
>
> This CL does not fix the inconsistency between `asFunction` and
> `FfiNative` with regard to allowing more strict return types than
> `Object` for `Handle`s
> Issue: https://github.com/dart-lang/sdk/issues/49518
>
> Analyzer fixes in follow up CL.
>
> TEST=tests/ffi/vmspecific_static_checks_ffinative_test.dart
>
> Closes: https://github.com/dart-lang/sdk/issues/49471
> Change-Id: Ibc7bd6a1a0db59cc5fa5d755d76999fd7e9a06a4
> Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try,analyzer-mac-release-try,vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64c-try
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252601
> Reviewed-by: Martin Kustermann <kustermann@google.com>
> Commit-Queue: Daco Harkes <dacoharkes@google.com>

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

Change-Id: Id82b129d491adcc94cdd685a0a0f6a43248c71f2
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Issue: https://github.com/dart-lang/sdk/issues/49518
Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try,analyzer-mac-release-try,vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64c-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252662
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2022-07-25 18:18:29 +00:00
Ryan Macnak
1ab217ac40 Reland "[vm] Forward dynamic events names to os_signposts as arguments."
Assume the embedder provides static strings for event labels.

TEST=Instruments
Bug: https://github.com/dart-lang/sdk/issues/49178
Change-Id: I40aa4996fed2b1230da64d182e6f172f60480fdf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251145
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-07-25 17:42:49 +00:00
Joshua Litt
d8d8403a90 [dart2wasm] Trivial fix for visitThis in closures.
Change-Id: I4eda2430adb89d328dcec8b18e7acf1652f86c10
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251501
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-25 17:29:59 +00:00
Sam Rawlins
9f8ad7b604 Improve error about members from declarations
Change-Id: I58d2850e9265fbe8b5b7d0e09fa42c105c3cc7e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247880
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-07-25 17:24:59 +00:00
Joshua Litt
e45f73dd6d [dart2wasm] Use VM's bigint implementation.
Change-Id: Ie0cfa40ec4497ee9d6eacff07bc479fe7d74537c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250485
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-25 17:16:29 +00:00
Ryan Macnak
2d00818aef [dartfuzz] Don't try to use FFI on simriscv.
TEST=dartfuzz
Bug: https://github.com/dart-lang/sdk/issues/49472
Change-Id: Ib3dc89b969197a8d27c330dfbcd4029dbf9dd22e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251848
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-07-25 16:48:13 +00:00
Brian Wilkerson
d0ad41e894 Update an outdated doc comment
Change-Id: I1e4f75fe0e89710358361b33fc62037ae011c13f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252640
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-07-25 16:11:49 +00:00
Brian Wilkerson
9312ba0abc Fix rename_to_camel_case to handle screaming caps
Change-Id: I04564db1c4f47be18949cf16dcf42230db0da6e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252562
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-07-25 16:08:23 +00:00
Ahmed Ashour
296f114d77 [analysis_server] link failing test to an issue
Part of #49514

Change-Id: Ie74a149b998a5901c6f1ad2a389403165167aa83
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252582
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-07-25 16:00:19 +00:00
Aske Simon Christensen
6918c02ebe [dart2wasm] Fix parsing of commandline flag options
Change-Id: Iac05ade693c7596fe41c0ba3d37eb7e5d2e5f9fe
Cq-Include-Trybots: luci.dart.try:dart2wasm-linux-x64-d8-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252607
Reviewed-by: Joshua Litt <joshualitt@google.com>
Auto-Submit: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-07-25 15:39:09 +00:00
Ben Konyi
5ef61ff1e5 [ dart:developer ] Update documentation for Metrics
Fixes https://github.com/dart-lang/sdk/issues/49511

Change-Id: I0dae4709ef34d1dd9cf3c8ccebd295df4565fbc3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252620
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2022-07-25 15:32:59 +00:00
Ben Konyi
887601b726 [ CLI ] Add better logging to the DartDev isolate
Should make debugging unhandled errors in the CLI easier.

Related issue: https://github.com/flutter/flutter/issues/106753

Change-Id: I6cfc88a52c0af756c0d7a00fc1a2edcf61b86538
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252464
Reviewed-by: Siva Annamalai <asiva@google.com>
Auto-Submit: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-07-25 14:44:59 +00:00
Daco Harkes
206fdf148c [cfe/ffi] Improve FFI call mismatched types compile errors
This CL fixes two issues.

1. `FfiNative`s now check the Dart and native type for compatiblity.
2. Both `FfiNative`, `asFunction`, and `lookupFunction` check the type
   correspondence between native and Dart type with a subtype check of
   the expected Dart type and the provided Dart type. For functions,
   any return type is a subtype of a void type. This is fine for Dart,
   but not for native calls. This CL manually checks the return type
   for void.

This CL does not fix the inconsistency between `asFunction` and
`FfiNative` with regard to allowing more strict return types than
`Object` for `Handle`s
Issue: https://github.com/dart-lang/sdk/issues/49518

Analyzer fixes in follow up CL.

TEST=tests/ffi/vmspecific_static_checks_ffinative_test.dart

Closes: https://github.com/dart-lang/sdk/issues/49471
Change-Id: Ibc7bd6a1a0db59cc5fa5d755d76999fd7e9a06a4
Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try,analyzer-mac-release-try,vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64c-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252601
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2022-07-25 14:34:39 +00:00
Alexander Thomas
237ecdb607 [infra] Add missing parenthesis in co19 update scripts
Fixes: https://github.com/dart-lang/sdk/issues/49503
Change-Id: I3e6c0450fcb7c6ff55d2ff1b1607685bb05289e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252606
Reviewed-by: Erik Ernst <eernst@google.com>
2022-07-25 14:14:59 +00:00
Erik Ernst
e1d30e040d [co19] Roll co19 to b76040d28ded4be3cf1e808d609f0cceb8004522
2022-07-25 sgrekhov22@gmail.com Fixes dart-lang/co19#1372. Expected error message text fixed (dart-lang/co19#1373)
2022-07-22 sgrekhov22@gmail.com Fixes dart-lang/co19#1356. Add analyzer errors on references to not included library parts (dart-lang/co19#1360)
2022-07-22 sgrekhov22@gmail.com Fixes dart-lang/co19#1354. Horizontal inference tests added (dart-lang/co19#1358)
2022-07-19 sgrekhov22@gmail.com Fixes dart-lang/co19#1367. Missed errors expectations added for CFE (dart-lang/co19#1371)
2022-07-14 athom@google.com Fix quoting in spec parser command line (dart-lang/co19#1369)
2022-07-14 athom@google.com Ignore deleted files in spec parser action (dart-lang/co19#1368)
2022-07-14 athom@google.com Pin GitHub actions and setup dependabot (dart-lang/co19#1365)

Change-Id: Ib57b9c95b1a50c20a3716383cd6839f65950bac1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252603
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2022-07-25 12:52:40 +00:00
Anis Alibegić
40e18905f2 Fixed various typos in a lot of files
Closes https://github.com/dart-lang/sdk/pull/49478

TEST=Manual

GitOrigin-RevId: f4c9c6869dfe73639295e86574a021523b3d374d
Change-Id: I134a97caed4eec59d70e9cbca16b7e9a472cf2c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251902
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Kevin Chisholm <kevinjchisholm@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2022-07-25 12:21:59 +00:00
Tess Strickland
286326f834 [vm/compiler] Add symbols for read-only data when requested.
Symbols for non-clustered objects in the read-only data section are
now added to the static symbol tables for unstripped snapshots and
separate debugging information.

In DEBUG mode, the name for a non-String read-only data object also
includes the name of the parent object.

TEST=vm/dart{,_2}/readonly_data_symbols

Change-Id: I623b023138aeca0580bc76392882eac5686f8f50
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251104
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2022-07-25 11:03:29 +00:00