From 0f6befa0f064d482cc252913f46ba8264b7e0384 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 7 Mar 2024 16:11:09 +0100 Subject: Pass only shorty to `ArtQuickJniCompileMethod()`. Passing a `dex_file` and `method_idx` makes testing unnecessarily difficult. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 288983053 Change-Id: Ice79423ec568e254547acd4448fb82e2ad11b79c --- compiler/optimizing/optimizing_compiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 65e8e51712..0e5de00f97 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1224,7 +1224,7 @@ CompiledMethod* OptimizingCompiler::JniCompile(uint32_t access_flags, } JniCompiledMethod jni_compiled_method = ArtQuickJniCompileMethod( - compiler_options, access_flags, method_idx, dex_file, &allocator); + compiler_options, dex_file.GetMethodShortyView(method_idx), access_flags, &allocator); MaybeRecordStat(compilation_stats_.get(), MethodCompilationStat::kCompiledNativeStub); ScopedArenaAllocator stack_map_allocator(&arena_stack); // Will hold the stack map. @@ -1291,7 +1291,7 @@ bool OptimizingCompiler::JitCompile(Thread* self, DCHECK_IMPLIES(method->IsCriticalNative(), !runtime->IsJavaDebuggable()); JniCompiledMethod jni_compiled_method = ArtQuickJniCompileMethod( - compiler_options, access_flags, method_idx, *dex_file, &allocator); + compiler_options, dex_file->GetMethodShortyView(method_idx), access_flags, &allocator); std::vector> roots; ArenaSet> cha_single_implementation_list( allocator.Adapter(kArenaAllocCHA)); -- cgit v1.2.3-59-g8ed1b