42#if !defined(DART_IO_SECURE_SOCKET_DISABLED)
53#if !defined(DART_IO_SECURE_SOCKET_DISABLED)
66 if (kernel_isolate ==
nullptr) {
82 return kernel_isolate;
87 const uint8_t* isolate_data,
88 const uint8_t* isolate_instr,
90 if (
data.flags ==
nullptr) {
94 data.flags->load_vmservice_library =
true;
97 data.script_uri,
data.main, isolate_data, isolate_instr,
data.flags,
99 if (service_isolate ==
nullptr) {
120 return service_isolate;
126 const uint8_t* kernel_buffer,
127 intptr_t kernel_buffer_size,
129 if (
data.flags ==
nullptr) {
133 data.flags->load_vmservice_library =
true;
136 data.script_uri,
data.main, kernel_buffer, kernel_buffer_size,
data.flags,
138 if (service_isolate ==
nullptr) {
159 return service_isolate;
static uint32_t buffer_size(uint32_t offset, uint32_t maxAlignment)
static char * StrDup(const char *s)
static int static int VSNPrint(char *str, size_t size, const char *format, va_list args)
static bool SetOriginalWorkingDirectory()
static Dart_Handle PrepareForScriptLoading(bool is_service_isolate, bool trace_loading)
static void ClearAllSignalHandlers()
static const char * GetErrorMessage()
static bool Setup(const char *server_ip, intptr_t server_port, bool dev_mode_server, bool auth_codes_disabled, const char *write_service_info_filename, bool trace_loading, bool deterministic, bool enable_service_port_fallback, bool wait_for_dds_to_advertise_service, bool serve_devtools, bool serve_observatory, bool print_dtd)
struct _Dart_Handle * Dart_Handle
struct _Dart_Isolate * Dart_Isolate
const uint8_t uint32_t uint32_t GError ** error
uint32_t uint32_t * format
static char * MallocFormatedString(const char *format,...)
bool InitOnce(char **error)
Dart_Isolate CreateVmServiceIsolateFromKernel(const IsolateCreationData &data, const VmServiceConfiguration &config, const uint8_t *kernel_buffer, intptr_t kernel_buffer_size, char **error)
Dart_Isolate CreateKernelServiceIsolate(const IsolateCreationData &data, const uint8_t *buffer, intptr_t buffer_size, char **error)
Dart_Isolate CreateVmServiceIsolate(const IsolateCreationData &data, const VmServiceConfiguration &config, const uint8_t *isolate_data, const uint8_t *isolate_instr, char **error)
DART_EXPORT void Dart_EnterScope()
void * malloc(size_t size)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT void Dart_ExitIsolate()
DART_EXPORT Dart_Isolate Dart_CreateIsolateGroup(const char *script_uri, const char *name, const uint8_t *snapshot_data, const uint8_t *snapshot_instructions, Dart_IsolateFlags *flags, void *isolate_group_data, void *isolate_data, char **error)
DART_EXPORT Dart_Isolate Dart_CreateIsolateGroupFromKernel(const char *script_uri, const char *name, const uint8_t *kernel_buffer, intptr_t kernel_buffer_size, Dart_IsolateFlags *flags, void *isolate_group_data, void *isolate_data, char **error)
DART_EXPORT void Dart_ExitScope()
DART_EXPORT Dart_Handle Dart_LoadScriptFromKernel(const uint8_t *buffer, intptr_t buffer_size)
static int8_t data[kExtLength]
DART_EXPORT void Dart_ShutdownIsolate()
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
const char * write_service_info_filename