/art/runtime/ |
D | class_linker-inl.h | 113 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() argument 121 ObjPtr<mirror::Class> resolved_type = referrer->GetDexCache()->GetResolvedType(type_idx); in ResolveType() 123 resolved_type = DoResolveType(type_idx, referrer); in ResolveType() 128 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() argument 132 ObjPtr<mirror::Class> resolved_type = referrer->GetDexCache()->GetResolvedType(type_idx); in ResolveType() 134 resolved_type = DoResolveType(type_idx, referrer); in ResolveType() 139 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() argument 143 ObjPtr<mirror::Class> resolved_type = referrer->GetDexCache()->GetResolvedType(type_idx); in ResolveType() 145 resolved_type = DoResolveType(type_idx, referrer); in ResolveType() 150 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, in ResolveType() argument [all …]
|
D | sdk_checker.cc | 139 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in ShouldDenyAccess() local 140 if (dex_file->FindClassDef(type_idx) != nullptr) { in ShouldDenyAccess()
|
D | class_linker_test.cc | 999 dex::TypeIndex type_idx = klass->GetClassDef()->class_idx_; in TEST_F() local 1002 class_linker_->LookupResolvedType(type_idx, dex_cache, class_loader.Get()), in TEST_F() 1005 dex_cache->ClearResolvedType(type_idx); in TEST_F() 1006 EXPECT_TRUE(dex_cache->GetResolvedType(type_idx) == nullptr); in TEST_F() 1008 class_linker_->LookupResolvedType(type_idx, dex_cache, class_loader.Get()), in TEST_F() 1055 dex::TypeIndex type_idx = klass->GetClassDef()->class_idx_; in TEST_F() local 1058 class_linker_->LookupResolvedType(type_idx, dex_cache.Get(), class_loader.Get()), in TEST_F() 1061 dex_cache->ClearResolvedType(type_idx); in TEST_F() 1062 EXPECT_TRUE(dex_cache->GetResolvedType(type_idx) == nullptr); in TEST_F() 1064 class_linker_->LookupResolvedType(type_idx, dex_cache.Get(), class_loader.Get()), in TEST_F() [all …]
|
D | art_method-inl.h | 291 inline ObjPtr<mirror::Class> ArtMethod::LookupResolvedClassFromTypeIndex(dex::TypeIndex type_idx) { 294 Runtime::Current()->GetClassLinker()->LookupResolvedType(type_idx, this); 299 inline ObjPtr<mirror::Class> ArtMethod::ResolveClassFromTypeIndex(dex::TypeIndex type_idx) { 300 ObjPtr<mirror::Class> type = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, this); 531 inline const char* ArtMethod::GetTypeDescriptorFromTypeIdx(dex::TypeIndex type_idx) { 534 return dex_file->GetTypeDescriptor(dex_file->GetTypeId(type_idx));
|
D | class_linker.h | 289 ObjPtr<mirror::Class> ResolveType(dex::TypeIndex type_idx, ObjPtr<mirror::Class> referrer) 292 ObjPtr<mirror::Class> ResolveType(dex::TypeIndex type_idx, ArtField* referrer) 295 ObjPtr<mirror::Class> ResolveType(dex::TypeIndex type_idx, ArtMethod* referrer) 302 ObjPtr<mirror::Class> ResolveType(dex::TypeIndex type_idx, 311 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_idx, 314 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_idx, ArtField* referrer) 316 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_idx, ArtMethod* referrer) 322 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_idx, 1198 ObjPtr<mirror::Class> DoLookupResolvedType(dex::TypeIndex type_idx, 1201 ObjPtr<mirror::Class> DoLookupResolvedType(dex::TypeIndex type_idx, [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze_bytecode.cc | 283 uint32_t type_idx = current_type.types_.Get(holder_type.index_); in ProcessCodeItem() local 285 ExtendPrefix(&type_idx, &field_idx); in ProcessCodeItem() 286 CHECK(InstNibbles(new_opcode, {out_reg, receiver, type_idx, field_idx})); in ProcessCodeItem() 344 uint32_t type_idx = current_type.types_.Get(holder_type.index_); in ProcessCodeItem() local 346 ++field_linkage_counts_[std::make_pair(type_idx, field_idx)]; in ProcessCodeItem() 347 extended_field_ += ExtendPrefix(&type_idx, &field_idx) ? 1u : 0u; in ProcessCodeItem() 348 if (InstNibbles(new_opcode, {out_reg >> 4, out_reg & 0xF, type_idx, field_idx})) { in ProcessCodeItem() 388 uint32_t type_idx = current_type.types_.Get(receiver_type.index_); in ProcessCodeItem() local 390 ++method_linkage_counts_[std::make_pair(type_idx, local_idx)]; in ProcessCodeItem() 401 extended_method_ += ExtendPrefix(&type_idx, &local_idx) ? 1u : 0u; in ProcessCodeItem() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_dexcache_entrypoints.cc | 84 dex::TypeIndex type_idx, in StoreTypeInBss() argument 120 mapping, type_idx.index_, dex_file->NumTypeIds(), sizeof(GcRoot<mirror::Class>)); in StoreTypeInBss() 228 extern "C" mirror::Class* artResolveTypeFromCode(uint32_t type_idx, Thread* self) in artResolveTypeFromCode() argument 235 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeFromCode() 242 StoreTypeInBss(caller, dex::TypeIndex(type_idx), result, outer_method); in artResolveTypeFromCode() 247 extern "C" mirror::Class* artResolveTypeAndVerifyAccessFromCode(uint32_t type_idx, Thread* self) in artResolveTypeAndVerifyAccessFromCode() argument 254 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeAndVerifyAccessFromCode() 261 StoreTypeInBss(caller, dex::TypeIndex(type_idx), result, outer_method); in artResolveTypeAndVerifyAccessFromCode()
|
/art/libdexfile/dex/ |
D | dex_instruction.cc | 225 dex::TypeIndex type_idx(VRegB_21c()); in DumpString() local 227 << file->PrettyType(type_idx) << " // type@" << type_idx; in DumpString() 301 dex::TypeIndex type_idx(VRegC_22c()); in DumpString() local 303 << static_cast<int>(VRegB_22c()) << ", " << file->PrettyType(type_idx) in DumpString() 304 << " // type@" << type_idx.index_; in DumpString() 310 dex::TypeIndex type_idx(VRegC_22c()); in DumpString() local 312 << static_cast<int>(VRegB_22c()) << ", " << file->PrettyType(type_idx) in DumpString() 313 << " // type@" << type_idx.index_; in DumpString()
|
D | dex_file.cc | 333 const ClassDef* DexFile::FindClassDef(dex::TypeIndex type_idx) const { in FindClassDef() 341 if (class_def.class_idx_ == type_idx) { in FindClassDef() 373 const dex::TypeIndex type_idx = GetIndexForTypeId(type); in FindFieldId() local 389 if (type_idx > field.type_idx_) { in FindFieldId() 391 } else if (type_idx < field.type_idx_) { in FindFieldId() 578 dex::TypeIndex type_idx = GetIndexForTypeId(*type_id); in CreateTypeList() local 580 param_type_idxs->push_back(type_idx); in CreateTypeList() 582 *return_type_idx = type_idx; in CreateTypeList() 704 std::string DexFile::PrettyType(dex::TypeIndex type_idx) const { in PrettyType() 705 if (type_idx.index_ >= NumTypeIds()) { in PrettyType() [all …]
|
D | dex_file-inl.h | 106 inline const char* DexFile::GetTypeDescriptor(dex::TypeIndex type_idx) const { in GetTypeDescriptor() argument 107 return GetTypeDescriptor(GetTypeId(type_idx)); in GetTypeDescriptor() 114 inline std::string_view DexFile::GetTypeDescriptorView(dex::TypeIndex type_idx) const { in GetTypeDescriptorView() argument 115 return GetTypeDescriptorView(GetTypeId(type_idx)); in GetTypeDescriptorView() 478 dex::TypeIndex type_idx(idx); in DecodeDebugLocalInfo() 479 return type_idx.IsValid() ? GetTypeDescriptor(type_idx) : nullptr; in DecodeDebugLocalInfo()
|
D | test_dex_file_builder.h | 114 uint32_t type_idx = 0u; variable 116 entry.second = type_idx; 117 type_idx += 1u; 181 ++type_idx;
|
D | dex_file.h | 388 const char* GetTypeDescriptor(dex::TypeIndex type_idx) const; 390 std::string_view GetTypeDescriptorView(dex::TypeIndex type_idx) const; 533 const dex::ClassDef* FindClassDef(dex::TypeIndex type_idx) const; 871 std::string PrettyType(dex::TypeIndex type_idx) const;
|
D | dex_file_verifier.cc | 885 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckAndGetHandlerOffsets() 886 if (!CheckIndex(type_idx, header_->type_ids_size_, "handler type_idx")) { in CheckAndGetHandlerOffsets() 1932 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem() 1933 if (type_idx != 0) { in CheckIntraDebugInfoItem() 1934 type_idx--; in CheckIntraDebugInfoItem() 1935 if (!CheckIndex(type_idx, header_->type_ids_size_, "DBG_START_LOCAL type_idx")) { in CheckIntraDebugInfoItem() 1963 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckIntraDebugInfoItem() 1964 if (type_idx != 0) { in CheckIntraDebugInfoItem() 1965 type_idx--; in CheckIntraDebugInfoItem() 1966 if (!CheckIndex(type_idx, header_->type_ids_size_, "DBG_START_LOCAL_EXTENDED type_idx")) { in CheckIntraDebugInfoItem()
|
/art/runtime/mirror/ |
D | dex_cache-inl.h | 163 inline Class* DexCache::GetResolvedType(dex::TypeIndex type_idx) { in GetResolvedType() argument 164 return GetResolvedTypesEntry(type_idx.index_); in GetResolvedType() 167 inline void DexCache::ClearResolvedType(dex::TypeIndex type_idx) { in ClearResolvedType() argument 171 array->Set(type_idx.index_, nullptr); in ClearResolvedType() 177 resolved_types->Clear(type_idx.index_); in ClearResolvedType()
|
D | dex_cache.cc | 217 void DexCache::SetResolvedType(dex::TypeIndex type_idx, ObjPtr<Class> resolved) { in SetResolvedType() argument 224 SetResolvedTypesEntry(type_idx.index_, resolved.Ptr()); in SetResolvedType()
|
D | dex_cache.h | 325 Class* GetResolvedType(dex::TypeIndex type_idx) REQUIRES_SHARED(Locks::mutator_lock_); 327 void SetResolvedType(dex::TypeIndex type_idx, ObjPtr<Class> resolved) 330 void ClearResolvedType(dex::TypeIndex type_idx) REQUIRES_SHARED(Locks::mutator_lock_);
|
/art/runtime/entrypoints/ |
D | entrypoint_utils-inl.h | 293 inline ObjPtr<mirror::Class> CheckArrayAlloc(dex::TypeIndex type_idx, in CheckArrayAlloc() argument 302 ObjPtr<mirror::Class> klass = method->GetDexCache()->GetResolvedType(type_idx); in CheckArrayAlloc() 305 klass = class_linker->ResolveType(type_idx, method); in CheckArrayAlloc() 330 inline ObjPtr<mirror::Array> AllocArrayFromCode(dex::TypeIndex type_idx, in AllocArrayFromCode() argument 336 ObjPtr<mirror::Class> klass = CheckArrayAlloc(type_idx, component_count, method, &slow_path); in AllocArrayFromCode() 617 dex::TypeIndex type_idx = referrer->GetDexFile()->GetMethodId(method_idx).class_idx_; in FindSuperMethodToCall() local 618 ObjPtr<mirror::Class> referenced_class = linker->ResolveType(type_idx, referrer); in FindSuperMethodToCall() 665 inline ObjPtr<mirror::Class> ResolveVerifyAndClinit(dex::TypeIndex type_idx, in ResolveVerifyAndClinit() argument 671 ObjPtr<mirror::Class> klass = class_linker->ResolveType(type_idx, referrer); in ResolveVerifyAndClinit()
|
D | entrypoint_utils.h | 80 ALWAYS_INLINE inline ObjPtr<mirror::Class> CheckArrayAlloc(dex::TypeIndex type_idx, 92 ALWAYS_INLINE inline ObjPtr<mirror::Array> AllocArrayFromCode(dex::TypeIndex type_idx, 155 inline ObjPtr<mirror::Class> ResolveVerifyAndClinit(dex::TypeIndex type_idx,
|
/art/tools/veridex/ |
D | resolver.cc | 32 const uint32_t type_idx = accessor.GetClassIdx().index_; in Run() local 35 type_infos_[type_idx] = *existing->second; in Run() 38 type_infos_[type_idx] = VeriClass(Primitive::Type::kPrimNot, 0, &accessor.GetClassDef()); in Run() 39 type_map_[name] = &type_infos_[type_idx]; in Run()
|
/art/dex2oat/ |
D | dex2oat_vdex_test.cc | 101 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in GetClassDefIndex() local 102 const dex::ClassDef* class_def = dex_file.FindClassDef(type_idx); in GetClassDefIndex()
|
/art/libprofile/profile/ |
D | profile_compilation_info.h | 116 ClassReference(ProfileIndexType dex_profile_idx, const dex::TypeIndex type_idx) : in ClassReference() 117 dex_profile_index(dex_profile_idx), type_index(type_idx) {} in ClassReference() 142 void AddClass(const dex::TypeIndex& type_idx); 546 dex::TypeIndex type_idx,
|
D | profile_compilation_info.cc | 591 void ProfileCompilationInfo::DexPcData::AddClass(const dex::TypeIndex& type_idx) { in AddClass() argument 600 auto lb = classes.lower_bound(type_idx); in AddClass() 601 if (lb != classes.end() && *lb == type_idx) { in AddClass() 614 classes.emplace_hint(lb, type_idx); in AddClass() 2071 dex::TypeIndex type_idx, in ContainsClass() argument 2074 return (dex_data != nullptr) && dex_data->ContainsClass(type_idx); in ContainsClass() 2303 uint16_t type_idx = rand() % max_classes; in GenerateTestProfile() local 2305 type_idx %= kFavorFirstN; in GenerateTestProfile() 2307 data->class_set.insert(dex::TypeIndex(type_idx)); in GenerateTestProfile() 2474 for (dex::TypeIndex type_idx : data->class_set) { in GetClassDescriptors() local [all …]
|
/art/runtime/native/ |
D | java_lang_reflect_Executable.cc | 340 const dex::TypeIndex type_idx = params->GetTypeItem(i).type_idx_; in Executable_getParameterTypesInternal() local 341 param.Assign(Runtime::Current()->GetClassLinker()->ResolveType(type_idx, method)); in Executable_getParameterTypesInternal()
|
/art/runtime/interpreter/ |
D | interpreter_common.cc | 1343 const dex::TypeIndex type_idx = params->GetTypeItem(shorty_pos).type_idx_; in DoCallCommon() local 1344 ObjPtr<mirror::Class> arg_type = method->GetDexCache()->GetResolvedType(type_idx); in DoCallCommon() 1350 arg_type = method->ResolveClassFromTypeIndex(type_idx); in DoCallCommon() 1467 uint16_t type_idx = is_range ? inst->VRegB_3rc() : inst->VRegB_35c(); in DoFilledNewArray() local 1469 ObjPtr<mirror::Class> array_class = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in DoFilledNewArray()
|
/art/compiler/optimizing/ |
D | reference_type_propagation.cc | 92 dex::TypeIndex type_idx, 530 dex::TypeIndex type_idx, in UpdateReferenceTypeInfo() argument 541 type_idx, dex_cache, loader); in UpdateReferenceTypeInfo()
|