Lines Matching refs:dex_data

1023   for (const std::unique_ptr<DexFileData>& dex_data : info_) {  in Save()  local
1024 if (dex_data->profile_key.size() > kMaxDexFileKeyLength) { in Save()
1031 sizeof(uint16_t) + dex_data->profile_key.size(); in Save()
1032 classes_section_size += dex_data->ClassesDataSize(); in Save()
1033 methods_section_size += dex_data->MethodsDataSize(); in Save()
1087 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in Save() local
1088 buffer.WriteUintAndAdvance(dex_data->checksum); in Save()
1089 buffer.WriteUintAndAdvance(dex_data->num_type_ids); in Save()
1090 buffer.WriteUintAndAdvance(dex_data->num_method_ids); in Save()
1091 buffer.WriteUintAndAdvance(dchecked_integral_cast<uint16_t>(dex_data->profile_key.size())); in Save()
1092 buffer.WriteAndAdvance(dex_data->profile_key.c_str(), dex_data->profile_key.size()); in Save()
1123 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in Save() local
1124 dex_data->WriteClasses(buffer); in Save()
1138 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in Save() local
1139 dex_data->WriteMethods(buffer); in Save()
1274 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in FindDexDataUsingAnnotations() local
1275 if (profile_key == GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)) { in FindDexDataUsingAnnotations()
1276 if (!ChecksumMatch(dex_data->checksum, dex_file->GetLocationChecksum())) { in FindDexDataUsingAnnotations()
1279 return dex_data.get(); in FindDexDataUsingAnnotations()
1294 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in FindAllDexData() local
1295 if (profile_key == GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)) { in FindAllDexData()
1296 if (ChecksumMatch(dex_data->checksum, dex_file->GetLocationChecksum())) { in FindAllDexData()
1297 result->push_back(dex_data.get()); in FindAllDexData()
1416 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in VerifyProfileData() local
1418 const auto it = key_to_dex_file.find(GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)); in VerifyProfileData()
1425 if (!ChecksumMatch(dex_data->checksum, dex_file->GetLocationChecksum())) { in VerifyProfileData()
1429 << dex_data->checksum; in VerifyProfileData()
1433 if (dex_data->num_method_ids != dex_file->NumMethodIds() || in VerifyProfileData()
1434 dex_data->num_type_ids != dex_file->NumTypeIds()) { in VerifyProfileData()
1438 << " .v dex_data.num_type_ids=" << dex_data->num_type_ids in VerifyProfileData()
1440 << " v. dex_data.num_method_ids=" << dex_data->num_method_ids; in VerifyProfileData()
1447 for (const auto& method_it : dex_data->method_map) { in VerifyProfileData()
1448 CHECK_LT(method_it.first, dex_data->num_method_ids); in VerifyProfileData()
1461 if (type_index.index_ >= dex_data->num_type_ids) { in VerifyProfileData()
1462 CHECK_LT(type_index.index_ - dex_data->num_type_ids, extra_descriptors_.size()); in VerifyProfileData()
1468 for (const dex::TypeIndex& type_index : dex_data->class_set) { in VerifyProfileData()
1469 if (type_index.index_ >= dex_data->num_type_ids) { in VerifyProfileData()
1470 CHECK_LT(type_index.index_ - dex_data->num_type_ids, extra_descriptors_.size()); in VerifyProfileData()
1945 const DexFileData* dex_data = FindDexData(other_dex_data->profile_key, in MergeWith() local
1948 if ((dex_data != nullptr) && (dex_data->checksum != other_dex_data->checksum)) { in MergeWith()
1967 const DexFileData* dex_data = GetOrAddDexFileData(other_dex_data->profile_key, in MergeWith() local
1971 if (dex_data == nullptr) { in MergeWith()
1977 dex_profile_index_remap.push_back(dex_data->profile_index); in MergeWith()
1999 DexFileData* dex_data = info_[dex_profile_index_remap[other_dex_data->profile_index]].get(); in MergeWith() local
2000 DCHECK_EQ(dex_data, FindDexData(other_dex_data->profile_key, other_dex_data->checksum)); in MergeWith()
2003 uint32_t num_type_ids = dex_data->num_type_ids; in MergeWith()
2009 dex_data->class_set.insert(other_dex_data->class_set.begin(), it); in MergeWith()
2017 dex_data->class_set.insert(dex::TypeIndex(num_type_ids + new_extra_descriptor_index)); in MergeWith()
2024 InlineCacheMap* inline_cache = dex_data->FindOrAddHotMethod(other_method_index); in MergeWith()
2055 dex_data->MergeBitmap(*other_dex_data); in MergeWith()
2064 const DexFileData* dex_data = FindDexDataUsingAnnotations(method_ref.dex_file, annotation); in GetMethodHotness() local
2065 return dex_data != nullptr in GetMethodHotness()
2066 ? dex_data->GetHotnessInfo(method_ref.index) in GetMethodHotness()
2073 const DexFileData* dex_data = FindDexDataUsingAnnotations(&dex_file, annotation); in ContainsClass() local
2074 return (dex_data != nullptr) && dex_data->ContainsClass(type_idx); in ContainsClass()
2079 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in GetNumberOfMethods() local
2080 total += dex_data->method_map.size(); in GetNumberOfMethods()
2087 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in GetNumberOfResolvedClasses() local
2088 total += dex_data->class_set.size(); in GetNumberOfResolvedClasses()
2121 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in DumpInfo() local
2124 os << dex_data->profile_key; in DumpInfo()
2128 GetBaseKeyFromAugmentedKey(dex_data->profile_key)); in DumpInfo()
2131 os << " [index=" << static_cast<uint32_t>(dex_data->profile_index) << "]"; in DumpInfo()
2132 os << " [checksum=" << std::hex << dex_data->checksum << "]" << std::dec; in DumpInfo()
2133 os << " [num_type_ids=" << dex_data->num_type_ids << "]"; in DumpInfo()
2134 os << " [num_method_ids=" << dex_data->num_method_ids << "]"; in DumpInfo()
2137 if (GetBaseKeyViewFromAugmentedKey(dex_data->profile_key) == in DumpInfo()
2139 ChecksumMatch(dex_data->checksum, current->GetLocationChecksum())) { in DumpInfo()
2145 for (const auto& method_it : dex_data->method_map) { in DumpInfo()
2173 for (uint32_t method_idx = 0; method_idx < dex_data->num_method_ids; ++method_idx) { in DumpInfo()
2174 MethodHotness hotness_info(dex_data->GetHotnessInfo(method_idx)); in DumpInfo()
2189 for (dex::TypeIndex type_index : dex_data->class_set) { in DumpInfo()
2208 const DexFileData* dex_data = FindDexDataUsingAnnotations(&dex_file, annotation); in GetClassesAndMethods() local
2209 if (dex_data == nullptr) { in GetClassesAndMethods()
2212 for (const auto& it : dex_data->method_map) { in GetClassesAndMethods()
2215 for (uint32_t method_idx = 0; method_idx < dex_data->num_method_ids; ++method_idx) { in GetClassesAndMethods()
2216 MethodHotness hotness = dex_data->GetHotnessInfo(method_idx); in GetClassesAndMethods()
2224 for (const dex::TypeIndex& type_index : dex_data->class_set) { in GetClassesAndMethods()
2233 const DexFileData* dex_data = FindDexDataUsingAnnotations(&dex_file, annotation); in GetClasses() local
2234 if (dex_data == nullptr) { in GetClasses()
2237 return &dex_data->class_set; in GetClasses()
2254 const DexFileData& dex_data = *info_[i]; in Equals() local
2256 if (!(dex_data == other_dex_data)) { in Equals()
2536 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in UpdateProfileKeys() local
2537 std::string old_base_key = GetBaseKeyFromAugmentedKey(dex_data->profile_key); in UpdateProfileKeys()
2540 if (dex_data->checksum == dex_file->GetLocationChecksum() && in UpdateProfileKeys()
2541 dex_data->num_type_ids == dex_file->NumTypeIds() && in UpdateProfileKeys()
2542 dex_data->num_method_ids == dex_file->NumMethodIds()) { in UpdateProfileKeys()
2569 for (const std::unique_ptr<DexFileData>& dex_data : info_) { in UpdateProfileKeys() local
2570 std::string old_base_key = GetBaseKeyFromAugmentedKey(dex_data->profile_key); in UpdateProfileKeys()
2574 dex_data->profile_key = MigrateAnnotationInfo(new_base_key, dex_data->profile_key); in UpdateProfileKeys()
2575 profile_key_map_.Put(dex_data->profile_key, dex_data->profile_index); in UpdateProfileKeys()
3053 for (const DexFileData* dex_data : all_dex_data) { in ExtractProfileData() local
3055 ProfileSampleAnnotation annotation = GetAnnotationFromKey(dex_data->profile_key); in ExtractProfileData()
3058 for (uint32_t method_idx = 0; method_idx < dex_data->num_method_ids; ++method_idx) { in ExtractProfileData()
3059 MethodHotness hotness = dex_data->GetHotnessInfo(method_idx); in ExtractProfileData()
3079 for (const dex::TypeIndex& type_index : dex_data->class_set) { in ExtractProfileData()