dart-sdk/pkg/kernel
Johnni Winther c5cd8ff349 [cfe] Remove agnostic mode
The agnostic mode was added to allow the platform dill embedded in
the VM to support both weak and strong mode. Since weak mode is no
longer supported in the VM, the agnostic mode can new be deleted.

All uses of the agnostic in Dart and Flutter have been removed prior
to this change.

Change-Id: Iff0f69d9cd64e887e01cd7e7d336a97761bd6d4b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366801
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2024-06-06 11:02:37 +00:00
..
bin frontend: prepare for curly_braces lint change 2024-02-21 07:28:59 +00:00
doc [cfe] Remove kernel-semantics.tex 2021-09-02 13:54:15 +00:00
lib [cfe] Remove agnostic mode 2024-06-06 11:02:37 +00:00
test [cfe] Remove agnostic mode 2024-06-06 11:02:37 +00:00
tool [frontend_server] CFE team takes ownership of package:frontend_server 2023-12-19 10:38:28 +00:00
.gitignore
analysis_options.yaml Ignore TODO in pkg/kernel. 2023-11-29 13:54:08 +00:00
AUTHORS
binary.md [cfe] Remove .isNonNullableByDefault from package:kernel 2024-05-15 08:31:38 +00:00
codereview.settings
LICENSE Update LICENSE 2021-04-07 10:28:38 +00:00
OWNERS Let the infrastructure team bump the kernel language version. 2024-01-02 14:51:46 +00:00
PRESUBMIT.py [CFE et al] Optimize presubmit scripts 2024-01-31 10:41:20 +00:00
problems.md [CFE] Split files needed by package:vm/modular/... into codes folder. 2024-02-27 15:04:27 +00:00
pubspec.yaml [analyzer][cfe] Share the implementation of the Variance class 2024-04-10 13:08:55 +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.