diff options
author | 2024-01-30 14:07:27 +0000 | |
---|---|---|
committer | 2024-04-11 12:38:25 +0000 | |
commit | 53ca944020bb86199f6f80d8594d5deb1b1d46dd (patch) | |
tree | 2898b11cbcd41c3e907de9c08b4031047a8d5187 /compiler/optimizing/instruction_builder.cc | |
parent | a7bc7cbf3182cb5c66f7cf36611c0389e7b7cc0f (diff) |
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
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
-rw-r--r-- | compiler/optimizing/instruction_builder.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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); } |