commit | 35307d406a1af46886c141ce9c490c86f5952adf | [log] [tgz] |
---|---|---|
author | Alexander Markov <alexmarkov@google.com> | Thu May 18 15:12:18 2023 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 18 15:12:18 2023 +0000 |
tree | d15e63b3786d9087d6a138a159584503e7a51775 | |
parent | 64fcb8de1b40094a3dc1529d3ce9dfd01b7a790e [diff] |
Revert "[vm/compiler] Remove unnecessary type check from optimized switches" This reverts commit 43ce5487c1d72af27e9d8157e8d664dabcd7a9d7. Reason for revert: test failures on vm-aot-*-product-* bots. Original change's description: > [vm/compiler] Remove unnecessary type check from optimized switches > > Switch optimization now relies on static type of the tested value, > so it is safe to omit the type check (with sound null safety) or > reduce it to a null check (without sound null safety). > > TEST=co19/LanguageFeatures/Patterns/Exhaustiveness/exhaustiveness_enum_A01_t01 > Fixes https://github.com/dart-lang/sdk/issues/52422 > > Change-Id: Ic93f4f212bee9ed3bfe5035f3c8d7535274c2f63 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304102 > Commit-Queue: Alexander Markov <alexmarkov@google.com> > Reviewed-by: Alexander Aprelev <aam@google.com> Change-Id: Ifa6ee75be49f7264fa4dfc08183d5ccb731c60d1 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304321 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Alexander Markov <alexmarkov@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.