dart-sdk/pkg/vm
Ryan Macnak 9c2a91fb72 Account for @pragma("vm:entry-point") creating additional "root" libraries when partitioning the program into loading units.
If a library contained an entry point but was not reachable from the root library, it was not assigned to any loading unit and caused a null dereference in gen_snapshot. This is not possible with the standalone embedder, but is possible in Flutter because it passes multiple sources to frontend_server.  E.g., `--source dart_plugin_registrant.dart`.

TEST=gallery
Bug: https://github.com/flutter/gallery/issues/545
Change-Id: I9c67f0e39f7509094ee873610d80851a702a0cf2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/249640
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-06-23 23:51:48 +00:00
..
bin [vm] Fix --enable-mirrors VM flag to affect environment and conditional imports 2022-06-17 17:20:09 +00:00
lib Account for @pragma("vm:entry-point") creating additional "root" libraries when partitioning the program into loading units. 2022-06-23 23:51:48 +00:00
test Account for @pragma("vm:entry-point") creating additional "root" libraries when partitioning the program into loading units. 2022-06-23 23:51:48 +00:00
testcases/transformations [cfe] Make (Abstract)Super*.interfaceTarget non-nullable 2022-06-23 09:16:55 +00:00
tool [vm/infra] Improve IL testing framework 2021-11-16 12:39:11 +00:00
analysis_options.yaml [cfe/ffi] Implement Finalizable 2022-02-05 11:54:59 +00:00
LICENSE Update LICENSE 2021-04-07 10:28:38 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
pubspec.yaml [pkg] prefer 'any' deps for package dev dependencies 2022-05-27 01:34:59 +00:00
README.md

This package hosts VM specific Dart code and helper scripts.