commit | e60cbdfd9e846a566fe7816c78ad94f603c57b08 | [log] [tgz] |
---|---|---|
author | Jens Johansen <jensj@google.com> | Tue Aug 20 12:27:52 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Tue Aug 20 12:27:52 2019 +0000 |
tree | 2528233303917b7921642ec4fa422197b12147bc | |
parent | de45a837551d638183db8a9e70698b58ca6d925d [diff] |
[CFE] Add test for running old dills This CL: * adds a test that runs the VM with old dills (compilations of dart2js with old checkouts) with the --compile_all argument (1). * adds a number of old dills (for binary version 25, 27, 28, 29) (by mistake binary version 26 sort of didn't really happen) * adds a PRESUBMIT check in kernel that verifies that we have an "old dill" for the current binary version, so one don't bump the version without creating a new dill. (1): It uses --compile_all to force the VM to "read and understand" everything in the dill file. The hope being that we try out all/most language constructs and thus verifies that they can be read by the VM. Old "old dill" files should be removed once the VM stops supporting that version. That is a manual process, but a test should complain that the VM cannot read the old "old dill"(s) once/if that happens. This should (help) detect errors such as the one recently where a merge error caused a single "if >= 28" (that should have been "if >= 29" and thus stopped the VM from reading dills from version 28) to slip through and require a lot of debugging a few days later. Change-Id: Id79e16c7ad896c0ccc4e181465b05b67822ac31a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113698 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@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 has 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 the 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.