13 const char* packages_file,
15 bool isolate_run_app_snapshot)
16 : script_url((url != nullptr) ?
Utils::StrDup(url) : nullptr),
17 app_snapshot_(app_snapshot),
18 resolved_packages_config_(nullptr),
19 kernel_buffer_(nullptr),
20 kernel_buffer_size_(0),
21 isolate_run_app_snapshot_(isolate_run_app_snapshot) {
22 if (packages_file !=
nullptr) {
28 for (intptr_t
i = 0;
i < loading_units_.length();
i++) {
29 delete loading_units_[
i];
34 packages_file_ =
nullptr;
35 free(resolved_packages_config_);
36 resolved_packages_config_ =
nullptr;
37 kernel_buffer_ =
nullptr;
38 kernel_buffer_size_ = 0;
42 : isolate_group_data_(isolate_group_data),
44 packages_file_(nullptr) {
52 packages_file_ =
nullptr;
static char * StrDup(const char *s)
IsolateData(IsolateGroupData *isolate_group_data)
IsolateGroupData * isolate_group_data() const
IsolateGroupData(const char *url, const char *packages_file, AppSnapshot *app_snapshot, bool isolate_run_app_snapshot)