commit | 9d97eaac1df4942f18fb7dbaac858c5767570ecf | [log] [tgz] |
---|---|---|
author | Martin Kustermann <kustermann@google.com> | Fri May 15 13:14:18 2020 +0200 |
committer | Alexander Thomas <athom@google.com> | Tue May 26 18:33:04 2020 +0200 |
tree | ebb093a57c26fc6505a9a4536ff871a1248b2cb5 | |
parent | c062b178f5c8931bd81459fde8eb5aa2860fed50 [diff] |
[vm] Fix instance hash calculation to accommodate unboxed fields during cross compilation. Instance hash calculation on host and on target should produce same results(like when you use simarm_x64/gen_snapshot to produce arm snapshot). It was not producing same results because of how unboxed fields could be taking more than one word(on 32-bit arm they are taking two words). Hash calculation was done in terms of words so simarm_x64/gen_snapshot saw one word unboxed field, but same calculation saw two words. The fix is to pay special attention when iterating over unboxed field during hash calculation and accommodate host and target word size difference. Fixes https://github.com/dart-lang/sdk/issues/41824. Change-Id: I42ee692fc297032e0ea1653e4e37381f63324d3d
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.