diff options
author | 2017-12-11 13:45:05 +0000 | |
---|---|---|
committer | 2017-12-11 15:43:45 +0000 | |
commit | 890111968fbd3f5ae528d97e42984c12a3dd27bd (patch) | |
tree | edb4ed38332a817b7d3037ea260856cec839dca9 /runtime/dex_file_annotations.cc | |
parent | 0f13269734be07b5869005952a3cb91b0b34b73d (diff) |
Do not pass DexFile to ClassLinker::Lookup/ResolveMethod().
The DexFile can be easily retrieved from the DexCache,
so reduce the number of arguments that need to be passed.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I2e47280e7cb8b84595130c4abfb5ece18d7f5c75
Diffstat (limited to 'runtime/dex_file_annotations.cc')
-rw-r--r-- | runtime/dex_file_annotations.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/dex_file_annotations.cc b/runtime/dex_file_annotations.cc index eaf31f308f..43260f733b 100644 --- a/runtime/dex_file_annotations.cc +++ b/runtime/dex_file_annotations.cc @@ -501,7 +501,6 @@ bool ProcessAnnotationValue(const ClassData& klass, ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); StackHandleScope<2> hs(self); ArtMethod* method = class_linker->ResolveMethodWithoutInvokeType( - klass.GetDexFile(), index, hs.NewHandle(klass.GetDexCache()), hs.NewHandle(klass.GetClassLoader())); @@ -1398,7 +1397,6 @@ mirror::Class* GetEnclosingClass(Handle<mirror::Class> klass) { } StackHandleScope<2> hs(Thread::Current()); ArtMethod* method = Runtime::Current()->GetClassLinker()->ResolveMethodWithoutInvokeType( - data.GetDexFile(), annotation_value.value_.GetI(), hs.NewHandle(data.GetDexCache()), hs.NewHandle(data.GetClassLoader())); |