Home
last modified time | relevance | path

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

/art/compiler/optimizing/
Dbounds_check_elimination_test.cc91 HArrayLength* array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F() local
93 HBoundsCheck(parameter2, array_length, 0); in TEST_F()
97 block2->AddInstruction(array_length); in TEST_F()
104 array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F()
105 cmp = new (GetAllocator()) HLessThan(parameter2, array_length); in TEST_F()
108 block3->AddInstruction(array_length); in TEST_F()
115 array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F()
117 HBoundsCheck(parameter2, array_length, 0); in TEST_F()
121 block4->AddInstruction(array_length); in TEST_F()
128 array_length = new (GetAllocator()) HArrayLength(null_check, 0); in TEST_F()
[all …]
Dbounds_check_elimination.cc826 HInstruction* array_length = bounds_check->InputAt(1); in VisitBoundsCheck() local
827 DCHECK(array_length->IsIntConstant() || in VisitBoundsCheck()
828 array_length->IsArrayLength() || in VisitBoundsCheck()
829 array_length->IsPhi()); in VisitBoundsCheck()
835 ValueBound upper = ValueBound(array_length, -1); // array_length - 1 in VisitBoundsCheck()
846 ValueRange* existing_range = LookupValueRange(array_length, block); in VisitBoundsCheck()
871 } else if (array_length->IsIntConstant()) { in VisitBoundsCheck()
872 if (constant < array_length->AsIntConstant()->GetValue()) { in VisitBoundsCheck()
878 DCHECK(array_length->IsArrayLength()); in VisitBoundsCheck()
879 ValueRange* existing_range = LookupValueRange(array_length, block); in VisitBoundsCheck()
[all …]
Dinduction_var_range_test.cc710 HInstruction* array_length = new (GetAllocator()) HArrayLength(new_array, 0); in TEST_F() local
711 entry_block_->AddInstruction(array_length); in TEST_F()
715 ExpectEqual(Value(0), GetMin(CreateFetch(array_length), nullptr)); in TEST_F()
716 ExpectEqual(Value(max_value), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
718 SetHint(array_length); in TEST_F()
719 ExpectEqual(Value(array_length, 1, 0), GetMin(CreateFetch(array_length), nullptr)); in TEST_F()
720 ExpectEqual(Value(array_length, 1, 0), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
723 ExpectEqual(Value(x_, 1, 0), GetMin(CreateFetch(array_length), nullptr)); in TEST_F()
724 ExpectEqual(Value(x_, 1, 0), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
Dgraph_visualizer.cc423 void VisitArrayLength(HArrayLength* array_length) override { in VisitArrayLength() argument
425 << array_length->IsStringLength() << std::noboolalpha; in VisitArrayLength()
426 if (array_length->IsEmittedAtUseSite()) { in VisitArrayLength()
Dsuperblock_cloner_test.cc79 HInstruction* array_length = new (GetAllocator()) HArrayLength(null_check, dex_pc); in CreateBasicLoopDataFlow() local
80 HInstruction* bounds_check = new (GetAllocator()) HBoundsCheck(phi, array_length, dex_pc); in CreateBasicLoopDataFlow()
89 loop_body->AddInstruction(array_length); in CreateBasicLoopDataFlow()
Dcode_generator_x86_64.cc201 HInstruction* array_length = instruction_->InputAt(1); in EmitNativeCode() local
204 if (array_length->IsArrayLength() && array_length->IsEmittedAtUseSite()) { in EmitNativeCode()
206 HArrayLength* length = array_length->AsArrayLength(); in EmitNativeCode()
208 Location array_loc = array_length->GetLocations()->InAt(0); in EmitNativeCode()
5442 HInstruction* array_length = instruction->InputAt(1); in VisitBoundsCheck() local
5443 if (array_length->IsEmittedAtUseSite()) { in VisitBoundsCheck()
5445 DCHECK(array_length->IsArrayLength()); in VisitBoundsCheck()
5446 uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(array_length->AsArrayLength()); in VisitBoundsCheck()
5447 Location array_loc = array_length->GetLocations()->InAt(0); in VisitBoundsCheck()
5454 codegen_->MaybeRecordImplicitNullCheck(array_length); in VisitBoundsCheck()
[all …]
Dcode_generator_x86.cc155 HInstruction* array_length = instruction_->InputAt(1); in EmitNativeCode() local
158 if (array_length->IsArrayLength() && array_length->IsEmittedAtUseSite()) { in EmitNativeCode()
160 HArrayLength* length = array_length->AsArrayLength(); in EmitNativeCode()
162 Location array_loc = array_length->GetLocations()->InAt(0); in EmitNativeCode()
6097 HInstruction* array_length = instruction->InputAt(1); in VisitBoundsCheck() local
6098 if (array_length->IsEmittedAtUseSite()) { in VisitBoundsCheck()
6100 DCHECK(array_length->IsArrayLength()); in VisitBoundsCheck()
6101 uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(array_length->AsArrayLength()); in VisitBoundsCheck()
6102 Location array_loc = array_length->GetLocations()->InAt(0); in VisitBoundsCheck()
6109 codegen_->MaybeRecordImplicitNullCheck(array_length); in VisitBoundsCheck()
[all …]
Dcode_generator.h396 static uint32_t GetArrayLengthOffset(HArrayLength* array_length);
Dcode_generator.cc300 uint32_t CodeGenerator::GetArrayLengthOffset(HArrayLength* array_length) { in GetArrayLengthOffset() argument
301 return array_length->IsStringLength() in GetArrayLengthOffset()
/art/runtime/mirror/
Darray.cc52 int32_t array_length = dimensions->Get(current_dimension); in RecursiveCreateMultiArray() local
58 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.cc358 const int32_t array_length = length / 4; // Object[] has elements of size 4. in FillHeap() local
360 mirror::ObjectArray<mirror::Object>::Alloc(self, ca.Get(), array_length))); in FillHeap()
/art/openjdkjvmti/
Dti_heap.cc124 int32_t array_length = array->GetLength(); in ReportPrimitiveArray() local
143 if (array_length == 0) { in ReportPrimitiveArray()
154 array_length * component_size, in ReportPrimitiveArray()
163 memcpy(data.get(), array->GetRawData(component_size, 0), array_length * component_size); in ReportPrimitiveArray()
168 array_length, in ReportPrimitiveArray()
/art/runtime/interpreter/
Dinterpreter_common.cc1084 int32_t array_length, in PackCollectorArrayForBootstrapMethod() argument
1094 hs.NewHandle(mirror::Type ## Array::Alloc(self, array_length)); \ in PackCollectorArrayForBootstrapMethod()
1117 array_length)); \ in PackCollectorArrayForBootstrapMethod()
/art/runtime/jni/
Djni_internal.cc552 jsize array_length) in ThrowSIOOBE() argument
556 array_length); in ThrowSIOOBE()