From 7b3672e2af7dd2a0f9922b2b5bb48d1be579acbe Mon Sep 17 00:00:00 2001 From: Artem Serov Date: Fri, 3 Feb 2017 17:30:34 +0000 Subject: [PATCH] ARM: VIXL32: Fix "Align allocation entrypoints..". Add missing changes for VIXL backend to https://android-review.googlesource.com/#/c/330124/. Test: m test-art-host Test: m test-art-target Change-Id: Ic8383a7a426cbe8501e12838e9728fc3f359f03d --- compiler/optimizing/code_generator_arm_vixl.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/optimizing/code_generator_arm_vixl.cc b/compiler/optimizing/code_generator_arm_vixl.cc index 0d31d830c..433947ac3 100644 --- a/compiler/optimizing/code_generator_arm_vixl.cc +++ b/compiler/optimizing/code_generator_arm_vixl.cc @@ -4005,8 +4005,11 @@ void LocationsBuilderARMVIXL::VisitNewArray(HNewArray* instruction) { void InstructionCodeGeneratorARMVIXL::VisitNewArray(HNewArray* instruction) { // Note: if heap poisoning is enabled, the entry point takes cares // of poisoning the reference. - codegen_->InvokeRuntime(kQuickAllocArrayResolved, instruction, instruction->GetDexPc()); + QuickEntrypointEnum entrypoint = + CodeGenerator::GetArrayAllocationEntrypoint(instruction->GetLoadClass()->GetClass()); + codegen_->InvokeRuntime(entrypoint, instruction, instruction->GetDexPc()); CheckEntrypointTypes(); + DCHECK(!codegen_->IsLeafMethod()); } void LocationsBuilderARMVIXL::VisitParameterValue(HParameterValue* instruction) { -- 2.11.0