Home
last modified time | relevance | path

Searched refs:field_idx (Results 1 – 25 of 41) sorted by relevance

12

/art/runtime/entrypoints/quick/
Dquick_field_entrypoints.cc42 ALWAYS_INLINE static inline ArtField* FindInstanceField(uint32_t field_idx, in FindInstanceField() argument
51 ArtField* field = FindFieldFromCode<type, kAccessCheck>(field_idx, referrer, self, size); in FindInstanceField()
78 extern "C" RetType artGet ## Kind ## StaticFromCode(uint32_t field_idx, \
84 field_idx, referrer, Static ## PrimitiveOrObject ## Read, \
90 field_idx, referrer, self, sizeof(PrimitiveType)); \
98 extern "C" RetType artGet ## Kind ## InstanceFromCode(uint32_t field_idx, \
105 field_idx, referrer, Instance ## PrimitiveOrObject ## Read, \
111 field_idx, referrer, self, sizeof(PrimitiveType), &obj); \
119 extern "C" int artSet ## Kind ## StaticFromCode(uint32_t field_idx, \
126 field_idx, referrer, Static ## PrimitiveOrObject ## Write, \
[all …]
/art/runtime/interpreter/mterp/
Dmterp.cc682 extern "C" ssize_t artSet8InstanceFromMterp(uint32_t field_idx, in artSet8InstanceFromMterp() argument
687 ArtField* field = FindFieldFast(field_idx, referrer, InstancePrimitiveWrite, sizeof(int8_t)); in artSet8InstanceFromMterp()
701 extern "C" ssize_t artSet16InstanceFromMterp(uint32_t field_idx, in artSet16InstanceFromMterp() argument
706 ArtField* field = FindFieldFast(field_idx, referrer, InstancePrimitiveWrite, in artSet16InstanceFromMterp()
721 extern "C" ssize_t artSet32InstanceFromMterp(uint32_t field_idx, in artSet32InstanceFromMterp() argument
726 ArtField* field = FindFieldFast(field_idx, referrer, InstancePrimitiveWrite, in artSet32InstanceFromMterp()
735 extern "C" ssize_t artSet64InstanceFromMterp(uint32_t field_idx, in artSet64InstanceFromMterp() argument
740 ArtField* field = FindFieldFast(field_idx, referrer, InstancePrimitiveWrite, in artSet64InstanceFromMterp()
749 extern "C" ssize_t artSetObjInstanceFromMterp(uint32_t field_idx, in artSetObjInstanceFromMterp() argument
754 ArtField* field = FindFieldFast(field_idx, referrer, InstanceObjectWrite, in artSetObjInstanceFromMterp()
[all …]
/art/libdexfile/dex/
Ddex_instruction.cc238 uint32_t field_idx = VRegB_21c(); in DumpString() local
239 …s << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << file->PrettyField(field_idx, true) in DumpString()
240 << " // field@" << field_idx; in DumpString()
252 uint32_t field_idx = VRegB_21c(); in DumpString() local
253 …os << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << file->PrettyField(field_idx, true) in DumpString()
254 << " // field@" << field_idx; in DumpString()
278 uint32_t field_idx = VRegC_22c(); in DumpString() local
280 << file->PrettyField(field_idx, true) << " // field@" << field_idx; in DumpString()
287 uint32_t field_idx = VRegC_22c(); in DumpString() local
289 << "// offset@" << field_idx; in DumpString()
[all …]
Dtest_dex_file_builder.h140 uint32_t field_idx = 0u; in Build() local
142 entry.second = field_idx; in Build()
143 field_idx += 1u; in Build()
Ddex_file.cc603 std::string DexFile::PrettyField(uint32_t field_idx, bool with_type) const { in PrettyField() argument
604 if (field_idx >= NumFieldIds()) { in PrettyField()
605 return StringPrintf("<<invalid-field-idx-%d>>", field_idx); in PrettyField()
607 const DexFile::FieldId& field_id = GetFieldId(field_idx); in PrettyField()
/art/compiler/driver/
Dcompiler_driver-inl.h68 uint32_t field_idx, in ResolveField() argument
71 field_idx, dex_cache, class_loader, is_static); in ResolveField()
90 uint16_t field_idx) { in IsFastInstanceField() argument
97 field_idx); in IsFastInstanceField()
Dcompiler_driver.h246 uint32_t field_idx,
254 uint16_t field_idx)
271 bool ComputeInstanceFieldInfo(uint32_t field_idx, const DexCompilationUnit* mUnit, bool is_put,
275 ArtField* ComputeInstanceFieldInfo(uint32_t field_idx,
/art/runtime/mirror/
Ddex_cache-inl.h180 inline uint32_t DexCache::FieldSlotIndex(uint32_t field_idx) { in FieldSlotIndex() argument
181 DCHECK_LT(field_idx, GetDexFile()->NumFieldIds()); in FieldSlotIndex()
182 const uint32_t slot_idx = field_idx % kDexCacheFieldCacheSize; in FieldSlotIndex()
187 inline ArtField* DexCache::GetResolvedField(uint32_t field_idx, PointerSize ptr_size) { in GetResolvedField() argument
189 auto pair = GetNativePairPtrSize(GetResolvedFields(), FieldSlotIndex(field_idx), ptr_size); in GetResolvedField()
190 return pair.GetObjectForIndex(field_idx); in GetResolvedField()
193 inline void DexCache::SetResolvedField(uint32_t field_idx, ArtField* field, PointerSize ptr_size) { in SetResolvedField() argument
196 FieldDexCachePair pair(field, field_idx); in SetResolvedField()
197 SetNativePairPtrSize(GetResolvedFields(), FieldSlotIndex(field_idx), pair, ptr_size); in SetResolvedField()
200 inline void DexCache::ClearResolvedField(uint32_t field_idx, PointerSize ptr_size) { in ClearResolvedField() argument
[all …]
Dclass-inl.h437 uint32_t field_idx) { in ResolvedFieldAccessTest() argument
443 dex::TypeIndex class_idx = dex_cache->GetDexFile()->GetFieldId(field_idx).class_idx_; in ResolvedFieldAccessTest()
510 uint32_t field_idx) { in CanAccessResolvedField() argument
511 return ResolvedFieldAccessTest<false>(access_to, field, dex_cache, field_idx); in CanAccessResolvedField()
517 uint32_t field_idx) { in CheckResolvedFieldAccess() argument
518 return ResolvedFieldAccessTest<true>(access_to, field, dex_cache, field_idx); in CheckResolvedFieldAccess()
/art/compiler/dex/
Dinline_method_analyser.h56 uint16_t field_idx; member
150 uint32_t field_idx,
Dinline_method_analyser.cc599 uint32_t field_idx = instruction->VRegC_22c(); in AnalyseIGetMethod() local
626 if (!ComputeSpecialAccessorInfo(method, field_idx, false, data)) { in AnalyseIGetMethod()
668 uint32_t field_idx = instruction->VRegC_22c(); in AnalyseIPutMethod() local
694 if (!ComputeSpecialAccessorInfo(method, field_idx, true, data)) { in AnalyseIPutMethod()
708 uint32_t field_idx, in ComputeSpecialAccessorInfo() argument
716 ArtField* field = class_linker->LookupResolvedField(field_idx, method, /* is_static */ false); in ComputeSpecialAccessorInfo()
722 if (!method_class->CanAccessResolvedField(field_class, field, dex_cache, field_idx) || in ComputeSpecialAccessorInfo()
730 result->field_idx = field_idx; in ComputeSpecialAccessorInfo()
Ddex_to_dex_compiler.cc433 uint32_t field_idx = GetIndexForInstruction(inst, inst->VRegC_22c()); in CompileInstanceFieldAccess() local
436 bool fast_path = driver_.ComputeInstanceFieldInfo(field_idx, &unit_, is_put, in CompileInstanceFieldAccess()
441 << " by replacing field index " << field_idx in CompileInstanceFieldAccess()
451 quickened_info_.push_back(QuickenedInfo(dex_pc, field_idx)); in CompileInstanceFieldAccess()
/art/runtime/
Dclass_linker-inl.h334 inline ArtField* ClassLinker::LookupResolvedField(uint32_t field_idx, in LookupResolvedField() argument
340 field_idx, image_pointer_size_); in LookupResolvedField()
343 field = LookupResolvedField(field_idx, referrer->GetDexCache(), class_loader, is_static); in LookupResolvedField()
348 inline ArtField* ClassLinker::ResolveField(uint32_t field_idx, in ResolveField() argument
355 field_idx, image_pointer_size_); in ResolveField()
361 resolved_field = ResolveField(field_idx, dex_cache, class_loader, is_static); in ResolveField()
Dcommon_throws.cc646 uint16_t field_idx = method->GetIndexFromQuickening(throw_dex_pc); in ThrowNullPointerExceptionFromDexPC() local
648 CHECK_NE(field_idx, DexFile::kDexNoIndex16); in ThrowNullPointerExceptionFromDexPC()
650 field_idx, method, /* is_static */ false); in ThrowNullPointerExceptionFromDexPC()
675 uint16_t field_idx = method->GetIndexFromQuickening(throw_dex_pc); in ThrowNullPointerExceptionFromDexPC() local
677 CHECK_NE(field_idx, DexFile::kDexNoIndex16); in ThrowNullPointerExceptionFromDexPC()
679 field_idx, method, /* is_static */ false); in ThrowNullPointerExceptionFromDexPC()
Dclass_linker.h360 ArtField* LookupResolvedField(uint32_t field_idx, ArtMethod* referrer, bool is_static)
362 ArtField* ResolveField(uint32_t field_idx, ArtMethod* referrer, bool is_static)
370 ArtField* ResolveField(uint32_t field_idx,
381 ArtField* ResolveFieldJLS(uint32_t field_idx,
394 uint32_t field_idx,
405 uint32_t field_idx)
946 ArtField* LookupResolvedField(uint32_t field_idx,
/art/runtime/native/
Ddalvik_system_VMRuntime.cc393 uint32_t field_idx, in PreloadDexCachesResolveField() argument
396 uint32_t slot_idx = dex_cache->FieldSlotIndex(field_idx); in PreloadDexCachesResolveField()
404 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_idx); in PreloadDexCachesResolveField()
411 ? mirror::Class::FindStaticField(Thread::Current(), klass, dex_cache, field_idx) in PreloadDexCachesResolveField()
412 : klass->FindInstanceField(dex_cache, field_idx); in PreloadDexCachesResolveField()
416 dex_cache->SetResolvedField(field_idx, field, kRuntimePointerSize); in PreloadDexCachesResolveField()
586 uint32_t field_idx = it.GetMemberIndex(); in VMRuntime_preloadDexCaches() local
587 PreloadDexCachesResolveField(dex_cache, field_idx, true); in VMRuntime_preloadDexCaches()
590 uint32_t field_idx = it.GetMemberIndex(); in VMRuntime_preloadDexCaches() local
591 PreloadDexCachesResolveField(dex_cache, field_idx, false); in VMRuntime_preloadDexCaches()
/art/runtime/verifier/
Dverifier_deps.h85 uint32_t field_idx,
147 FieldResolution(uint32_t field_idx, uint16_t access_flags, dex::StringIndex declaring_class_idx) in FieldResolution()
148 : FieldResolutionBase(field_idx, access_flags, declaring_class_idx) {} in FieldResolution()
264 uint32_t field_idx,
Dmethod_verifier.cc4390 uint16_t field_idx = method_being_verified_->GetIndexFromQuickening(work_insn_idx_); in GetFieldIdxOfFieldAccess() local
4391 CHECK_NE(field_idx, DexFile::kDexNoIndex16); in GetFieldIdxOfFieldAccess()
4392 return field_idx; in GetFieldIdxOfFieldAccess()
4628 ArtField* MethodVerifier::GetStaticField(int field_idx) { in GetStaticField() argument
4629 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField()
4634 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
4645 ArtField* field = class_linker->ResolveFieldJLS(field_idx, dex_cache_, class_loader_); in GetStaticField()
4648 VerifierDeps::MaybeRecordFieldResolution(*dex_file_, field_idx, field); in GetStaticField()
4651 VLOG(verifier) << "Unable to resolve static field " << field_idx << " (" in GetStaticField()
4669 ArtField* MethodVerifier::GetInstanceField(const RegType& obj_type, int field_idx) { in GetInstanceField() argument
[all …]
Dmethod_verifier.h562 ArtField* GetInstanceField(const RegType& obj_type, int field_idx)
566 ArtField* GetStaticField(int field_idx) REQUIRES_SHARED(Locks::mutator_lock_);
Dverifier_deps.cc297 uint32_t field_idx, in AddFieldResolution() argument
311 dex_deps->fields_.emplace(FieldResolution(field_idx, in AddFieldResolution()
314 field_idx, in AddFieldResolution()
522 uint32_t field_idx, in MaybeRecordFieldResolution() argument
526 thread_deps->AddFieldResolution(dex_file, field_idx, field); in MaybeRecordFieldResolution()
/art/tools/veridex/
Dhidden_api_finder.h49 void CheckField(uint32_t field_idx, VeridexResolver* resolver, MethodReference ref);
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h130 inline size_t DexCacheArraysLayout::FieldOffset(uint32_t field_idx) const { in FieldOffset() argument
131 uint32_t field_hash = field_idx % mirror::DexCache::kDexCacheFieldCacheSize; in FieldOffset()
Ddex_cache_arrays_layout.h98 size_t FieldOffset(uint32_t field_idx) const;
/art/runtime/entrypoints/
Dentrypoint_utils.h117 inline ArtField* FindFieldFromCode(uint32_t field_idx,
133 inline ArtField* FindFieldFast(uint32_t field_idx,
Dentrypoint_utils-inl.h314 inline ArtField* FindFieldFromCode(uint32_t field_idx, in FindFieldFromCode() argument
348 resolved_field = class_linker->ResolveFieldJLS(field_idx, in FindFieldFromCode()
354 resolved_field = class_linker->ResolveField(field_idx, referrer, is_static); in FindFieldFromCode()
371 field_idx))) { in FindFieldFromCode()
412 ArtField* FindFieldFromCode<_type, _access_check>(uint32_t field_idx, \
603 inline ArtField* FindFieldFast(uint32_t field_idx, ArtMethod* referrer, FindFieldType type, in FindFieldFast() argument
607 referrer->GetDexCache()->GetResolvedField(field_idx, kRuntimePointerSize); in FindFieldFast()

12