commit | 7fec037b6b2127fd71baec8395528afb49d0dcc0 | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Mon Jul 24 16:58:52 2023 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 24 16:58:52 2023 +0000 |
tree | 3e443e03dc000886caac5577d9e454dd0c869a8b | |
parent | 8462db66b0aae4fab0adba7d7627113c8311fd51 [diff] |
[dart2wasm] Split more patch files into patch + implementation files Following the refactoring we started in previous CLs, this splits string and int patch files into (1) patch files that only patch and don't add implementation classes (2) files for implementation classes (3) helpers. Changes: - `string_patch` is split into `string.dart` and `string_patch.dart`. - VM's `integers_patch.dart` copied as `int_patch.dart` and updated. This was needed as `integers_patch` requires VM's library paths in imports. We needed to copy this file to be able to optimize based on dart2wasm's implementation classes. However in this CL we copy the file as-is and update import paths. - VM's `string_buffer_patch.dart` copied to be able to use the string implementation classes from the new library. `string_buffer_create.dart` is merged ino `string_buffer_patch.dart`. - `getHash` and `setHash` to set object identity moved to `object_helper.dart`, to be able to use in string implementations. - Redundant `new` keywords in copied files removed. One TODO added in `string_buffer_patch.dart` when allocating a new string to the buffer: // _parts = _GrowableList.withCapacity(10)..add(str); // TODO(omersa): Uncomment the line above after moving list // implementations to a library. _parts = [str]; We can enable the old code again after moving list implementations to a library. Change-Id: Ice5dba40b3ba894797028987d4b42cb0c0f0c230 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/315821 Commit-Queue: Ömer Ağacan <omersa@google.com> Reviewed-by: Joshua Litt <joshualitt@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.