Commit graph

82955 commits

Author SHA1 Message Date
Johnni Winther e92e60da78 [cfe] Change computeDelta to return a result object
This prepares for returning more that just the component from an
incremental compilation.

TEST=existing

Change-Id: I3ee269083290097f1a92d77d105b607a6a02f1f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221086
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-11-25 10:15:07 +00:00
Johnni Winther c07ca25ca1 [cfe] Make internal members private in IncrementalCompiler
Change-Id: I0789da5a7be487bf0488654126543ed1c308de83
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221085
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-11-25 08:14:53 +00:00
Michael Thomsen 53b2c01f42 Update CHANGELOG.md
Fix typo

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

GitOrigin-RevId: 139c9e4fdd92fab16f35732b1f9b6b7231c5bd36
Change-Id: Iad00c20007b839e054a772bed53e232e431104f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221164
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2021-11-24 18:34:02 +00:00
pq e1a8269ab9 fix linter entry for 2.15
Change-Id: I71dba6fbbe2a2b4fbda0703aed40a42a6b8f4eac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221166
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2021-11-24 17:05:12 +00:00
Brian Wilkerson 8f8e6a7ed1 Add tests from a reverted CL for future reference
This is the test from the attempt to allow overlapping edits to be
merged. That work broke some other tests, but I want to record both the
current and ideal behaviors in case I can't get back to fixing it.

Change-Id: Ib41afc37463957ebd710e65847512f91fe47a0f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221180
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-11-24 16:15:02 +00:00
Vyacheslav Egorov a860e69f57 [build] Fix dart2js_compile action dependencies
Add dependency on unsound platform files.

This should fix the following flaky CQ failure:

    FAILED: dev_compiler/build/web/dart_stack_trace_mapper.js
    Error: Input file not found: dart2js_platform_unsound.dill.
    ...

Compilation action tries to read the unsound version of the platform,
but the GN template only specifies the dependency on the sound platform
making build non-hermetic.

Change-Id: If13431b1682e35a419cb6865c38e2b69348751f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221084
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2021-11-24 13:10:11 +00:00
Vyacheslav Egorov 71c9c2cd83 [vm] Remove support for non-bare AOT snapshots
Every AOT user out there has been using bare instructions mode
and continuing to maintaining non-bare instructions mode simply
adds costs (both in terms of time spent making changes to work
in a mode that is not used and CI resources spent on testing it).

This change removes FLAG_use_bare_instructions and changes the code
to assume that FLAG_precompiled_mode implies bare instructions.

TEST=ci

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64c-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-obfuscate-linux-release-x64-try,app-kernel-linux-release-x64-try,app-kernel-linux-debug-x64-try
Change-Id: I5032b13bfcb613f79865f2cfa139cca8d1b42556
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220964
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2021-11-24 13:03:52 +00:00
Johnni Winther 450ff2976d [cfe] Migrate (more) CFE tests (part 11)
Change-Id: I905adcd2125ce66d6ba9923d996354657b679cec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220965
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-11-24 11:15:41 +00:00
Johnni Winther 3e28be5ec6 [cfe] Migrate (more) CFE tests (part 10)
Change-Id: Ic40cf7acdefe86cc0f2324ccdf35c6f80d6bcc39
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220980
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-11-24 11:09:02 +00:00
Johnni Winther 71a551d512 [cfe] Migrate (more) CFE tests (part 9)
Change-Id: Ia5d8ff24f46b1589d9325c1d20ffab73e64559dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220772
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-11-24 09:54:22 +00:00
Ben Konyi 75abd86407 [ VM / Service ] Omit private fields from service responses by default
Service responses and events previously could include "private"
properties, which have names starting with "_". This change removes
these properties from service objects unless explicitly requested via a
private parameter.

See go/smaller-dart-vm-service-responses for response size reduction
data.

TEST=Existing service suite

Change-Id: Ia65b14872e798eaa843f7d180c57721b82371d0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221143
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2021-11-24 00:34:31 +00:00
pq 0268ef15cc bump to linter 1.15.0
Change-Id: I36e7b7c5571129aa6c31721ca29bf2b3c3472095
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221141
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2021-11-23 23:08:51 +00:00
Stephen Adams 4c31413f1a [dart2js] Insert HNullCheck ahead of HGetLength
HNullCheck is inserted before HGetLength when the receiver might be null.
This makes HGetLength and HFieldGet use the same pattern.
HNullCheck supports strengthening of dominated uses, which allows
specialization of string and array interceptors, leading to better code
in some cases. An example improvement is:

      if (aLocale.length < 2)
        return aLocale;
      return J.substring$2$s(aLocale, 0, 2).toLowerCase();

-->

      if (aLocale.length < 2)
        return aLocale;
      return B.JSString_methods.substring$2(aLocale, 0, 2).toLowerCase();

Here `aLocale` has the type String*, and the explicit null check before
`aLocale.length` strengthens the receiver at the call to `substring`.

There is very little code size change.

The inconsistency between the handling of HFieldGet and HGetlength came
to light when investigating an unexpected difference in Uri.parse between two
apps.

Change-Id: I6e76de2070ab2c0058a109896c738ea2a09b322a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221028
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-11-23 21:11:31 +00:00
Stephen Adams 9fc16a788d [dart2js] Fix dart2js cfe_annotations_test
Change-Id: Ic19cccf08009f77d91771a3e8cb3caee71bb548b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221021
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-11-23 18:47:41 +00:00
Joshua Litt 7a277a8979 [dart2js] Cleanup old serialization logic.
Change-Id: Ib43b5d7c5cb4234deb0bf026bfe7aaf7e1fced7f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220800
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-11-23 18:37:51 +00:00
Brian Wilkerson 8fd4647032 Iterate until all fixable diagnostics have been fixed
Change-Id: Ibd8bcf36f7813fd39a2c3733ac2a933971a8cce9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221140
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-11-23 18:23:01 +00:00
Brian Wilkerson b3e029ddc5 Produce fix details when fixing imports
Change-Id: Ia4a4796f46ce49a6c330f8edde8b0103dcca8f8d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221022
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-11-23 15:43:21 +00:00
Johnni Winther 02cd6a9a94 [cfe] Compute macro declaration data early in outline building
This CL moves the computation of macro declaration data and the
required compilation sequence for macro compilation early in the
outline building phase by performing computation fully in terms
of builders.

Change-Id: I61a566f0aed661767a47579bca4d5931e4a4df9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220771
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-11-23 13:14:11 +00:00
Johnni Winther 9070a259c4 [cfe] Compute macro compilation sequence in source loader
This CL moves the computation of the need compilation sequence from
macro_test to the source loader. The compilation sequence is
computed late in the outline phase and needs to be moved early to
ensure a performant compilation with macros.

Change-Id: I639aae28d3abeab57aeffeea390a85be271bf259
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220770
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-11-23 11:50:41 +00:00
Alexander Thomas 429fd8b85d [co19] Roll co19 to 4ef349830b971c22d8ddb2970c4ba9002806fd85
2021-11-23 sgrekhov@unipro.ru dart-lang/co19#1231. Super parameters tests fixed and new ones added
2021-11-22 sgrekhov@unipro.ru Fixes dart-lang/co19#1237. More tests for Array and Pointer with wrong types
2021-11-19 sgrekhov@unipro.ru dart-lang/co19#1237. Added tests for Array wrong types
2021-11-19 sgrekhov@unipro.ru dart-lang/co19#1236. Fuchsia added to the list of POSIX systems
2021-11-18 sgrekhov@unipro.ru Fixes dart-lang/co19#1236. Update rename() and renameSync() tests to follow changed behaviour
2021-11-17 sgrekhov@unipro.ru dart-lang/co19#1231. More super parameters tests added
2021-11-16 sgrekhov@unipro.ru dart-lang/co19#1231. Minor code style changes
2021-11-16 sgrekhov@unipro.ru dart-lang/co19#1231. More Super parameters tests added
2021-11-15 sgrekhov@unipro.ru dart-lang/co19#1231. More Super parameters tests added
2021-11-12 sgrekhov@unipro.ru dart-lang/co19#1231. More Super parameters tests added
2021-11-12 sgrekhov@unipro.ru dart-lang/co19#1231. Experimental flag added

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-nnbd-mac-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I13275efae3ccbb84a6ba9690a8168d8e50a6227b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220963
Reviewed-by: William Hesse <whesse@google.com>
2021-11-23 11:26:56 +00:00
Alexander Thomas 4f52d4534a [co19] Roll co19_2 to 995745937abffe9fc3a6441f9f0db27b2d706e4c
2021-11-12 irina.arkhipets@gmail.com More fix for dart-lang/co19#1094: Missing Issue tags added to the tests, LibTest/io/WebSocket tests updated.

Change-Id: I70e541cf9e7dafb0d0150dfd2f23534445ce4796
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220962
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2021-11-23 09:51:13 +00:00
Johnni Winther eda10ffe4b [cfe] Add test for compilation sequence to macro test
This CL adds a test for the minimal sequence of compilation steps
that need to be performed to compile the test while ensuring that
macro declarations are compiled before any application.

Change-Id: Icd6b9140e60d35d2b2b034c16e0807262f971418
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220768
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-11-23 09:40:21 +00:00
Konstantin Shcheglov 6e857a62bc Fix getFileForUri() for not canonical (writable when has generated) URI.
This fixes the completion issue when I run on my desktop with
internal repo.

Change-Id: I4efc137d96c486cc8c9d139cd372ee0df262d057
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221029
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-23 04:43:51 +00:00
Konstantin Shcheglov 6bf4e4645c Another work around for an invalidation issue.
I still don't know why it happens.
But there might be something else as well, as users complaining
about the server not responsive. And one suspect is this infinite
cycle that I added. I thought it is safe, but something is wrong,
and it could be it.

Change-Id: I6095e1493c4cc49e6a5540bf30d244747c36641c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221023
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-23 00:57:00 +00:00
Konstantin Shcheglov b1955d63ad Fix for SuperFormalParameter in NodeReplacer.
The test is still failing because there is an issue with parsing.

Change-Id: I2cab385ce5be68713b2b27d10fc52f662df7e211
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220885
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-22 17:02:50 +00:00
Johnni Winther 7e6d8e085f [cfe] Compute macro declarations/applications during buildOutline
This CL moves the computation of macro declarations/applications
from macro_test to KernelTarget.buildOutline. Initially these are
computed as late in the phase as is convenient. Later these
computations are intended to be moved as early as possible to ensure
a performant implementation of macros.

Change-Id: Ia2255937eba8d87b6ca8f3f03d13960206f176d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220765
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-11-22 14:34:31 +00:00
Johnni Winther 6f59892b82 [cfe] Add initial test for macros
This test mimics the macro builder system currently in development
and tests declared and applied macros can be recognized through the
generated AST.

Change-Id: Ide47def2b6044d74051a090879f49ba4a3c8d201
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220763
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-11-22 11:17:53 +00:00
Johnni Winther f5af678467 [cfe] Migrate (more) CFE tests (part 8)
Change-Id: I39c493168b847eb14ebc9ff649e2552e8d00b23c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220764
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-11-22 09:04:30 +00:00
Konstantin Shcheglov 0ae21669ad Mark ElementFactory and TokenFactory internal.
Change-Id: I58d4d50df73a0c16e1b9540a2755d0041e2c44a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220884
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-20 18:07:28 +00:00
Konstantin Shcheglov 3ab1eaa03f Migrate analyzer_cli to null safety.
Change-Id: I03184d7b3257802a90eacfb1ea912977f2082c23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217820
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2021-11-20 03:23:38 +00:00
Konstantin Shcheglov a8891da0e7 Stop using ElementFactory in nnbd_migration.
Change-Id: I0c64916ced298f0be8a948ad33148ade01a17862
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220882
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-11-19 23:36:57 +00:00
Konstantin Shcheglov e277d691b4 Pass Source to parseText() in summary tests.
Change-Id: Ic038c217aba32e2548a02735154c70a56ef900e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220881
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 22:08:21 +00:00
Ben Konyi 2408d38878 [ CLI / Gardening ] Kill test subprocesses before deleting directories
Previously, if a test timed out and the `tearDown` callback was invoked
to cleanup the temporary project, we would try and cleanup the temporary
directory even if the subprocess hadn't exited. This works fine on most
platforms, but causes an exception to be thrown on Windows as the
subprocess still holds a handle to the temporary directory. Ensuring the
subprocess is killed before deleting the temporary directory will
prevent us from encountering errors on cleanup on Windows.

Fixes https://github.com/dart-lang/sdk/issues/47700

Change-Id: I71599908c31a1b32afed15c1388d228618462506
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220641
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-11-19 21:14:28 +00:00
Konstantin Shcheglov 3b89039454 Deprecate Source.isInSystemLibrary
Change-Id: Ifb76cc37e5b0aa86713675cf27086f6ce7625fbd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220822
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-11-19 20:30:37 +00:00
Konstantin Shcheglov 9523cf2006 Deprecate JavaFile.
Only dartdoc still uses it.
https://github.com/dart-lang/dartdoc/pull/2856

Change-Id: I09ebb9e2714702dddc21f7e8c599fef472063c12
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220880
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 19:47:47 +00:00
Konstantin Shcheglov d6d45d96f8 Deprecate Source.modificationStamp
Change-Id: Id7f361beff1c4e3f9edc743c58cce7888d330c1f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220860
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 19:33:07 +00:00
Sam Rawlins f9d737b07a Bump markdown to include text-direction fix
Key change in markdown package is here:
83838c6bb6

Bug: b/205382467
Change-Id: Ieb03fee0328ee06f8723a984a85c863bbe7806e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220841
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-11-19 19:30:47 +00:00
Konstantin Shcheglov ab55396c25 Remove FileBasedSource, deprecate source_io.
Change-Id: I42c79a1c46711a9427d8716df91cd6980f0c57c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220842
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 19:07:37 +00:00
Konstantin Shcheglov fb05622b3b Deprecate Source.uriKind
We almost can remove it.
Unfortunately surveyor/lib/src/analysis.dart uses it, so we need to
update it first.

Change-Id: I239d24506f99183147bf45744a6f8d66d3eb4f94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220826
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-11-19 18:29:07 +00:00
Chloe Stefantsova 46cf1b9dd6 [parser][analyzer][cfe] Add parsing support for super-parameters
Part of https://github.com/dart-lang/sdk/issues/47525

Change-Id: I7b824e5e3fc9dbb2c6416dfd15df274037a8e9e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/219521
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-11-19 16:56:07 +00:00
Tess Strickland 727eaf1a0f [vm/compiler] Fix type propagation for Redefinitions.
In addition to the underlying type (stored as either a cid or an
AbstractType), CompileTypes also store two flags: whether a value of the
type can be null and whether it can be a sentinel.

When constraining the type of a definition via a RedefinitionInstr, the
resulting type should be nullable only if both the original and
constrained type are. Similarly, the resulting type should only allow
the sentinel value if both the original and constrained type do.

When the underlying type is represented by a cid, this was already
the case. When it is represented by an AbstractType, only nullability
was appropriately handled. This CL fixes it so that the possibility of
being a sentinel is also handled correctly in the latter case.

TEST=vm/cc/TypePropagator_RedefineCanBeSentinelWithCannotBe

Bug: https://github.com/dart-lang/sdk/issues/47739
Change-Id: I9d51b1c14ff385d522309f9c984a25dc6bdfbbf4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220767
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2021-11-19 16:35:27 +00:00
Konstantin Shcheglov 8b4dea23fa Issue 47726. Support for CatchClause.body in NodeReplacer.
Bug: https://github.com/dart-lang/sdk/issues/47726
Change-Id: I6eb301df8b1452660f06963008f9de861ea745d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220806
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 16:20:37 +00:00
Konstantin Shcheglov 1a23b6915f Remove unused ContentCacheVisitor.
Change-Id: Id3174b82db1e989e255c2a50f77dc533ec281f72
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220821
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 16:10:49 +00:00
Konstantin Shcheglov 7e6b3d83b8 Mark all Source.encoding implementations deprecated.
Change-Id: If12b9af54def3754a701477241d8364c283921ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220823
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 16:03:27 +00:00
Konstantin Shcheglov bb732826fb Stop implementing AnalysisTarget by Source, remove source and librarySource getters.
Change-Id: I3a1d81ea33641156dccc67b1ed486e449741a5e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220824
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-11-19 16:02:47 +00:00
Clement Skau 70488fc8f6 [vm] Elaborate on DartDev server error.
This change makes the error message consistent with a similar
message in sdk/lib/_internal/vm/bin/vmservice_server.dart.

Before:
  Could not start Observatory HTTP server

After:
  Could not start Observatory HTTP server:
  Invalid argument(s): A directory corresponding to fileSystemPath "/.../out/DebugX64/devtools" could not be found
  #0      createStaticHandler (package:shelf_static/src/static_handler.dart:50:5)
  [...]

Change-Id: Ie42d39d8c009b4ea403e1584a524567b3da20a45
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220742
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2021-11-19 13:45:38 +00:00
Daco Harkes 00ea62f713 [cfe/ffi] Handle invalid types in Array
Closes: https://github.com/dart-lang/sdk/issues/47673

TEST=tests/ffi(_2)/regress_47673(_2)_test.dart

Change-Id: I8fdafc5378797ed071250b0caed1ab944873a218
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220760
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2021-11-19 13:38:47 +00:00
Daco Harkes 1ade4ab96f [vm] runtime/include fix documentation
Makes runtime/include/** respect -Wdocumentation.

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

TEST=manually verified in Xcode we have no more warnings.

Change-Id: Id48f56bce2b3a3602e24f7187f45a2b32aafb9fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220762
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2021-11-19 09:43:38 +00:00
Daco Harkes 292b54e121 [vm] runtime/include specify void parameters
Makes runtime/include/** respect -Wstrict-prototypes.

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

TEST=ci (FFI has tests that build against the API).
TEST=manually verified in Xcode we have no more warnings.

Change-Id: I035640ae93e942946f5171dd30776b072a235990
Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try,dart-sdk-mac-try,vm-kernel-gcc-linux-try,vm-kernel-linux-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220761
Reviewed-by: Slava Egorov <vegorov@google.com>
2021-11-19 09:43:38 +00:00
Sam Rawlins c7625fc68d analyzer: Minor improvements to BestPracticesVerifier
* Change SCREAMING_SNAKE to camelCase
* Make `late final` fields `final` where possible
* Turn a getter into a memoized late field
* Delete outdated comments which no longer provide value

Change-Id: I789eb52c553e126ccf058252ff5ff1730f436b38
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220805
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-11-19 02:57:32 +00:00