diff options
author | 2024-11-04 17:19:31 +0000 | |
---|---|---|
committer | 2024-11-05 14:04:28 +0000 | |
commit | 96dc77238e2b5a962911a6da06d5e1b869dc92f8 (patch) | |
tree | 4a96efaca4f14d4ae488903bb622b25399887ab2 /runtime/class_linker.cc | |
parent | 4d6fdd9fb379ac6e3575c3ec5406d808e0290636 (diff) |
Rename ResolveMethodWithoutInvokeType and use it more.
Rename it to ResolveMethodId as a more precise name, and use it in
places where that's the thing we need.
Test: test.py
Change-Id: I906371585e9fa208093eed9affba552fd135a184
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 02528293b3..991673f966 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -10053,9 +10053,9 @@ ArtMethod* ClassLinker::FindIncompatibleMethod(ObjPtr<mirror::Class> klass, } } -ArtMethod* ClassLinker::ResolveMethodWithoutInvokeType(uint32_t method_idx, - Handle<mirror::DexCache> dex_cache, - Handle<mirror::ClassLoader> class_loader) { +ArtMethod* ClassLinker::ResolveMethodId(uint32_t method_idx, + Handle<mirror::DexCache> dex_cache, + Handle<mirror::ClassLoader> class_loader) { DCHECK(dex_cache->GetClassLoader() == class_loader.Get()); ArtMethod* resolved = dex_cache->GetResolvedMethod(method_idx); Thread::PoisonObjectPointersIfDebug(); @@ -10436,9 +10436,9 @@ ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForMethod( // the invocation type to determine if the method is private. We // then resolve again specifying the intended invocation type to // force the appropriate checks. - target_method = ResolveMethodWithoutInvokeType(method_handle.field_or_method_idx_, - hs.NewHandle(referrer->GetDexCache()), - hs.NewHandle(referrer->GetClassLoader())); + target_method = ResolveMethodId(method_handle.field_or_method_idx_, + hs.NewHandle(referrer->GetDexCache()), + hs.NewHandle(referrer->GetClassLoader())); if (UNLIKELY(target_method == nullptr)) { break; } |