/art/test/407-arrays/src/ |
D | Main.java | 34 double[] doubles, int index) { in $opt$testReads() argument 36 assertEquals(false, bools[index]); in $opt$testReads() 39 assertEquals(0, bytes[index]); in $opt$testReads() 42 assertEquals(0, chars[index]); in $opt$testReads() 45 assertEquals(0, shorts[index]); in $opt$testReads() 48 assertEquals(0, ints[index]); in $opt$testReads() 51 assertNull(objects[index]); in $opt$testReads() 54 assertEquals(0, longs[index]); in $opt$testReads() 57 assertEquals(0, floats[index]); in $opt$testReads() 60 assertEquals(0, doubles[index]); in $opt$testReads() [all …]
|
/art/test/906-iterate-heap/ |
D | expected.txt | 21 10000@0 (static, int, index=3) 0000000000000000 23 10000@0 (static, int, index=11) 0000000000000000 25 10000@0 (static, int, index=0) 0000000000000000 27 10000@0 (static, int, index=1) 0000000000000000 29 10000@0 (instance, int, index=2) 0000000000000000 30 10001@0 (instance, byte, index=4) 0000000000000001 31 10002@0 (instance, char, index=5) 0000000000000061 32 10003@0 (instance, int, index=6) 0000000000000003 33 10004@0 (instance, long, index=7) 0000000000000004 34 10005@0 (instance, short, index=9) 0000000000000002 [all …]
|
/art/runtime/ |
D | imt_conflict_table.h | 68 void SetInterfaceMethod(size_t index, PointerSize pointer_size, ArtMethod* method) { in SetInterfaceMethod() argument 69 SetMethod(index * kMethodCount + kMethodInterface, pointer_size, method); in SetInterfaceMethod() 72 void SetImplementationMethod(size_t index, PointerSize pointer_size, ArtMethod* method) { in SetImplementationMethod() argument 73 SetMethod(index * kMethodCount + kMethodImplementation, pointer_size, method); in SetImplementationMethod() 76 ArtMethod* GetInterfaceMethod(size_t index, PointerSize pointer_size) const { in GetInterfaceMethod() argument 77 return GetMethod(index * kMethodCount + kMethodInterface, pointer_size); in GetInterfaceMethod() 80 ArtMethod* GetImplementationMethod(size_t index, PointerSize pointer_size) const { in GetImplementationMethod() argument 81 return GetMethod(index * kMethodCount + kMethodImplementation, pointer_size); in GetImplementationMethod() 84 void** AddressOfInterfaceMethod(size_t index, PointerSize pointer_size) { in AddressOfInterfaceMethod() argument 85 return AddressOfMethod(index * kMethodCount + kMethodInterface, pointer_size); in AddressOfInterfaceMethod() [all …]
|
D | imtable.h | 40 uint8_t* AddressOfElement(size_t index, PointerSize pointer_size) { in AddressOfElement() argument 41 return reinterpret_cast<uint8_t*>(this) + OffsetOfElement(index, pointer_size); in AddressOfElement() 44 ArtMethod* Get(size_t index, PointerSize pointer_size) { in Get() argument 45 DCHECK_LT(index, kSize); in Get() 46 uint8_t* ptr = AddressOfElement(index, pointer_size); in Get() 56 void Set(size_t index, ArtMethod* method, PointerSize pointer_size) { in Set() argument 57 DCHECK_LT(index, kSize); in Set() 58 uint8_t* ptr = AddressOfElement(index, pointer_size); in Set() 68 static size_t OffsetOfElement(size_t index, PointerSize pointer_size) { in OffsetOfElement() argument 69 return index * static_cast<size_t>(pointer_size); in OffsetOfElement()
|
D | bytecode_utils.h | 74 void CheckIndex(size_t index) const { in CheckIndex() argument 77 DCHECK_LT(index, 2 * static_cast<size_t>(num_entries_)); in CheckIndex() 80 DCHECK_LT(index, 1 + static_cast<size_t>(num_entries_)); in CheckIndex() 84 int32_t GetEntryAt(size_t index) const { in GetEntryAt() argument 85 CheckIndex(index); in GetEntryAt() 86 return values_[index]; in GetEntryAt() 89 uint32_t GetDexPcForIndex(size_t index) const { in GetDexPcForIndex() argument 90 CheckIndex(index); in GetDexPcForIndex() 92 (reinterpret_cast<const int16_t*>(values_ + index) - in GetDexPcForIndex()
|
D | monitor_pool_test.cc | 80 size_t index = r.next() % monitors.size(); in TEST_F() local 81 Monitor* mon = monitors[index]; in TEST_F() 82 monitors.erase(monitors.begin() + index); in TEST_F() 112 size_t index = r.next() % monitors.size(); in TEST_F() local 113 Monitor* mon = monitors[index]; in TEST_F() 114 monitors.erase(monitors.begin() + index); in TEST_F()
|
D | dex_file_types.h | 59 std::ostream& operator<<(std::ostream& os, const StringIndex& index); 94 std::ostream& operator<<(std::ostream& os, const TypeIndex& index); 102 size_t operator()(const art::dex::StringIndex& index) const { 103 return hash<uint32_t>()(index.index_); 108 size_t operator()(const art::dex::TypeIndex& index) const { 109 return hash<uint16_t>()(index.index_);
|
D | image.cc | 133 ArtMethod* ImageHeader::GetImageMethod(ImageMethod index) const { in GetImageMethod() 134 CHECK_LT(static_cast<size_t>(index), kImageMethodsCount); in GetImageMethod() 135 return reinterpret_cast<ArtMethod*>(image_methods_[index]); in GetImageMethod() 138 void ImageHeader::SetImageMethod(ImageMethod index, ArtMethod* method) { in SetImageMethod() argument 139 CHECK_LT(static_cast<size_t>(index), kImageMethodsCount); in SetImageMethod() 140 image_methods_[index] = reinterpret_cast<uint64_t>(method); in SetImageMethod() 143 const ImageSection& ImageHeader::GetImageSection(ImageSections index) const { in GetImageSection() 144 CHECK_LT(static_cast<size_t>(index), kSectionCount); in GetImageSection() 145 return sections_[index]; in GetImageSection()
|
/art/test/527-checker-array-access-split/src/ |
D | Main.java | 120 public static int get(int array[], int index) { in get() argument 121 return array[index]; in get() 165 public static void set(int array[], int index, int value) { in set() argument 166 array[index] = value; in set() 233 public static void getSet(int array[], int index) { in getSet() argument 234 array[index] = array[index] + 1; in getSet() 309 public static int[] accrossGC(int array[], int index) { in accrossGC() argument 310 int tmp = array[index] + 1; in accrossGC() 312 array[index] = tmp; in accrossGC()
|
/art/runtime/base/ |
D | array_slice.h | 85 T& At(size_t index) { in At() argument 86 DCHECK_LT(index, size_); in At() 87 return AtUnchecked(index); in At() 90 const T& At(size_t index) const { in At() argument 91 DCHECK_LT(index, size_); in At() 92 return AtUnchecked(index); in At() 95 T& operator[](size_t index) { 96 return At(index); 99 const T& operator[](size_t index) const { 100 return At(index); [all …]
|
D | length_prefixed_array.h | 36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 37 DCHECK_LT(index, size_); 38 return AtUnchecked(index, element_size, alignment); 41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const { 42 DCHECK_LT(index, size_); 43 return AtUnchecked(index, element_size, alignment); 64 static size_t OffsetOfElement(size_t index, 68 return RoundUp(offsetof(LengthPrefixedArray<T>, data), alignment) + index * element_size; 96 T& AtUnchecked(size_t index, size_t element_size, size_t alignment) { in AtUnchecked() argument 98 reinterpret_cast<uintptr_t>(this) + OffsetOfElement(index, element_size, alignment)); in AtUnchecked() [all …]
|
D | hash_set.h | 67 BaseIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) { in BaseIterator() argument 106 size_t NextNonEmptySlot(size_t index, const HashSet* hash_set) const { in NextNonEmptySlot() argument 108 DCHECK_LT(index, num_buckets); in NextNonEmptySlot() 110 ++index; in NextNonEmptySlot() 111 } while (index < num_buckets && hash_set->IsFreeSlot(index)); in NextNonEmptySlot() 112 return index; in NextNonEmptySlot() 397 const size_t index = FirstAvailableSlot(IndexForHash(hash)); in InsertWithHash() local 398 data_[index] = element; in InsertWithHash() 521 T& ElementForIndex(size_t index) { in ElementForIndex() argument 522 DCHECK_LT(index, NumBuckets()); in ElementForIndex() [all …]
|
/art/runtime/gc/accounting/ |
D | atomic_stack.h | 95 int32_t index; in AtomicBumpBack() local 98 index = back_index_.LoadRelaxed(); in AtomicBumpBack() 99 new_index = index + num_slots; in AtomicBumpBack() 104 } while (!back_index_.CompareExchangeWeakRelaxed(index, new_index)); in AtomicBumpBack() 105 *start_address = begin_ + index; in AtomicBumpBack() 109 for (int32_t i = index; i < new_index; ++i) { in AtomicBumpBack() 111 << "i=" << i << " index=" << index << " new_index=" << new_index; in AtomicBumpBack() 129 const int32_t index = back_index_.LoadRelaxed(); in PushBack() local 130 DCHECK_LT(static_cast<size_t>(index), growth_limit_); in PushBack() 131 back_index_.StoreRelaxed(index + 1); in PushBack() [all …]
|
/art/compiler/utils/ |
D | string_reference_test.cc | 83 for (size_t index = 0; index != arraysize(kDexFile1Strings); ++index) { in TEST() local 84 ASSERT_STREQ(kDexFile1Strings[index], in TEST() 85 dex_file1->GetStringData(dex_file1->GetStringId(dex::StringIndex(index)))); in TEST() 94 for (size_t index = 0; index != arraysize(kDexFile2Strings); ++index) { in TEST() local 95 ASSERT_STREQ(kDexFile2Strings[index], in TEST() 96 dex_file2->GetStringData(dex_file2->GetStringId(dex::StringIndex(index)))); in TEST()
|
/art/test/626-const-class-linking/src/ |
D | RacyMisbehavingLoader.java | 25 private int index = 0; field in RacyMisbehavingLoader 43 ++index; in reportAfterLoading() 44 if (index == 2 * count) { in reportAfterLoading() 83 my_index = index; in syncWithOtherInstances() 84 ++index; in syncWithOtherInstances() 85 if (index != limit) { in syncWithOtherInstances() 92 } while (index < limit); in syncWithOtherInstances()
|
D | RacyLoader.java | 25 private int index = 0; field in RacyLoader 62 my_index = index; in syncWithOtherInstances() 63 ++index; in syncWithOtherInstances() 64 if (index != limit) { in syncWithOtherInstances() 71 } while (index < limit); in syncWithOtherInstances()
|
/art/test/456-baseline-array-set/src/ |
D | Main.java | 22 public static void doArrayAccess(Integer value, int index) { in doArrayAccess() argument 27 array[index] = array[index + 1]; in doArrayAccess() 28 array[index] = value; in doArrayAccess()
|
/art/test/925-threadgroups/ |
D | threadgroups.cc | 47 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getTopThreadGroups() argument 48 return groups[index]; in Java_art_Test925_getTopThreadGroups() 65 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getThreadGroupInfo() argument 66 switch (index) { in Java_art_Test925_getThreadGroupInfo() 108 auto inner_callback = [&](jint index) { in Java_art_Test925_getThreadGroupChildren() argument 109 return threads[index]; in Java_art_Test925_getThreadGroupChildren() 114 auto inner_callback = [&](jint index) { in Java_art_Test925_getThreadGroupChildren() argument 115 return groups[index]; in Java_art_Test925_getThreadGroupChildren()
|
/art/tools/ahat/src/heapdump/ |
D | AhatArrayInstance.java | 63 @Override public Value get(int index) { in initialize() 64 AhatInstance obj = insts[index]; in initialize() 65 return obj == null ? null : new Value(insts[index]); in initialize() 78 @Override public Value get(int index) { in initialize() 79 return new Value(chars[index]); in initialize() 92 @Override public Value get(int index) { in initialize() 93 return new Value(bytes[index]); in initialize() 105 @Override public Value get(int index) { in initialize() 106 Object obj = values[index]; in initialize() 131 public Value getValue(int index) { in getValue() argument [all …]
|
/art/test/410-floats/src/ |
D | Main.java | 103 public static void testArrayOperations(float[] a, int index, float value1, float value2) { in testArrayOperations() argument 110 a[index] = value1; in testArrayOperations() 111 a[index + 1] = value2; in testArrayOperations() 117 public static void testArrayOperations(double[] a, int index, double value1, double value2) { in testArrayOperations() argument 124 a[index] = value1; in testArrayOperations() 125 a[index + 1] = value2; in testArrayOperations()
|
/art/test/617-clinit-oome/src/ |
D | Main.java | 24 int index = 0; in main() local 27 data[index] = new byte[size]; in main() 28 index++; in main()
|
/art/runtime/verifier/ |
D | method_verifier-inl.h | 37 inline const InstructionFlags& MethodVerifier::GetInstructionFlags(size_t index) const { in GetInstructionFlags() argument 38 return insn_flags_[index]; in GetInstructionFlags() 41 inline InstructionFlags& MethodVerifier::GetInstructionFlags(size_t index) { in GetInstructionFlags() argument 42 return insn_flags_[index]; in GetInstructionFlags()
|
/art/runtime/interpreter/mterp/mips/ |
D | op_aget.S | 18 GET_VREG(a1, a3) # a1 <- vCC (requested index) 22 EASN(a0, a0, a1, $shift) # a0 <- arrayObj + index*width 23 # a1 >= a3; compare unsigned index 24 bgeu a1, a3, common_errArrayIndex # index >= length, bail
|
/art/runtime/interpreter/mterp/arm/ |
D | op_aput.S | 18 GET_VREG r1, r3 @ r1<- vCC (requested index) 22 add r0, r0, r1, lsl #$shift @ r0<- arrayObj + index*width 23 cmp r1, r3 @ compare unsigned index, length 24 bcs common_errArrayIndex @ index >= length, bail
|
D | op_aget.S | 18 GET_VREG r1, r3 @ r1<- vCC (requested index) 22 add r0, r0, r1, lsl #$shift @ r0<- arrayObj + index*width 23 cmp r1, r3 @ compare unsigned index, length 24 bcs common_errArrayIndex @ index >= length, bail
|