dart-sdk/pkg/kernel
Kevin Millikin b00193fa5f [Kernel] Signal an error for invalid native invocations
Calls to the factory constructor 'new List' can turn into static
invocations of a backend-specific factory function.  Signal an error
instead of crashing.

Change-Id: Id0a8a7f0f847c03225b7fa9da2351032d15522e0
Reviewed-on: https://dart-review.googlesource.com/c/90006
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2019-01-17 15:12:04 +00:00
..
bin [Kernel] Clean up error reporting in constant evaluation 2019-01-15 11:34:42 +00:00
coq
doc/semantics
lib [Kernel] Signal an error for invalid native invocations 2019-01-17 15:12:04 +00:00
runtime/reify pkg:kernel - Fix three bugs identified by lints 2019-01-08 14:54:05 +00:00
test [kernel] Add text (de)serialization for VariableSet 2019-01-11 12:16:43 +00:00
.gitignore
analysis_options.yaml More options files cleanup. 2018-10-26 23:05:44 +00:00
AUTHORS
binary.md Save problems in ast - kernel format changes 2019-01-17 10:41:53 +00:00
codereview.settings
LICENSE
problems.md Save problems in ast - kernel format changes 2019-01-17 10:41:53 +00:00
pubspec.yaml Prepare to publish analyzer version 0.34.2. 2019-01-16 16:44:43 +00:00
README.md Remove outdated information from pkg/kernel/README.md 2018-10-09 11:09:27 +00:00

Dart Kernel

Dart Kernel is a small high-level language derived from Dart. It is designed for use as an intermediate format for whole-program analysis and transformations, and to be consumed by codegen and execution backends.

The kernel language has an in-memory representation in Dart and can be serialized as binary or text.

Both the kernel language and its implementations are unstable and are under development.

This package contains the Dart part of the implementation and contains:

  • A transformable IR for the kernel language
  • Serialization of kernel code

Note: The APIs in this package are in an early state; developers should be careful about depending on this package. In particular, there is no semver contract for release versions of this package. Please depend directly on individual versions.

See ast.dart for the in-memory IR, or binary.md for a description of the binary format. For now, the textual format is very ad-hoc and cannot be parsed back in.