217 {
218 auto const object_store = isolate_group->object_store();
219 auto const heap = isolate_group->heap();
220 ProgramWalker walker(zone, heap, visitor);
221
222
223 const auto& libraries =
227
228 for (intptr_t
i = 0;
i < libraries.Length();
i++) {
229 lib ^= libraries.At(
i);
231 while (it.HasNext()) {
232 cls = it.GetNextClass();
233 walker.AddToWorklist(cls);
234 }
235 }
236
237
238 const auto& global_object_pool =
240 if (!global_object_pool.IsNull()) {
242 for (intptr_t
i = 0;
i < global_object_pool.Length();
i++) {
243 auto const type = global_object_pool.TypeAt(
i);
244 if (
type != ObjectPool::EntryType::kTaggedObject)
continue;
245 object = global_object_pool.ObjectAt(
i);
246 walker.AddToWorklist(object);
247 }
248 }
249
250 if (visitor->IsFunctionVisitor()) {
251
253 walker.AddToWorklist(fun);
254 ASSERT(!fun.HasImplicitClosureFunction());
255 return true;
256 });
257
258
259
260 if (object_store->ffi_callback_functions() !=
Array::null()) {
263 FfiCallbackFunctionSet::Iterator it(&
set);
264 while (it.MoveNext()) {
265 const intptr_t entry = it.Current();
268 }
270 }
271 }
272
273 if (visitor->IsCodeVisitor()) {
274
276 const auto& dispatch_table_entries =
277 Array::Handle(zone, object_store->dispatch_table_code_entries());
278 if (!dispatch_table_entries.IsNull()) {
279 for (intptr_t
i = 0;
i < dispatch_table_entries.Length();
i++) {
280 code ^= dispatch_table_entries.At(
i);
281 walker.AddToWorklist(
code);
282 }
283 }
284 }
285
286
287 walker.VisitWorklist();
288}
static void ForAllClosureFunctions(std::function< bool(const Function &)> callback)
Dart_NativeFunction function
UnorderedHashSet< CanonicalFfiCallbackFunctionTraits > FfiCallbackFunctionSet
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 set