/art/test/562-no-intermediate/src/ |
H A D | Main.java | 22 array[index] += Math.cos(42); 25 static int index = 0; field in class:Main
|
/art/test/407-arrays/src/ |
H A D | Main.java | 34 double[] doubles, int index) { 36 assertEquals(false, bools[index]); 39 assertEquals(0, bytes[index]); 42 assertEquals(0, chars[index]); 45 assertEquals(0, shorts[index]); 48 assertEquals(0, ints[index]); 51 assertNull(objects[index]); 54 assertEquals(0, longs[index]); 57 assertEquals(0, floats[index]); 60 assertEquals(0, doubles[index]); 32 $opt$testReads(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, int[] ints, Object[] objects, long[] longs, float[] floats, double[] doubles, int index) argument 63 $opt$testWrites(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, int[] ints, Object[] objects, long[] longs, float[] floats, double doubles[], int index) argument 124 $opt$testLongWrites(long[] longs, int index) argument 133 ensureThrows(boolean[] array, int index) argument 155 $opt$doArrayLoad(boolean[] array, int index) argument 159 $opt$doArrayStore(boolean[] array, int index) argument [all...] |
/art/test/456-baseline-array-set/src/ |
H A D | Main.java | 22 public static void doArrayAccess(Integer value, int index) { argument 27 array[index] = array[index + 1]; 28 array[index] = value;
|
/art/test/527-checker-array-access-split/src/ |
H A D | Main.java | 26 * Test that HArrayGet with a constant index is not split. 45 * Test that HArraySet with a constant index is not split. 82 public static int get(int array[], int index) { argument 83 return array[index]; 108 public static void set(int array[], int index, int value) { argument 109 array[index] = value; 146 public static void getSet(int array[], int index) { argument 147 array[index] = array[index] + 1; 188 public static int[] accrossGC(int array[], int index) { argument [all...] |
/art/test/617-clinit-oome/src/ |
H A D | Main.java | 24 int index = 0; 27 data[index] = new byte[size]; 28 index++;
|
/art/runtime/ |
H A D | imtable.h | 35 ArtMethod* Get(size_t index, size_t pointer_size) { argument 36 DCHECK_LT(index, kSize); 37 uint8_t* ptr = reinterpret_cast<uint8_t*>(this) + OffsetOfElement(index, pointer_size); 47 void Set(size_t index, ArtMethod* method, size_t pointer_size) { argument 48 DCHECK_LT(index, kSize); 49 uint8_t* ptr = reinterpret_cast<uint8_t*>(this) + OffsetOfElement(index, pointer_size); 59 static size_t OffsetOfElement(size_t index, size_t pointer_size) { argument 60 return index * pointer_size;
|
H A D | method_reference.h | 26 // A method is uniquely located by its DexFile and the method_ids_ table index into that DexFile 28 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { argument
|
/art/test/413-regalloc-regression/src/ |
H A D | Main.java | 26 public void removeElementAt(int index) { argument 27 for (int i = index; i < size - 1; i++) {
|
/art/runtime/base/ |
H A D | array_slice.h | 85 T& At(size_t index) { argument 86 DCHECK_LT(index, size_); 87 return AtUnchecked(index); 90 const T& At(size_t index) const { 91 DCHECK_LT(index, size_); 92 return AtUnchecked(index); 95 T& operator[](size_t index) { argument 96 return At(index); 99 const T& operator[](size_t index) const { 100 return At(index); 137 AtUnchecked(size_t index) argument [all...] |
H A D | length_prefixed_array.h | 36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) { argument 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 { argument 42 DCHECK_LT(index, size_); 43 return AtUnchecked(index, element_size, alignment); 64 static size_t OffsetOfElement(size_t index, argument 68 return RoundUp(offsetof(LengthPrefixedArray<T>, data), alignment) + index * element_size; 96 T& AtUnchecked(size_t index, size_t element_size, size_t alignment) { argument 98 reinterpret_cast<uintptr_t>(this) + OffsetOfElement(index, element_siz 101 AtUnchecked(size_t index, size_t element_size, size_t alignment) const argument [all...] |
/art/runtime/gc/accounting/ |
H A D | atomic_stack.h | 85 // Atomically bump the back index by the given number of 93 int32_t index; local 96 index = back_index_.LoadRelaxed(); 97 new_index = index + num_slots; 102 } while (!back_index_.CompareExchangeWeakRelaxed(index, new_index)); 103 *start_address = begin_ + index; 107 for (int32_t i = index; i < new_index; ++i) { 109 << "i=" << i << " index=" << index << " new_index=" << new_index; 127 const int32_t index local 142 int32_t index = front_index_.LoadRelaxed(); local 227 int32_t index; local [all...] |
/art/runtime/lambda/ |
H A D | closure.h | 72 // Returns the short type for the captured variable at index. 74 ShortyFieldType GetCapturedShortyType(size_t index) const; 76 // Returns the 32-bit representation of a non-wide primitive at the captured variable index. 79 uint32_t GetCapturedPrimitiveNarrow(size_t index) const; 80 // Returns the 64-bit representation of a wide primitive at the captured variable index. 83 uint64_t GetCapturedPrimitiveWide(size_t index) const; 84 // Returns the object reference at the captured variable index. 85 // The type at the index *must* be an object reference or a CHECK failure will occur. 87 mirror::Object* GetCapturedObject(size_t index) const SHARED_REQUIRES(Locks::mutator_lock_); 89 // Gets the size of a nested capture closure in bytes, at the captured variable index [all...] |
H A D | closure.cc | 191 ShortyFieldType Closure::GetCapturedShortyType(size_t index) const { 192 DCHECK_LT(index, GetNumberOfCapturedVariables()); 196 index); 201 uint32_t Closure::GetCapturedPrimitiveNarrow(size_t index) const { 202 DCHECK(GetCapturedShortyType(index).IsPrimitiveNarrow()); 206 GetCapturedVariableTypeAndOffset(index, &variable_type, &offset); 247 uint64_t Closure::GetCapturedPrimitiveWide(size_t index) const { 248 DCHECK(GetCapturedShortyType(index).IsPrimitiveWide()); 252 GetCapturedVariableTypeAndOffset(index, &variable_type, &offset); 278 mirror::Object* Closure::GetCapturedObject(size_t index) cons 322 CopyCapturedClosure(size_t index, void* destination, size_t destination_room) const argument 345 GetCapturedVariableTypeAndOffset(size_t index, ShortyFieldType* out_type, size_t* out_offset) const argument [all...] |
/art/runtime/interpreter/mterp/arm/ |
H A 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
|
H A 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
|
H A D | op_aput_wide.S | 12 GET_VREG r1, r3 @ r1<- vCC (requested index) 16 add r0, r0, r1, lsl #3 @ r0<- arrayObj + index*width 17 cmp r1, r3 @ compare unsigned index, length 19 bcs common_errArrayIndex @ index >= length, bail
|
H A D | op_aget_object.S | 12 GET_VREG r1, r3 @ r1<- vCC (requested index) 13 bl artAGetObjectFromMterp @ (array, index)
|
/art/runtime/interpreter/mterp/mips/ |
H A D | op_aget.S | 18 GET_VREG(a1, a3) # a1 <- vCC (requested index) 23 EASN(a0, a0, a1, $shift) # a0 <- arrayObj + index*width 27 # a1 >= a3; compare unsigned index 28 bgeu a1, a3, common_errArrayIndex # index >= length, bail
|
H A D | op_aput_wide.S | 12 GET_VREG(a1, a3) # a1 <- vCC (requested index) 16 EAS3(a0, a0, a1) # a0 <- arrayObj + index*width 18 # compare unsigned index, length 19 bgeu a1, a3, common_errArrayIndex # index >= length, bail
|
H A D | op_aget_object.S | 12 GET_VREG(a1, a3) # a1 <- vCC (requested index) 13 JAL(artAGetObjectFromMterp) # v0 <- GetObj(array, index)
|
/art/runtime/interpreter/mterp/mips64/ |
H A D | op_aget.S | 15 GET_VREG a1, a3 # a1 <- vCC (requested index) 20 dlsa a0, a1, a0, $shift # a0 <- arrayObj + index*width 22 daddu a0, a1, a0 # a0 <- arrayObj + index*width 24 bgeu a1, a3, common_errArrayIndex # unsigned compare: index >= length, bail
|
H A D | op_aput.S | 15 GET_VREG a1, a3 # a1 <- vCC (requested index) 20 dlsa a0, a1, a0, $shift # a0 <- arrayObj + index*width 22 daddu a0, a1, a0 # a0 <- arrayObj + index*width 24 bgeu a1, a3, common_errArrayIndex # unsigned compare: index >= length, bail
|
H A D | op_aget_object.S | 12 GET_VREG a1, a3 # a1 <- vCC (requested index) 13 jal artAGetObjectFromMterp # (array, index)
|
/art/runtime/interpreter/mterp/x86_64/ |
H A D | op_aput_object.S | 10 call SYMBOL(MterpAputObject) # (array, index)
|
/art/runtime/interpreter/mterp/x86/ |
H A D | op_aget.S | 12 GET_VREG %ecx, %ecx # ecx <- vCC (requested index) 16 jae common_errArrayIndex # index >= length, bail.
|