/art/libdexfile/dex/ |
D | type_reference.h | 34 TypeReference(const DexFile* dex_file, dex::TypeIndex index) in TypeReference() 37 dex::TypeIndex TypeIndex() const { in TypeIndex() function 38 return dex::TypeIndex(index); in TypeIndex() 47 StringReference sr1(tr1.dex_file, tr1.dex_file->GetTypeId(tr1.TypeIndex()).descriptor_idx_); in operator() 48 StringReference sr2(tr2.dex_file, tr2.dex_file->GetTypeId(tr2.TypeIndex()).descriptor_idx_); in operator()
|
D | dex_file_types.h | 83 class TypeIndex : public DexIndex<uint16_t> { 85 TypeIndex() {} in TypeIndex() function 86 explicit constexpr TypeIndex(uint16_t index) : DexIndex<uint16_t>(index) {} in TypeIndex() function 87 static constexpr TypeIndex Invalid() { in Invalid() 88 return TypeIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 91 std::ostream& operator<<(std::ostream& os, const TypeIndex& index); 110 template<> struct hash<art::dex::TypeIndex> { 111 size_t operator()(const art::dex::TypeIndex& index) const {
|
D | dex_file_structs.h | 69 dex::TypeIndex class_idx_; // index into type_ids_ array for defining class 70 dex::TypeIndex type_idx_; // index into type_ids_ array for field type 80 dex::TypeIndex return_type_idx_; // index into type_ids array for return type 90 dex::TypeIndex class_idx_; // index into type_ids_ array for defining class 109 dex::TypeIndex class_idx_; // index into type_ids_ array for this class 112 dex::TypeIndex superclass_idx_; // index into type_ids_ array for superclass 144 dex::TypeIndex type_idx_; // index into type_ids section
|
D | dex_file_verifier.h | 87 dex::TypeIndex class_type_index, 92 dex::TypeIndex class_type_index, 112 dex::TypeIndex* class_type_index, 121 dex::TypeIndex* class_type_index, 143 dex::TypeIndex FindFirstClassDataDefiner(const uint8_t* ptr, bool* success); 144 dex::TypeIndex FindFirstAnnotationsDirectoryDefiner(const uint8_t* ptr, bool* success); 165 const char* CheckLoadStringByTypeIdx(dex::TypeIndex type_idx, const char* error_fmt); 184 dex::TypeIndex* class_type_index,
|
D | dex_cache_resolved_classes.h | 49 bool AddClass(dex::TypeIndex index) const { in AddClass() 70 const std::unordered_set<dex::TypeIndex>& GetClasses() const { in GetClasses() 84 mutable std::unordered_set<dex::TypeIndex> classes_;
|
D | dex_file.cc | 60 static_assert(sizeof(dex::TypeIndex) == sizeof(uint16_t), "TypeIndex size is wrong"); 61 static_assert(std::is_trivially_copyable<dex::TypeIndex>::value, "TypeIndex not trivial"); 212 const ClassDef* DexFile::FindClassDef(dex::TypeIndex type_idx) const { in FindClassDef() 243 const dex::TypeIndex class_idx = GetIndexForTypeId(declaring_klass); in FindFieldId() 245 const dex::TypeIndex type_idx = GetIndexForTypeId(type); in FindFieldId() 278 const dex::TypeIndex class_idx = GetIndexForTypeId(declaring_klass); in FindMethodId() 333 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() 353 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() 365 const ProtoId* DexFile::FindProtoId(dex::TypeIndex return_type_idx, in FindProtoId() 366 const dex::TypeIndex* signature_type_idxs, in FindProtoId() [all …]
|
D | dex_file_exception_helpers.h | 42 dex::TypeIndex GetHandlerTypeIndex() const { in GetHandlerTypeIndex() 63 dex::TypeIndex type_idx_; // type index of the caught exception type
|
D | dex_file.h | 278 bool IsTypeIndexValid(dex::TypeIndex idx) const { in IsTypeIndexValid() 283 const dex::TypeId& GetTypeId(dex::TypeIndex idx) const { in GetTypeId() 288 dex::TypeIndex GetIndexForTypeId(const dex::TypeId& type_id) const { in GetIndexForTypeId() 293 return dex::TypeIndex(static_cast<uint16_t>(result)); in GetIndexForTypeId() 297 const char* StringByTypeIdx(dex::TypeIndex idx, uint32_t* unicode_length) const; 299 const char* StringByTypeIdx(dex::TypeIndex idx) const; 418 const dex::ClassDef* FindClassDef(dex::TypeIndex type_idx) const; 474 const dex::ProtoId* FindProtoId(dex::TypeIndex return_type_idx, 475 const dex::TypeIndex* signature_type_idxs, 477 const dex::ProtoId* FindProtoId(dex::TypeIndex return_type_idx, in FindProtoId() [all …]
|
D | dex_file_exception_helpers.cc | 88 handler_.type_idx_ = dex::TypeIndex(DecodeUnsignedLeb128(¤t_data_)); in Next() 95 handler_.type_idx_ = dex::TypeIndex(DexFile::kDexNoIndex16); in Next()
|
D | dex_file_verifier.cc | 111 const char* DexFileVerifier::CheckLoadStringByTypeIdx(dex::TypeIndex type_idx, in CheckLoadStringByTypeIdx() 581 dex::TypeIndex class_type_index, in CheckClassDataItemField() 589 dex::TypeIndex my_class_index = in CheckClassDataItemField() 618 dex::TypeIndex class_type_index, in CheckClassDataItemMethod() 631 dex::TypeIndex my_class_index = method_id.class_idx_; in CheckClassDataItemMethod() 912 dex::TypeIndex* class_type_index, in FindClassIndexAndDef() 1070 dex::TypeIndex* class_type_index, in CheckIntraClassDataItemFields() 1122 dex::TypeIndex* class_type_index, in CheckIntraClassDataItemMethods() 1177 dex::TypeIndex class_type_index; in CheckIntraClassDataItem() 2119 dex::TypeIndex DexFileVerifier::FindFirstClassDataDefiner(const uint8_t* ptr, bool* success) { in FindFirstClassDataDefiner() [all …]
|
/art/compiler/optimizing/ |
D | ssa_liveness_analysis_test.cc | 59 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in TEST_F() 79 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 81 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F() 83 graph_->GetDexFile(), dex::TypeIndex(2), 2, DataType::Type::kInt32); in TEST_F() 85 graph_->GetDexFile(), dex::TypeIndex(3), 3, DataType::Type::kInt32); in TEST_F() 87 graph_->GetDexFile(), dex::TypeIndex(4), 4, DataType::Type::kReference); in TEST_F() 148 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 150 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F() 152 graph_->GetDexFile(), dex::TypeIndex(2), 2, DataType::Type::kInt32); in TEST_F() 154 graph_->GetDexFile(), dex::TypeIndex(3), 3, DataType::Type::kInt32); in TEST_F() [all …]
|
D | instruction_builder.h | 181 HNewArray* BuildNewArray(uint32_t dex_pc, dex::TypeIndex type_index, HInstruction* length); 185 dex::TypeIndex type_index, 211 dex::TypeIndex type_index, 221 HLoadClass* BuildLoadClass(dex::TypeIndex type_index, uint32_t dex_pc); 223 HLoadClass* BuildLoadClass(dex::TypeIndex type_index, 230 Handle<mirror::Class> ResolveClass(ScopedObjectAccess& soa, dex::TypeIndex type_index) 270 HNewInstance* BuildNewInstance(dex::TypeIndex type_index, uint32_t dex_pc); 288 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_index, 339 ScopedArenaSafeMap<dex::TypeIndex, Handle<mirror::Class>> class_cache_;
|
D | nodes_test.cc | 38 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 78 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 80 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 103 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 121 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F()
|
D | load_store_analysis_test.cc | 48 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 50 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F() 125 dex::TypeIndex(0), in TEST_F() 195 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 197 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F() 285 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 287 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F() 495 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F() 497 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F() 617 dex::TypeIndex(0), in TEST_F()
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 66 dex::TypeIndex type_index, in AddClass() 91 dex_pc_data.AddClass(0, dex::TypeIndex(0)); in GetOfflineProfileMethodInfo() 97 dex_pc_data.AddClass(0, dex::TypeIndex(0)); in GetOfflineProfileMethodInfo() 98 dex_pc_data.AddClass(1, dex::TypeIndex(1)); in GetOfflineProfileMethodInfo() 99 dex_pc_data.AddClass(2, dex::TypeIndex(2)); in GetOfflineProfileMethodInfo() 130 it.second.AddClass(0, dex::TypeIndex(k)); in MakeMegamorphic() 288 ASSERT_TRUE(AddClass("dex_location1", /* checksum= */ 1, dex::TypeIndex(i), &saved_info)); in TEST_F() 289 ASSERT_TRUE(AddClass("dex_location2", /* checksum= */ 2, dex::TypeIndex(i), &saved_info)); in TEST_F() 563 dex_pc_data.AddClass(0, dex::TypeIndex(0)); in TEST_F() 564 dex_pc_data.AddClass(1, dex::TypeIndex(1)); in TEST_F() [all …]
|
D | profile_compilation_info.h | 121 ClassReference(uint8_t dex_profile_idx, const dex::TypeIndex type_idx) : in ClassReference() 134 dex::TypeIndex type_index; // the type index of the class 148 void AddClass(uint16_t dex_profile_idx, const dex::TypeIndex& type_idx); 271 data->class_set.insert(ref.TypeIndex()); in AddClassForDex() 370 bool ContainsClass(const DexFile& dex_file, dex::TypeIndex type_idx) const; 391 /*out*/std::set<dex::TypeIndex>* class_set, 505 class_set(std::less<dex::TypeIndex>(), allocator->Adapter(kArenaAllocProfile)), in DexFileData() 557 bool ContainsClass(const dex::TypeIndex type_index) const; 571 ArenaSet<dex::TypeIndex> class_set; 624 dex::TypeIndex type_idx, [all …]
|
/art/profman/ |
D | boot_image_profile.cc | 55 std::set<std::pair<const ProfileCompilationInfo*, dex::TypeIndex>> inferred_classes; in GenerateBootImageProfile() 107 auto it = inferred_classes.find(std::make_pair(profile.get(), ref.TypeIndex())); in GenerateBootImageProfile() 109 profile->ContainsClass(*ref.dex_file, ref.TypeIndex())) { in GenerateBootImageProfile()
|
D | profman.cc | 640 std::set<dex::TypeIndex> class_types; in GetClassNamesAndMethods() 650 for (const dex::TypeIndex& type_index : class_types) { in GetClassNamesAndMethods() 814 *class_ref = TypeReference(dex_file, dex::TypeIndex(kInvalidTypeIndex)); in FindClass() 827 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClass() 864 dex::TypeIndex return_type_idx; in FindMethodIndex() 865 std::vector<dex::TypeIndex> param_type_idxs; in FindMethodIndex() 876 dex_file->GetTypeId(class_ref.TypeIndex()), *name_id, *proto_id); in FindMethodIndex() 896 *dex_file->FindClassDef(class_ref.TypeIndex()), in HasSingleInvoke() 974 TypeReference class_ref(/* dex_file= */ nullptr, dex::TypeIndex()); in ProcessLine() 989 dex_resolved_classes.first->AddClass(class_ref.TypeIndex()); in ProcessLine() [all …]
|
/art/runtime/ |
D | class_linker-inl.h | 114 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() 132 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() 146 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() 160 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() 172 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, in LookupResolvedType() 184 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, in LookupResolvedType() 196 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, in LookupResolvedType() 209 dex::TypeIndex type_idx, in LookupResolvedType()
|
D | art_method-inl.h | 90 inline ObjPtr<mirror::Class> ArtMethod::LookupResolvedClassFromTypeIndex(dex::TypeIndex type_idx) { in LookupResolvedClassFromTypeIndex() 98 inline ObjPtr<mirror::Class> ArtMethod::ResolveClassFromTypeIndex(dex::TypeIndex type_idx) { in ResolveClassFromTypeIndex() 227 inline bool ArtMethod::IsResolvedTypeIdx(dex::TypeIndex type_idx) { in IsResolvedTypeIdx() 288 inline const char* ArtMethod::GetTypeDescriptorFromTypeIdx(dex::TypeIndex type_idx) { in GetTypeDescriptorFromTypeIdx() 336 inline dex::TypeIndex ArtMethod::GetReturnTypeIndex() { in GetReturnTypeIndex()
|
/art/runtime/entrypoints/quick/ |
D | quick_dexcache_entrypoints.cc | 78 dex::TypeIndex type_idx, in StoreTypeInBss() 157 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeFromCode() 163 StoreTypeInBss(caller_and_outer.outer_method, dex::TypeIndex(type_idx), result); in artResolveTypeFromCode() 175 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeAndVerifyAccessFromCode()
|
/art/tools/veridex/ |
D | resolver.cc | 73 VeriClass* VeridexResolver::GetVeriClass(dex::TypeIndex index) { in GetVeriClass() 167 dex::TypeIndex idx = interfaces->GetTypeItem(i).type_idx_; in LookupMethodIn() 211 dex::TypeIndex idx = interfaces->GetTypeItem(i).type_idx_; in LookupFieldIn() 296 if (GetVeriClass(dex::TypeIndex(i)) == nullptr) { in ResolveAll() 297 LOG(WARNING) << "Unresolved " << dex_file_.PrettyType(dex::TypeIndex(i)); in ResolveAll()
|
/art/runtime/jit/ |
D | profiling_info_test.cc | 88 dex::TypeIndex type_index, in AddClass() 144 classes.emplace_back(method->GetDexFile(), dex::TypeIndex(0)); in SaveProfilingInfoWithFakeInlineCaches() 151 classes.emplace_back(method->GetDexFile(), dex::TypeIndex(k)); in SaveProfilingInfoWithFakeInlineCaches() 159 classes.emplace_back(method->GetDexFile(), dex::TypeIndex(k)); in SaveProfilingInfoWithFakeInlineCaches() 204 dex_pc_data.AddClass(dex_profile_index, class_ref.TypeIndex()); in ConvertProfileMethodInfo()
|
/art/runtime/verifier/ |
D | verifier_deps.h | 89 dex::TypeIndex type_idx, 157 using ClassResolutionBase = std::tuple<dex::TypeIndex, uint16_t>; 161 ClassResolution(dex::TypeIndex type_idx, uint16_t access_flags) in ClassResolution() 165 dex::TypeIndex GetDexTypeIndex() const { return std::get<0>(*this); } in GetDexTypeIndex() 300 dex::TypeIndex type_idx,
|
/art/runtime/entrypoints/ |
D | entrypoint_utils.h | 79 ALWAYS_INLINE inline ObjPtr<mirror::Class> CheckArrayAlloc(dex::TypeIndex type_idx, 91 ALWAYS_INLINE inline ObjPtr<mirror::Array> AllocArrayFromCode(dex::TypeIndex type_idx, 159 inline ObjPtr<mirror::Class> ResolveVerifyAndClinit(dex::TypeIndex type_idx,
|