commit | f638d06292ae6f34ee537638b114fe893db3719f | [log] [tgz] |
---|---|---|
author | Nicholas Shahan <nshahan@google.com> | Tue Jul 20 00:15:34 2021 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Tue Jul 20 00:15:34 2021 +0000 |
tree | 86ca577b8c60591c4614bc6908aa7f3b816b5a54 | |
parent | ae8a2aac09e8d96f1e9a31df2b0ec16444a6cc1c [diff] |
[ddc] Fix generic method constant tearoffs Previously all functions objects returned by `dart.gbind()` would contain the same 3 properties: name, length, and runtimeType. For two distinct functions, if these three properties were the same our constant canonicalization would incorrectly canonicalize to the same value. Attaching the original function and the type arguments used in instantiation ensures the const canonicalization will treat different functions or instantiations as different values. These values will also be used for equality checks proposed here: https://github.com/dart-lang/language/issues/1712 Fixes: https://github.com/dart-lang/sdk/issues/46568 Issue: https://github.com/dart-lang/sdk/issues/46486 Change-Id: I65111df9af80d878eb3127c5e3dfac1ffba95535 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206423 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Sigmund Cherem <sigmund@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.