| commit | 555e965bb154a77e72ee4f078d8c3dd6b4db7075 | [log] [tgz] |
|---|---|---|
| author | Ömer Sinan Ağacan <omersa@google.com> | Wed Oct 18 06:39:59 2023 +0000 |
| committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 18 06:39:59 2023 +0000 |
| tree | 314f40361175ff414ffbf756e144b7eb57bb8fca | |
| parent | e61055abf0821c429ca4ee910b6a70749be03aad [diff] |
[dart2wasm] Duplicate VM's convert patch for dart2wasm targets This copies VM's convert implementation in dart2wasm's default and JSCM targets, to be able to optimize the implementation based on these targets' typed data and string implementation classes. An example optimization that specializes UTF-8 decoder to `_U8List` can be seen in [1], which improves a real-world benchmark (extracted from internal) from 220ms to 90ms. (-59%) Another optimization is we will be using the browser's UTF8 and JSON decoders in JSCM convert patch. VM's convert patch is moved from vm_shared to vm, as it's no longer used outside of VM. [1]: https://dart-review.googlesource.com/c/sdk/+/330121 Tested: existing tests. Change-Id: I981070615a106e4f356ed8b292a29ec950bd4d97 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330781 Reviewed-by: Jackson Gardner <jacksongardner@google.com> Commit-Queue: Ömer Ağacan <omersa@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'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.