commit | 4266f780bd0f0c27a3b30939dc12af5de44fdbb3 | [log] [tgz] |
---|---|---|
author | Alexander Markov <alexmarkov@google.com> | Thu Jan 18 08:48:37 2024 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 18 08:48:37 2024 +0000 |
tree | bfe7adaa1fac47721605771032d60855126e6d0a | |
parent | fb8f06baefaa9055c5ecd07f1fd898c2b0780d67 [diff] |
Reland "[vm/aot/tfa] Analyze function calls" This is a reland of commit 66d3eedb33d80273385bcba9aeaf988c07f3ef3f g3 breakage was fixed in https://dart-review.googlesource.com/c/sdk/+/346940. Original change's description: > [vm/aot/tfa] Analyze function calls > > This change adds analysis of function calls when closure target > of a call can be inferred. Local functions are now analyzed separately > from enclosing members. Inferred result type of function calls is now > used in the AOT compiler. > > Time of AOT compilation step 2 (TFA) on a large Flutter application: > Before: 59.448s > After: 61.870s (+4%) > > Maintaining hierarchy of function types and analysis of all function > calls is not feasible as it causes unbearable increase in AOT > compilation time. TEST=existing Issue: https://github.com/dart-lang/sdk/issues/39692 > Change-Id: Ieb4d5dce23868b5ab5c87fa1e77e49b85fd656fe > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345083 > Reviewed-by: Slava Egorov <vegorov@google.com> > Reviewed-by: Martin Kustermann <kustermann@google.com> > Commit-Queue: Alexander Markov <alexmarkov@google.com> Change-Id: I05377121ffa7e56748c8a5ab58551e2b1caef70b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/346946 Commit-Queue: Slava Egorov <vegorov@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Slava Egorov <vegorov@google.com>
Dart is:
Approachable: Develop with a strongly typed programming language that is consistent, concise, and offers modern language features like null safety and patterns.
Portable: Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend. Compile to JavaScript or WebAssembly for the web.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app. Diagnose app issues using DevTools.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.