Searched defs:type_idx (Results 1 - 22 of 22) sorted by relevance

/art/runtime/
H A Dart_field.cc55 mirror::Class* ArtField::ResolveGetType(uint32_t type_idx) { argument
56 return Runtime::Current()->GetClassLinker()->ResolveType(type_idx, this);
H A Ddex_instruction.cc210 uint32_t type_idx = VRegB_21c(); local
211 os << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << PrettyType(type_idx, *file)
212 << " // type@" << type_idx;
312 uint32_t type_idx = VRegC_22c(); local
314 << PrettyType(type_idx, *file) << " // type@" << type_idx;
320 uint32_t type_idx = VRegC_22c(); local
322 << PrettyType(type_idx, *file) << " // type@" << type_idx;
H A Dclass_linker-inl.h80 inline mirror::Class* ClassLinker::ResolveType(uint16_t type_idx, ArtMethod* referrer) { argument
81 mirror::Class* resolved_type = referrer->GetDexCacheResolvedType(type_idx, image_pointer_size_);
88 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader);
95 inline mirror::Class* ClassLinker::ResolveType(uint16_t type_idx, ArtField* referrer) { argument
98 mirror::Class* resolved_type = dex_cache_ptr->GetResolvedType(type_idx);
104 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader);
H A Dart_method-inl.h206 inline mirror::Class* ArtMethod::GetClassFromTypeIndex(uint16_t type_idx, argument
209 mirror::Class* type = GetDexCacheResolvedType(type_idx, ptr_size);
211 type = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, this);
331 inline bool ArtMethod::IsResolvedTypeIdx(uint16_t type_idx, size_t ptr_size) { argument
333 return GetDexCacheResolvedType(type_idx, ptr_size) != nullptr;
382 inline const char* ArtMethod::GetTypeDescriptorFromTypeIdx(uint16_t type_idx) { argument
385 return dex_file->GetTypeDescriptor(dex_file->GetTypeId(type_idx));
H A Dart_method.cc348 auto type_idx = proto_params->GetTypeItem(i).type_idx_; local
349 auto* type = cl->ResolveType(type_idx, this);
H A Dclass_linker_test.cc1076 uint32_t type_idx = dex_file->GetIndexForTypeId(*type_id); local
1077 mirror::Class* uninit = ResolveVerifyAndClinit(type_idx, clinit, soa.Self(), true, false);
1080 mirror::Class* init = ResolveVerifyAndClinit(type_idx, getS0, soa.Self(), true, false);
H A Dreflection.cc363 uint16_t type_idx = params->GetTypeItem(i).type_idx_; local
364 mirror::Class* param_type = m->GetClassFromTypeIndex(type_idx,
370 << m->GetTypeDescriptorFromTypeIdx(type_idx) << "\n"
H A Ddex_file_verifier.cc80 const char* DexFileVerifier::CheckLoadStringByTypeIdx(uint32_t type_idx, const char* error_string) { argument
81 if (UNLIKELY(!CheckIndex(type_idx, dex_file_->NumTypeIds(), error_string))) {
84 const DexFile::TypeId& type_id = dex_file_->GetTypeId(type_idx);
111 #define LOAD_STRING_BY_TYPE(var, type_idx, error) \
112 const char* var = CheckLoadStringByTypeIdx(type_idx, error); \
471 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); local
472 if (!CheckIndex(type_idx, header_->type_ids_size_, "handler type_idx")) {
732 if (!CheckIndex(idx, header_->type_ids_size_, "encoded_annotation type_idx")) {
1174 uint32_t type_idx local
1205 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); local
[all...]
H A Ddex_file.cc528 uint16_t type_idx = GetIndexForTypeId(*type_id); local
531 if (class_def.class_idx_ == type_idx) {
539 const DexFile::ClassDef* DexFile::FindClassDef(uint16_t type_idx) const {
543 if (class_def.class_idx_ == type_idx) {
556 const uint16_t type_idx = GetIndexForTypeId(type); local
572 if (type_idx > field.type_idx_) {
574 } else if (type_idx < field.type_idx_) {
774 uint16_t type_idx = GetIndexForTypeId(*type_id); local
776 param_type_idxs->push_back(type_idx);
778 *return_type_idx = type_idx;
[all...]
H A Dutils.cc306 std::string PrettyType(uint32_t type_idx, const DexFile& dex_file) { argument
307 if (type_idx >= dex_file.NumTypeIds()) {
308 return StringPrintf("<<invalid-type-idx-%d>>", type_idx);
310 const DexFile::TypeId& type_id = dex_file.GetTypeId(type_idx);
H A Dclass_linker.cc3742 uint16_t type_idx = dex_file->GetIndexForTypeId(*type_id); local
3743 mirror::Class* klass = dex_cache->GetResolvedType(type_idx);
7553 uint16_t type_idx,
7558 return ResolveType(dex_file, type_idx, dex_cache, class_loader);
7562 uint16_t type_idx,
7566 mirror::Class* resolved = dex_cache->GetResolvedType(type_idx);
7569 const char* descriptor = dex_file.StringByTypeIdx(type_idx);
7575 dex_cache->SetResolvedType(type_idx, resolved);
7552 ResolveType(const DexFile& dex_file, uint16_t type_idx, mirror::Class* referrer) argument
7561 ResolveType(const DexFile& dex_file, uint16_t type_idx, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader) argument
/art/runtime/mirror/
H A Ddex_cache-inl.h50 inline Class* DexCache::GetResolvedType(uint32_t type_idx) { argument
51 DCHECK_LT(type_idx, NumResolvedTypes());
52 return GetResolvedTypes()[type_idx].Read();
55 inline void DexCache::SetResolvedType(uint32_t type_idx, Class* resolved) { argument
56 DCHECK_LT(type_idx, NumResolvedTypes()); // NOTE: Unchecked, i.e. not throwing AIOOB.
58 GetResolvedTypes()[type_idx] = GcRoot<Class>(resolved);
H A Dobject_test.cc312 uint32_t type_idx = java_lang_dex_file_->GetIndexForTypeId(*type_id); local
314 type_idx, 3, sort, Thread::Current(), false,
H A Dclass.h1129 void SetDexTypeIndex(uint16_t type_idx) SHARED_REQUIRES(Locks::mutator_lock_) {
1131 SetField32<false>(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx); local
H A Dclass.cc866 uint16_t type_idx = klass->GetDirectInterfaceTypeIdx(idx); local
867 mirror::Class* interface = klass->GetDexCache()->GetResolvedType(type_idx);
869 interface = Runtime::Current()->GetClassLinker()->ResolveType(klass->GetDexFile(), type_idx,
/art/runtime/entrypoints/
H A Dentrypoint_utils.cc40 static inline mirror::Class* CheckFilledNewArrayAlloc(uint32_t type_idx,
52 mirror::Class* klass = referrer->GetDexCacheResolvedType<false>(type_idx, pointer_size);
54 klass = class_linker->ResolveType(type_idx, referrer);
84 mirror::Array* CheckAndAllocArrayFromCode(uint32_t type_idx, int32_t component_count, argument
88 mirror::Class* klass = CheckFilledNewArrayAlloc(type_idx, component_count, referrer, self,
103 mirror::Array* CheckAndAllocArrayFromCodeInstrumented(uint32_t type_idx, argument
109 mirror::Class* klass = CheckFilledNewArrayAlloc(type_idx, component_count, referrer, self,
H A Dentrypoint_utils-inl.h91 inline mirror::Class* CheckObjectAlloc(uint32_t type_idx, argument
96 mirror::Class* klass = method->GetDexCacheResolvedType<false>(type_idx, pointer_size);
98 klass = class_linker->ResolveType(type_idx, method);
174 inline mirror::Object* AllocObjectFromCode(uint32_t type_idx, argument
179 mirror::Class* klass = CheckObjectAlloc<kAccessCheck>(type_idx, method, self, &slow_path);
230 inline mirror::Class* CheckArrayAlloc(uint32_t type_idx, argument
241 mirror::Class* klass = method->GetDexCacheResolvedType<false>(type_idx, pointer_size);
243 klass = class_linker->ResolveType(type_idx, method);
268 inline mirror::Array* AllocArrayFromCode(uint32_t type_idx, argument
274 mirror::Class* klass = CheckArrayAlloc<kAccessCheck>(type_idx, component_coun
726 ResolveVerifyAndClinit(uint32_t type_idx, ArtMethod* referrer, Thread* self, bool can_run_clinit, bool verify_access) argument
[all...]
/art/compiler/utils/
H A Dtest_dex_file_builder.h113 uint32_t type_idx = 0u; local
115 entry.second = type_idx;
116 type_idx += 1u;
177 ++type_idx;
/art/runtime/interpreter/
H A Dinterpreter_common.cc837 uint16_t type_idx = is_range ? inst->VRegB_3rc() : inst->VRegB_35c(); local
838 Class* array_class = ResolveVerifyAndClinit(type_idx, shadow_frame.GetMethod(),
/art/compiler/optimizing/
H A Dreference_type_propagation.cc105 uint16_t type_idx,
473 uint16_t type_idx,
481 SetClassAsTypeInfo(instr, dex_cache->GetResolvedType(type_idx), is_exact);
494 uint16_t type_idx,
499 return dex_cache->GetResolvedType(type_idx);
472 UpdateReferenceTypeInfo(HInstruction* instr, uint16_t type_idx, const DexFile& dex_file, bool is_exact) argument
/art/compiler/driver/
H A Dcompiler_driver.cc1355 uint32_t type_idx) {
1359 dex_cache->GetDexFile()->GetTypeId(type_idx).descriptor_idx_))) ||
1361 mirror::Class* resolved_class = dex_cache->GetResolvedType(type_idx);
1404 uint32_t type_idx) {
1406 mirror::Class* resolved_class = dex_cache->GetResolvedType(type_idx);
1433 uint32_t type_idx,
1436 mirror::Class* resolved_class = dex_cache->GetResolvedType(type_idx);
1465 bool CompilerDriver::CanEmbedTypeInCode(const DexFile& dex_file, uint32_t type_idx, argument
1472 mirror::Class* resolved_class = dex_cache->GetResolvedType(type_idx);
1488 dex_file.StringDataByIdx(dex_file.GetTypeId(type_idx)
1354 CanAssumeTypeIsPresentInDexCache(Handle<mirror::DexCache> dex_cache, uint32_t type_idx) argument
1402 CanAccessTypeWithoutChecks(uint32_t referrer_idx, Handle<mirror::DexCache> dex_cache, uint32_t type_idx) argument
1431 CanAccessInstantiableTypeWithoutChecks(uint32_t referrer_idx, Handle<mirror::DexCache> dex_cache, uint32_t type_idx, bool* finalizable) argument
[all...]
/art/runtime/verifier/
H A Dmethod_verifier.cc1920 static uint32_t GetFirstFinalInstanceFieldIndex(const DexFile& dex_file, uint16_t type_idx) { argument
1921 const DexFile::ClassDef* class_def = dex_file.FindClassDef(type_idx);
2338 const uint32_t type_idx = (is_checkcast) ? inst->VRegB_21c() : inst->VRegC_22c(); local
2339 const RegType& res_type = ResolveClassAndCheckAccess(type_idx);
2342 mirror::Class* klass = dex_cache_->GetResolvedType(type_idx);
2345 << dex_file_->StringByTypeIdx(type_idx) << " in instanceof in "
4272 uint32_t type_idx; local
4275 type_idx = inst->VRegC_22c();
4278 type_idx = inst->VRegB_35c();
4281 type_idx
[all...]

Completed in 399 milliseconds