diff options
Diffstat (limited to 'runtime/mirror/art_method.h')
-rw-r--r-- | runtime/mirror/art_method.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/runtime/mirror/art_method.h b/runtime/mirror/art_method.h index 22481ce..55b8068 100644 --- a/runtime/mirror/art_method.h +++ b/runtime/mirror/art_method.h @@ -183,6 +183,10 @@ class MANAGED ArtMethod FINAL : public Object { SetField32<false>(OFFSET_OF_OBJECT_MEMBER(ArtMethod, method_index_), new_method_index); } + static MemberOffset DexMethodIndexOffset() { + return OFFSET_OF_OBJECT_MEMBER(ArtMethod, dex_method_index_); + } + static MemberOffset MethodIndexOffset() { return OFFSET_OF_OBJECT_MEMBER(ArtMethod, method_index_); } @@ -214,6 +218,8 @@ class MANAGED ArtMethod FINAL : public Object { return OFFSET_OF_OBJECT_MEMBER(ArtMethod, dex_cache_resolved_types_); } + ALWAYS_INLINE ObjectArray<ArtMethod>* GetDexCacheResolvedMethods() + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); ALWAYS_INLINE ArtMethod* GetDexCacheResolvedMethod(uint16_t method_idx) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); ALWAYS_INLINE void SetDexCacheResolvedMethod(uint16_t method_idx, ArtMethod* new_method) @@ -434,10 +440,6 @@ class MANAGED ArtMethod FINAL : public Object { EntryPointFromJniOffset(pointer_size), entrypoint, pointer_size); } - static MemberOffset GetMethodIndexOffset() { - return OFFSET_OF_OBJECT_MEMBER(ArtMethod, method_index_); - } - // Is this a CalleSaveMethod or ResolutionMethod and therefore doesn't adhere to normal // conventions for a method of managed code. Returns false for Proxy methods. bool IsRuntimeMethod() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); @@ -604,9 +606,6 @@ class MANAGED ArtMethod FINAL : public Object { private: ALWAYS_INLINE void CheckObjectSizeEqualsMirrorSize() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - ALWAYS_INLINE ObjectArray<ArtMethod>* GetDexCacheResolvedMethods() - SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - ALWAYS_INLINE ObjectArray<Class>* GetDexCacheResolvedTypes() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |