Lines Matching refs:dex_cache

226 bool ImageWriter::IsImageDexCache(ObjPtr<mirror::DexCache> dex_cache) const {  in IsImageDexCache()
232 if (IsInBootImage(dex_cache.Ptr())) { in IsImageDexCache()
238 if (!ContainsElement(compiler_options_.GetDexFilesForOatFile(), dex_cache->GetDexFile())) { in IsImageDexCache()
1006 ObjPtr<mirror::DexCache> dex_cache = klass->GetDexCache(); in PruneImageClassInternal() local
1007 if (dex_cache != nullptr) { in PruneImageClassInternal()
1009 dex_file_oat_index_map_.find(dex_cache->GetDexFile()) == dex_file_oat_index_map_.end(); in PruneImageClassInternal()
1116 void ImageWriter::ClearDexCache(ObjPtr<mirror::DexCache> dex_cache) { in ClearDexCache() argument
1118 mirror::MethodDexCacheType* resolved_methods = dex_cache->GetResolvedMethods(); in ClearDexCache()
1119 for (size_t slot_idx = 0, num = dex_cache->NumResolvedMethods(); slot_idx != num; ++slot_idx) { in ClearDexCache()
1125 mirror::FieldDexCacheType* resolved_fields = dex_cache->GetResolvedFields(); in ClearDexCache()
1126 for (size_t slot_idx = 0, num = dex_cache->NumResolvedFields(); slot_idx != num; ++slot_idx) { in ClearDexCache()
1132 mirror::TypeDexCacheType* resolved_types = dex_cache->GetResolvedTypes(); in ClearDexCache()
1133 for (size_t slot_idx = 0, num = dex_cache->NumResolvedTypes(); slot_idx != num; ++slot_idx) { in ClearDexCache()
1139 mirror::StringDexCacheType* resolved_strings = dex_cache->GetStrings(); in ClearDexCache()
1140 for (size_t slot_idx = 0, num = dex_cache->NumStrings(); slot_idx != num; ++slot_idx) { in ClearDexCache()
1146 mirror::MethodTypeDexCacheType* resolved_method_types = dex_cache->GetResolvedMethodTypes(); in ClearDexCache()
1147 size_t num_resolved_method_types = dex_cache->NumResolvedMethodTypes(); in ClearDexCache()
1154 std::fill_n(dex_cache->GetResolvedCallSites(), in ClearDexCache()
1155 dex_cache->NumResolvedCallSites(), in ClearDexCache()
1191 for (ObjPtr<mirror::DexCache> dex_cache : dex_caches) { in PruneNonImageClasses()
1192 ClearDexCache(dex_cache); in PruneNonImageClasses()
1259 ObjPtr<mirror::DexCache> dex_cache = in CollectDexCaches() local
1261 if (dex_cache == nullptr) { in CollectDexCaches()
1264 const DexFile* dex_file = dex_cache->GetDexFile(); in CollectDexCaches()
1265 if (IsImageDexCache(dex_cache)) { in CollectDexCaches()
1278 ObjPtr<mirror::DexCache> dex_cache = in CollectDexCaches() local
1280 if (dex_cache == nullptr) { in CollectDexCaches()
1283 const DexFile* dex_file = dex_cache->GetDexFile(); in CollectDexCaches()
1284 if (IsImageDexCache(dex_cache)) { in CollectDexCaches()
1292 ObjPtr<mirror::DexCache> dex_cache = in CollectDexCaches() local
1294 if (dex_cache == nullptr) { in CollectDexCaches()
1297 const DexFile* dex_file = dex_cache->GetDexFile(); in CollectDexCaches()
1298 if (IsImageDexCache(dex_cache) && in CollectDexCaches()
1300 dex_caches->Set<false>(i, dex_cache.Ptr()); in CollectDexCaches()
1900 ObjPtr<mirror::DexCache> dex_cache = class_linker->FindDexCache(self, *dex_file); in ProcessDexFileObjects() local
1901 DCHECK(dex_cache != nullptr); in ProcessDexFileObjects()
1902 bool assigned = TryAssignBinSlot(dex_cache, oat_index); in ProcessDexFileObjects()
1904 work_queue_.emplace_back(dex_cache, oat_index); in ProcessDexFileObjects()
2105 ObjPtr<mirror::DexCache> dex_cache = in VerifyImageBinSlotsAssigned() local
2107 if (dex_cache == nullptr || in VerifyImageBinSlotsAssigned()
2108 image_writer_->IsInBootImage(dex_cache.Ptr()) || in VerifyImageBinSlotsAssigned()
2110 dex_cache->GetDexFile())) { in VerifyImageBinSlotsAssigned()
2113 CHECK(!image_writer_->IsImageBinSlotAssigned(dex_cache.Ptr())); in VerifyImageBinSlotsAssigned()
2114 carveout.push_back(dex_cache.Ptr()); in VerifyImageBinSlotsAssigned()
2115 ObjPtr<mirror::String> location = dex_cache->GetLocation(); in VerifyImageBinSlotsAssigned()