commit | 51bc367806c1b8f65b8c4ae453472538c5e78e0f | [log] [tgz] |
---|---|---|
author | Martin Kustermann <kustermann@google.com> | Fri Jan 25 10:31:48 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri Jan 25 10:31:48 2019 +0000 |
tree | f261e55e909f6b6d6636831337d2d00dd72a0f08 | |
parent | 8c439c7e841d04d2f05b963fe54457be526ac3d0 [diff] |
[VM/AOT] Ensure we set flags from snapshot very early in the VM initialization There are uses of flags before the VM snapshot gets read, so we need to move the "snapshot sniffing" code to the very beginning of Dart::Init(). Due to the fact that FullSnapshotReader/Deserializer assume there is a [Thread] available - and we don't have a [Thread] yet when we should process the flags - this CL moves version/feature logic into a new [SnapshotHeaderReader] class which does not depend on Thread/... Change-Id: I38a45041f0696b96e44fc2b294e3442a5fba1a81 Reviewed-on: https://dart-review.googlesource.com/c/90941 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org 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.