5#ifndef RUNTIME_BIN_ISOLATE_DATA_H_
6#define RUNTIME_BIN_ISOLATE_DATA_H_
21class MallocGrowableArray;
39 const char* packages_file,
41 bool isolate_run_app_snapshot);
47 return kernel_buffer_;
55 ASSERT(kernel_buffer_.get() ==
nullptr);
56 kernel_buffer_ = std::shared_ptr<uint8_t>(
buffer, FreeUnownedKernelBuffer);
57 kernel_buffer_size_ =
size;
64 ASSERT(kernel_buffer_.get() ==
nullptr);
65 kernel_buffer_ = std::shared_ptr<uint8_t>(
buffer, free);
66 kernel_buffer_size_ =
size;
74 ASSERT(kernel_buffer_.get() ==
nullptr);
75 kernel_buffer_ = std::move(
buffer);
76 kernel_buffer_size_ =
size;
80 return resolved_packages_config_;
84 if (resolved_packages_config_ !=
nullptr) {
85 free(resolved_packages_config_);
86 resolved_packages_config_ =
nullptr;
97 return app_snapshot_ !=
nullptr || isolate_run_app_snapshot_;
101 loading_units_.Add(loading_unit);
107 std::unique_ptr<AppSnapshot> app_snapshot_;
109 char* resolved_packages_config_;
110 std::shared_ptr<uint8_t> kernel_buffer_;
111 intptr_t kernel_buffer_size_;
112 char* packages_file_ =
nullptr;
113 bool isolate_run_app_snapshot_;
115 static void FreeUnownedKernelBuffer(uint8_t*) {}
132 free(packages_file_);
133 packages_file_ =
nullptr;
141 ASSERT(loader_ !=
nullptr);
154 char* packages_file_;
static char * StrDup(const char *s)
void UpdatePackagesFile(const char *packages_file)
void set_loader(Loader *loader)
const char * packages_file() const
IsolateData(IsolateGroupData *isolate_group_data)
IsolateGroupData * isolate_group_data() const
void SetKernelBufferAlreadyOwned(std::shared_ptr< uint8_t > buffer, intptr_t size)
IsolateGroupData(const char *url, const char *packages_file, AppSnapshot *app_snapshot, bool isolate_run_app_snapshot)
intptr_t kernel_buffer_size() const
void SetKernelBufferNewlyOwned(uint8_t *buffer, intptr_t size)
void set_resolved_packages_config(const char *packages_config)
void AddLoadingUnit(AppSnapshot *loading_unit)
const std::shared_ptr< uint8_t > & kernel_buffer() const
bool RunFromAppSnapshot() const
void SetKernelBufferUnowned(uint8_t *buffer, intptr_t size)
const char * resolved_packages_config() const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size