Find a file
Alexander Markov 16fb650d25 [vm/nnbd] Read null-safety mode from snapshots with code
Snapshots which contain code are compiled with a particular null-safety
mode and it is not possible to change their mode at run time.
When running from such snapshot, VM now reads null-safety mode from
the snapshot if it is not specified at the command line.
This avoids the need for embedders to pass null-safety flag
used during snapshot generation also to the runtime, similarly to
other VM flags listed in VM_GLOBAL_FLAG_LIST (such as use_bare_instructions).

In addition, error for incompatibility of kernel libraries with
current null-safety mode is changed from ReportError (which attempts
to throw an exception) to a FATAL, because throwing an exception
crashes when bootstrapping from a kernel file.

Change-Id: I93a791825c25c2da4e33634f1c71736c17928fea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/146460
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-05-05 17:25:07 +00:00
.dart_tool Opt package:meta in to null safety. 2020-04-28 03:54:48 +00:00
.github Update new issue template. 2019-04-30 18:14:21 +00:00
benchmarks [benchmark] Adjust UTF-8 decode benchmark to reflect more typical use. 2020-05-01 15:21:13 +00:00
build [vm] Fix gcc build. 2020-05-04 21:15:27 +00:00
client
docs Add doc explaining how language versioning and experiments work. 2020-03-10 20:32:31 +00:00
pkg Migrate language_2/function_subtype to NNBD. 2020-05-05 16:52:30 +00:00
runtime [vm/nnbd] Read null-safety mode from snapshots with code 2020-05-05 17:25:07 +00:00
samples [vm/ffi] Rename members in NativeApi to not contain nativeApi 2020-03-04 15:21:55 +00:00
samples-dev/swarm Unittest is finally going the way of the dinosaurs. 2020-03-20 17:40:42 +00:00
sdk [VM] Reworked: Remove unnecessary Closure.clone() from sync*. 2020-05-05 12:04:03 +00:00
sdk_nnbd [VM] Reworked: Remove unnecessary Closure.clone() from sync*. 2020-05-05 12:04:03 +00:00
tests Migrate language_2/function_subtype to NNBD. 2020-05-05 16:52:30 +00:00
third_party Roll dart_style to 1.3.6. 2020-04-24 07:40:21 +00:00
tools Migrate language_2/function_subtype to NNBD. 2020-05-05 16:52:30 +00:00
utils Revert "[BUILD] - Initial CL to unfork the NNBD Dart SDK" 2020-04-27 05:00:10 +00:00
.clang-format
.gitattributes [test] Fork mirrors tests. 2020-01-22 18:46:23 +00:00
.gitconfig [infra] Add documentation to .gitconfig 2018-06-11 18:24:16 +00:00
.gitignore Cleanup- remove the Dart Editor directories from the .gitignore file 2020-01-10 00:50:06 +00:00
.gn
.mailmap fix my name in .mailmap 2018-09-11 01:45:52 +00:00
.packages DEPS: remove references to pkg:package_resolver 2020-03-26 21:41:28 +00:00
.style.yapf Mass format python with yapf 2019-08-05 20:34:31 +00:00
.vpython [infra] Add .vpython spec to fix gsutil on the bots (#31065) 2018-10-11 15:11:35 +00:00
AUTHORS [runtime/vm] ARM64: Support unaligned memory accesses for regex. 2019-10-15 20:11:40 +00:00
BUILD.gn Revert "[ dartdev / DDS ] Spawn a Dart Development Service instance when running with --observe via dartdev" 2020-05-05 02:17:36 +00:00
CHANGELOG.md Changelog entry for UTF-8 breaking change 2020-05-04 10:48:32 +00:00
codereview.settings Update codereview.settings to Gerrit (dart-review.googlesource.com) 2017-09-04 12:52:09 +00:00
CONTRIBUTING.md [doc] Update dartlang.org links to dart.dev 2020-04-07 17:55:55 +00:00
DEPS Upgrade package:string_scanner from 1.0.3 (1.0.3 in pubpsec.yaml) to a918e7371af6b6e73bfd534ff9da6084741c1f99 (1.0.5 in pubspec.yaml). 2020-05-05 17:17:17 +00:00
LICENSE Remove third_party licenses from LICENSE 2019-08-21 07:43:34 +00:00
PATENT_GRANT Rename patent file 2019-08-16 12:03:17 +00:00
PRESUBMIT.py Fix presubmit file path comparison 2020-04-16 16:16:24 +00:00
README.dart-sdk Add dart2native to sdk README 2020-01-20 09:32:58 +00:00
README.md chore: update contributing link in readme 2020-03-18 09:25:07 +00:00
sdk_args.gni Revert "[BUILD] - Initial CL to unfork the NNBD Dart SDK" 2020-04-27 05:00:10 +00:00
WATCHLISTS Update pkg/vm patterns so pkg/vm_service doesn't match them 2020-04-02 18:46:15 +00:00

Dart

A client-optimized language for fast apps on any platform

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 platforms illustration

License & patents

Dart is free and open source.

See LICENSE and PATENT_GRANT.

Using Dart

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.

Building Dart

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.

Contributing to Dart

The easiest way to contribute to Dart is to file issues.

You can also contribute patches, as described in Contributing.