Home
last modified time | relevance | path

Searched refs:type_index (Results 1 – 25 of 27) sorted by relevance

12

/art/libprofile/profile/
Dprofile_compilation_info.h117 dex_profile_index(dex_profile_idx), type_index(type_idx) {} in ClassReference()
120 return dex_profile_index == other.dex_profile_index && type_index == other.type_index;
124 ? type_index < other.type_index
129 dex::TypeIndex type_index; // the type index of the class member
332 void AddClass(ProfileIndexType profile_index, dex::TypeIndex type_index) { in AddClass() argument
335 DCHECK(type_index.IsValid()); in AddClass()
336 DCHECK(type_index.index_ <= data->num_type_ids || in AddClass()
337 type_index.index_ - data->num_type_ids < extra_descriptors_.size()); in AddClass()
338 data->class_set.insert(type_index); in AddClass()
346 dex::TypeIndex type_index,
[all …]
Dprofile_test_helper.h77 dex::TypeIndex type_index,
79 return info->AddClass(*dex, type_index, annotation);
129 for (dex::TypeIndex type_index : dex_pc_data.classes) { in EqualInlineCaches() local
134 return type_index == type_ref.TypeIndex(); in EqualInlineCaches()
138 const char* descriptor = info.GetTypeDescriptor(dex_file, type_index); in EqualInlineCaches()
Dprofile_compilation_info.cc720 dex::TypeIndex type_index = FindOrCreateTypeIndex(dex_file, descriptor); in AddClass() local
721 if (!type_index.IsValid()) { in AddClass()
724 data->class_set.insert(type_index); in AddClass()
1264 dex::TypeIndex type_index = FindOrCreateTypeIndex(*pmi.ref.dex_file, class_ref); in AddMethod() local
1265 if (type_index.IsValid()) { in AddMethod()
1266 dex_pc_data->AddClass(type_index); in AddMethod()
1341 for (const dex::TypeIndex& type_index : dex_pc_data.classes) { in VerifyProfileData() local
1342 if (type_index.index_ >= dex_data->num_type_ids) { in VerifyProfileData()
1343 CHECK_LT(type_index.index_ - dex_data->num_type_ids, extra_descriptors_.size()); in VerifyProfileData()
1349 for (const dex::TypeIndex& type_index : dex_data->class_set) { in VerifyProfileData() local
[all …]
Dprofile_compilation_info_test.cc252 for (uint32_t type_index = 0; type_index != num_type_ids1; ++type_index) { in TEST_F() local
253 ASSERT_TRUE(info.AddClass(*dex1, dex::TypeIndex(type_index))); in TEST_F()
256 for (uint32_t type_index = num_type_ids1; type_index != DexFile::kDexNoIndex16; ++type_index) { in TEST_F() local
257 std::string descriptor = "LX" + std::to_string(type_index) + ";"; in TEST_F()
266 for (uint32_t type_index = 0; type_index != num_type_ids2; ++type_index) { in TEST_F() local
267 ASSERT_TRUE(info.AddClass(*dex2, dex::TypeIndex(type_index))); in TEST_F()
274 for (uint32_t type_index = num_type_ids2; type_index != DexFile::kDexNoIndex16; ++type_index) { in TEST_F() local
275 std::string descriptor = "LX" + std::to_string(type_index) + ";"; in TEST_F()
676 dex::TypeIndex type_index = *dex_pc_data.classes.begin(); in TEST_F() local
677 ASSERT_FALSE(dex2->IsTypeIndexValid(type_index)); in TEST_F()
[all …]
/art/compiler/optimizing/
Dinstruction_builder.h173 HNewArray* BuildNewArray(uint32_t dex_pc, dex::TypeIndex type_index, HInstruction* length);
177 dex::TypeIndex type_index,
202 dex::TypeIndex type_index,
207 dex::TypeIndex type_index,
217 HLoadClass* BuildLoadClass(dex::TypeIndex type_index, uint32_t dex_pc);
219 HLoadClass* BuildLoadClass(dex::TypeIndex type_index,
226 Handle<mirror::Class> ResolveClass(ScopedObjectAccess& soa, dex::TypeIndex type_index)
229 bool LoadClassNeedsAccessCheck(dex::TypeIndex type_index, ObjPtr<mirror::Class> klass)
278 HNewInstance* BuildNewInstance(dex::TypeIndex type_index, uint32_t dex_pc);
292 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_index,
Dinstruction_builder.cc1242 HNewInstance* HInstructionBuilder::BuildNewInstance(dex::TypeIndex type_index, uint32_t dex_pc) { in BuildNewInstance() argument
1245 HLoadClass* load_class = BuildLoadClass(type_index, dex_pc); in BuildNewInstance()
1277 type_index, in BuildNewInstance()
2235 dex::TypeIndex type_index, in BuildNewArray() argument
2237 HLoadClass* cls = BuildLoadClass(type_index, dex_pc); in BuildNewArray()
2239 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(type_index)); in BuildNewArray()
2249 dex::TypeIndex type_index, in BuildFilledNewArray() argument
2254 HNewArray* new_array = BuildNewArray(dex_pc, type_index, length); in BuildFilledNewArray()
2255 const char* descriptor = dex_file_->StringByTypeIdx(type_index); in BuildFilledNewArray()
2372 HLoadClass* HInstructionBuilder::BuildLoadClass(dex::TypeIndex type_index, uint32_t dex_pc) { in BuildLoadClass() argument
[all …]
Dsharpening.cc171 dex::TypeIndex type_index = load_class->GetTypeIndex(); in ComputeLoadClassKind() local
203 const char* klass_descriptor = dex_file.StringByTypeIdx(type_index); in ComputeLoadClassKind()
230 compiler_options.IsImageClass(dex_file.StringByTypeIdx(type_index))) { in ComputeLoadClassKind()
Dcode_generator_arm_vixl.h619 PcRelativePatchInfo* NewBootImageTypePatch(const DexFile& dex_file, dex::TypeIndex type_index);
638 dex::TypeIndex type_index,
Dcode_generator_x86_64.h474 dex::TypeIndex type_index,
Dcode_generator_arm64.cc285 dex::TypeIndex type_index = cls_->GetTypeIndex(); in EmitNativeCode() local
286 __ Mov(calling_convention.GetRegisterAt(0).W(), type_index.index_); in EmitNativeCode()
4825 dex::TypeIndex type_index, in NewBootImageTypePatch() argument
4827 return NewPcRelativePatch(&dex_file, type_index.index_, adrp_label, &boot_image_type_patches_); in NewBootImageTypePatch()
4834 dex::TypeIndex type_index = load_class->GetTypeIndex(); in NewBssEntryTypePatch() local
4850 return NewPcRelativePatch(&dex_file, type_index.index_, adrp_label, patches); in NewBssEntryTypePatch()
4926 const DexFile& dex_file, dex::TypeIndex type_index, Handle<mirror::Class> handle) { in DeduplicateJitClassLiteral() argument
4927 ReserveJitClassRoot(TypeReference(&dex_file, type_index), handle); in DeduplicateJitClassLiteral()
4929 TypeReference(&dex_file, type_index), in DeduplicateJitClassLiteral()
5300 dex::TypeIndex type_index = cls->GetTypeIndex(); in VisitLoadClass() local
[all …]
Dcode_generator_x86.h504 dex::TypeIndex type_index,
Dinliner.cc672 for (const dex::TypeIndex& type_index : dex_pc_data.classes) { in GetInlineCacheAOT() local
674 const char* descriptor = pci->GetTypeDescriptor(dex_file, type_index); in GetInlineCacheAOT()
Dcode_generator_arm64.h759 dex::TypeIndex type_index,
Dcode_generator_arm_vixl.cc533 dex::TypeIndex type_index = cls_->GetTypeIndex(); in EmitNativeCode() local
534 __ Mov(calling_convention.GetRegisterAt(0), type_index.index_); in EmitNativeCode()
9380 const DexFile& dex_file, dex::TypeIndex type_index) { in NewBootImageTypePatch() argument
9381 return NewPcRelativePatch(&dex_file, type_index.index_, &boot_image_type_patches_); in NewBootImageTypePatch()
9387 dex::TypeIndex type_index = load_class->GetTypeIndex(); in NewTypeBssEntryPatch() local
9403 return NewPcRelativePatch(&dex_file, type_index.index_, patches); in NewTypeBssEntryPatch()
9466 dex::TypeIndex type_index, in DeduplicateJitClassLiteral() argument
9468 ReserveJitClassRoot(TypeReference(&dex_file, type_index), handle); in DeduplicateJitClassLiteral()
9470 TypeReference(&dex_file, type_index), in DeduplicateJitClassLiteral()
Dnodes.h4472 dex::TypeIndex type_index,
4480 type_index_(type_index),
5911 dex::TypeIndex type_index,
5917 type_index_(type_index),
6752 dex::TypeIndex type_index,
6763 type_index_(type_index),
/art/runtime/entrypoints/quick/
Dquick_throw_entrypoints.cc127 dex::TypeIndex type_index(check_cast.VRegB_21c()); in artThrowClassCastException() local
129 dest_type = linker->LookupResolvedType(type_index, visitor.caller).Ptr(); in artThrowClassCastException()
131 << visitor.caller->GetDexFile()->PrettyType(type_index); in artThrowClassCastException()
/art/tools/veridex/
Dflow_analysis.cc534 dex::TypeIndex type_index(instruction.VRegC_22c()); in ProcessDexInstruction() local
535 VeriClass* cls = resolver_->GetVeriClass(type_index); in ProcessDexInstruction()
541 dex::TypeIndex type_index(instruction.VRegB_35c()); in ProcessDexInstruction() local
542 VeriClass* cls = resolver_->GetVeriClass(type_index); in ProcessDexInstruction()
548 dex::TypeIndex type_index(instruction.VRegB_3rc()); in ProcessDexInstruction() local
550 VeriClass* cls = resolver_->GetVeriClass(type_index); in ProcessDexInstruction()
669 dex::TypeIndex type_index(instruction.VRegB_21c()); in ProcessDexInstruction() local
670 UpdateRegister(reference, resolver_->GetVeriClass(type_index)); in ProcessDexInstruction()
/art/runtime/jit/
Dprofile_saver.cc408 dex::TypeIndex type_index; member
543 dex::TypeIndex type_index = k->GetDexTypeIndex(); in CollectInternal()
556 ClassRecord{type_index, dim, copied_methods_start, methods}); in CollectInternal()
679 array_class_descriptor += dex_file->StringByTypeIdx(class_record.type_index); in UpdateProfile()
680 dex::TypeIndex type_index = in UpdateProfile() local
682 if (type_index.IsValid()) { in UpdateProfile()
683 profile_info->AddClass(profile_index, type_index); in UpdateProfile()
688 profile_info->AddClass(profile_index, class_record.type_index); in UpdateProfile()
734 dex::TypeIndex type_index = in UpdateProfile() local
736 if (type_index.IsValid()) { in UpdateProfile()
[all …]
Djit_code_cache.cc1534 dex::TypeIndex type_index; in GetProfiledMethods() local
1542 type_index = cls->FindTypeIndexInOtherDexFile(*dex_file); in GetProfiledMethods()
1545 type_index = cls->GetDexTypeIndex(); in GetProfiledMethods()
1547 if (!type_index.IsValid()) { in GetProfiledMethods()
1556 class_dex_file, type_index); in GetProfiledMethods()
/art/runtime/dex/
Ddex_file_annotations.cc195 uint32_t type_index = DecodeUnsignedLeb128(&annotation); in SearchAnnotationSet() local
197 if (strcmp(descriptor, dex_file.StringByTypeIdx(dex::TypeIndex(type_index))) == 0) { in SearchAnnotationSet()
355 uint32_t type_index = DecodeUnsignedLeb128(annotation); in ProcessEncodedAnnotation() local
363 class_linker->ResolveType(dex::TypeIndex(type_index), in ProcessEncodedAnnotation()
368 << " annotation class " << type_index; in ProcessEncodedAnnotation()
490 dex::TypeIndex type_index(index); in ProcessAnnotationValue() local
493 type_index, in ProcessAnnotationValue()
500 const char* msg = dex_file.StringByTypeIdx(type_index); in ProcessAnnotationValue()
773 uint32_t type_index = DecodeUnsignedLeb128(&annotation); in GetAnnotationItemFromAnnotationSet() local
778 dex::TypeIndex(type_index), in GetAnnotationItemFromAnnotationSet()
[all …]
/art/profman/
Dprofman.cc831 for (dex::TypeIndex type_index : ic_data.classes) { in GetInlineCacheLine() local
832 val->second.classes_.insert(type_index); in GetInlineCacheLine()
849 for (dex::TypeIndex type_index : dex_data.classes_) { in GetInlineCacheLine() local
854 dump_ic << profile_info.GetTypeDescriptor(dex_file, type_index); in GetInlineCacheLine()
875 for (const dex::TypeIndex& type_index : class_types) { in GetClassNamesAndMethods() local
876 out_lines->insert(profile_info.GetTypeDescriptor(dex_file.get(), type_index)); in GetClassNamesAndMethods()
1045 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClassDef() local
1046 const dex::ClassDef* class_def = dex_file->FindClassDef(type_index); in FindClassDef()
1048 *class_ref = TypeReference(dex_file.get(), type_index); in FindClassDef()
Dprofile_assistant_test.cc392 for (dex::TypeIndex type_index : dex_pc_data.classes) { in AssertInlineCaches() local
393 ASSERT_TRUE(type_index.IsValid()); in AssertInlineCaches()
394 if (type_ref.TypeIndex() == type_index) { in AssertInlineCaches()
401 for (dex::TypeIndex type_index : dex_pc_data.classes) { in AssertInlineCaches() local
402 ASSERT_TRUE(type_index.IsValid()); in AssertInlineCaches()
403 const char* descriptor = info.GetTypeDescriptor(dex_file, type_index); in AssertInlineCaches()
/art/dex2oat/driver/
Dcompiler_driver.h150 dex::TypeIndex type_index,
Dcompiler_driver.cc632 dex::TypeIndex type_index( in InitializeTypeCheckBitstrings() local
634 const char* descriptor = dex_file.StringByTypeIdx(type_index); in InitializeTypeCheckBitstrings()
641 class_linker->LookupResolvedType(type_index, in InitializeTypeCheckBitstrings()
/art/dexlayout/
Ddex_ir_builder.cc846 const dex::TypeIndex type_index = it.GetHandlerTypeIndex(); in DedupeOrCreateCodeItem() local
847 const TypeId* type_id = header_->GetTypeIdOrNullPtr(type_index.index_); in DedupeOrCreateCodeItem()

12