Lines Matching refs:dex_cache

389     ObjPtr<mirror::DexCache> dex_cache, dex::StringIndex string_idx, StringTable& strings)  in PreloadDexCachesResolveString()  argument
391 uint32_t slot_idx = dex_cache->StringSlotIndex(string_idx); in PreloadDexCachesResolveString()
392 auto pair = dex_cache->GetStrings()[slot_idx].load(std::memory_order_relaxed); in PreloadDexCachesResolveString()
396 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveString()
402 dex_cache->SetResolvedString(string_idx, string); in PreloadDexCachesResolveString()
407 ObjPtr<mirror::DexCache> dex_cache, in PreloadDexCachesResolveType() argument
410 uint32_t slot_idx = dex_cache->TypeSlotIndex(type_idx); in PreloadDexCachesResolveType()
411 auto pair = dex_cache->GetResolvedTypes()[slot_idx].load(std::memory_order_relaxed); in PreloadDexCachesResolveType()
415 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveType()
424 dex_cache->SetResolvedType(type_idx, klass); in PreloadDexCachesResolveType()
428 static void PreloadDexCachesResolveField(ObjPtr<mirror::DexCache> dex_cache, in PreloadDexCachesResolveField() argument
432 uint32_t slot_idx = dex_cache->FieldSlotIndex(field_idx); in PreloadDexCachesResolveField()
433 auto pair = mirror::DexCache::GetNativePairPtrSize(dex_cache->GetResolvedFields(), in PreloadDexCachesResolveField()
439 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveField()
442 field_id.class_idx_, dex_cache, /* class_loader= */ nullptr); in PreloadDexCachesResolveField()
447 ? mirror::Class::FindStaticField(Thread::Current(), klass, dex_cache, field_idx) in PreloadDexCachesResolveField()
448 : klass->FindInstanceField(dex_cache, field_idx); in PreloadDexCachesResolveField()
452 dex_cache->SetResolvedField(field_idx, field, kRuntimePointerSize); in PreloadDexCachesResolveField()
456 static void PreloadDexCachesResolveMethod(ObjPtr<mirror::DexCache> dex_cache, uint32_t method_idx) in PreloadDexCachesResolveMethod() argument
458 uint32_t slot_idx = dex_cache->MethodSlotIndex(method_idx); in PreloadDexCachesResolveMethod()
459 auto pair = mirror::DexCache::GetNativePairPtrSize(dex_cache->GetResolvedMethods(), in PreloadDexCachesResolveMethod()
465 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveMethod()
470 method_id.class_idx_, dex_cache, /* class_loader= */ nullptr); in PreloadDexCachesResolveMethod()
475 class_linker->FindResolvedMethod(klass, dex_cache, /* class_loader= */ nullptr, method_idx); in PreloadDexCachesResolveMethod()
531 const ObjPtr<mirror::DexCache> dex_cache = class_linker->FindDexCache(self, *dex_file); in PreloadDexCachesStatsFilled() local
532 DCHECK(dex_cache != nullptr); // Boot class path dex caches are never unloaded. in PreloadDexCachesStatsFilled()
533 for (size_t j = 0, num_strings = dex_cache->NumStrings(); j < num_strings; ++j) { in PreloadDexCachesStatsFilled()
534 auto pair = dex_cache->GetStrings()[j].load(std::memory_order_relaxed); in PreloadDexCachesStatsFilled()
539 for (size_t j = 0, num_types = dex_cache->NumResolvedTypes(); j < num_types; ++j) { in PreloadDexCachesStatsFilled()
540 auto pair = dex_cache->GetResolvedTypes()[j].load(std::memory_order_relaxed); in PreloadDexCachesStatsFilled()
545 for (size_t j = 0, num_fields = dex_cache->NumResolvedFields(); j < num_fields; ++j) { in PreloadDexCachesStatsFilled()
546 auto pair = mirror::DexCache::GetNativePairPtrSize(dex_cache->GetResolvedFields(), in PreloadDexCachesStatsFilled()
553 for (size_t j = 0, num_methods = dex_cache->NumResolvedMethods(); j < num_methods; ++j) { in PreloadDexCachesStatsFilled()
554 auto pair = mirror::DexCache::GetNativePairPtrSize(dex_cache->GetResolvedMethods(), in PreloadDexCachesStatsFilled()
597 ObjPtr<mirror::DexCache> dex_cache = linker->RegisterDexFile(*dex_file, nullptr); in VMRuntime_preloadDexCaches() local
598 CHECK(dex_cache != nullptr); // Boot class path dex caches are never unloaded. in VMRuntime_preloadDexCaches()
600 for (size_t j = 0; j < dex_cache->NumStrings(); j++) { in VMRuntime_preloadDexCaches()
601 PreloadDexCachesResolveString(dex_cache, dex::StringIndex(j), strings); in VMRuntime_preloadDexCaches()
606 for (size_t j = 0; j < dex_cache->NumResolvedTypes(); j++) { in VMRuntime_preloadDexCaches()
607 PreloadDexCachesResolveType(soa.Self(), dex_cache, dex::TypeIndex(j)); in VMRuntime_preloadDexCaches()
614 PreloadDexCachesResolveField(dex_cache, field.GetIndex(), field.IsStatic()); in VMRuntime_preloadDexCaches()
617 PreloadDexCachesResolveMethod(dex_cache, method.GetIndex()); in VMRuntime_preloadDexCaches()