| commit | 63333deed6ae8515e97b64d34ae6313b3a88a75f | [log] [tgz] |
|---|---|---|
| author | Samir Jindel <sjindel@google.com> | Fri Nov 29 16:42:36 2019 +0000 |
| committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri Nov 29 16:42:36 2019 +0000 |
| tree | 41c0089e734d830d6e0c7b69fe2dbfec877d44b1 | |
| parent | 5b31b1e26d752d2ab2d0d013d32187a27266f808 [diff] |
[vm/cfe] Elaborate for-in statements during async transform This allows us TFA to analyze the iterator calls and we generate much tighter code in AOT. However, due to the increased inlining opportunities, we end up emitting 0.5% more code. Inlining of the _GrowableList iterator specifically also includes the concurrent modification check and error handling. Calls to get:iterator, moveNext and get:current account for 7.12% of all InstanceCall instructions in Flutter Gallery. Fixes https://github.com/dart-lang/sdk/issues/39516 Issue https://github.com/dart-lang/sdk/issues/39566 Issue https://github.com/dart-lang/sdk/issues/39565 Change-Id: I8dcc08b7571137e869a16ceea8cc73539eb02a5a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126381 Commit-Queue: Samir Jindel <sjindel@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web
Dart has 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 the dart.dev to learn more about the language, tools, getting started, and more.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
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.