Commit graph

79643 commits

Author SHA1 Message Date
Robert Nystrom df5d0a5f4e Tweak Markdown in CHANGELOG.
Change-Id: If568c551e8183d81ab02a1822deb3979165561f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199861
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2021-05-17 21:55:02 +00:00
Ben Konyi f99c918ee8 [ CLI ] Improve consistency of help messages between commands
Updated some formatting and added '[vm-options]' to relevant commands
when '--verbose' is provided.

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

Change-Id: Ic4ccd81290ccf4000b0bce7d5dba63c469fb4c20
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200283
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-05-17 21:20:22 +00:00
Konstantin Shcheglov 34cf0dd7d7 Remove reference tracking from ReferenceResolver.
R=brianwilkerson@google.com

Change-Id: I804e20813879e9722a94328f285d03d657810c6d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200286
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-17 20:54:32 +00:00
Jacob MacDonald 4da697ce56 fix todos linked to issue #38725
Change-Id: I06fd71b4027673105be8a3219af61fbc9b93e216
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200282
Auto-Submit: Jake Macdonald <jakemac@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-05-17 20:51:52 +00:00
Konstantin Shcheglov 33231b3005 Issue 46039. Disable hasImplicitType for field formal parameters.
Bug: https://github.com/dart-lang/sdk/issues/46039
Bug: https://buganizer.corp.google.com/issues/188405800
Change-Id: Iefbe86ffd49c00aa25143f7495a981d4e15f3dae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200280
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-17 20:31:17 +00:00
Konstantin Shcheglov d13a2532a4 Issue 188359091. Fix for type inference using extension getters.
Bug: https://buganizer.corp.google.com/issues/188359091
Change-Id: I2c24353686b251e791b4f5f9521972c22455c0c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200284
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-17 20:24:02 +00:00
Sam Rawlins 2bcc415510 analyzer: Report unnecessary import directives.
In a given library, every import directive has a set of "used
elements," the subset of elements provided by the import which are
used in the library. In a given library, an import directive is
"unnecessary" if there exists at least one other import directive
with the same prefix as the aforementioned import directive, and a
"used elements" set which is a proper superset of the
aforementioned import directive's "used elements" set.

https://github.com/dart-lang/sdk/issues/44569

Change-Id: I4da43be36837cdafb07a0ab67a94e644f351e593
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/177221
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-05-17 20:23:12 +00:00
Konstantin Shcheglov 53b08e35fb Stop using linked nodes for executable elements and properties.
Change-Id: I148f26c43fd7e9b109a57890044dfedb9ee17066
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200140
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-17 20:07:12 +00:00
Devon Carew d58dc0237f add package:lints to the sdk DEPS
Change-Id: Idb69b515ec6dc305a45171caf0b9808e6a91188d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200281
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-05-17 19:53:22 +00:00
Liam Appelbe 8fd81f7228 [vm] Fix NPE in IsFfiCompound
Ran into this error when trying to set up a finalizer with an Object
owner. The super class is null in this case.

Change-Id: I27f67a738c72c0b433e367257c638a6d3d2e495f
TEST=ci and manual testing
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199602
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2021-05-17 18:12:02 +00:00
Sam Rawlins a4d8a6aa34 Remove unnecessary imports in pkg/frontend_server
In each library where an import is removed, the library uses some elements
provided by the import, BUT there is another import which provides all of the
same elements, and at least one more which the library uses.

In this change, we remove the imports which can be simply removed in favor of
the other already present imports.

See https://github.com/dart-lang/sdk/issues/44569 for more information.

Change-Id: I3d4fea152048232b44db2f931a5be2c17b5c0f18
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199463
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-05-17 17:37:42 +00:00
Alexander Aprelev 0aeb8731e5 [vm] Use recognized method for has63BitSmis, drop static final field.
This should improve performance of lightweight isolates configuration

TEST=ci, perf benchmarks

Change-Id: I98ac9a7e02318d58db3431a6d33f08ab95e607fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199700
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2021-05-17 17:22:13 +00:00
Lasse R.H. Nielsen c88d8163c0 Update documentation for num.operator< and other members.
Fixes #46015.

Bug: http://dartbug.com/46015
Change-Id: I6a8b245e10c644df84f767df4f24404b332af9b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200189
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2021-05-17 16:56:22 +00:00
Devon Carew 5d95b760a3 [dartdev] rev the version constraint on package:lints
Change-Id: Ib7b1fad99b97e779fb8f929cc8e3d7b7837ccab0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200040
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-05-17 15:37:50 +00:00
Danny Tuppeny eb2e8698bc [analyzer] Escape function names used in LSP snippet completions
Fixes https://github.com/dart-lang/sdk/issues/46019.

Change-Id: Ie4413fe013d7251e579f548e61674a8a4fc1d5df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200185
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-05-17 15:15:20 +00:00
Paul Berry b2281e14f3 Add language tests for parsing behaviors around type arguments.
In these tests I've tried to test a lot of the corner cases
surrounding the addition of a `<type arguments>` selector to the
grammar (which we intend to do as part of constructor tearoffs), to
make sure that when we do so, we don't break any existing
functionality.

Change-Id: I765195cdd3745904f4aeb36663f59afe03381ab8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200001
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-05-17 15:07:41 +00:00
Paul Berry 7584faf37c Visitor changes to support constructor tearoffs.
Change-Id: I8e00eb6094733238549ca259e4355032fc8c1cea
Bug: https://github.com/dart-lang/sdk/issues/46020
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199681
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-05-17 14:58:41 +00:00
Lasse R.H. Nielsen 46ceec41d2 Remove references to enabled nonfunction-type-aliases experiment.
Change-Id: I0cfd2ad9e59c985f632d7038a64d903f6b472dd1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199480
Auto-Submit: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2021-05-17 13:17:20 +00:00
Martin Kustermann f39b799860 [vm] Cleanup annotation/pragma detection logic in kernel loader
Annotations are evaluated in the CFE and the VM does therefore
not encounter any AST nodes anymore.

TEST=Existing test suite.

Change-Id: Id0ac60cf0d1a8d1667c79541c1de66765778ce90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200183
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
2021-05-17 13:14:00 +00:00
Martin Kustermann aa91e8c433 [vm/compiler] Ensure TTS stubs can handle types where the tav is at large offset
If the type arguments vector gets introduced in subclasses where the
base classes have already many fields we may not be able to load the TAV
in one instruction on ARM64.

Issue https://github.com/flutter/flutter/issues/82278

TEST=vm/dart{,_2}/flutter_regress_82278_test

Change-Id: I164ef42af3afe8267fe23a8a11af9401776eccdb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199481
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2021-05-17 11:03:20 +00:00
Clement Skau 9b16765cbb [tool] Fixes crash in tools/minidump.py
Fixed by migrating to dict.items() which is available in both python2
and python3.

TEST=Manual testing in python2 and python3.

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-win-release-x64-try
Bug: https://github.com/dart-lang/sdk/issues/46029
Change-Id: I1c8363dfc44dc39f2430f84c4f22631a2e7203cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200184
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2021-05-17 10:30:30 +00:00
Aske Simon Christensen bee609fd6b [cfe] Support generating new invocation nodes in the late lowering pass.
Change-Id: If066f901f0d4fe473d6585c322ec0b38fa8cfe06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198640
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2021-05-17 09:45:20 +00:00
Jens Johansen 7ed18b56d9 [parser] Fix potential infinite loop + too much reading when recovering
Change-Id: I0a60b3b352395192ef0a1405e66827bcdec63007
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198762
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2021-05-17 09:43:30 +00:00
Emmanuel Pellereau b8c5ecd5aa Revert "[ package:dds ] Add null safety support"
This reverts commit a527411e51.

Reason for revert: depends on package 'devtools_shared' that is not yet migrated.

Original change's description:
> [ package:dds ] Add null safety support
>
> Fixes https://github.com/dart-lang/sdk/issues/45756
>
> TEST=service + DDS tests
>
> Change-Id: I6dd14d7f9fdee479a830c3b053dc3b00aa635202
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199800
> Commit-Queue: Ben Konyi <bkonyi@google.com>
> Reviewed-by: Devon Carew <devoncarew@google.com>

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

Change-Id: Icdaef3ac55d7ef302acd3f9c2538a41e52e4253a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200180
Reviewed-by: David Morgan <davidmorgan@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2021-05-17 08:12:20 +00:00
Clement Skau 18483f395b [test] Makes async_throws_stack_*_test more lenient
TEST=runtime/tests/vm/dart{,_2}/causal_stacks/utils.dart

Bug: https://github.com/dart-lang/sdk/issues/44709
Change-Id: I33d6cd82dac99eb43e58ad16026447f14a9740c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199425
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-05-17 07:21:10 +00:00
Konstantin Shcheglov 7daec44cc8 Use just elements for field formal parameter type inference.
Change-Id: I967f775879519006eaa7b157435a3cf1400bef90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200120
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-17 07:08:00 +00:00
Sam Rawlins f616231c08 analyzer: Move 'implicit-casts: false' tests to their own test library
Change-Id: I6107fe62b8964daf7a778a64f0cab0a7c309f088
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199862
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-05-17 00:40:50 +00:00
Brian Wilkerson 4e4f07eb22 Unify two tables mapping error codes to fix generators
This doesn't change the way any of the fixes can be applied, nor the set
of fixes associated with any code. It merely finishes a re-organization
task that was started earlier.

Change-Id: I911961fe5ec2aea211a6f0a51db24a4c4b32be26
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200061
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-05-15 17:07:29 +00:00
Konstantin Shcheglov ca005159ac Stop using linked nodes for constructors.
Change-Id: I4ea147e415f4d622db3209184f02c630b75d0ecf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200060
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-15 17:03:19 +00:00
Alexander Markov fc15991ba7 [vm] Include constants into expectations of pkg/vm unit tests
TEST=existing tests

Change-Id: Ia7a7cde20d1e066bd551ed7a6e969d1fe27adc5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200041
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-05-15 16:31:59 +00:00
Paul Berry 81c45e4455 Non-breaking AST changes to support constructor tearoffs.
Change-Id: Ic82dd28135ccaa2d5b42898642a1d6e1e0868cb0
Bug: https://github.com/dart-lang/sdk/issues/46020
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199680
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-05-15 14:16:09 +00:00
Brian Wilkerson 11bbea8797 Generate a name for closure parameters when the argument parameter has no name
Change-Id: I75e860a2ead6296c87cd3ea0b3775f455f78eeea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200042
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-05-15 04:51:19 +00:00
Konstantin Shcheglov 88d28f9cb4 Stop using linked nodes for fields.
Change-Id: Ic1b42e18b7e7e0f62c2ac909385b70e4a39d41dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200043
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-15 01:09:28 +00:00
Joshua Litt dda987b915 Fix native_exception1_frog_test.
Change-Id: Iec4e506dc896eca832c18da85395c6035704e7f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200020
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2021-05-14 23:13:28 +00:00
Alexander Markov 56c3d1e0e3 [vm] Do not rely on function access kind in FunctionInvocation nodes
New FunctionInvocation nodes have explicit static type information such
as function access kind and function type. However, an attempt to use
this information revealed that it is less accurate compared to the old
call site attributes metadata
(see https://github.com/dart-lang/sdk/issues/46003 for details).

This change reverts back to using call site metadata when building
flow graph for FunctionInvocation nodes. It fixes regression of
ListCopy benchmark with new invocation nodes.

TEST=benchmarks/ListCopy/dart/ListCopy.dart with new invocation nodes

Issue: https://github.com/dart-lang/sdk/issues/45340
Issue: https://github.com/dart-lang/sdk/issues/46003
Change-Id: I73e5fae49b8056365211989e6e656544c79bcc50
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199563
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-05-14 22:10:48 +00:00
Ryan Macnak 879952bfe8 [vm, compiler] Account for garbage in the upper half of compressed Smis in Bigint intrinsics.
Cf. 8db0a975c1

TEST=ci
Change-Id: I0ccb1d53663631b206a5c30576867145160550bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199940
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-05-14 21:22:38 +00:00
Konstantin Shcheglov 7cb9a3aff7 Stop using linked nodes for methods and enums.
Change-Id: If9628f1a1719a8a2f87849fd3a3d04ba0b0d1e63
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-14 21:17:28 +00:00
Ryan Macnak 634fc10c52 [vm, compiler] Account for garbage in the upper half of compressed Smis in String intrinsics.
Cf. 8db0a975c1

TEST=ci
Change-Id: I60b0fb82504d1d4d3b2e65b7ca1af82b5ca88bc3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199961
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-05-14 20:37:28 +00:00
Sam Rawlins 64c2dd6193 Remove "unnecessary" imports in pkg/kernel
In each library where an import is removed, the library uses some elements
provided by the import, BUT there is another import which provides all of the
same elements, and at least one more which the library uses.

In this change, we remove the imports which can be simply removed in favor of
the other already present imports.

See https://github.com/dart-lang/sdk/issues/44569 for more information.

Change-Id: Ifebf11894fd62280b20230aa6d66de41cf6baae8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199462
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-05-14 20:18:18 +00:00
Konstantin Shcheglov ea358c3e56 Fix most lints in generated code, ignore some.
Change-Id: I8cbec49d99db9477fcfd761c150d28401863828b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199980
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-14 19:48:48 +00:00
Alexander Markov d39e794cc3 [vm/aot] Keep pragmas on VariableDeclaration nodes in tree shaker
VM can use pragmas on local functions, which are actually put on
VariableDeclaration nodes. This change teaches TFA tree shaker to
keep such pragmas.

TEST=pkg/vm/testcases/transformations/type_flow/transformer/pragmas.dart
Issue: https://github.com/dart-lang/sdk/issues/45987
Change-Id: Ic2db375a93b539a131eca2431bef0e317a4d1b2b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199520
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-05-14 19:20:28 +00:00
JustWe b1c961233d [analyzer] verify annotation's const expression deferred imported error.
try to fix: https://github.com/dart-lang/sdk/issues/45418

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

GitOrigin-RevId: 199c3bf0bdd7f834c9e10945a643d489e4b3658f
Change-Id: If465611ac01de679905b5bd7afefb1d9e0a70224
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196640
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-05-14 17:17:58 +00:00
Konstantin Shcheglov d4aef249b4 Fix using deprecated AnalysisSession APIs in dartfuzz.
Change-Id: I1d4ae47de90aa1465b009960e75de68ab3a9a317
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199880
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-05-14 17:12:38 +00:00
Konstantin Shcheglov d8f16966df Stop using linked nodes for top-level functions, property accessors, variables.
Change-Id: Ie21f863327a50ce5ab63940a4feecd56a3763ca1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199464
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-14 16:57:08 +00:00
Stephen Adams 4340cb17ff [dart2js] Simplify Namer interface
We no longer use constructors as tokens for a type, and no longer use
constructors or '$is' markers for function typedefs.

- globalPropertyNameForType can be removed,
- runtimeTypeName is removed as it is redundant with className
- `className` is the remaining Namer method returning the globally unique name for a class or interface type.

Removed Namer.fieldPropertyName, as all fields with property names
are handled by instanceFieldPropertyName.


Change-Id: Ie8bc7498bec75a0416ba30e1cd861636fdfae464
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199860
Reviewed-by: Joshua Litt <joshualitt@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-05-14 16:26:28 +00:00
Konstantin Shcheglov a3a2c0a02d Pack flags into bytes in summaries format.
This makes SDK summary about 15% smaller.

Change-Id: Ie29ac08c94b3e5712b576efec5875e799811dd2f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199900
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-14 16:17:28 +00:00
Konstantin Shcheglov ca8ea7b331 Fix most pedantic lints in dartfuzz.
There is a lot of violations in the generated code.
Will fix it separately.

Also, there are more deprecated package:analyzer API usage.
Will fix it separately.

Change-Id: Ib2ead22925df9a5012cd331c0fb5cf62946561bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199881
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-14 16:17:19 +00:00
Ben Konyi a527411e51 [ package:dds ] Add null safety support
Fixes https://github.com/dart-lang/sdk/issues/45756

TEST=service + DDS tests

Change-Id: I6dd14d7f9fdee479a830c3b053dc3b00aa635202
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199800
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2021-05-14 15:47:38 +00:00
Devon Carew 15187a692d [dartdev] refactor the 'dart migrate' package:args command
Change-Id: Id9f2a5289b75bb26258925f7686d32f4f6a0eb51
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199760
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-05-14 15:30:18 +00:00
asiva fb90f11f4b [dart:io] - Fix incorrect setting of socket options for UNIX-DOMAIN sockets
- setting of UNIX-DOMAIN socket options was not throwing the correct error
- listen in HTTPServer was trying to set TCP_NODELAY for UNIX-DOMAIN sockets

Fixes :
 https://github.com/dart-lang/sdk/issues/45977
 https://github.com/dart-lang/sdk/pull/45978
 https://github.com/dart-lang/sdk/issues/45975

TEST=new test cases added

Change-Id: Ie0341f26b1ba0f9423c08a8de968053a2af1c730
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199640
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2021-05-14 01:53:48 +00:00