Commit graph

86859 commits

Author SHA1 Message Date
Jens Johansen 812b9c972c [CFE] Fix weekly bot #103
Change-Id: I214fb61b97885ea8a2219b3deef3e05a72adcb49
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254162
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-08-10 06:17:10 +00:00
Srujan Gaddam db6a10ccbf [pkg:js] Add changes to factory_stub_test to web_2
https://dart-review.googlesource.com/c/sdk/+/249546 did not copy
over the changes to web_2.

Change-Id: Iad91768ab18e1608d8d0dadb854708de5b1d502a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254342
Reviewed-by: Riley Porter <rileyporter@google.com>
Commit-Queue: Riley Porter <rileyporter@google.com>
Auto-Submit: Srujan Gaddam <srujzs@google.com>
2022-08-09 23:52:05 +00:00
Konstantin Shcheglov a1b90438e8 Prepare to publish analyzer 4.5.0 and _fe_analyzer_shared 45.0.0
Change-Id: I0ab45251f8a7e87b70ce6dfd1f964da7d2cc6e9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254282
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-08-09 22:42:26 +00:00
Ryan Macnak c74affb002 [build] Explicitly link against pthreads on Linux.
Some symbols appear to be here instead of libc on ARM64.

Cf. 2c5ff0bd1a.

Change-Id: I21345e8277c802db9f5652eca5e605107ea2d794
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254261
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-08-09 22:30:35 +00:00
Konstantin Shcheglov 7e86f2e71c Deprecate 'TypeSystem.instantiateToBounds2()', use 'instantiateInterfaceToBounds()' or 'instantiateTypeAliasToBounds()'.
Change-Id: Id706edc41e482ccff44038f922732d2ecea7c735
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254320
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-08-09 21:41:35 +00:00
Ryan Macnak d1112d37bd [vm] Recognize unmodifiabled typed data views.
These types now work with Dart_TypedDataAcquireData.

The presence of these types no longer degrades the performance of typed data indexed loads.

The presence of these types degrades the performance of typed data indexed stores much less. The performance of indexed stores is somewhat regressed if these types were not used.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/32028
Bug: https://github.com/dart-lang/sdk/issues/40924
Bug: https://github.com/dart-lang/sdk/issues/42785
Change-Id: I05ac5c9543f6f61ac37533b9efe511254778caed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253700
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-08-09 20:57:05 +00:00
Oleh Prypin 709b878c07 Revert "[deps] rollback the rev of package:http"
This reverts commit 947a1f9627.

Reason for revert: we now know how to import this change

Original change's description:
> [deps] rollback the rev of package:http
>
> Bug: b/241795598
> Change-Id: I3b78dbdea3ba343f42ab3a59eb41bc4df605ee6c
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254061
> Reviewed-by: Oleh Prypin <oprypin@google.com>
> Commit-Queue: Oleh Prypin <oprypin@google.com>

Change-Id: I5e5d75af65ed51fd2e56bb6682b1cc3d9f99dafb
Bug: b/241795598
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254223
Reviewed-by: Oleh Prypin <oprypin@google.com>
Commit-Queue: Oleh Prypin <oprypin@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2022-08-09 18:39:46 +00:00
Nicholas Shahan fa47a0547c [web] Make environment nullable in more places
It appears that the environment was intended to be nullable in
some type constructions.

DDC running in weak mode can fail when null is passed as an argument
that is typed to be non-nullable.

Change-Id: I2c67efacc1166e6053ef8d8d7820de2c022c5e1b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253706
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2022-08-09 18:22:55 +00:00
Mark Zhou e3a91f01d3 [ddc] Adding a header comment to DDC-compiled JS.
Displays platform compilation information, module name, and some flags.

Example output:
// Generated by DDC, the Dart Development Compiler (to JavaScript).
// Version: 2.19.0-edge.4d13ff534d0c078ce1140cee1f7f2e112b9df96b (be) (Thu Jul 21 02:51:32 2022 +0000) on "macos_arm64"
// Module: hello_world
// Flags: canary, soundNullSafety(false), enableAsserts(true)
// Experiments: someExperiment

Change-Id: I5966b9653e17dd5ccd897135f8264598dff52ea7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253605
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2022-08-09 18:04:45 +00:00
Nicholas Shahan 21bc7377aa [ddc] Avoid tagging late local lowering methods
Late local variables are lowered to local get and set functions.
These functions should never need to be tagged with their types.

Avoids including and executing unneeded code in the compiled
output.

Change-Id: I0c7448147a2b5493f818a66dcebae827c36c5330
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253825
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Anna Gringauze <annagrin@google.com>
2022-08-09 17:58:06 +00:00
Konstantin Shcheglov f4c009dc33 Deprecate Declaration.declaredElement, use 'declaredElement2' instead.
This is necessary to separate `ClassElement`, `EnumElement`, and `MixinElement`. And, in the future, augmentations like `ClassAugmentationElement`, etc.

Change-Id: Iecd2f8707212e53ef56f0e101880c7bab9e5d057
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254104
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-08-09 17:26:06 +00:00
Konstantin Shcheglov f9ba5c03df AST for RecordTypeAnnotation.
Change-Id: I3d52c97fe4f01cfb06923829e6e519d1990ae62b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254120
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-08-09 17:08:56 +00:00
Ivan Inozemtsev 3344e06416 Reland "[vm] Require exact operating system match for snapshots with code"
This is a reland of commit 5b144f2ecb

TEST=ci

Original change's description:
> [vm] Require exact operating system match for snapshots with code.
>
> TEST=ci
> Change-Id: Ifb9e673f4aef0d42c2ef058174051ed6ed20b17b
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252844
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Reviewed-by: Brian Quinlan <bquinlan@google.com>
> Commit-Queue: Ryan Macnak <rmacnak@google.com>
> Reviewed-by: Alexander Markov <alexmarkov@google.com>

Change-Id: I5d64815a78be571873de85344ae7f8dabf55a91a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254203
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-08-09 15:40:42 +00:00
Alexander Markov 1d985a58cd [vm/compiler] Avoid adding the same ConstantInstr both to GraphEntry and FunctionEntry initial definitions
Each instruction should appear only once in the flow graph.
Before this change a ConstantInstr from initial definitions of
GraphEntry could be also added to initial definitions of FunctionEntry.

This is also a step towards https://github.com/dart-lang/sdk/issues/36894.

TEST=ci

Change-Id: I042258dced99cbf5a908028427da2cb5a8b0d329
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253840
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-08-09 13:58:52 +00:00
Johnni Winther a7d303f438 [cfe] Split inference libraries
This adds
* for_in.dart with ForInResult and ForInVariable classes
* inference_results.dart with all *Result and NullGuard classes
* inference_visitor_base.dart with InferenceVisitorBase and its helpers
* mixin_inferrer.dart with MixinInferrer
* object_access_target.dart with the ObjectAccessTarget classes

Leaving
* inference_visitor.dart with InferenceVisitor(Impl) and helpers
* type_inferrer.dart with TypeInferrer(Impl) and helpers

Makes
* closure_context.dart a library instead of a part

Change-Id: Ib26fae2f2b2ee6c18edcd32dc12d35d1072d4a8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254020
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-08-09 13:04:42 +00:00
Johnni Winther 0ecbce1f9e [cfe] Refactor ObjectAccessTarget
This moves the receiver type to ObjectAccessTarget together with the
getGetter/Setter/Function...Type methods.

Change-Id: Id6afe9bb23f2667f86401732e42f1f49069d06a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253980
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-08-09 12:36:22 +00:00
Michael Thomsen c34b72482e Remove deprecated APIs from dart:convert
Contributes to bug: https://github.com/dart-lang/sdk/issues/34233

Change-Id: I443fa14342680b61bf7357d40347427200fea29b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247741
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2022-08-09 10:21:22 +00:00
Brian Wilkerson 0a1793eb5d Move the tests for legacy refactorings
This reflects the recent change to the implementation classes.

Change-Id: I0867a274c830d34f46c858713f0df511b7b811c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254066
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-08-09 04:22:42 +00:00
Brian Wilkerson 858b89a10b Update the fix status of a couple of diagnostics
Change-Id: Ia62ee0f45db47895135427e019f1c558dee044fa
Closes: 49616
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254067
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2022-08-09 04:22:22 +00:00
Johnni Winther c3313e85e1 [frontend_server] Add support for advanced invalidation
Update the JavaScript bundler to maintain the state necessary for
the alternative invalidation strategy. This will provide the
javascript compiler with a single library component, so this must
handle re-combining this library with any SCC as well as keeping
the old summaries around.

Revived from https://dart-review.googlesource.com/c/sdk/+/196840

Change-Id: I1dd59d813172ac68ffcb189fcf3904c844828773
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251960
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2022-08-09 00:02:31 +00:00
Ryan Macnak 2c5ff0bd1a [build] Update Linux sysroots from jessie to bullseye.
Change-Id: I90022916b13e61717b7e38c6ccab914ae1a5c18e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254080
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2022-08-08 23:05:31 +00:00
IslinaS f5e4113454 [dart2js] Convert program info with main and deferred units into a treemap
Change-Id: Ie0b4d1549ff9f8dd05896012a42222a71cda8adf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253561
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Islina Shan <islinashan@google.com>
2022-08-08 23:03:30 +00:00
Devon Carew 947a1f9627 [deps] rollback the rev of package:http
Bug: b/241795598
Change-Id: I3b78dbdea3ba343f42ab3a59eb41bc4df605ee6c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254061
Reviewed-by: Oleh Prypin <oprypin@google.com>
Commit-Queue: Oleh Prypin <oprypin@google.com>
2022-08-08 22:44:00 +00:00
Konstantin Shcheglov 75b8b916d6 Deprecate ClassOrMixinDeclaration, use ClassDeclaration or MixinDeclaration.
Change-Id: I23e292e9f7c4413edf9b068f057dd02794db21a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254064
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-08-08 21:40:40 +00:00
pq 11e2bf94e3 linter 1.27.0
Flutter engine fixes: https://github.com/flutter/engine/pull/35100
Flutter tools fixes: https://github.com/flutter/flutter/pull/108836
Flutter plugins test fixes: https://github.com/flutter/plugins/pull/6173
Flutter plugins script fixes: https://github.com/flutter/plugins/pull/6175
Flutter plugins testing/scenario_app: https://github.com/flutter/engine/pull/35165

(Internal) linter test execution fixes: cl/464897186


Change-Id: Ica7cbcba7599d1367fc67e088ff634398a160df7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253501
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-08-08 21:40:30 +00:00
Brian Wilkerson a4f21c8754 Add a capability for command parameters
Change-Id: Id52b323ebb16fbd90c19ee43704dff03dac92336
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254060
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Danny Tuppeny <danny@tuppeny.com>
2022-08-08 19:54:21 +00:00
Paul Berry d1dcbeb973 Flow analysis: move _promotableFields out of PromotionKeyStore.
This improves separation of concerns, since the `PromotionKeyStore`
class isn't really concerned with what fields are promotable; it's
just a mechanism for assigning unique integer identifiers to
promotable things.

I've moved `_promotableFields` to the main `_FlowAnalysisImpl` class.
To avoid having to add it as a separate argument to a lot of
[FlowModel] methods, I've created a new [FlowModelHelper] interface
that provides these methods with access to several fields in
`_FlowAnalysisImpl`.

Change-Id: I0280d0c0b95714521afbe68a07e7b3b54f23b7df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254003
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-08-08 18:18:10 +00:00
Devon Carew d9a47e3d02 [deps] rev deps for args, http, protobuf, shelf, typed_data, and webdev
Change-Id: I6181c1a2e52376657ecc12920d7febc4fd3fc510
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254004
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2022-08-08 17:48:40 +00:00
Joshua Litt b99140115b [dart2wasm] Fix some js interop related issues.
Change-Id: Id189c53c7a4c536c703b0b9e83265a81d0c14094
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253609
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-08-08 17:29:40 +00:00
Nicholas Shahan 9939ff116c [ddc] Ensure status file entries are consistent
Compilers named "dartdevc" and "dartdevk" should be listed together
at all locations. These are now aliases for the same compiler
across different configurations.

In the future these names should converge on "dartdevc".

Some skipped tests for "dartdevc" no longer need to be skipped but
currently there are no configurations are running those tests with
that compiler name so removing the skips shows no change in test
results.

Change-Id: Ieca27fbe497c4768293de125b14c694666dc8a8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253821
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2022-08-08 17:23:50 +00:00
Paul Berry 99616e9da0 Flow analysis: create test harness using a setUp() call.
In a future CL, this will allow me to move flow_analysis_test.dart's
global variable _promotionKeyStore into the testing harness, which is
a prerequisite for some clean-up work I'm doing on flow analysis.

Change-Id: I44943b2706e237213896164910b4c6f488aa2794
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253901
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-08-08 16:58:21 +00:00
Brian Wilkerson bf4e7ade23 Re-organize the analysis server documentation
This is in preparation for adding new documentation.

Change-Id: Icf77b898d3e0b2c6ae0c71419e70ecd6248c86e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254002
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-08-08 16:55:30 +00:00
Michael Richards df87c7819e [frontend_server] This adds a more complete set of compiler options to the resident frontend server, allowing for AOT compilations and more options when used by the run cli command. This also adds the ability for the resident frontend server to shut itself down after a period of inactivity.
Change-Id: I1ac52c0bb7186e840c0af5aa48da42868bb41958
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253640
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Michael Richards <msrichards@google.com>
2022-08-08 16:24:20 +00:00
Pierrick Bouvier 1fed9b5bed build: recognize python architecture for Windows on Arm ("ARM64")
Closes https://github.com/dart-lang/sdk/pull/49611

GitOrigin-RevId: 93ba2c7c4975f45969d3d68eecab020659d1c64e
Change-Id: I73973eec8b635ef6e43e2c4d786ad8b128e4bfe3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253905
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2022-08-08 16:08:30 +00:00
Alexander Markov 964c756faa [vm/compiler] Unify VariadicDefinition and VariadicDefinitionWithEmbeddedInputs
The unified base class for instructions with variable number of inputs
now keeps inputs in GrowableArray<Value*> (no indirection, no extra zone
memory allocation).

InputsArray is changed to GrowableArray<Value*> instead of
ZoneGrowableArray and passed as rvalue reference.

TEST=ci (pure refactoring)

Change-Id: I4a6f6835516c118c2b924720bcd8a964858e4368
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253820
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2022-08-08 15:58:40 +00:00
Danny Tuppeny 56f8caa9d4 Mark env as required on DartAttachRequestArguments
Fixes a TODO.

+ some minor comment improvements.

Change-Id: I1f6249376e3891e0d20f01269493ffcc4d9aec55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253940
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-08-08 13:33:20 +00:00
Paul Berry 09d13f194d Migration: make EdgeBuilder.variables non-nullable.
This is safe because this field is always initialized to a non-null
value before the EdgeBuilder is invoked.

Also, make `MigrationVisitorTestBase.variables` non-nullable; this is
safe for similar reasons.

Change-Id: I3a79efa8fb602dfe417a1e53937ddac4e129c86f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253860
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-08-08 12:36:20 +00:00
dependabot[bot] bc7785caaa Bump github/codeql-action from 2.1.17 to 2.1.18
Closes https://github.com/dart-lang/sdk/pull/49612

GitOrigin-RevId: 61a096e0f6e279271827c2b51355022e015819a7
Change-Id: I78a4a850d9fe6822880e2d9188212e5bd36ada32
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253920
Reviewed-by: Alexander Thomas <athom@google.com>
2022-08-08 10:58:47 +00:00
Konstantin Shcheglov 8c275efddf Update deprecation message for 'FormalParameter.identifier'.
Change-Id: I2670fbfd01ba5864fd339bd2e6dd059660fdf9c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253904
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-08-08 04:28:59 +00:00
Konstantin Shcheglov 6e57418fd5 Roll latest linter, b677397483251d55ce1aec8d170be7720b53fe26
Change-Id: Ia4495bbf820a7df6ea7f86bbfca76c604a539af3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253903
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-08-08 04:20:10 +00:00
Brian Wilkerson 60773b9135 Rename two classes
Change-Id: I3fe6f0e4a4f3e8d04994a21c97e608fe8065e5ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253902
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-08-08 04:11:19 +00:00
Paul Berry 4b61ceb1d2 Revert "Migration: fix generate_resources.dart to use dart compile js."
This reverts commit 6abea1381b.

Reason for revert: Breaks internal build of migration tool

Original change's description:
> Migration: fix generate_resources.dart to use `dart compile js`.
>
> This is necessary because the command `dart2js` is no longer present
> in the SDK.
>
> Change-Id: Iea3cf3092bcda6c889c55a51d1b5601773404fb9
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253862
> Reviewed-by: Samuel Rawlins <srawlins@google.com>
> Commit-Queue: Paul Berry <paulberry@google.com>

TBR=paulberry@google.com,srawlins@google.com

Change-Id: I73c3321e6c473f5690eaddd94d13003c978234b6
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253900
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-08-07 12:31:19 +00:00
Paul Berry fab3bc0467 Migration: enable the use of super parameters
Change-Id: Ie041191028bd0cd6c22571d1548a591f1852f89e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253861
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-08-07 12:28:39 +00:00
Paul Berry 6abea1381b Migration: fix generate_resources.dart to use dart compile js.
This is necessary because the command `dart2js` is no longer present
in the SDK.

Change-Id: Iea3cf3092bcda6c889c55a51d1b5601773404fb9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253862
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-08-06 22:29:28 +00:00
Martin Kustermann 4539bf6584 [vm] Make heap snapshot writer also visit isolate stacks as roots
Heap snapshots currently produced don't visit isolate stacks. As such
analyzing such snapshots may lead one to conclude there is a lot of
garbage while objects are actually reachable.

=> This CL makes us visit isolate stacks when building heap snapshots.

Furthermore we add a new `VMInternals.writeHeapSnapshotToFile` helper
that can be used to programmatically write snapshots and can be handy
for internal use at times. (We also use this helper in a test)

TEST=vm/dart{,_2}/heap_snapshot_test

Change-Id: I976544b7f6d20863764af9a40bf1ffb3c319bbce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253785
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2022-08-06 11:24:28 +00:00
Mark Zhou ad8d2ccb06 [dart2js] Updating runtime allocations to store a JSON-decoded map instead of a JSON string
This was requested by internal teams for easier querying/processing.

Change-Id: I59fea565f79bf92d4cf808cc0466b4e9cfa37fe8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253707
Commit-Queue: Mark Zhou <markzipan@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
2022-08-06 00:02:37 +00:00
Konstantin Shcheglov a34e93f9d3 Prepare to publish analyzer 4.4.0 and _fe_analyzer_shared 44.0.0
Change-Id: I81a6366092ede393546212cfef1746fa06d1aed6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253709
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-08-05 21:27:37 +00:00
Konstantin Shcheglov 59728cafb2 Support getErrors2() for parts.
Change-Id: I6b315dedf4837668c8583c873612fce26e9cb287
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253822
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2022-08-05 21:26:38 +00:00
DEPS Autoroller 0926b13346 Roll Dart Protobuf Support from 504eefeae989 to 11983dafc427 (4 revisions)
https://dart.googlesource.com/protobuf/+log/504eefeae989..11983dafc427

2022-08-05 omersa@google.com Revert "Fix presence of bytes fields (#715)"
2022-08-05 omersa@google.com Document use case for `GeneratedMessage.createEmptyInstance` (#711)
2022-08-05 omersa@google.com Avoid redundant copying when deserializing binary messages (#718)
2022-08-05 omersa@google.com Remove unused `UnknownFieldSetField` methods (#721)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-protobuf-dart-sdk
Please CC dart-ecosystem-gardener@grotations.appspotmail.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Dart Protobuf Support: https://github.com/dart-lang/protobuf/issues
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: dart-ecosystem-gardener@grotations.appspotmail.com
Change-Id: Ie9e2a5e4dde92f80858124efe4b9e131ade0d345
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253724
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-08-05 18:07:32 +00:00
DEPS Autoroller 794a21ed04 Roll Dart Documentation Generator from bd57c0e7b756 to f419695f57c5 (2 revisions)
https://dart.googlesource.com/dartdoc/+log/bd57c0e7b756..f419695f57c5

2022-08-05 srawlins@google.com Fork built-in features into _BuiltInFeature (#3105)
2022-08-04 106621169+klr981@users.noreply.github.com Adopt badge design for all features #3047 (#3101)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-doc-dart-sdk
Please CC dart-ecosystem-gardener@grotations.appspotmail.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Dart Documentation Generator: https://github.com/dart-lang/dartdoc/issues
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: dart-ecosystem-gardener@grotations.appspotmail.com
Change-Id: I6b7680fa427fac056756e69700c005ae69bedc79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253721
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-08-05 18:07:29 +00:00