/art/test/003-omnibus-opcodes/src/ |
D | Goto.java | 21 static int filler(int i) { in filler() argument 22 return i+1; in filler() 28 int i = 0; in smallGoto() local 31 i += filler(i); in smallGoto() 33 i -= filler(i); in smallGoto() 36 return i; in smallGoto() 42 int i = 0; in mediumGoto() local 45 i += filler(i); in mediumGoto() 47 i -= filler(i); i -= filler(i); i -= filler(i); i -= filler(i); in mediumGoto() 48 i -= filler(i); i -= filler(i); i -= filler(i); i -= filler(i); in mediumGoto() [all …]
|
/art/test/525-checker-arrays-and-fields/src/ |
D | Main.java | 95 for (int i = 0; i < sArrZ.length; i++) { in SInvLoopZ() 96 sArrZ[i] = sZ; in SInvLoopZ() 109 for (int i = 0; i < sArrB.length; i++) { in SInvLoopB() 110 sArrB[i] = sB; in SInvLoopB() 123 for (int i = 0; i < sArrC.length; i++) { in SInvLoopC() 124 sArrC[i] = sC; in SInvLoopC() 137 for (int i = 0; i < sArrS.length; i++) { in SInvLoopS() 138 sArrS[i] = sS; in SInvLoopS() 151 for (int i = 0; i < sArrI.length; i++) { in SInvLoopI() 152 sArrI[i] = sI; in SInvLoopI() [all …]
|
/art/test/530-checker-loops1/src/ |
D | Main.java | 36 for (int i = 0; i < x.length; i++) { in linear() 37 result += x[i]; in linear() 50 for (int i = x.length - 1; i >= 0; i--) { in linearDown() 51 result += x[i]; in linearDown() 64 for (int i = x.length - 1; i >= 0; i--) { in linearObscure() 65 int k = i + 5; in linearObscure() 79 for (int i = 0; i < x.length; i++) { in linearVeryObscure() 80 int k = (-i) + (i << 5) + i - (32 * i) + 5 + (int) i; in linearVeryObscure() 94 for (int i = 1; i <= 1; i++) { in hiddenStride() 96 for (int j = 0; j < a.length; j += i) { in hiddenStride() [all …]
|
/art/test/561-shared-slowpaths/src/ |
D | Main.java | 28 for (int i = l1; i < h1; i++) { in init() 29 x[i] = i; in init() 31 for (int i = l2; i < h2; i++) { in init() 32 y[i] = i; in init() 52 for (int i = 0; i < 100; i++) { in main() 53 expectEquals(x[i], i); in main() 54 expectEquals(y[i], i); in main() 66 for (int i = 0; i < 100; i++) { in main() 67 expectEquals(x[i], 0); in main() 68 expectEquals(y[i], 0); in main() [all …]
|
/art/test/485-checker-dce-switch/src/ |
D | Main.java | 34 int i = $inline$method(); in wholeSwitchDead() local 36 if (i > 100) { in wholeSwitchDead() 39 i++; in wholeSwitchDead() 42 i = 99; in wholeSwitchDead() 45 i = 100; in wholeSwitchDead() 48 i = -100; in wholeSwitchDead() 51 i = 7; in wholeSwitchDead() 54 i = -9; in wholeSwitchDead() 57 l += i; in wholeSwitchDead() 74 int i = $inline$method(); in constantSwitch_InRange() local [all …]
|
/art/test/530-checker-loops2/src/ |
D | Main.java | 36 for (int i = a.length; --i >= 0;) { in bubble() 37 for (int j = 0; j < i; j++) { in bubble() 58 for (int i = 0; i < tc; i++) { in periodicIdiom() 77 for (int i = 0; i < tc; i++) { in periodicSequence2() 103 for (int i = 0; i < tc; i++) { in periodicSequence4() 123 for (int i = Integer.MAX_VALUE - 10, k = 0; i < Integer.MAX_VALUE; i++) { in justRightUp1() 138 for (int i = Integer.MAX_VALUE - 10; i < Integer.MAX_VALUE; i++) { in justRightUp2() 139 result += x[i - Integer.MAX_VALUE + 10]; in justRightUp2() 153 for (int i = Integer.MAX_VALUE - 10, k = 0; i <= Integer.MAX_VALUE - 1; i++) { in justRightUp3() 171 for (int i = Integer.MAX_VALUE - 9, k = 0; i <= Integer.MAX_VALUE; i++) { in justOOBUp() [all …]
|
/art/test/449-checker-bce/src/ |
D | Main.java | 38 for (int i = 1; i < size; i++) flags[i] = true; // Can eliminate. in sieve() 39 for (int i = 2; i < size; i++) { in sieve() 40 if (flags[i]) { // Can eliminate. in sieve() 42 for (int k = i + 1; k <= size; k += i) in sieve() 616 for (int i = 0; i < array.length; i++) { in loopPattern1() 617 array[i] = 1; // Bounds check can be eliminated. in loopPattern1() 620 for (int i = 1; i < array.length; i++) { in loopPattern1() 621 array[i] = 1; // Bounds check can be eliminated. in loopPattern1() 624 for (int i = 1; i < array.length - 1; i++) { in loopPattern1() 625 array[i] = 1; // Bounds check can be eliminated. in loopPattern1() [all …]
|
/art/test/565-checker-rotate/src/ |
D | Main.java | 366 for (int i = 0; i < 40; i++) { // overshoot a bit in testRotateLeftBoolean() 367 int j = i & 31; in testRotateLeftBoolean() 368 expectEqualsInt(0, rotateLeftBoolean(false, i)); in testRotateLeftBoolean() 369 expectEqualsInt(1 << i, rotateLeftBoolean(true, i)); in testRotateLeftBoolean() 382 for (int i = 0; i < 40; i++) { // overshoot a bit in testRotateLeftByte() 383 int j = i & 31; in testRotateLeftByte() 384 expectEqualsInt(0x00000000, rotateLeftByte((byte)0x0000, i)); in testRotateLeftByte() 385 expectEqualsInt(0xFFFFFFFF, rotateLeftByte((byte)0xFFFF, i)); in testRotateLeftByte() 386 expectEqualsInt((1 << j), rotateLeftByte((byte)0x0001, i)); in testRotateLeftByte() local 387 expectEqualsInt((0x12 << j) | (0x12 >>> -j), rotateLeftByte((byte)0x12, i)); in testRotateLeftByte() local [all …]
|
/art/runtime/ |
D | leb128_test.cc | 96 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local 98 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST() 99 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), builder.GetData().size()); in TEST() 100 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST() 104 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST() 106 EXPECT_EQ(data_ptr[j], 0U) << " i = " << i << " j = " << j; in TEST() 109 EXPECT_EQ(DecodeUnsignedLeb128(&data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST() 115 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local 117 uint8_t* end = EncodeUnsignedLeb128(encoded_data, uleb128_tests[i].decoded); in TEST() 119 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), data_size); in TEST() [all …]
|
/art/test/701-easy-div-rem/ |
D | genMain.py | 22 [('CheckDiv', 'idiv_by_pow2_', [2**i for i in range(upper_bound_int_pow2)]), 23 ('CheckDiv', 'idiv_by_pow2_neg_', [-2**i for i in range(upper_bound_int_pow2_neg)]), 24 ('CheckDiv', 'idiv_by_constant_', [i for i in range(1, upper_bound_constant)]), 25 ('CheckDiv', 'idiv_by_constant_neg_', [-i for i in range(1, upper_bound_constant)]), 26 ('CheckRem', 'irem_by_pow2_', [2**i for i in range(upper_bound_int_pow2)]), 27 ('CheckRem', 'irem_by_pow2_neg_', [-2**i for i in range(upper_bound_int_pow2_neg)]), 28 ('CheckRem', 'irem_by_constant_', [i for i in range(1, upper_bound_constant)]), 29 ('CheckRem', 'irem_by_constant_neg_', [-i for i in range(1, upper_bound_constant)])]), 31 [('CheckDiv', 'ldiv_by_pow2_', [2**i for i in range(upper_bound_long_pow2)]), 32 ('CheckDiv', 'ldiv_by_pow2_neg_', [-2**i for i in range(upper_bound_long_pow2_neg)]), [all …]
|
/art/compiler/utils/ |
D | swap_space_test.cc | 44 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest() local 45 v.push_back(i); in SwapTest() 46 EXPECT_EQ(i, v[i]); in SwapTest() 51 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest() local 52 v2.push_back(i); in SwapTest() 53 EXPECT_EQ(i, v2[i]); in SwapTest() 58 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest() local 59 v3.push_back(i); in SwapTest() 60 EXPECT_EQ(i, v2[i]); in SwapTest() 64 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest() local [all …]
|
/art/test/011-array-copy/src/ |
D | Main.java | 33 for (int i = 0; i < stringArray.length; i++) in testObjectCopy() 34 stringArray[i] = new String(Integer.toString(i)); in testObjectCopy() 53 for (int i = 0; i < ARRAY_SIZE; i++) { in initByteArray() 54 array[i] = (byte) i; in initByteArray() 58 for (int i = 0; i < ARRAY_SIZE; i++) { in initShortArray() 59 array[i] = (short) i; in initShortArray() 63 for (int i = 0; i < ARRAY_SIZE; i++) { in initIntArray() 64 array[i] = (int) i; in initIntArray() 68 for (int i = 0; i < ARRAY_SIZE; i++) { in initLongArray() 69 array[i] = (long) i; in initLongArray() [all …]
|
/art/test/568-checker-onebit/src/ |
D | Main.java | 61 for (int i = 0; i < 32; i++) { in main() 62 expectEquals32(0, hi32(xi[i])); in main() 63 expectEquals32(0, lo32(xi[i])); in main() 64 expectEquals32(1 << i, hi32(1 << i)); in main() 65 expectEquals32(1 << i, lo32(1 << i)); in main() 66 int expected = i < 29 ? 0x8 << i : 0x80000000; in main() 67 expectEquals32(expected, hi32(0xF << i)); in main() 68 expectEquals32(0x1 << i, lo32(0xF << i)); in main() 80 for (int i = 0; i < 64; i++) { in main() 81 expectEquals64(0L, hi64(xj[i])); in main() [all …]
|
/art/test/445-checker-licm/src/ |
D | Main.java | 30 for (int i = 0; i < 10; ++i) { in div() 47 for (int i = 0; i < 10; ++i) { in innerDiv() 63 for (int i = 0; i < 10; ++i) { in innerMul() 68 result += staticField * i; in innerMul() 104 for (int i = 0; i < array.length; ++i) { in arrayLength() 105 result += array[i]; in arrayLength() 121 for (int i = 0; i < array.length; i++) { in divAndIntrinsic() 124 result += (staticField / 42) + Math.abs(array[i]); in divAndIntrinsic() 142 for (int i = 0; i < Math.abs(x); i++) { in invariantBoundIntrinsic() 143 result += i; in invariantBoundIntrinsic() [all …]
|
/art/test/023-many-interfaces/ |
D | iface-gen.c | 14 int i; in createFiles() local 16 for (i = 0; i < count; i++) { in createFiles() 19 snprintf(nameBuf, sizeof(nameBuf), "src/Interface%03d.java", i); in createFiles() 26 fprintf(fp, "interface Interface%03d {\n", i); in createFiles() 27 if ((i & 0x01) != 0) in createFiles() 28 fprintf(fp, " int func%03d();\n", i); in createFiles() 35 for (i = 0; i < count; i++) { in createFiles() 36 fprintf(fp, " Interface%03d%s\n", i, (i == count-1) ? "" : ","); in createFiles() 39 for (i = 1; i < count; i += 2) { in createFiles() 40 fprintf(fp, " public int func%03d() { return %d; }\n", i, i); in createFiles()
|
/art/test/530-checker-lse/src/ |
D | Main.java | 33 TestClass(int i, int j) { in TestClass() argument 34 this.i = i; in TestClass() 37 int i; field in TestClass 51 int i; field in TestClass2 63 int i; field in Finalizable 66 if (i != VALUE) { in finalize() 103 obj1.i = 1; in test1() 105 return obj1.i + obj2.j; in test1() 159 obj.i = 1; in test3() 162 obj2.i = 3; in test3() [all …]
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | ClassDataItem.java | 47 for (int i = 0; i < staticFieldsSize; i++) { in read() 48 (staticFields[i] = new EncodedField()).read(file); in read() 51 for (int i = 0; i < instanceFieldsSize; i++) { in read() 52 (instanceFields[i] = new EncodedField()).read(file); in read() 55 for (int i = 0; i < directMethodsSize; i++) { in read() 56 (directMethods[i] = new EncodedMethod()).read(file); in read() 59 for (int i = 0; i < virtualMethodsSize; i++) { in read() 60 (virtualMethods[i] = new EncodedMethod()).read(file); in read() 71 for (int i = 0; i < staticFieldsSize; i++) { in write() 72 staticFields[i].write(file); in write() [all …]
|
D | MapList.java | 48 for (int i = 0; i < size; i++) { in read() 69 for (int i = 0; i < mapItem.size; i++) { in read() 76 for (int i = 0; i < mapItem.size; i++) { in read() 83 for (int i = 0; i < mapItem.size; i++) { in read() 90 for (int i = 0; i < mapItem.size; i++) { in read() 97 for (int i = 0; i < mapItem.size; i++) { in read() 104 for (int i = 0; i < mapItem.size; i++) { in read() 115 for (int i = 0; i < mapItem.size; i++) { in read() 124 for (int i = 0; i < mapItem.size; i++) { in read() 132 for (int i = 0; i < mapItem.size; i++) { in read() [all …]
|
/art/test/542-unresolved-access-check/src/p1/ |
D | InP1.java | 20 public static Object $inline$AllocateOtherInP1(int i) { in $inline$AllocateOtherInP1() argument 22 if (i <= 10000) { in $inline$AllocateOtherInP1() 30 public static Object $inline$AllocateArrayOtherInP1(int i) { in $inline$AllocateArrayOtherInP1() argument 31 if (i <= 10000) { in $inline$AllocateArrayOtherInP1() 37 public static Object $inline$UseStaticFieldOtherInP1(int i) { in $inline$UseStaticFieldOtherInP1() argument 38 if (i <= 10000) { in $inline$UseStaticFieldOtherInP1() 44 public static void $inline$SetStaticFieldOtherInP1(int i) { in $inline$SetStaticFieldOtherInP1() argument 45 if (i <= 10000) { in $inline$SetStaticFieldOtherInP1() 51 public static Object $inline$UseInstanceFieldOtherInP1(int i) { in $inline$UseInstanceFieldOtherInP1() argument 52 if (i <= 10000) { in $inline$UseInstanceFieldOtherInP1() [all …]
|
/art/test/444-checker-nce/src/ |
D | Main.java | 100 for (int i = 0; i < count; i++) { in forRemoveTest() 101 if (i % 2 == 0) { in forRemoveTest() 116 for (int i = 0; i < count; i++) { in forKeepTest() 117 if (i % 2 == 0) { in forKeepTest() 134 for (int i = 0; i < count; i++) { in phiFlowRemoveTest() 135 if (i % 2 == 0) { in phiFlowRemoveTest() 140 for (int i = 0; i < count; i++) { in phiFlowRemoveTest() 141 if (i % 3 == 0) { in phiFlowRemoveTest() 156 for (int i = 0; i < count; i++) { in phiFlowKeepTest() 157 if (i % 2 == 0) { in phiFlowKeepTest() [all …]
|
/art/test/027-arithmetic/src/ |
D | Main.java | 72 int i; in convTest() local 77 i = (int) f; in convTest() 78 System.out.println("f=" + f + " --> i=" + i); in convTest() 81 i = (int) f; in convTest() 82 System.out.println("f=" + f + " --> i=" + i); in convTest() 86 i = (int) d; in convTest() 87 System.out.println("d=" + d + " --> i=" + i); in convTest() 90 i = (int) d; in convTest() 91 System.out.println("d=" + d + " --> i=" + i); in convTest() 103 i = 7654; in convTest() [all …]
|
/art/runtime/mirror/ |
D | object_array-inl.h | 59 inline T* ObjectArray<T>::Get(int32_t i) { in Get() argument 60 if (!CheckIsValidIndex(i)) { in Get() 64 return GetFieldObject<T, kVerifyFlags, kReadBarrierOption>(OffsetOfElement(i)); in Get() 80 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set() argument 82 Set<true>(i, object); in Set() 84 Set<false>(i, object); in Set() 90 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set() argument 91 if (CheckIsValidIndex(i) && CheckAssignable<kVerifyFlags>(object)) { in Set() 92 SetFieldObject<kTransactionActive, kCheckTransaction, kVerifyFlags>(OffsetOfElement(i), object); in Set() 100 inline void ObjectArray<T>::SetWithoutChecks(int32_t i, T* object) { in SetWithoutChecks() argument [all …]
|
/art/runtime/arch/ |
D | memcmp16_test.cc | 38 for (size_t i = 0; i < count; i++) { in memcmp16_compare() local 39 if (s0[i] != s1[i]) { in memcmp16_compare() 40 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in memcmp16_compare() 105 for (size_t i = 0; i < min; ++i) { in CheckSeparate() local 106 s1[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate() 107 s2[i] = s1[i]; in CheckSeparate() 109 for (size_t i = min; i < count1; ++i) { in CheckSeparate() local 110 s1[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate() 112 for (size_t i = min; i < count2; ++i) { in CheckSeparate() local 113 s2[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate() [all …]
|
/art/test/580-checker-round/src/ |
D | Main.java | 51 for (int i = -100; i <= 100; ++i) { in main() 52 expectEquals32(i - 1, round32((float) i - 0.51f)); in main() 53 expectEquals32(i, round32((float) i)); in main() 54 expectEquals32(i + 1, round32((float) i + 0.5f)); in main() 77 for (int i = 0; i < fvals.length; i++) { in main() 78 expectEquals32(ivals[i], round32(fvals[i])); in main() 92 for (int i = 0; i < fnans.length; i++) { in main() 93 expectEquals32(0, round32(fnans[i])); in main() 139 for (int i = 0; i < dvals.length; i++) { in main() 140 expectEquals64(lvals[i], round64(dvals[i])); in main() [all …]
|
/art/benchmark/jni-perf/src/ |
D | JniPerfBenchmark.java | 28 for (long i = 0; i < N; i++) { in timeFastJNI() 34 for (long i = 0; i < N; i++) { in timeEmptyCall() 40 for (long i = 0; i < N; i++) { in timeSOACall() 46 for (long i = 0; i < N; i++) { in timeSOAUncheckedCall()
|