Home
last modified time | relevance | path

Searched refs:type_idx (Results 1 – 25 of 43) sorted by relevance

12

/art/runtime/
Dclass_linker-inl.h113 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 …]
Dsdk_checker.cc139 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in ShouldDenyAccess() local
140 if (dex_file->FindClassDef(type_idx) != nullptr) { in ShouldDenyAccess()
Dclass_linker_test.cc999 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 …]
Dart_method-inl.h291 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));
Dclass_linker.h289 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/
Ddexanalyze_bytecode.cc283 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/
Dquick_dexcache_entrypoints.cc84 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/
Ddex_instruction.cc225 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()
Ddex_file.cc333 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 …]
Ddex_file-inl.h106 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()
Dtest_dex_file_builder.h114 uint32_t type_idx = 0u; variable
116 entry.second = type_idx;
117 type_idx += 1u;
181 ++type_idx;
Ddex_file.h388 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;
Ddex_file_verifier.cc885 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/
Ddex_cache-inl.h163 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()
Ddex_cache.cc217 void DexCache::SetResolvedType(dex::TypeIndex type_idx, ObjPtr<Class> resolved) { in SetResolvedType() argument
224 SetResolvedTypesEntry(type_idx.index_, resolved.Ptr()); in SetResolvedType()
Ddex_cache.h325 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/
Dentrypoint_utils-inl.h293 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()
Dentrypoint_utils.h80 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/
Dresolver.cc32 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/
Ddex2oat_vdex_test.cc101 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/
Dprofile_compilation_info.h116 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,
Dprofile_compilation_info.cc591 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/
Djava_lang_reflect_Executable.cc340 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/
Dinterpreter_common.cc1343 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/
Dreference_type_propagation.cc92 dex::TypeIndex type_idx,
530 dex::TypeIndex type_idx, in UpdateReferenceTypeInfo() argument
541 type_idx, dex_cache, loader); in UpdateReferenceTypeInfo()

12