commit | 92e574649408bbb1759bceee7624ac9ef6411d5b | [log] [tgz] |
---|---|---|
author | Daco Harkes <dacoharkes@google.com> | Tue Mar 21 15:25:10 2023 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 21 15:25:10 2023 +0000 |
tree | 6b44b53e727a8814935a39987c356ba0b7258811 | |
parent | 1ec61a0acb1af1360050ebc952018ebf3606fafe [diff] |
Reland "[vm/ffi] Add class modifiers" This is a reland of commit 1755f8909264330a207a0e0e44d31f5fec9c489a Can land after (or with) the Flutter PR: https://github.com/flutter/engine/pull/40434 Original change's description: > [vm/ffi] Add class modifiers > > Adds class modifiers to `dart:ffi`. > > Migrates all user-defined subclasses of `Struct`, `Union`, `Opaque`, > and `AbiSpecificInteger` to be `final class`es. > > Does not remove the manual error checking, so some errors will show up > twice now in language version 3.0. In language version <3.0, only the > FFI-specific error will show up. > > In a follow-up CL, we will try to make the language-errors to show up > also <3.0 so that we can remove the FFI-specific errors. > > Examples of duplicated errors: > pkg/analyzer/test/src/diagnostics/subtype_of_ffi_class_test.dart > > TEST=pkg/analyzer/test/ (for the analyzer) > TEST=pkg/front_end/testcases/ (for the CFE) > TEST=test/ffi/ (for the VM) > > CoreLibraryReviewExempt: No need for dart2js to review. > Bug: https://github.com/dart-lang/sdk/issues/51683 > Change-Id: I2964ceccb7db59fbdaf6be5319f5e4ec2dabe0f3 > Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-win-release-try,pkg-mac-release-try,vm-precomp-ffi-qemu-linux-release-riscv64-try,vm-precomp-ffi-qemu-linux-release-arm-try,vm-ffi-android-debug-arm64c-try,vm-ffi-android-debug-arm-try,vm-reload-rollback-linux-debug-x64-try,analyzer-analysis-server-linux-try,analyzer-linux-release-try > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289223 > Reviewed-by: Johnni Winther <johnniwinther@google.com> > Reviewed-by: Devon Carew <devoncarew@google.com> > Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> > Reviewed-by: Jackson Gardner <jacksongardner@google.com> > Reviewed-by: Lasse Nielsen <lrn@google.com> > Commit-Queue: Daco Harkes <dacoharkes@google.com> TEST=pkg/analyzer/test/ (for the analyzer) TEST=pkg/front_end/testcases/ (for the CFE) TEST=test/ffi/ (for the VM) CoreLibraryReviewExempt: No need for dart2js to review. Bug: https://github.com/dart-lang/sdk/issues/51683 Change-Id: I2ee3f0ac31d4162068a2346a06320029b2263ee2 Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-win-release-try,pkg-mac-release-try,vm-precomp-ffi-qemu-linux-release-riscv64-try,vm-precomp-ffi-qemu-linux-release-arm-try,vm-ffi-android-debug-arm64c-try,vm-ffi-android-debug-arm-try,vm-reload-rollback-linux-debug-x64-try,analyzer-analysis-server-linux-try,analyzer-linux-release-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289781 Reviewed-by: Devon Carew <devoncarew@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@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.