/art/compiler/optimizing/ |
D | bounds_check_elimination_test.cc | 91 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 …]
|
D | bounds_check_elimination.cc | 826 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 …]
|
D | induction_var_range_test.cc | 710 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()
|
D | graph_visualizer.cc | 423 void VisitArrayLength(HArrayLength* array_length) override { in VisitArrayLength() argument 425 << array_length->IsStringLength() << std::noboolalpha; in VisitArrayLength() 426 if (array_length->IsEmittedAtUseSite()) { in VisitArrayLength()
|
D | superblock_cloner_test.cc | 79 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()
|
D | code_generator_x86_64.cc | 201 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 …]
|
D | code_generator_x86.cc | 155 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 …]
|
D | code_generator.h | 396 static uint32_t GetArrayLengthOffset(HArrayLength* array_length);
|
D | code_generator.cc | 300 uint32_t CodeGenerator::GetArrayLengthOffset(HArrayLength* array_length) { in GetArrayLengthOffset() argument 301 return array_length->IsStringLength() in GetArrayLengthOffset()
|
/art/runtime/mirror/ |
D | array.cc | 52 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/ |
D | Test944.java | 208 int array_length = Array.getLength(elementArrayValue); in checkDexFileInClassLoader() local 209 for (int i = 0; i < array_length; i++) { in checkDexFileInClassLoader()
|
/art/runtime/ |
D | common_runtime_test.cc | 358 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/ |
D | ti_heap.cc | 124 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/ |
D | interpreter_common.cc | 1084 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/ |
D | jni_internal.cc | 552 jsize array_length) in ThrowSIOOBE() argument 556 array_length); in ThrowSIOOBE()
|