dart-sdk/pkg/vm
Martin Kustermann 8d802dd78a [vm] Avoid embedding sources in CFE compilations if we AppJit
Creation of AppJit snapshot will not include the source of [Script]
objects (see `UntaggedScript::snapshot_to`). As a result there's no
point in letting the CFE embed the sources into the kernel if we
only use it to create an AppJit snapshot.

This is also in line with build rules for our dart-sdk, where we do the
kernel compilation separately, see utils/application_snapshot.gni:

```
  template("application_snapshot") {
    ...
    # Build the kernel file using the prebuilt VM to speed up the
    # debug and simulator builds.
    prebuilt_dart_action(target_name + "_dill") {
      ...

      args = [
        ...
        "--no-embed-sources",
        ...
      ]
      [[[
    }
    ...
  }
```

TEST=ci

Change-Id: I4e17e49dc21af6102d62c2278dbd6ebbe387f7e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313560
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2023-07-14 09:47:38 +00:00
..
bin [vm] Avoid embedding sources in CFE compilations if we AppJit 2023-07-14 09:47:38 +00:00
lib [cfe/ffi] Fix Finalizable non-nullable variables 2023-07-11 07:53:47 +00:00
test [dart2wasm] Add option and target for stringref. 2023-06-21 14:25:38 +00:00
testcases/transformations [cfe/ffi] Fix Finalizable non-nullable variables 2023-07-11 07:53:47 +00:00
tool Enable patterns in IL comparison tests on Windows 2023-03-10 01:14:18 +00:00
analysis_options.yaml [pkg/vm] analyze using package:lints 2022-07-07 23:22:49 +00:00
LICENSE
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
pubspec.yaml [vm] Async FFI callbacks 2023-06-28 01:00:18 +00:00
README.md

This package hosts VM specific Dart code and helper scripts.