diff options
Diffstat (limited to 'runtime/mirror/abstract_method.h')
-rw-r--r-- | runtime/mirror/abstract_method.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/runtime/mirror/abstract_method.h b/runtime/mirror/abstract_method.h index ef51d7f4ae..99d697a6d3 100644 --- a/runtime/mirror/abstract_method.h +++ b/runtime/mirror/abstract_method.h @@ -26,18 +26,19 @@ namespace art { struct AbstractMethodOffsets; +class ArtMethod; namespace mirror { -class ArtMethod; - // C++ mirror of java.lang.reflect.AbstractMethod. class MANAGED AbstractMethod : public AccessibleObject { public: // Called from Constructor::CreateFromArtMethod, Method::CreateFromArtMethod. - bool CreateFromArtMethod(mirror::ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + bool CreateFromArtMethod(ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - mirror::ArtMethod* GetArtMethod() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + ArtMethod* GetArtMethod() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + // Only used by the image writer. + void SetArtMethod(ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); mirror::Class* GetDeclaringClass() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); private: @@ -57,9 +58,10 @@ class MANAGED AbstractMethod : public AccessibleObject { return MemberOffset(OFFSETOF_MEMBER(AbstractMethod, dex_method_index_)); } - HeapReference<mirror::ArtMethod> art_method_; HeapReference<mirror::Class> declaring_class_; HeapReference<mirror::Class> declaring_class_of_overridden_method_; + uint32_t padding_; + uint64_t art_method_; uint32_t access_flags_; uint32_t dex_method_index_; |