Home
last modified time | relevance | path

Searched refs:TypeIndex (Results 1 – 25 of 117) sorted by relevance

12345

/art/libdexfile/dex/
Dtype_reference.h34 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()
Ddex_file_types.h83 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 {
Ddex_file_structs.h69 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
Ddex_file_exception_helpers.h42 dex::TypeIndex GetHandlerTypeIndex() const { in GetHandlerTypeIndex()
63 dex::TypeIndex type_idx_; // type index of the caught exception type
Ddex_file.cc61 static_assert(sizeof(dex::TypeIndex) == sizeof(uint16_t), "TypeIndex size is wrong");
62 static_assert(std::is_trivially_copyable<dex::TypeIndex>::value, "TypeIndex not trivial");
213 const ClassDef* DexFile::FindClassDef(dex::TypeIndex type_idx) const { in FindClassDef()
244 const dex::TypeIndex class_idx = GetIndexForTypeId(declaring_klass); in FindFieldId()
246 const dex::TypeIndex type_idx = GetIndexForTypeId(type); in FindFieldId()
279 const dex::TypeIndex class_idx = GetIndexForTypeId(declaring_klass); in FindMethodId()
334 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId()
354 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId()
366 const ProtoId* DexFile::FindProtoId(dex::TypeIndex return_type_idx, in FindProtoId()
367 const dex::TypeIndex* signature_type_idxs, in FindProtoId()
[all …]
Ddex_file.h281 bool IsTypeIndexValid(dex::TypeIndex idx) const { in IsTypeIndexValid()
286 const dex::TypeId& GetTypeId(dex::TypeIndex idx) const { in GetTypeId()
291 dex::TypeIndex GetIndexForTypeId(const dex::TypeId& type_id) const { in GetIndexForTypeId()
296 return dex::TypeIndex(static_cast<uint16_t>(result)); in GetIndexForTypeId()
300 const char* StringByTypeIdx(dex::TypeIndex idx, uint32_t* unicode_length) const;
302 const char* StringByTypeIdx(dex::TypeIndex idx) const;
421 const dex::ClassDef* FindClassDef(dex::TypeIndex type_idx) const;
477 const dex::ProtoId* FindProtoId(dex::TypeIndex return_type_idx,
478 const dex::TypeIndex* signature_type_idxs,
480 const dex::ProtoId* FindProtoId(dex::TypeIndex return_type_idx, in FindProtoId()
[all …]
Ddex_file_exception_helpers.cc88 handler_.type_idx_ = dex::TypeIndex(DecodeUnsignedLeb128(&current_data_)); in Next()
95 handler_.type_idx_ = dex::TypeIndex(DexFile::kDexNoIndex16); in Next()
/art/compiler/optimizing/
Dssa_liveness_analysis_test.cc61 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in TEST_F()
81 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F()
83 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F()
85 graph_->GetDexFile(), dex::TypeIndex(2), 2, DataType::Type::kInt32); in TEST_F()
87 graph_->GetDexFile(), dex::TypeIndex(3), 3, DataType::Type::kInt32); in TEST_F()
89 graph_->GetDexFile(), dex::TypeIndex(4), 4, DataType::Type::kReference); in TEST_F()
150 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F()
152 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F()
154 graph_->GetDexFile(), dex::TypeIndex(2), 2, DataType::Type::kInt32); in TEST_F()
156 graph_->GetDexFile(), dex::TypeIndex(3), 3, DataType::Type::kInt32); in TEST_F()
[all …]
Dinstruction_builder.h179 HNewArray* BuildNewArray(uint32_t dex_pc, dex::TypeIndex type_index, HInstruction* length);
183 dex::TypeIndex type_index,
209 dex::TypeIndex type_index,
219 HLoadClass* BuildLoadClass(dex::TypeIndex type_index, uint32_t dex_pc);
221 HLoadClass* BuildLoadClass(dex::TypeIndex type_index,
228 Handle<mirror::Class> ResolveClass(ScopedObjectAccess& soa, dex::TypeIndex type_index)
280 HNewInstance* BuildNewInstance(dex::TypeIndex type_index, uint32_t dex_pc);
294 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_index,
344 ScopedArenaSafeMap<dex::TypeIndex, Handle<mirror::Class>> class_cache_;
Dnodes_test.cc38 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()
Dselect_generator_test.cc32 dex::TypeIndex(0), in InitGraphAndParameters()
50 dex::TypeIndex(0), in ConstructBasicGraphForSelect()
Dload_store_analysis_test.cc48 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()
128 dex::TypeIndex(0), in TEST_F()
201 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F()
203 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F()
294 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F()
296 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F()
505 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in TEST_F()
507 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); in TEST_F()
628 dex::TypeIndex(0), in TEST_F()
Dscheduler_test.cc96 dex::TypeIndex(0), in TestBuildDependencyGraphAndSchedule()
208 dex::TypeIndex(0), in TestDependencyGraphOnAliasingArrayAccesses()
212 dex::TypeIndex(1), in TestDependencyGraphOnAliasingArrayAccesses()
216 dex::TypeIndex(1), in TestDependencyGraphOnAliasingArrayAccesses()
220 dex::TypeIndex(0), in TestDependencyGraphOnAliasingArrayAccesses()
/art/libprofile/profile/
Dprofile_compilation_info_test.cc95 dex::TypeIndex type_index, in AddClass()
97 std::vector<dex::TypeIndex> classes = {type_index}; in AddClass()
125 std::vector<TypeReference> types = {TypeReference(dex1, dex::TypeIndex(0))}; in GetTestInlineCaches()
131 TypeReference(dex1, dex::TypeIndex(0)), in GetTestInlineCaches()
132 TypeReference(dex2, dex::TypeIndex(1)), in GetTestInlineCaches()
133 TypeReference(dex3, dex::TypeIndex(2))}; in GetTestInlineCaches()
140 TypeReference(dex1, dex::TypeIndex(0)), in GetTestInlineCaches()
141 TypeReference(dex1, dex::TypeIndex(1)), in GetTestInlineCaches()
142 TypeReference(dex1, dex::TypeIndex(2)), in GetTestInlineCaches()
143 TypeReference(dex1, dex::TypeIndex(3)), in GetTestInlineCaches()
[all …]
Dprofile_compilation_info.h138 ClassReference(ProfileIndexType dex_profile_idx, const dex::TypeIndex type_idx) : in ClassReference()
151 dex::TypeIndex type_index; // the type index of the class
165 void AddClass(uint16_t dex_profile_idx, const dex::TypeIndex& type_idx);
460 dex::TypeIndex type_idx,
487 /*out*/std::set<dex::TypeIndex>* class_set,
611 class_set(std::less<dex::TypeIndex>(), allocator->Adapter(kArenaAllocProfile)), in DexFileData()
658 bool ContainsClass(const dex::TypeIndex type_index) const;
672 ArenaSet<dex::TypeIndex> class_set;
917 /*out*/SafeMap<ProfileIndexType, std::vector<dex::TypeIndex>>* dex_to_classes_map);
/art/tools/veridex/
Dresolver.cc73 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()
Dresolver.h51 VeriClass* GetVeriClass(dex::TypeIndex index);
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc81 dex::TypeIndex type_idx, in StoreTypeInBss()
160 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeFromCode()
166 StoreTypeInBss(caller_and_outer.outer_method, dex::TypeIndex(type_idx), result); in artResolveTypeFromCode()
178 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeAndVerifyAccessFromCode()
/art/runtime/
Dclass_linker-inl.h117 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType()
135 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType()
149 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType()
163 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType()
175 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, in LookupResolvedType()
187 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, in LookupResolvedType()
199 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, in LookupResolvedType()
212 dex::TypeIndex type_idx, in LookupResolvedType()
Dart_method-inl.h90 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()
229 inline bool ArtMethod::IsResolvedTypeIdx(dex::TypeIndex type_idx) { in IsResolvedTypeIdx()
290 inline const char* ArtMethod::GetTypeDescriptorFromTypeIdx(dex::TypeIndex type_idx) { in GetTypeDescriptorFromTypeIdx()
338 inline dex::TypeIndex ArtMethod::GetReturnTypeIndex() { in GetReturnTypeIndex()
/art/runtime/verifier/
Dverifier_deps.h90 dex::TypeIndex type_idx,
159 using ClassResolutionBase = std::tuple<dex::TypeIndex, uint16_t>;
163 ClassResolution(dex::TypeIndex type_idx, uint16_t access_flags) in ClassResolution()
167 dex::TypeIndex GetDexTypeIndex() const { return std::get<0>(*this); } in GetDexTypeIndex()
303 dex::TypeIndex type_idx,
/art/runtime/jit/
Dprofiling_info_test.cc112 classes.emplace_back(method->GetDexFile(), dex::TypeIndex(0)); in SaveProfilingInfoWithFakeInlineCaches()
119 classes.emplace_back(method->GetDexFile(), dex::TypeIndex(k)); in SaveProfilingInfoWithFakeInlineCaches()
127 classes.emplace_back(method->GetDexFile(), dex::TypeIndex(k)); in SaveProfilingInfoWithFakeInlineCaches()
172 dex_pc_data.AddClass(dex_profile_index, class_ref.TypeIndex()); in ConvertProfileMethodInfo()
/art/runtime/entrypoints/
Dentrypoint_utils.h81 ALWAYS_INLINE inline ObjPtr<mirror::Class> CheckArrayAlloc(dex::TypeIndex type_idx,
93 ALWAYS_INLINE inline ObjPtr<mirror::Array> AllocArrayFromCode(dex::TypeIndex type_idx,
161 inline ObjPtr<mirror::Class> ResolveVerifyAndClinit(dex::TypeIndex type_idx,
/art/runtime/interpreter/mterp/
Dnterp.cc423 dex::TypeIndex index; in NterpGetClassOrAllocateObject()
426 index = dex::TypeIndex(inst->VRegB_21c()); in NterpGetClassOrAllocateObject()
429 index = dex::TypeIndex(inst->VRegB_21c()); in NterpGetClassOrAllocateObject()
432 index = dex::TypeIndex(inst->VRegC_22c()); in NterpGetClassOrAllocateObject()
435 index = dex::TypeIndex(inst->VRegB_21c()); in NterpGetClassOrAllocateObject()
438 index = dex::TypeIndex(inst->VRegC_22c()); in NterpGetClassOrAllocateObject()
537 ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in DoFilledNewArray()
/art/profman/
Dprofman.cc737 std::set<dex::TypeIndex> class_types; in GetClassNamesAndMethods()
747 for (const dex::TypeIndex& type_index : class_types) { in GetClassNamesAndMethods()
912 *class_ref = TypeReference(dex_file, dex::TypeIndex(kInvalidTypeIndex)); in FindClass()
925 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClass()
970 dex::TypeIndex return_type_idx; in FindMethodIndex()
971 std::vector<dex::TypeIndex> param_type_idxs; in FindMethodIndex()
982 dex_file->GetTypeId(class_ref.TypeIndex()), *name_id, *proto_id); in FindMethodIndex()
1002 *dex_file->FindClassDef(class_ref.TypeIndex()), in HasSingleInvoke()
1104 TypeReference class_ref(/* dex_file= */ nullptr, dex::TypeIndex()); in ProcessLine()
1117 dex_file->GetIndexForClassDef(*dex_file->FindClassDef(class_ref.TypeIndex()))); in ProcessLine()
[all …]

12345