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

12

/art/runtime/
H A Dart_field.cc79 mirror::Class* ArtField::ResolveGetType(uint32_t type_idx) { argument
80 return Runtime::Current()->GetClassLinker()->ResolveType(type_idx, this);
H A Ddex_instruction.cc193 uint32_t type_idx = VRegB_21c(); local
194 os << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << PrettyType(type_idx, *file)
195 << " // type@" << type_idx;
287 uint32_t type_idx = VRegC_22c(); local
289 << PrettyType(type_idx, *file) << " // type@" << type_idx;
295 uint32_t type_idx = VRegC_22c(); local
297 << PrettyType(type_idx, *file) << " // type@" << type_idx;
H A Dclass_linker-inl.h75 inline mirror::Class* ClassLinker::ResolveType(uint16_t type_idx, argument
77 mirror::Class* resolved_type = referrer->GetDexCacheResolvedType(type_idx);
84 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader);
91 inline mirror::Class* ClassLinker::ResolveType(uint16_t type_idx, ArtField* referrer) { argument
94 mirror::Class* resolved_type = dex_cache_ptr->GetResolvedType(type_idx);
100 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader);
H A Dart_method-inl.h146 inline mirror::Class* ArtMethod::GetClassFromTypeIndex(uint16_t type_idx, bool resolve) { argument
147 mirror::Class* type = GetDexCacheResolvedType(type_idx);
149 type = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, this);
381 inline bool ArtMethod::IsResolvedTypeIdx(uint16_t type_idx) { argument
383 return GetDexCacheResolvedType(type_idx) != nullptr;
432 inline const char* ArtMethod::GetTypeDescriptorFromTypeIdx(uint16_t type_idx) { argument
435 return dex_file->GetTypeDescriptor(dex_file->GetTypeId(type_idx));
H A Dart_method.cc550 auto type_idx = proto_params->GetTypeItem(i).type_idx_; local
551 auto* type = cl->ResolveType(type_idx, this);
H A Dclass_linker_test.cc1033 uint32_t type_idx = dex_file->GetIndexForTypeId(*type_id); local
1034 mirror::Class* uninit = ResolveVerifyAndClinit(type_idx, clinit, soa.Self(), true, false);
1037 mirror::Class* init = ResolveVerifyAndClinit(type_idx, getS0, soa.Self(), true, false);
H A Dreflection.cc360 uint16_t type_idx = params->GetTypeItem(i).type_idx_; local
361 mirror::Class* param_type = m->GetClassFromTypeIndex(type_idx, true);
365 << m->GetTypeDescriptorFromTypeIdx(type_idx) << "\n"
H A Ddex_file.cc491 uint16_t type_idx = GetIndexForTypeId(*type_id); local
494 if (class_def.class_idx_ == type_idx) {
523 const DexFile::ClassDef* DexFile::FindClassDef(uint16_t type_idx) const {
527 if (class_def.class_idx_ == type_idx) {
540 const uint16_t type_idx = GetIndexForTypeId(type); local
556 if (type_idx > field.type_idx_) {
558 } else if (type_idx < field.type_idx_) {
738 uint16_t type_idx = GetIndexForTypeId(*type_id); local
740 param_type_idxs->push_back(type_idx);
742 *return_type_idx = type_idx;
[all...]
H A Ddex_file_verifier.cc76 const char* DexFileVerifier::CheckLoadStringByTypeIdx(uint32_t type_idx, const char* error_string) { argument
77 if (UNLIKELY(!CheckIndex(type_idx, dex_file_->NumTypeIds(), error_string))) {
80 const DexFile::TypeId& type_id = dex_file_->GetTypeId(type_idx);
107 #define LOAD_STRING_BY_TYPE(var, type_idx, error) \
108 const char* var = CheckLoadStringByTypeIdx(type_idx, error); \
423 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); local
424 if (!CheckIndex(type_idx, header_->type_ids_size_, "handler type_idx")) {
655 if (!CheckIndex(idx, header_->type_ids_size_, "encoded_annotation type_idx")) {
971 uint32_t type_idx local
1002 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); local
[all...]
H A Dutils.cc302 std::string PrettyType(uint32_t type_idx, const DexFile& dex_file) { argument
303 if (type_idx >= dex_file.NumTypeIds()) {
304 return StringPrintf("<<invalid-type-idx-%d>>", type_idx);
306 const DexFile::TypeId& type_id = dex_file.GetTypeId(type_idx);
/art/runtime/mirror/
H A Ddex_cache-inl.h36 inline void DexCache::SetResolvedType(uint32_t type_idx, Class* resolved) { argument
39 GetResolvedTypes()->Set(type_idx, resolved);
H A Dobject_test.cc315 uint32_t type_idx = java_lang_dex_file_->GetIndexForTypeId(*type_id); local
317 type_idx, 3, sort, Thread::Current(), false,
H A Dclass.h1027 void SetDexTypeIndex(uint16_t type_idx) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
1029 SetField32<false>(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx); local
H A Dclass.cc768 uint16_t type_idx = klass->GetDirectInterfaceTypeIdx(idx); local
769 mirror::Class* interface = klass->GetDexCache()->GetResolvedType(type_idx);
771 interface = Runtime::Current()->GetClassLinker()->ResolveType(klass->GetDexFile(), type_idx,
/art/runtime/entrypoints/
H A Dentrypoint_utils.cc36 static inline mirror::Class* CheckFilledNewArrayAlloc(uint32_t type_idx,
46 mirror::Class* klass = referrer->GetDexCacheResolvedType<false>(type_idx);
48 klass = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, referrer);
78 mirror::Array* CheckAndAllocArrayFromCode(uint32_t type_idx, int32_t component_count, argument
82 mirror::Class* klass = CheckFilledNewArrayAlloc(type_idx, component_count, referrer, self,
97 mirror::Array* CheckAndAllocArrayFromCodeInstrumented(uint32_t type_idx, argument
103 mirror::Class* klass = CheckFilledNewArrayAlloc(type_idx, component_count, referrer, self,
H A Dentrypoint_utils-inl.h62 inline mirror::Class* CheckObjectAlloc(uint32_t type_idx, argument
65 mirror::Class* klass = method->GetDexCacheResolvedType<false>(type_idx);
67 klass = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, method);
143 inline mirror::Object* AllocObjectFromCode(uint32_t type_idx, argument
148 mirror::Class* klass = CheckObjectAlloc<kAccessCheck>(type_idx, method, self, &slow_path);
194 inline mirror::Class* CheckArrayAlloc(uint32_t type_idx, argument
203 mirror::Class* klass = method->GetDexCacheResolvedType<false>(type_idx);
205 klass = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, method);
230 inline mirror::Array* AllocArrayFromCode(uint32_t type_idx, argument
236 mirror::Class* klass = CheckArrayAlloc<kAccessCheck>(type_idx, component_coun
585 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.h111 uint32_t type_idx = 0u; local
113 entry.second = type_idx;
114 type_idx += 1u;
176 ++type_idx;
/art/runtime/interpreter/
H A Dinterpreter_common.cc706 uint16_t type_idx = is_range ? inst->VRegB_3rc() : inst->VRegB_35c(); local
707 Class* array_class = ResolveVerifyAndClinit(type_idx, shadow_frame.GetMethod(),
/art/compiler/dex/
H A Dtype_inference.cc64 TypeInference::Type TypeInference::Type::DexType(const DexFile* dex_file, uint32_t type_idx) { argument
65 const char* desc = dex_file->GetTypeDescriptor(dex_file->GetTypeId(type_idx));
76 << " in dex file " << dex_file->GetLocation() << " type index " << type_idx;
594 uint32_t type_idx = dex_file->GetFieldId(field_idx).type_idx_; local
595 Type result = Type::DexType(dex_file, type_idx);
644 uint32_t type_idx = type_list->GetTypeItem(i).type_idx_; local
645 param_types[this_size + i] = Type::DexType(dex_file, type_idx);
H A Dmir_optimization.cc1668 uint32_t type_idx = mir->dalvikInsn.vB; local
1669 if (cu_->compiler_driver->IsStringTypeIndex(type_idx, cu_->dex_file)) {
/art/compiler/dex/quick/
H A Dcodegen_util.cc435 LIR* Mir2Lir::ScanLiteralPoolClass(LIR* data_target, const DexFile& dex_file, uint32_t type_idx) { argument
437 if (static_cast<uint32_t>(data_target->operands[0]) == type_idx &&
1307 void Mir2Lir::LoadClassType(const DexFile& dex_file, uint32_t type_idx, argument
1310 LIR* data_target = ScanLiteralPoolClass(class_literal_list_, dex_file, type_idx);
1312 data_target = AddWordData(&class_literal_list_, type_idx);
H A Dgen_common.cc484 * Array::AllocFromCode(type_idx, method, count);
487 void Mir2Lir::GenNewArray(uint32_t type_idx, RegLocation rl_dest, argument
492 if (cu_->compiler_driver->CanAccessTypeWithoutChecks(cu_->method_idx, *dex_file, type_idx)) {
498 driver->CanEmbedTypeInCode(*dex_file, type_idx, &is_type_initialized, &use_direct_type_ptr,
502 LoadClassType(*dex_file, type_idx, kArg0);
512 CallRuntimeHelperImmRegLocationMethod(kQuickAllocArray, type_idx, rl_src, true);
515 CallRuntimeHelperImmRegLocationMethod(kQuickAllocArrayWithAccessCheck, type_idx, rl_src, true);
528 int type_idx = info->index; local
532 type_idx)) {
537 CallRuntimeHelperImmImmMethod(target, type_idx, elem
1020 GenConstClass(uint32_t type_idx, RegLocation rl_dest) argument
1107 GenNewInstance(uint32_t type_idx, RegLocation rl_dest) argument
1155 GenInstanceofFinal(bool use_declaring_class, uint32_t type_idx, RegLocation rl_dest, RegLocation rl_src) argument
1214 GenInstanceofCallingHelper(bool needs_access_check, bool type_known_final, bool type_known_abstract, bool use_declaring_class, bool can_assume_type_is_in_dex_cache, uint32_t type_idx, RegLocation rl_dest, RegLocation rl_src) argument
1317 GenInstanceof(uint32_t type_idx, RegLocation rl_dest, RegLocation rl_src) argument
1337 GenCheckCast(int opt_flags, uint32_t insn_idx, uint32_t type_idx, RegLocation rl_src) argument
[all...]
H A Dgen_invoke.cc942 uint16_t type_idx = ref.first->GetClassDef(ref.second).class_idx_; local
943 LoadClassType(*ref.first, type_idx, kArg1);
H A Dralloc_util.cc1148 uint32_t type_idx = local
1152 cu_->method_idx, *cu_->dex_file, type_idx,
1161 dex_cache_array_offset = dex_cache_arrays_layout_.TypeOffset(type_idx);
/art/compiler/dex/quick/x86/
H A Dint_x86.cc3011 void X86Mir2Lir::GenInstanceofFinal(bool use_declaring_class, uint32_t type_idx, argument
3038 (sizeof(mirror::HeapReference<mirror::Class*>) * type_idx);

Completed in 265 milliseconds

12