diff options
author | 2017-12-11 13:45:05 +0000 | |
---|---|---|
committer | 2017-12-11 15:43:45 +0000 | |
commit | 890111968fbd3f5ae528d97e42984c12a3dd27bd (patch) | |
tree | edb4ed38332a817b7d3037ea260856cec839dca9 /runtime/class_linker-inl.h | |
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/class_linker-inl.h')
-rw-r--r-- | runtime/class_linker-inl.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/class_linker-inl.h b/runtime/class_linker-inl.h index 2d8d4b41a0..c086dd2676 100644 --- a/runtime/class_linker-inl.h +++ b/runtime/class_linker-inl.h @@ -237,9 +237,7 @@ inline ArtMethod* ClassLinker::ResolveMethod(Thread* self, StackHandleScope<2> hs(self); Handle<mirror::DexCache> h_dex_cache(hs.NewHandle(referrer->GetDexCache())); Handle<mirror::ClassLoader> h_class_loader(hs.NewHandle(declaring_class->GetClassLoader())); - const DexFile* dex_file = h_dex_cache->GetDexFile(); - resolved_method = ResolveMethod<kResolveMode>(*dex_file, - method_idx, + resolved_method = ResolveMethod<kResolveMode>(method_idx, h_dex_cache, h_class_loader, referrer, |