128 {
130 ASSERT(isolate !=
nullptr);
131 SetServerAddress("");
132
134
135
136
137
139 trace_loading);
141
150
151
155 if (error_msg_ != nullptr) {
158 return false;
159 }
162
165
166
167
168 bool auto_start = server_port >= 0;
169 if (server_port < 0) {
170
171
172 server_port = 0;
173 }
174 if (wait_for_dds_to_advertise_service) {
184 } else {
189 }
196
200
205
206 if (write_service_info_filename != nullptr) {
208 write_service_info_filename);
210 }
211
216
220
224
228
229
230#if defined(DART_HOST_OS_WINDOWS)
232#else
234#endif
238
239
240#if defined(DART_HOST_OS_FUCHSIA)
242#else
244#endif
248
249
263 return true;
264}
static constexpr const char * kIOLibURL
static Dart_Handle PrepareForScriptLoading(bool is_service_isolate, bool trace_loading)
static Dart_Handle SetIntegerField(Dart_Handle handle, const char *name, int64_t val)
static Dart_Handle SetStringField(Dart_Handle handle, const char *name, const char *val)
struct _Dart_Isolate * Dart_Isolate
static constexpr const char * DEFAULT_VM_SERVICE_SERVER_IP
DART_EXPORT void Dart_EnterScope()
DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate)
DART_EXPORT Dart_Handle Dart_False()
DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target, Dart_Handle name, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT Dart_Handle Dart_True()
DART_EXPORT Dart_Handle Dart_RootLibrary()
DART_EXPORT Dart_Isolate Dart_CurrentIsolate()
DART_EXPORT Dart_Handle Dart_NewBoolean(bool value)
DART_EXPORT void Dart_ExitIsolate()
DART_EXPORT char * Dart_IsolateMakeRunnable(Dart_Isolate isolate)
DART_EXPORT Dart_Handle Dart_SetField(Dart_Handle container, Dart_Handle name, Dart_Handle value)
const char *const function_name
DART_EXPORT Dart_Handle Dart_SetRootLibrary(Dart_Handle library)
DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char *str)
#define SHUTDOWN_ON_ERROR(handle)