Revert "[vm/aot] Keep column information when possible for precompiled mode." This reverts commit 7c34a80c11cb882244c685b04e12a132598360c5. Reason for revert: This change seems to cause >2% code size regression in flutter-release mode. Original change's description: > [vm/aot] Keep column information when possible for precompiled mode. > > Previously, we passed line number information to the stack trace printer > and to DWARF by changing the non-special positions in the CodeSourceMap > to line numbers in precompiled mode. However, doing this lost column > information. > > We get the column information back in the majority of cases by encoding > the line number and column information when neither is too large to pack > together into 30 bits. (Here, 20 bits for line and 10 bits for column.) > Otherwise, we just store the line information as before, though due to > using a bit to encode whether column info exists, it's reduced to 30 > bits. If the line info is too big for that, we just return kNoSourcePos. > > Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-release-simarm_x64-try > Change-Id: Id1c826f10871e2f304fa40a59d8b704404d3a2c9 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151507 > Commit-Queue: Tess Strickland <sstrickl@google.com> > Reviewed-by: Ryan Macnak <rmacnak@google.com> TBR=rmacnak@google.com,alexmarkov@google.com,sstrickl@google.com Change-Id: I5cf97543d1ac2731bb27bdb58ae97af6f22f2cfb No-Presubmit: true No-Tree-Checks: true No-Try: true Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-nnbd-linux-release-x64-try, vm-kernel-precomp-linux-release-x64-try, vm-kernel-precomp-linux-product-x64-try, vm-kernel-precomp-linux-debug-x64-try, vm-kernel-precomp-linux-release-simarm_x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151820 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Martin Kustermann <kustermann@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 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.