diff options
author | 2024-11-04 17:19:31 +0000 | |
---|---|---|
committer | 2024-11-05 14:04:28 +0000 | |
commit | 96dc77238e2b5a962911a6da06d5e1b869dc92f8 (patch) | |
tree | 4a96efaca4f14d4ae488903bb622b25399887ab2 /compiler/optimizing/optimizing_compiler.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 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index b15657355f..cb9933c9c0 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -256,7 +256,6 @@ class OptimizingCompiler final : public Compiler { CompiledMethod* Compile(const dex::CodeItem* code_item, uint32_t access_flags, - InvokeType invoke_type, uint16_t class_def_idx, uint32_t method_idx, Handle<mirror::ClassLoader> class_loader, @@ -1068,7 +1067,6 @@ CodeGenerator* OptimizingCompiler::TryCompileIntrinsic( CompiledMethod* OptimizingCompiler::Compile(const dex::CodeItem* code_item, uint32_t access_flags, - InvokeType invoke_type, uint16_t class_def_idx, uint32_t method_idx, Handle<mirror::ClassLoader> jclass_loader, @@ -1086,9 +1084,7 @@ CompiledMethod* OptimizingCompiler::Compile(const dex::CodeItem* code_item, { ScopedObjectAccess soa(Thread::Current()); ArtMethod* method = - runtime->GetClassLinker()->ResolveMethod<ClassLinker::ResolveMode::kCheckICCEAndIAE>( - method_idx, dex_cache, jclass_loader, /*referrer=*/ nullptr, invoke_type); - DCHECK_EQ(method == nullptr, soa.Self()->IsExceptionPending()); + runtime->GetClassLinker()->ResolveMethodId(method_idx, dex_cache, jclass_loader); soa.Self()->ClearException(); // Suppress exception if any. VariableSizedHandleScope handles(soa.Self()); Handle<mirror::Class> compiling_class = |