Home
last modified time | relevance | path

Searched refs:ArtField (Results 1 – 25 of 143) sorted by relevance

123456

/art/runtime/
Dwell_known_classes.h28 class ArtField; variable
90 template <ArtField** kField>
91 using ClassFromField = detail::ClassFromMember<ArtField, kField>;
165 static ArtField* dalvik_system_BaseDexClassLoader_pathList;
166 static ArtField* dalvik_system_BaseDexClassLoader_sharedLibraryLoaders;
167 static ArtField* dalvik_system_BaseDexClassLoader_sharedLibraryLoadersAfter;
168 static ArtField* dalvik_system_DexFile_cookie;
169 static ArtField* dalvik_system_DexFile_fileName;
170 static ArtField* dalvik_system_DexPathList_dexElements;
171 static ArtField* dalvik_system_DexPathList__Element_dexFile;
[all …]
Dart_field-inl.h37 inline bool ArtField::IsProxyField() { in IsProxyField()
44 inline bool ArtField::CanBeChangedBy(ArtMethod* method) { in CanBeChangedBy()
51 inline ObjPtr<mirror::Class> ArtField::GetDeclaringClass() { in GetDeclaringClass()
59 inline void ArtField::SetDeclaringClass(ObjPtr<mirror::Class> new_declaring_class) { in SetDeclaringClass()
64 void ArtField::VisitArrayRoots(RootVisitorType& visitor, in VisitArrayRoots()
67 LengthPrefixedArray<ArtField>* array) { in VisitArrayRoots()
70 ArtField* first_field = &array->At(0); in VisitArrayRoots()
72 static constexpr size_t kFieldSize = sizeof(ArtField); in VisitArrayRoots()
89 inline MemberOffset ArtField::GetOffsetDuringLinking() { in GetOffsetDuringLinking()
94 inline uint32_t ArtField::Get32(ObjPtr<mirror::Object> object) { in Get32()
[all …]
Dreflective_handle_scope.h39 class ArtField; variable
106 typename = typename std::enable_if_t<(kHasFields && std::is_same_v<T, ArtField>) ||
109 if constexpr (std::is_same_v<T, ArtField>) { in NewHandle()
122 ALWAYS_INLINE MutableReflectiveHandle<ArtField> NewFieldHandle(ArtField* f) in NewFieldHandle()
126 MutableReflectiveHandle<ArtField> fh(GetMutableFieldHandle(field_pos_++)); in NewFieldHandle()
130 ALWAYS_INLINE ReflectiveHandleWrapper<ArtField> NewReflectiveFieldHandleWrapper(ArtField** f) in NewReflectiveFieldHandleWrapper()
132 return ReflectiveHandleWrapper<ArtField>(f, NewMethodHandle(*f)); in NewReflectiveFieldHandleWrapper()
135 ALWAYS_INLINE ArtField* GetField(size_t i) { in GetField()
139 ALWAYS_INLINE ReflectiveHandle<ArtField> GetFieldHandle(size_t i) { in GetFieldHandle()
141 return ReflectiveHandle<ArtField>(GetFieldReference(i)); in GetFieldHandle()
[all …]
Dwell_known_classes.cc119 ArtField* WellKnownClasses::dalvik_system_BaseDexClassLoader_pathList;
120 ArtField* WellKnownClasses::dalvik_system_BaseDexClassLoader_sharedLibraryLoaders;
121 ArtField* WellKnownClasses::dalvik_system_BaseDexClassLoader_sharedLibraryLoadersAfter;
122 ArtField* WellKnownClasses::dalvik_system_DexFile_cookie;
123 ArtField* WellKnownClasses::dalvik_system_DexFile_fileName;
124 ArtField* WellKnownClasses::dalvik_system_DexPathList_dexElements;
125 ArtField* WellKnownClasses::dalvik_system_DexPathList__Element_dexFile;
126 ArtField* WellKnownClasses::dalvik_system_VMRuntime_nonSdkApiUsageConsumer;
127 ArtField* WellKnownClasses::java_io_FileDescriptor_descriptor;
128 ArtField* WellKnownClasses::java_lang_ClassLoader_parent;
[all …]
Dart_field.cc34 void ArtField::SetOffset(MemberOffset num_bytes) { in SetOffset()
42 ObjPtr<mirror::Class> ArtField::ProxyFindSystemClass(const char* descriptor) { in ProxyFindSystemClass()
50 std::string ArtField::PrettyField(ArtField* f, bool with_type) { in PrettyField()
57 std::string ArtField::PrettyField(bool with_type) { in PrettyField()
Dreflective_value_visitor.h40 class ArtField; variable
53 virtual ArtField* VisitField(ArtField* in, const ReflectionSourceInfo& info)
58 typename = typename std::enable_if<std::is_same_v<T, ArtField> ||
61 if constexpr (std::is_same_v<T, ArtField>) { in operator()
74 ArtField* VisitField(ArtField* in, const ReflectionSourceInfo& info) override in VisitField()
Dtransaction_test.cc183 ArtField* booleanField = h_klass->FindDeclaredStaticField("booleanField", "Z"); in TEST_F()
188 ArtField* byteField = h_klass->FindDeclaredStaticField("byteField", "B"); in TEST_F()
193 ArtField* charField = h_klass->FindDeclaredStaticField("charField", "C"); in TEST_F()
198 ArtField* shortField = h_klass->FindDeclaredStaticField("shortField", "S"); in TEST_F()
203 ArtField* intField = h_klass->FindDeclaredStaticField("intField", "I"); in TEST_F()
208 ArtField* longField = h_klass->FindDeclaredStaticField("longField", "J"); in TEST_F()
213 ArtField* floatField = h_klass->FindDeclaredStaticField("floatField", "F"); in TEST_F()
218 ArtField* doubleField = h_klass->FindDeclaredStaticField("doubleField", "D"); in TEST_F()
223 ArtField* objectField = h_klass->FindDeclaredStaticField("objectField", in TEST_F()
283 ArtField* booleanField = h_klass->FindDeclaredInstanceField("booleanField", "Z"); in TEST_F()
[all …]
Dhidden_api.cc151 ArtField* private_core_platform_api_fields[] = { in InitializeCorePlatformApiPrivateFields()
160 for (ArtField* field : private_core_platform_api_fields) { in InitializeCorePlatformApiPrivateFields()
253 MemberSignature::MemberSignature(ArtField* field) { in MemberSignature()
420 ArtField* consumer_field = WellKnownClasses::dalvik_system_VMRuntime_nonSdkApiUsageConsumer; in NotifyHiddenApiListener()
443 static ALWAYS_INLINE bool CanUpdateRuntimeFlags(ArtField*) { return true; } in CanUpdateRuntimeFlags() argument
462 static ALWAYS_INLINE uint32_t GetMemberDexIndex(ArtField* field) { in GetMemberDexIndex()
489 static_assert(std::is_same<T, ArtField>::value || std::is_same<T, ArtMethod>::value); in GetDexFlags()
490 constexpr bool kMemberIsField = std::is_same<T, ArtField>::value; in GetDexFlags()
491 using AccessorType = typename std::conditional<std::is_same<T, ArtField>::value, in GetDexFlags()
657 template uint32_t GetDexFlags<ArtField>(ArtField* member);
[all …]
Dreflective_reference.h26 class ArtField; variable
33 std::is_same_v<ReflectiveType, ArtField>,
Dart_field.h43 class EXPORT ArtField final {
51 LengthPrefixedArray<ArtField>* array)
106 return MemberOffset(OFFSETOF_MEMBER(ArtField, offset_)); in OffsetOffset()
110 return MemberOffset(OFFSETOF_MEMBER(ArtField, declaring_class_)); in DeclaringClassOffset()
206 static ArtField* FindInstanceFieldWithOffset(ObjPtr<mirror::Class> klass, uint32_t field_offset)
213 static ArtField* FindStaticFieldWithOffset(ObjPtr<mirror::Class> klass, uint32_t field_offset)
248 static std::string PrettyField(ArtField* f, bool with_type = true)
/art/runtime/jni/
Djni_id_manager.cc82 if constexpr (std::is_same_v<ArtType, ArtField>) { in GetIds()
113 bool ShouldReturnPointer(ObjPtr<mirror::Class> klass, ArtField* t) { in ShouldReturnPointer()
131 bool EnsureIdsArray(Thread* self, ObjPtr<mirror::Class> k, ArtField* field) { in EnsureIdsArray()
179 size_t GetIdOffset(ObjPtr<mirror::Class> k, ArtField* f, [[maybe_unused]] PointerSize ptr_size) { in GetIdOffset()
199 std::string PrettyGeneric(ArtField* f) { in PrettyGeneric()
203 std::string PrettyGeneric(ReflectiveHandle<ArtField> f) { in PrettyGeneric()
211 bool CanUseIdArrays([[maybe_unused]] ReflectiveHandle<ArtField> t) { in CanUseIdArrays()
223 ArtField* Canonicalize(ReflectiveHandle<ArtField> t) { in Canonicalize()
240 uintptr_t JniIdManager::GetNextId<ArtField>(JniIdType type) { in GetNextId()
257 std::vector<ArtField*>& JniIdManager::GetGenericMap<ArtField>() { in GetGenericMap()
[all …]
Djni_internal.h32 class ArtField; variable
58 ArtField* FindFieldJNI(const ScopedObjectAccess& soa,
84 static inline ArtField* DecodeArtField(jfieldID fid) { in DecodeArtField()
88 return reinterpret_cast<ArtField*>(fid); in DecodeArtField()
93 ALWAYS_INLINE static inline jfieldID EncodeArtField(ReflectiveHandle<ArtField> field) in EncodeArtField()
104 static inline jfieldID EncodeArtField(ArtField* field) REQUIRES_SHARED(Locks::mutator_lock_) { in EncodeArtField()
Djni_id_manager.h54 EXPORT ArtField* DecodeFieldId(jfieldID field) REQUIRES(!Locks::jni_id_lock_);
59 EXPORT jfieldID EncodeFieldId(ReflectiveHandle<ArtField> field) REQUIRES(!Locks::jni_id_lock_)
61 EXPORT jfieldID EncodeFieldId(ArtField* field) REQUIRES(!Locks::jni_id_lock_)
93 std::vector<ArtField*> field_id_map_ GUARDED_BY(Locks::jni_id_lock_);
/art/runtime/mirror/
Ddex_cache.cc66 if (pair.index == NativeDexCachePair<ArtField>::InvalidIndexForSlot(i)) { in VisitReflectiveTargets()
69 ArtField* new_val = visitor->VisitField( in VisitReflectiveTargets()
73 pair = NativeDexCachePair<ArtField>( in VisitReflectiveTargets()
74 nullptr, NativeDexCachePair<ArtField>::InvalidIndexForSlot(i)); in VisitReflectiveTargets()
108 ArtField* old_val = fields_array->Get(i); in VisitReflectiveTargets()
112 ArtField* new_val = visitor->VisitField( in VisitReflectiveTargets()
248 for (ArtField& current_field : resolved->GetSFields()) { in SetResolvedType()
251 for (ArtField& current_field : resolved->GetIFields()) { in SetResolvedType()
Dfield.cc30 ArtField* orig = GetArtField(); in VisitTarget()
31 ArtField* new_value = v->VisitField(orig, hrsi); in VisitTarget()
46 ArtField* Field::GetArtField() { in GetArtField()
58 ArtField* field, in CreateFromArtField()
Dclass-inl.h468 ArtField* field, in ResolvedFieldAccessTest()
502 ArtField* field, in CanAccessResolvedField()
509 ArtField* field, in CheckResolvedFieldAccess()
640 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtr() { in GetIFieldsPtr()
642 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); in GetIFieldsPtr()
677 inline void Class::SetIFieldsPtr(LengthPrefixedArray<ArtField>* new_ifields) { in SetIFieldsPtr()
682 inline void Class::SetIFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_ifields) { in SetIFieldsPtrUnchecked()
686 inline LengthPrefixedArray<ArtField>* Class::GetSFieldsPtrUnchecked() { in GetSFieldsPtrUnchecked()
687 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); in GetSFieldsPtrUnchecked()
690 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtrUnchecked() { in GetIFieldsPtrUnchecked()
[all …]
Dclass.cc433 os << StringPrintf(" %2zd: %s\n", i, ArtField::PrettyField(GetStaticField(i)).c_str()); in DumpClass()
444 ArtField::PrettyField(GetInstanceField(i)).c_str()); in DumpClass()
1035 static std::tuple<bool, ArtField*> FindFieldByNameAndType(const DexFile& dex_file, in FindFieldByNameAndType()
1036 LengthPrefixedArray<ArtField>* fields, in FindFieldByNameAndType()
1051 ArtField& field = fields->At(mid); in FindFieldByNameAndType()
1074 ArtField* found = nullptr; in FindFieldByNameAndType()
1075 for (ArtField& field : MakeIterationRangeFromLengthPrefixedArray(fields)) { in FindFieldByNameAndType()
1082 ArtField* ret = success ? &fields->At(mid) : nullptr; in FindFieldByNameAndType()
1084 << "Found " << ArtField::PrettyField(found) << " vs " << ArtField::PrettyField(ret); in FindFieldByNameAndType()
1094 ArtField* Class::FindDeclaredInstanceField(std::string_view name, std::string_view type) { in FindDeclaredInstanceField()
[all …]
Dmethod_handle_impl-inl.h45 inline ArtField* MethodHandle::GetTargetField() REQUIRES_SHARED(Locks::mutator_lock_) { in GetTargetField()
46 return reinterpret_cast<ArtField*>( in GetTargetField()
Dclass-refvisitor-inl.h56 VisitFields<kReadBarrierOption>([&](ArtField* field) REQUIRES_SHARED(art::Locks::mutator_lock_) { in VisitNativeRoots()
103 for (ArtField& sfield : GetSFieldsUnchecked()) { in VisitFields()
106 for (ArtField& ifield : GetIFieldsUnchecked()) { in VisitFields()
/art/openjdkjvmti/
Dti_field.cc55 JvmtiFieldReflectionSource(bool is_access, art::ArtField* f) in JvmtiFieldReflectionSource()
67 art::ArtField* f_;
77 std::vector<std::pair<art::ArtField*, art::ArtField*>> updated_access_fields; in VisitReflectiveTargets()
79 art::ArtField* af = in VisitReflectiveTargets()
90 std::vector<std::pair<art::ArtField*, art::ArtField*>> updated_modify_fields; in VisitReflectiveTargets()
92 art::ArtField* af = in VisitReflectiveTargets()
145 art::ArtField* art_field = art::jni::DecodeArtField(field); in GetFieldName()
218 art::ArtField* art_field = art::jni::DecodeArtField(field); in GetFieldDeclaringClass()
241 art::ArtField* art_field = art::jni::DecodeArtField(field); in GetFieldModifiers()
264 art::ArtField* art_field = art::jni::DecodeArtField(field); in IsFieldSynthetic()
Dti_class_loader.cc91 art::ArtField* internal_cookie_field = java_dex_file->GetClass()->FindDeclaredInstanceField( in UpdateJavaDexFile()
93 art::ArtField* cookie_field = java_dex_file->GetClass()->FindDeclaredInstanceField( in UpdateJavaDexFile()
109 art::ArtField* internal_cookie_field = java_dex_file_obj->GetClass()->FindDeclaredInstanceField( in GetDexFileCookie()
147 art::ArtField* path_list_field = in GetDexElementList()
149 art::ArtField* dex_path_list_element_field = in GetDexElementList()
/art/test/1985-structural-redefine-stack-scope/
Dstack_scope.cc52 ReflectiveHandle<ArtField> rf(fhs.NewHandle(jni::DecodeArtField(fid))); in Java_Main_NativeFieldScopeCheck()
53 ReflectiveHandle<ArtField> bf(bhs.NewHandle(jni::DecodeArtField(fid))); in Java_Main_NativeFieldScopeCheck()
54 ArtField* pre_ptr = rf.Get(); in Java_Main_NativeFieldScopeCheck()
/art/dex2oat/driver/
Dcompiler_driver-inl.h65 inline ArtField* CompilerDriver::ResolveField(const ScopedObjectAccess& soa, in ResolveField()
70 ArtField* resolved_field = Runtime::Current()->GetClassLinker()->ResolveField( in ResolveField()
89 ArtField* resolved_field, in IsFastInstanceField()
/art/runtime/entrypoints/quick/
Dquick_field_entrypoints.cc32 inline ArtField* FindFieldFast(uint32_t field_idx, in FindFieldFast()
39 ArtField* resolved_field = referrer->GetDexCache()->GetResolvedField(field_idx); in FindFieldFast()
75 ALWAYS_INLINE static inline ArtField* FindInstanceField(uint32_t field_idx, in FindInstanceField()
84 ArtField* field = FindFieldFromCode<type>(field_idx, referrer, self, should_resolve_type); in FindInstanceField()
116 ArtField* field = FindFieldFast( \
136 ArtField* field = FindFieldFast( \
157 ArtField* field = FindFieldFast( \
192 ArtField* field = FindFieldFast( \
/art/runtime/dex/
Ddex_file_annotations.h31 class ArtField; variable
38 ObjPtr<mirror::Object> GetAnnotationForField(ArtField* field,
41 ObjPtr<mirror::ObjectArray<mirror::Object>> GetAnnotationsForField(ArtField* field)
43 EXPORT ObjPtr<mirror::ObjectArray<mirror::String>> GetSignatureAnnotationForField(ArtField* field)
45 bool IsFieldAnnotationPresent(ArtField* field, Handle<mirror::Class> annotation_class)
184 void ReadValueToField(ArtField* field) const REQUIRES_SHARED(Locks::mutator_lock_);

123456