| commit | 52db62dd65284192755906691baf66c47a43f47e | [log] [tgz] |
|---|---|---|
| author | Johnni Winther <johnniwinther@google.com> | Fri Dec 25 23:32:17 2020 +0000 |
| committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri Dec 25 23:32:17 2020 +0000 |
| tree | e8e9ddf446d6ef5c4fed79f6a9de37aa37ff444f | |
| parent | c7b6e6aa99e76e44d7f807c90ac9f1fc229a9968 [diff] |
[cfe] Use MixinSuperStub This CL adds stub for each concrete mixed in member into mixin applications. The body of the stub calls the original member via a super call. This addition means that resolution of super access now use the stub and not the original declaration as the target, which means that it will be correct even when mixed in members are cloned. For this reason, dart2js no longer needs to perform its own super member resolution. When a super call targets a mixin super stub (after cloning) it can be optimized away by redirecting the call to the `stubTarget` of the call. This optimization is performed in dart2js. Since dart2js now uses the correct super target, its runtime mixin application needs to avoid overriding members already declared in the mixin application. These members are the forwarding super stubs which ensure that correct runtime types when members with covariant parameters are implemented. Change-Id: Iab71ffcc400aa6a683987bc20b9553a263ebc8e1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176526 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@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, 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.