Commit graph

85268 commits

Author SHA1 Message Date
Alexander Thomas 7e8ceadc03 Reland "[infra] Update checked-in SDK to 2.17.0-266.1.beta"
This is a reland of commit bf2c56afbf

Original change's description:
> [infra] Update checked-in SDK to 2.17.0-266.1.beta
>
> Bug: https://github.com/dart-lang/sdk/issues/48818
> Change-Id: Ic0658c7b60f12911f974f6580b3e378569b509c1
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241516
> Auto-Submit: Alexander Thomas <athom@google.com>
> Reviewed-by: William Hesse <whesse@google.com>
> Commit-Queue: William Hesse <whesse@google.com>

Bug: https://github.com/dart-lang/sdk/issues/48818
Change-Id: I24bf97ec016594db94e3eba53fe10fc7c179fb00
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241688
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2022-04-19 22:52:47 +00:00
Paul Berry 21b3e4f3da Consolidate common code between the two type schema environment tests.
Change-Id: I014f6024372e57577026f0a1f2dda905899c3b00
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241200
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-19 22:25:17 +00:00
pq 97b9f3f1cf fix over-application of unnecessary_string_escapes
Follow-up from: https://dart-review.googlesource.com/c/sdk/+/240905

Change-Id: I3b05a9f7cac9f58697d2feec086bc60f44285605
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241049
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2022-04-19 22:16:47 +00:00
Devon Carew 2a20d4be24 [pkg] ensure each publishable package has a repository pubspec field
Change-Id: I06c0d10c87c3f329098352a7abe9ef9fa0b1532e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241504
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-04-19 22:13:51 +00:00
Stephen Adams 5620ce110f [dart2js] late field helper need global impacts
This ensures that the helpers are seen as being part of the main unit
for deferred-load compiles.

Prior to this change, debug dart2js would assert:

$ sdk/bin/dart2js_developer  --test-mode --packages=.packages benchmarks/OmnibusDeferred/dart/OmnibusDeferred.dart  --out=om1c/o.js
org-dartlang-sdk:///lib/_internal/js_runtime/lib/late_helper.dart@343+1:
Internal Error: The compiler crashed when compiling this element.
The compiler is broken.

When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.

The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.

Please include the following information:

* the name and version of your operating system,

* the Dart SDK build number (build number could not be determined), and

* the entire message you see here (including the full stack trace
  below as well as the source location above).

The compiler crashed: 'package:compiler/src/deferred_load/output_unit.dart': Failed assertion: line 272 pos 12: 'unit != null': No output unit for member j:method(throwLateFieldNI)
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
#2      OutputUnitData.outputUnitForMember (package:compiler/src/deferred_load/output_unit.dart:272:12)
#3      OutputUnitData.hasOnlyNonDeferredImportPaths (package:compiler/src/deferred_load/output_unit.dart:306:33)
#4      KernelSsaGraphBuilder._tryInlineMethod.heuristicSayGoodToGo (package:compiler/src/ssa/builder_kernel.dart:5922:12)


Change-Id: Ic31c4894105a9a22eb0821a489c8dd2a4e3d0110
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241686
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-04-19 22:06:47 +00:00
Paul Berry 790bc74b5c Modify analyzer's techniques for fixing type parameters during inference.
Previously, the analyzer didn't actually fix the type parameters; it
simply stopped accumulating type constraints for them, and then
re-inferred them in later rounds of inference.  In theory this doesn't
actually fix the type parameters, since a type parameter can have an
"extends" constraint that causes it to depend on other type
parameters; if those type parameters change in later rounds of
inference, then the re-inferred type parameter might actually wind up
changing.  In practice I haven't been able to construct a
(non-erroneous) case where this actually occurs, but to make the code
easier to reason about, I think it's better to actually fix the type
parameters when we say we do.

This change makes the analyzer's type inference logic more similar to
the front end's type inference logic.

Change-Id: Ia1f86a27eaca98520903a2aba9d0359afd59e36f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241680
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-19 22:05:48 +00:00
Devon Carew 7378f6824b add a tools/OWNERS_GOOGLE3 owners file
Change-Id: I4b72b489a4057bfe1ab7b71058e853b81a13c00e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241046
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-04-19 21:31:07 +00:00
Mark Zhou b58d5f7cb6 [dart2js] Using strings for info ids for json dump info
Helps readability and ease of debugging for dump info.

Note: IDs only shadow each other for Class and ClassType info objects,
but these are already disambiguated with a serializedId that prepends
the info type to the ID.

Change-Id: Ie9862d474436cba85a972f567f606c1e3190b929
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240917
Reviewed-by: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-04-19 20:51:35 +00:00
Sam Rawlins 11a01c8fad Add a progress bar to completion_metrics
Progress bar largely taken from
https://github.com/dart-lang/sdk/blob/main/pkg/nnbd_migration/lib/src/utilities/progress_bar.dart

If there's a good common place (in package:analyzer?) to put this,
I'd be happy to do so.

Change-Id: Ic64ac98d8a8f5ae1cc036932364f37f10b837055
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241623
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-04-19 20:40:19 +00:00
Jake Macdonald aa1596735a support Set instances in macro arguments, add some more testing of various supported Argument types
Change-Id: I0d61a6d88dba41421fe8f3cbd3e14c62bbfa4843
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241682
Auto-Submit: Jake Macdonald <jakemac@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-19 20:18:38 +00:00
Alexander Aprelev e5c5963ef0 Revert "[infra] Update checked-in SDK to 2.17.0-266.1.beta"
This reverts commit bf2c56afbf.

Reason for revert: skia dart->engine autoroller still uses `pub`, which is removed in this update

Original change's description:
> [infra] Update checked-in SDK to 2.17.0-266.1.beta
>
> Bug: https://github.com/dart-lang/sdk/issues/48818
> Change-Id: Ic0658c7b60f12911f974f6580b3e378569b509c1
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241516
> Auto-Submit: Alexander Thomas <athom@google.com>
> Reviewed-by: William Hesse <whesse@google.com>
> Commit-Queue: William Hesse <whesse@google.com>

TBR=whesse@google.com,athom@google.com

Change-Id: Ibf5c8a277b900c05d917d9b765f38252edb968b9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/48818
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241684
Reviewed-by: Alexander Aprelev <aam@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2022-04-19 19:50:37 +00:00
Devon Carew 285e40ed95 [infra] validate pkg/ dep ranges against the packages DEP'd in
Change-Id: I17eac35f0cb1c88dc838b39fa2ac352799c4fd50
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241210
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-04-19 19:25:47 +00:00
Mayank Patke 7187b2efe9 [dart2js] Lower late field checks during SSA.
Change-Id: I80e7a30c6f2a461e46b4f52ebf7eb7a13fbc6227
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240501
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2022-04-19 19:01:27 +00:00
Ryan Macnak 32715d1d5b [vm] Mark ELF libraries produced directly by the VM as not requiring an executable stack.
Even if the main program disables executable stacks, dlopen'ing a library that doesn't itself disable executable stack will switch the stack to executable. (Presumably in the name of compatability with GNU nested functions.)

Dart does not need executable stacks, and executable stacks are an additional attack surface.

TEST=readelf
Bug: b/229648756
Change-Id: Ia8c234ebc6178a26528d37b1359a10dd42039a9b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241540
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-04-19 18:51:47 +00:00
Stephen Adams d2eb2197a3 [nnbd_migration] Roll up proposed edit count in header
The "Proposed Edits" panel displays the number of edits, but only when
this number not immediately displayed below and would need to be
calculated.

Change-Id: I89793305876d5488c9d14b03a91470ae3f4fe4f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241340
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-04-19 18:20:57 +00:00
Paul Berry 0ae5ca163b Rework type inference logic to avoid redundant constraint gathering.
Previously, the front end would perform downwards and upwards
inference using separate TypeConstraintGatherer objects.  This meant
that any constraint gathering work performed during downwards
inference had to be repeated during upwards inference.

This change avoids the extra work by using a single
TypeConstraintGatherer object for both downwards and upwards
inference.

This should help pave the way to implementing support for
https://github.com/dart-lang/language/issues/731 (improved inference
for fold etc.)

Change-Id: Ib4031ab1397d6a8547a705f386632de0e4dd1a2b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241120
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-04-19 18:08:12 +00:00
Robert Nystrom e5c83a3961 Update the set of directories scrape ignores containing language tests.
Since tests of our internal tools often deliberately contain edge cases
and unusual code constructs, scrape supports ignoring Dart files in
those directories in order to focus on more representative code.

This updates that ignore list to handle all of the various
compiler-related packages I could find.

Change-Id: I4006d2b3b14a81572f27db0b65e6c6194c4f7f54
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241506
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2022-04-19 18:06:47 +00:00
Danny Tuppeny 84fbee066e [analysis_server] Add KEYWORD highlight/semantic token for "var" in for loop
Fixes https://github.com/Dart-Code/Dart-Code/issues/3932.

Change-Id: Ie37dfb884761e0f23c05c9eb2ec5ea7f98f02a82
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241600
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-19 16:59:47 +00:00
Stephen Adams 47474fbcff [dart2js] Remove most of elements/operators.dart
The rich hierarchy of operators is no longer relevant since parsing
was moved to the common front-end.

All that remains is a Set of operator names that can be used to
declare instance methods.

This set is used for picking the 'operator' variety of Selector. I'm not
sure we even need operator selectors, but I am leaving that for future
consideration.

Change-Id: I7337c0cf82a3cb8f7ebf5fa17a737bac3a83f48b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241560
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-04-19 16:29:33 +00:00
Jonas Termansen effff0bbbc [benchmarks] Remove .packages from benchmark commands.
Bug: https://github.com/dart-lang/sdk/issues/48275
Change-Id: Ief3ff323726bdbb1870e989deb5372d88c3f4f3a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240843
Auto-Submit: Jonas Termansen <sortie@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2022-04-19 16:22:29 +00:00
Danny Tuppeny 422c23a9db [analysis_server] Wait for analysis context rebuilds when obtaining parsed/resolved results in LSP handlers
Fixes https://github.com/Dart-Code/Dart-Code/issues/3929.

Change-Id: I3176a603785b5e9546a4c1d7c3f818396eaec4bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241606
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-19 16:21:28 +00:00
Sam Rawlins 9c778054d1 Suggest 'else' in an if-element
Bug: https://github.com/dart-lang/sdk/issues/36733 and https://github.com/dart-lang/sdk/issues/48837
Change-Id: I4c846426c17fa7ebc5dd544b24f1667945a9f1a7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241214
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-04-19 16:08:21 +00:00
Danny Tuppeny be1caec9a0 [analysis_server] Fix textDocument/implements test
Change-Id: I6b99f4e17d19c99ad520cebd27a2cb738abdb683
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241601
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-19 16:07:10 +00:00
Konstantin Shcheglov 994b2e2f47 Deprecate newAnalysisOptionsYamlFile2(), use newAnalysisOptionsYamlFile().
Change-Id: Ia86808f649459e6c4c9c7d4e488273c1e593a85b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241515
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-19 15:49:57 +00:00
Konstantin Shcheglov 75819df327 Remove link2()
Change-Id: I2e180238c40a220c995e35e6ff2796358ceca480
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241514
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-19 15:48:13 +00:00
Devon Carew 9f398fd728 move runtime/tools/wiki/xref_extractor to package:lints
Change-Id: Ifdf6419bf42baa4dc6df1b4e140e6239d379fe36
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240916
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-04-19 15:39:57 +00:00
Brian Wilkerson 52e7099c66 Move state out of the completion domain so that handlers can share it
Change-Id: I71381f11725af109f5c6f67fa8ec28f04ab475a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241513
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-19 15:37:37 +00:00
Johnni Winther bf5aa0603d [cfe] Remove JumpTarget.parent
Only the 'fileUri' property was used, so we pass it directly instead.

Change-Id: I7b47f18f7ebc2c50036c5202e469caad4ba35897
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241009
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-04-19 14:27:37 +00:00
Chloe Stefantsova 6b2ee2d01f [cfe] Apply a recovery step for 'const' for-in variables
Closes https://github.com/dart-lang/sdk/issues/48808

Change-Id: I68177a6eb7f0a5d64dee6eca9befa9957863f26c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241604
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2022-04-19 14:09:27 +00:00
Chloe Stefantsova e307c0b6c4 [cfe] Allow extension members with names as Object static members
Closes https://github.com/dart-lang/sdk/issues/48834

Change-Id: If756cf5b3416b2ed9953fe577b8b2e9490a70dd1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241603
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2022-04-19 13:54:07 +00:00
Johnni Winther 4258a05798 [cfe] Remove LibraryBuilder.addBuilder
Remove LibraryBuilder.addBuilder to let the implementations in
SourceLibraryBuilder and DillLibraryBuilder to change independently.

Offset argument removed from DillLibraryBuilder.addMember and
'addX' members are in DillLibraryBuilder are made private.

Change-Id: If239ae441655d3d7f7484fd5e809cc015effd78c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241005
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-04-19 12:37:47 +00:00
Jens Johansen 4e4d9621e1 [CFE] Fix crash in type_inferrer with .clamp
`.clamp` is a special cased ternary operator and handled differently
from other calls.

In particular something as simple as `var x = 1.clamp(2, 3);` would
crash the compiler.

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

Change-Id: Icf65847ef3f4b41e60ed77fdc73440231d7c1e37
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241602
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-04-19 11:53:47 +00:00
Johnni Winther b297e41ea7 [cfe] Change nullability handling in legacy libraries
This changes two parts about handling of nullability in libraries:
1) Instead of using Nullability.nullable for explicit nullability in
   legacy libraries, which is an error case, we use Nullability.legacy
   so that legacy libraries only contain legacy nullabilities.
2) Avoid performing legacy erasure on parameter types. This change
   explicit `Never` from "Null" to the correct "Never*".

Change-Id: Iba2fa8244c8820375056d106f30d6de8054f2681
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240921
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-04-19 11:22:27 +00:00
Aske Simon Christensen fec466e3fe [dart2wasm] Add Wasm function references and more Wasm ref conversions
Having first-class Wasm function references makes it possible to call
JS function objects directly from Dart, and to call some Dart functions
(static functions with no optional parameters and no type parameters)
from JS as function objects.

Change-Id: I1c788338d418c8857493ec76560d74fdd17d5dd2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241001
Reviewed-by: Joshua Litt <joshualitt@google.com>
Reviewed-by: Jackson Gardner <jacksongardner@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2022-04-19 09:40:17 +00:00
Alexander Thomas bf2c56afbf [infra] Update checked-in SDK to 2.17.0-266.1.beta
Bug: https://github.com/dart-lang/sdk/issues/48818
Change-Id: Ic0658c7b60f12911f974f6580b3e378569b509c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241516
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2022-04-19 08:43:03 +00:00
Jens Johansen 7a0b8f850b [parser] Rename Token impl classes to avoid name conflicts
Change-Id: I72cefa071429b048facc16e2be0942077010072c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/238084
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-04-19 08:27:37 +00:00
Konstantin Shcheglov 20b560226e Rename newFile2() to newFile().
Change-Id: I1c2a4f15dee607a0a6241dfaf2d764a7d284389b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241510
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-19 02:59:57 +00:00
Ryan Macnak f76b6a8cc1 Reland "[vm] Add a timeline recorder that streams to a file."
Adjust TimelineEvent::PrintJSON to use JSONWriter for compatibility with PRODUCT mode.

TEST=ci
Change-Id: I694889c655719371364012b4324b7947d7b2d5e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240911
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-04-19 00:56:46 +00:00
Konstantin Shcheglov aee65337ec Deprecate 'ParameterElement.isNotOptional', use 'isRequired' instead.
Change-Id: I1782f6d9803cf7829489904fe2833b2724f8be6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241512
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-04-19 00:18:07 +00:00
Brian Wilkerson 4e6bb1722c Fix a bug in convert_to_super_parameters
Fixes: https://github.com/dart-lang/sdk/issues/48831
Change-Id: I7f4e490849750ef48ece2a925be13621e07bdcb8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241505
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-19 00:01:37 +00:00
Brian Wilkerson af0464a652 Convert flutter domain to handlers
Change-Id: I2a2c0689ee3f0a4e1ab0b6edb134f53c44b050c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241509
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-18 23:15:27 +00:00
Ryan Macnak fd10f5ab28 [vm, gc] Avoid unnecessary nested GcSafepointOperationScopes.
TEST=ci
Change-Id: Ic12d6d1766cf90808716d301abfa216eb597cb1f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241201
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-04-18 23:14:37 +00:00
Konstantin Shcheglov 8f7cdd250e Record MacroApplicationError(s) into elements.
Change-Id: Ica1de1d1c9abbab06ae0b9c062ba3f91d1c12fa9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241508
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-18 22:47:47 +00:00
Ryan Macnak 2c72ea6e03 Reland "[vm] Tweak --verbose_gc."
Remove change to Scavenger::UsedInWords.

TEST=--verbose_gc
Change-Id: I2e4d7f369e7d7c34e488a5c0994a7599a2e78be9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241244
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-04-18 22:30:36 +00:00
Vyacheslav Egorov eff9944c4f [vm] Fix __unwind_info generation for ARM64 Mach-O
LLVM seems to prefer generating __unwind_info instead of __eh_frame
on certain targets. Unfortunately the way we use CFI directives
in assembly snapshots results in incomplete __unwind_info:
only the first function in the instruction snapshot gets unwinding
information recorded properly.

To fix this we change assembly writer to emit CFI directives
inside each individual function.

TEST=manually via `objdump -u`

Fixes https://github.com/flutter/flutter/issues/101708

Change-Id: I027bfe6483dcd7f7e39ab23154abfe12ebc478da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241282
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2022-04-18 22:17:54 +00:00
Devon Carew 8cc43aebcb Move runtime/tools/dartfuzz to package:lints.
Change-Id: I55cb7c3a832879202d9be225dcfdce3a12e25487
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241149
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-04-18 22:17:50 +00:00
Devon Carew 26043c95cf Move pkg/scrape to package:lints.
Change-Id: I56eb8d0410ab529a434c540a67028f8ebe441c4d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240913
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-04-18 22:09:50 +00:00
Stephen Adams 65bbfca88d [dart2js] Split entities.dart to migrate some definitions
- migrate elements/jumps.dart, elements/names.dart, ir/util.dat

Change-Id: I57fc9c42dc0cca407bba38dfbf89fe7bfa6bd15d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241380
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-04-18 22:09:47 +00:00
Brian Wilkerson 98f17295ff Convert the search domain to handlers
Change-Id: I3254c1358fcd8ee19fd6b40f9abe4dfbfa0832d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241503
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-04-18 22:01:10 +00:00
Ryan Macnak da89828077 [vm] Remove hooks for the embedder to provide a task runner in lieu of the VM's thread pool.
This reverts commit dc3cf83bb6.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/44228
Change-Id: Ia8da6424fd4ebc67e0a2a50e37b1930b4aea5628
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/231042
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-04-18 20:34:57 +00:00