Home
last modified time | relevance | path

Searched refs:array_length (Results 1 – 16 of 16) sorted by relevance

/art/compiler/optimizing/
Dbounds_check_elimination_test.cc92 HArrayLength* array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F() local
94 HBoundsCheck(parameter2, array_length, 0); in TEST_F()
98 block2->AddInstruction(array_length); in TEST_F()
105 array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F()
106 cmp = new (GetAllocator()) HLessThan(parameter2, array_length); in TEST_F()
109 block3->AddInstruction(array_length); in TEST_F()
116 array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F()
118 HBoundsCheck(parameter2, array_length, 0); in TEST_F()
122 block4->AddInstruction(array_length); in TEST_F()
129 array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F()
[all …]
Dbounds_check_elimination.cc839 HInstruction* array_length = bounds_check->InputAt(1); in VisitBoundsCheck() local
840 DCHECK(array_length->IsIntConstant() || in VisitBoundsCheck()
841 array_length->IsArrayLength() || in VisitBoundsCheck()
842 array_length->IsPhi()); in VisitBoundsCheck()
848 ValueBound upper = ValueBound(array_length, -1); // array_length - 1 in VisitBoundsCheck()
859 ValueRange* existing_range = LookupValueRange(array_length, block); in VisitBoundsCheck()
884 } else if (array_length->IsIntConstant()) { in VisitBoundsCheck()
885 if (constant < array_length->AsIntConstant()->GetValue()) { in VisitBoundsCheck()
891 DCHECK(array_length->IsArrayLength()); in VisitBoundsCheck()
892 ValueRange* existing_range = LookupValueRange(array_length, block); in VisitBoundsCheck()
[all …]
Dload_store_analysis.cc97 HInstruction* array_length = inst->AsNewArray()->GetLength(); in InstructionEligibleForLSERemoval() local
99 array_length->IsIntConstant() && array_length->AsIntConstant()->GetValue() >= 0; in InstructionEligibleForLSERemoval()
Dinduction_var_range_test.cc931 HInstruction* array_length = new (GetAllocator()) HArrayLength(new_array, 0); in TEST_F() local
932 entry_block_->AddInstruction(array_length); in TEST_F()
936 ExpectEqual(Value(0), GetMin(CreateFetch(array_length), nullptr)); in TEST_F()
937 ExpectEqual(Value(max_value), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
939 SetHint(array_length); in TEST_F()
940 ExpectEqual(Value(array_length, 1, 0), GetMin(CreateFetch(array_length), nullptr)); in TEST_F()
941 ExpectEqual(Value(array_length, 1, 0), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
944 ExpectEqual(Value(x_, 1, 0), GetMin(CreateFetch(array_length), nullptr)); in TEST_F()
945 ExpectEqual(Value(x_, 1, 0), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
Dsuperblock_cloner_test.cc84 HInstruction* array_length = new (GetAllocator()) HArrayLength(null_check, dex_pc); in CreateBasicLoopDataFlow() local
85 HInstruction* bounds_check = new (GetAllocator()) HBoundsCheck(phi, array_length, dex_pc); in CreateBasicLoopDataFlow()
94 loop_body->AddInstruction(array_length); in CreateBasicLoopDataFlow()
Dgraph_visualizer.cc460 void VisitArrayLength(HArrayLength* array_length) override { in VisitArrayLength() argument
462 << array_length->IsStringLength() << std::noboolalpha; in VisitArrayLength()
463 if (array_length->IsEmittedAtUseSite()) { in VisitArrayLength()
Dcode_generator_x86_64.cc221 HArrayLength* array_length = instruction_->InputAt(1)->AsArrayLength(); in EmitNativeCode() local
222 DCHECK(array_length->IsEmittedAtUseSite()); in EmitNativeCode()
223 uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(array_length); in EmitNativeCode()
224 Location array_loc = array_length->GetLocations()->InAt(0); in EmitNativeCode()
242 if (mirror::kUseStringCompression && array_length->IsStringLength()) { in EmitNativeCode()
6194 HInstruction* array_length = instruction->InputAt(1); in VisitBoundsCheck() local
6195 if (array_length->IsEmittedAtUseSite()) { in VisitBoundsCheck()
6197 DCHECK(array_length->IsArrayLength()); in VisitBoundsCheck()
6198 uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(array_length->AsArrayLength()); in VisitBoundsCheck()
6199 Location array_loc = array_length->GetLocations()->InAt(0); in VisitBoundsCheck()
[all …]
Dcode_generator_x86.cc171 HArrayLength* array_length = instruction_->InputAt(1)->AsArrayLength(); in EmitNativeCode() local
172 DCHECK(array_length->IsEmittedAtUseSite()); in EmitNativeCode()
173 uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(array_length); in EmitNativeCode()
174 Location array_loc = array_length->GetLocations()->InAt(0); in EmitNativeCode()
198 if (mirror::kUseStringCompression && array_length->IsStringLength()) { in EmitNativeCode()
6885 HInstruction* array_length = instruction->InputAt(1); in VisitBoundsCheck() local
6886 if (array_length->IsEmittedAtUseSite()) { in VisitBoundsCheck()
6888 DCHECK(array_length->IsArrayLength()); in VisitBoundsCheck()
6889 uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(array_length->AsArrayLength()); in VisitBoundsCheck()
6890 Location array_loc = array_length->GetLocations()->InAt(0); in VisitBoundsCheck()
[all …]
Dcode_generator.cc219 uint32_t CodeGenerator::GetArrayLengthOffset(HArrayLength* array_length) { in GetArrayLengthOffset() argument
220 return array_length->IsStringLength() in GetArrayLengthOffset()
Dcode_generator.h449 static uint32_t GetArrayLengthOffset(HArrayLength* array_length);
/art/runtime/mirror/
Darray.cc52 int32_t array_length = dimensions->Get(current_dimension); in RecursiveCreateMultiArray() local
58 Array::Alloc(self, array_class.Get(), array_length, component_size_shift, allocator_type))); in RecursiveCreateMultiArray()
65 for (int32_t i = 0; i < array_length; i++) { in RecursiveCreateMultiArray()
/art/test/944-transform-classloaders/src/art/
DTest944.java208 int array_length = Array.getLength(elementArrayValue); in checkDexFileInClassLoader() local
209 for (int i = 0; i < array_length; i++) { in checkDexFileInClassLoader()
/art/runtime/
Dcommon_runtime_test.cc375 const int32_t array_length = length / 4; // Object[] has elements of size 4. in FillHeap() local
377 mirror::ObjectArray<mirror::Object>::Alloc(self, ca.Get(), array_length))); in FillHeap()
/art/openjdkjvmti/
Dti_heap.cc154 int32_t array_length = array->GetLength(); in ReportPrimitiveArray() local
173 if (array_length == 0) { in ReportPrimitiveArray()
184 array_length * component_size, in ReportPrimitiveArray()
193 memcpy(data.get(), array->GetRawData(component_size, 0), array_length * component_size); in ReportPrimitiveArray()
198 array_length, in ReportPrimitiveArray()
/art/runtime/interpreter/
Dinterpreter_common.cc776 int32_t array_length, in PackCollectorArrayForBootstrapMethod() argument
786 hs.NewHandle(mirror::Type ## Array::Alloc(self, array_length)); \ in PackCollectorArrayForBootstrapMethod()
809 array_length)); \ in PackCollectorArrayForBootstrapMethod()
/art/runtime/jni/
Djni_internal.cc445 jsize array_length) in ThrowSIOOBE() argument
449 array_length); in ThrowSIOOBE()