diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-12-11 13:25:33 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-12-11 15:25:51 -0800 |
commit | 12b3dd738acd8cfff17fb167e93061dc276936d7 (patch) | |
tree | c19ba63cccece0f46fa2ff71d87803cfa53fca7c /runtime/mirror | |
parent | 407d77f344cfbdbbfb50531c5f0766bc0892e2fe (diff) | |
download | art-12b3dd738acd8cfff17fb167e93061dc276936d7.tar.gz art-12b3dd738acd8cfff17fb167e93061dc276936d7.tar.bz2 art-12b3dd738acd8cfff17fb167e93061dc276936d7.zip |
Remove proxy logic from GetCodeItem
TODO: Fix places where this doesn't work. Seems maybe in debugger,
etc.
Bug: 17939199
Change-Id: I1dd3c1b071dc37aa1d0a6c187848978588248617
Diffstat (limited to 'runtime/mirror')
-rw-r--r-- | runtime/mirror/art_method-inl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/mirror/art_method-inl.h b/runtime/mirror/art_method-inl.h index c29276a238..c1f619ccc3 100644 --- a/runtime/mirror/art_method-inl.h +++ b/runtime/mirror/art_method-inl.h @@ -380,8 +380,7 @@ inline const char* ArtMethod::GetName() { } inline const DexFile::CodeItem* ArtMethod::GetCodeItem() { - mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); - return method->GetDexFile()->GetCodeItem(method->GetCodeItemOffset()); + return GetDeclaringClass()->GetDexFile().GetCodeItem(GetCodeItemOffset()); } inline bool ArtMethod::IsResolvedTypeIdx(uint16_t type_idx) { |