/art/test/712-varhandle-invocations/src/ |
D | SampleValues.java | 66 public static boolean get_boolean(int index) { in get_boolean() argument 67 return PRIMITIVE_BOOLEANS[index]; in get_boolean() 70 public static Boolean get_Boolean(int index) { in get_Boolean() argument 71 return BOOLEANS[index]; in get_Boolean() 74 public static byte get_byte(int index) { in get_byte() argument 75 return PRIMITIVE_BYTES[index]; in get_byte() 78 public static Byte get_Byte(int index) { in get_Byte() argument 79 return BYTES[index]; in get_Byte() 82 public static short get_short(int index) { in get_short() argument 83 return PRIMITIVE_SHORTS[index]; in get_short() [all …]
|
D | VarHandleUnitTestHelpers.java | 56 public static boolean getBytesAs_boolean(byte[] array, int index, ByteOrder order) { in getBytesAs_boolean() argument 57 return getBytesAs_boolean(ByteBuffer.wrap(array), index, order); in getBytesAs_boolean() 60 public static byte getBytesAs_byte(byte[] array, int index, ByteOrder order) { in getBytesAs_byte() argument 61 return getBytesAs_byte(ByteBuffer.wrap(array), index, order); in getBytesAs_byte() 64 public static char getBytesAs_char(byte[] array, int index, ByteOrder order) { in getBytesAs_char() argument 65 return getBytesAs_char(ByteBuffer.wrap(array), index, order); in getBytesAs_char() 68 public static short getBytesAs_short(byte[] array, int index, ByteOrder order) { in getBytesAs_short() argument 69 return getBytesAs_short(ByteBuffer.wrap(array), index, order); in getBytesAs_short() 72 public static int getBytesAs_int(byte[] array, int index, ByteOrder order) { in getBytesAs_int() argument 73 return getBytesAs_int(ByteBuffer.wrap(array), index, order); in getBytesAs_int() [all …]
|
/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 | 22 10000@0 (static, int, index=3) 0000000000000000 24 10000@0 (static, int, index=11) 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 37 10000@0 (instance, int, index=3) 0000000000000000 38 10001@0 (instance, byte, index=5) 0000000000000001 [all …]
|
/art/test/617-clinit-oome/src/ |
D | Main.java | 18 private static int exhaustJavaHeap(Object[] data, int index, int size) { in exhaustJavaHeap() argument 22 data[index] = new byte[size]; in exhaustJavaHeap() 23 index++; in exhaustJavaHeap() 28 return index; in exhaustJavaHeap() 43 int index = 0; in main() local 46 index = exhaustJavaHeap(data, index, initial_size); in main() 47 index = exhaustJavaHeap(data, index, /*size*/ 4); in main() 48 index = exhaustJavaHeap(data, index, /*size*/ 4); in main()
|
/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() 618 public final static int checkObjectArrayGet(int index, Integer[] a, Integer[] b) { in checkObjectArrayGet() argument [all …]
|
/art/libdexfile/dex/ |
D | dex_file_types.h | 66 explicit constexpr ProtoIndex(uint16_t index) : DexIndex<decltype(index_)>(index) {} in ProtoIndex() argument 71 std::ostream& operator<<(std::ostream& os, const ProtoIndex& index); 76 explicit constexpr StringIndex(uint32_t index) : DexIndex<decltype(index_)>(index) {} in StringIndex() argument 81 std::ostream& operator<<(std::ostream& os, const StringIndex& index); 86 explicit constexpr TypeIndex(uint16_t index) : DexIndex<uint16_t>(index) {} in TypeIndex() argument 91 std::ostream& operator<<(std::ostream& os, const TypeIndex& index); 99 size_t operator()(const art::dex::ProtoIndex& index) const { 100 return hash<decltype(index.index_)>()(index.index_); 105 size_t operator()(const art::dex::StringIndex& index) const { 106 return hash<decltype(index.index_)>()(index.index_); [all …]
|
D | string_reference.h | 34 StringReference(const DexFile* file, dex::StringIndex index) in StringReference() argument 35 : DexFileReference(file, index.index_) {} in StringReference() 38 return dex::StringIndex(index); in StringIndex() 57 sr1.index < sr2.index, in operator() 60 return sr1.index < sr2.index; in operator()
|
D | dex_file_reference.h | 28 DexFileReference(const DexFile* file, uint32_t idx) : dex_file(file), index(idx) {} in DexFileReference() 30 uint32_t index; variable 37 return a.index < b.index; in operator() 47 return a.dex_file == b.dex_file && a.index == b.index;
|
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()
|
D | bytecode_utils.h | 45 void CheckIndex(size_t index) const { in CheckIndex() argument 48 DCHECK_LT(index, 2 * static_cast<size_t>(num_entries_)); in CheckIndex() 51 DCHECK_LT(index, 1 + static_cast<size_t>(num_entries_)); in CheckIndex() 55 int32_t GetEntryAt(size_t index) const { in GetEntryAt() argument 56 CheckIndex(index); in GetEntryAt() 57 return values_[index]; in GetEntryAt() 60 uint32_t GetDexPcForIndex(size_t index) const { in GetDexPcForIndex() argument 61 CheckIndex(index); in GetDexPcForIndex() 63 (reinterpret_cast<const int16_t*>(values_ + index) - in GetDexPcForIndex()
|
/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 | 38 uint8_t* AddressOfElement(size_t index, PointerSize pointer_size) { in AddressOfElement() argument 39 return reinterpret_cast<uint8_t*>(this) + OffsetOfElement(index, pointer_size); in AddressOfElement() 42 ArtMethod* Get(size_t index, PointerSize pointer_size) { in Get() argument 43 DCHECK_LT(index, kSize); in Get() 44 uint8_t* ptr = AddressOfElement(index, pointer_size); in Get() 54 void Set(size_t index, ArtMethod* method, PointerSize pointer_size) { in Set() argument 55 DCHECK_LT(index, kSize); in Set() 56 uint8_t* ptr = AddressOfElement(index, pointer_size); in Set() 64 static size_t OffsetOfElement(size_t index, PointerSize pointer_size) { in OffsetOfElement() argument 65 return index * static_cast<size_t>(pointer_size); in OffsetOfElement()
|
D | stack_map.h | 87 DexRegisterLocation& operator[](size_t index) { 88 DCHECK_LT(index, count_); 89 return data()[index]; 91 const DexRegisterLocation& operator[](size_t index) const { 92 DCHECK_LT(index, count_); 93 return data()[index]; 307 ALWAYS_INLINE StackMap GetStackMapAt(size_t index) const { in GetStackMapAt() argument 308 return stack_maps_.GetRow(index); in GetStackMapAt() 311 BitMemoryRegion GetStackMask(size_t index) const { in GetStackMask() argument 312 return stack_masks_.GetBitMemoryRegion(index); in GetStackMask() [all …]
|
D | index_bss_mapping.cc | 27 uint32_t index, in GetBssOffset() argument 29 uint32_t diff = GetIndex(index_bits) - index; in GetBssOffset() 50 uint32_t index, in GetBssOffset() argument 53 DCHECK_LT(index, number_of_indexes); in GetBssOffset() 63 return (entry.index_and_mask & index_mask) < index; in GetBssOffset() 69 return entry.GetBssOffset(index_bits, index, slot_size); in GetBssOffset()
|
D | quicken_info.h | 37 void AddIndex(uint16_t index) { in AddIndex() argument 38 out_data_->push_back(static_cast<uint8_t>(index)); in AddIndex() 39 out_data_->push_back(static_cast<uint8_t>(index >> 8)); in AddIndex() 54 uint16_t GetData(size_t index) const { in GetData() argument 55 return data_[index * 2] | (static_cast<uint16_t>(data_[index * 2 + 1]) << 8); in GetData()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatArrayInstance.java | 58 @Override public Value get(int index) { in initialize() 59 return Value.pack(bools[index]); in initialize() 74 @Override public Value get(int index) { in initialize() 75 return Value.pack(chars[index]); in initialize() 89 @Override public Value get(int index) { in initialize() 90 return Value.pack(floats[index]); in initialize() 104 @Override public Value get(int index) { in initialize() 105 return Value.pack(doubles[index]); in initialize() 120 @Override public Value get(int index) { in initialize() 121 return Value.pack(bytes[index]); in initialize() [all …]
|
/art/runtime/gc/accounting/ |
D | atomic_stack.h | 103 int32_t index; in AtomicBumpBack() local 106 index = back_index_.load(std::memory_order_relaxed); in AtomicBumpBack() 107 new_index = index + num_slots; in AtomicBumpBack() 112 } while (!back_index_.CompareAndSetWeakRelaxed(index, new_index)); in AtomicBumpBack() 113 *start_address = begin_ + index; in AtomicBumpBack() 117 for (int32_t i = index; i < new_index; ++i) { in AtomicBumpBack() 119 << "i=" << i << " index=" << index << " new_index=" << new_index; in AtomicBumpBack() 137 const int32_t index = back_index_.load(std::memory_order_relaxed); in PushBack() local 138 DCHECK_LT(static_cast<size_t>(index), growth_limit_); in PushBack() 139 back_index_.store(index + 1, std::memory_order_relaxed); in PushBack() [all …]
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | mkflame.py | 34 def definition(self, index): argument 38 return self.definitions[index] 40 def set_definition(self, index, definition): argument 44 self.definitions[index] = definition 46 def weight(self, index): argument 50 return self.weights[index] 52 def set_weight(self, index, weight): argument 56 self.weights[index] = weight 99 def get_top_and_weight(index): argument 112 self.set_weight(index, weight) [all …]
|
/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()
|
/art/test/080-oom-throw/src/ |
D | Main.java | 56 private static int exhaustJavaHeap(Object[] data, int index, int size) { in exhaustJavaHeap() argument 58 while (index != data.length && size != 0) { in exhaustJavaHeap() 60 data[index] = new byte[size]; in exhaustJavaHeap() 61 ++index; in exhaustJavaHeap() 66 return index; in exhaustJavaHeap() 86 int index = 0; in eatAllMemory() local 88 index = exhaustJavaHeap(result, index, size); in eatAllMemory() 89 index = exhaustJavaHeap(result, index, /*size*/ 4); in eatAllMemory() 90 index = exhaustJavaHeap(result, index, /*size*/ 4); in eatAllMemory()
|
/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/libartbase/base/ |
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 …]
|
/art/test/1972-jni-id-swap-indices/ |
D | expected.txt | 5 index ID looks like an index! 7 index WKC ID looks like an index!
|
/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()
|