From 53ca944020bb86199f6f80d8594d5deb1b1d46dd Mon Sep 17 00:00:00 2001 From: Almaz Mingaleev Date: Tue, 30 Jan 2024 14:07:27 +0000 Subject: x86_64: Add JIT support for LoadMethodType. In aosp/2876518 JIT code made runtime calls. Bug: 297147201 Test: ./art/test/testrunner/testrunner.py --host --64 --jit -b Test: ./art/test/testrunner/testrunner.py --host --64 -b Test: ./art/test.py --host -b Change-Id: Ifdfd3ace9419b34f8079c9ec4b1b2de31cb50ef7 --- compiler/optimizing/instruction_builder.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'compiler/optimizing/instruction_builder.cc') diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index 1d665b2559..c3918683ce 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -2700,9 +2700,10 @@ void HInstructionBuilder::BuildLoadMethodType(dex::ProtoIndex proto_index, uint3 const DexFile& dex_file = *dex_compilation_unit_->GetDexFile(); HLoadMethodType* load_method_type = new (allocator_) HLoadMethodType(graph_->GetCurrentMethod(), proto_index, dex_file, dex_pc); - if (!code_generator_->GetCompilerOptions().IsJitCompiler()) { - load_method_type->SetLoadKind(HLoadMethodType::LoadKind::kBssEntry); - } + HSharpening::ProcessLoadMethodType(load_method_type, + code_generator_, + *dex_compilation_unit_, + graph_->GetHandleCache()->GetHandles()); AppendInstruction(load_method_type); } -- cgit v1.2.3-59-g8ed1b