/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 …]
|
D | FloatMath.java | 27 int i; in convTest() local 32 i = (int) f; in convTest() 33 Main.assertTrue(i == 1234); in convTest() 36 i = (int) f; in convTest() 37 Main.assertTrue(i == -1234); in convTest() 55 i = (int) d; in convTest() 56 Main.assertTrue(i == 1234); in convTest() 59 i = (int) d; in convTest() 60 Main.assertTrue(i == -1234); in convTest() 77 i = 7654; in convTest() [all …]
|
/art/runtime/ |
D | leb128_test.cc | 95 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local 97 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST() 98 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), builder.GetData().size()); in TEST() 99 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST() 103 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST() 105 EXPECT_EQ(data_ptr[j], 0U) << " i = " << i << " j = " << j; in TEST() 108 EXPECT_EQ(DecodeUnsignedLeb128(&data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST() 114 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local 116 uint8_t* end = EncodeUnsignedLeb128(encoded_data, uleb128_tests[i].decoded); in TEST() 118 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), data_size); in TEST() [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 | 32 for (int i = 0; i < stringArray.length; i++) in testObjectCopy() 33 stringArray[i] = new String(Integer.toString(i)); in testObjectCopy() 52 for (int i = 0; i < ARRAY_SIZE; i++) { in initByteArray() 53 array[i] = (byte) i; in initByteArray() 57 for (int i = 0; i < ARRAY_SIZE; i++) { in initShortArray() 58 array[i] = (short) i; in initShortArray() 62 for (int i = 0; i < ARRAY_SIZE; i++) { in initIntArray() 63 array[i] = (int) i; in initIntArray() 67 for (int i = 0; i < ARRAY_SIZE; i++) { in initLongArray() 68 array[i] = (long) i; in initLongArray() [all …]
|
/art/runtime/arch/mips/ |
D | context_mips.cc | 30 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in Reset() local 31 gprs_[i] = nullptr; in Reset() 33 for (size_t i = 0; i < kNumberOfFRegisters; i++) { in Reset() local 34 fprs_[i] = nullptr; in Reset() 51 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in FillCalleeSaves() local 52 if (((frame_info.CoreSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 53 gprs_[i] = fr.CalleeSaveAddress(spill_count - j, frame_info.FrameSizeInBytes()); in FillCalleeSaves() 61 for (size_t i = 0; i < kNumberOfFRegisters; i++) { in FillCalleeSaves() local 62 if (((frame_info.FpSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 63 fprs_[i] = fr.CalleeSaveAddress(spill_count + fp_spill_count - j, in FillCalleeSaves() [all …]
|
/art/runtime/arch/arm/ |
D | context_arm.cc | 31 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in Reset() local 32 gprs_[i] = nullptr; in Reset() 34 for (size_t i = 0; i < kNumberOfSRegisters; i++) { in Reset() local 35 fprs_[i] = nullptr; in Reset() 52 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in FillCalleeSaves() local 53 if (((frame_info.CoreSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 54 gprs_[i] = fr.CalleeSaveAddress(spill_count - j, frame_info.FrameSizeInBytes()); in FillCalleeSaves() 62 for (size_t i = 0; i < kNumberOfSRegisters; i++) { in FillCalleeSaves() local 63 if (((frame_info.FpSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 64 fprs_[i] = fr.CalleeSaveAddress(spill_count + fp_spill_count - j, in FillCalleeSaves() [all …]
|
/art/compiler/optimizing/ |
D | parallel_move_resolver.cc | 28 for (size_t i = 0; i < moves_.Size(); ++i) { in EmitNativeCode() local 29 const MoveOperands& move = *moves_.Get(i); in EmitNativeCode() 34 PerformMove(i); in EmitNativeCode() 39 for (size_t i = 0; i < moves_.Size(); ++i) { in EmitNativeCode() local 40 const MoveOperands& move = *moves_.Get(i); in EmitNativeCode() 43 EmitMove(i); in EmitNativeCode() 56 for (size_t i = 0; i < parallel_move->NumMoves(); ++i) { in BuildInitialMoveList() local 57 MoveOperands* move = parallel_move->MoveOperandsAt(i); in BuildInitialMoveList() 86 for (size_t i = 0; i < moves_.Size(); ++i) { in PerformMove() local 87 const MoveOperands& other_move = *moves_.Get(i); in PerformMove() [all …]
|
D | code_generator.cc | 49 for (size_t i = 0, e = blocks.Size(); i < e; ++i) { in CompileBaseline() local 50 HBasicBlock* block = blocks.Get(i); in CompileBaseline() 78 for (size_t i = 0, e = blocks.Size(); i < e; ++i) { in CompileOptimized() local 79 HBasicBlock* block = blocks.Get(i); in CompileOptimized() 96 for (size_t i = 0, e = slow_paths_.Size(); i < e; ++i) { in GenerateSlowPaths() local 97 slow_paths_.Get(i)->EmitNativeCode(this); in GenerateSlowPaths() 150 for (size_t i = 0, e = GetNumberOfRegisters(); i < e; ++i) { in AllocateRegistersLocally() local 151 blocked_registers_[i] = false; in AllocateRegistersLocally() 155 for (size_t i = 0, e = locations->GetInputCount(); i < e; ++i) { in AllocateRegistersLocally() local 156 Location loc = locations->InAt(i); in AllocateRegistersLocally() [all …]
|
/art/runtime/mirror/ |
D | object_array-inl.h | 54 inline T* ObjectArray<T>::Get(int32_t i) { in Get() argument 55 if (!CheckIsValidIndex(i)) { in Get() 59 return GetFieldObject<T>(OffsetOfElement(i)); in Get() 75 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set() argument 77 Set<true>(i, object); in Set() 79 Set<false>(i, object); in Set() 85 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set() argument 86 if (CheckIsValidIndex(i) && CheckAssignable<kVerifyFlags>(object)) { in Set() 87 SetFieldObject<kTransactionActive, kCheckTransaction, kVerifyFlags>(OffsetOfElement(i), object); in Set() 95 inline void ObjectArray<T>::SetWithoutChecks(int32_t i, T* object) { in SetWithoutChecks() argument [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/compiler/driver/ |
D | compiler_driver_test.cc | 71 for (size_t i = 0; i != class_path.size(); ++i) { in MakeAllExecutable() local 72 const DexFile* dex_file = class_path[i]; in MakeAllExecutable() 80 for (size_t i = 0; i < dex_file.NumClassDefs(); i++) { in MakeDexFileExecutable() local 81 const DexFile::ClassDef& class_def = dex_file.GetClassDef(i); in MakeDexFileExecutable() 89 for (size_t i = 0; i < c->NumDirectMethods(); i++) { in MakeDexFileExecutable() local 90 MakeExecutable(c->GetDirectMethod(i)); in MakeDexFileExecutable() 92 for (size_t i = 0; i < c->NumVirtualMethods(); i++) { in MakeDexFileExecutable() local 93 MakeExecutable(c->GetVirtualMethod(i)); in MakeDexFileExecutable() 112 for (size_t i = 0; i < dex_cache->NumStrings(); i++) { in TEST_F() local 113 const mirror::String* string = dex_cache->GetResolvedString(i); in TEST_F() [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/compiler/dex/ |
D | vreg_analysis.cc | 288 for (int i = next; i < num_uses;) { in InferTypeAndSize() local 292 ssa_rep->fp_use[i] = true; in InferTypeAndSize() 293 ssa_rep->fp_use[i+1] = true; in InferTypeAndSize() 294 reg_location_[uses[i]].wide = true; in InferTypeAndSize() 295 reg_location_[uses[i+1]].wide = true; in InferTypeAndSize() 296 reg_location_[uses[i+1]].high_word = true; in InferTypeAndSize() 297 DCHECK_EQ(SRegToVReg(uses[i])+1, SRegToVReg(uses[i+1])); in InferTypeAndSize() 298 i++; in InferTypeAndSize() 301 reg_location_[uses[i]].wide = true; in InferTypeAndSize() 302 reg_location_[uses[i+1]].wide = true; in InferTypeAndSize() [all …]
|
D | local_value_numbering_test.cc | 91 for (size_t i = 0u; i != count; ++i) { in DoPrepareIFields() local 92 const IFieldDef* def = &defs[i]; in DoPrepareIFields() 112 for (size_t i = 0u; i != count; ++i) { in DoPrepareSFields() local 113 const SFieldDef* def = &defs[i]; in DoPrepareSFields() 136 for (size_t i = 0u; i != count; ++i) { in DoPrepareMIRs() local 137 const MIRDef* def = &defs[i]; in DoPrepareMIRs() 138 MIR* mir = &mirs_[i]; in DoPrepareMIRs() 149 mir->ssa_rep = &ssa_reps_[i]; in DoPrepareMIRs() 157 mir->offset = i; // LVN uses offset only for debug output in DoPrepareMIRs() 160 if (i != 0u) { in DoPrepareMIRs() [all …]
|
/art/runtime/arch/x86_64/ |
D | context_x86_64.cc | 30 for (size_t i = 0; i < kNumberOfCpuRegisters; ++i) { in Reset() local 31 gprs_[i] = nullptr; in Reset() 33 for (size_t i = 0; i < kNumberOfFloatRegisters; ++i) { in Reset() local 34 fprs_[i] = nullptr; in Reset() 50 for (size_t i = 0; i < kNumberOfCpuRegisters; ++i) { in FillCalleeSaves() local 51 if (((frame_info.CoreSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 52 gprs_[i] = fr.CalleeSaveAddress(spill_count - j, frame_info.FrameSizeInBytes()); in FillCalleeSaves() 60 for (size_t i = 0; i < kNumberOfFloatRegisters; ++i) { in FillCalleeSaves() local 61 if (((frame_info.FpSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 62 fprs_[i] = reinterpret_cast<uint64_t*>( in FillCalleeSaves() [all …]
|
/art/runtime/base/ |
D | hash_set_test.cc | 44 for (size_t i = 0; i < len; ++i) { in RandomString() local 84 for (size_t i = 0; i < count; ++i) { in TEST_F() local 87 hash_set.Insert(strings[i]); in TEST_F() 88 auto it = hash_set.Find(strings[i]); in TEST_F() 90 ASSERT_EQ(*it, strings[i]); in TEST_F() 94 for (size_t i = 1; i < count; i += 2) { in TEST_F() local 95 auto it = hash_set.Find(strings[i]); in TEST_F() 97 ASSERT_EQ(*it, strings[i]); in TEST_F() 101 for (size_t i = 1; i < count; i += 2) { in TEST_F() local 102 auto it = hash_set.Find(strings[i]); in TEST_F() [all …]
|
D | timing_logger.cc | 73 for (size_t i = 0; i < timings.size(); ++i) { in AddLogger() local 74 if (timings[i].IsStartTiming()) { in AddLogger() 75 AddPair(timings[i].GetName(), timing_data.GetExclusiveTime(i)); in AddLogger() 158 for (size_t i = start_idx; i < timings_.size(); ++i) { in FindTimingIndex() local 159 if (timings_[i].IsStartTiming() && strcmp(timings_[i].GetName(), name) == 0) { in FindTimingIndex() 160 return i; in FindTimingIndex() 170 for (size_t i = 0; i < timings_.size(); ++i) { in CalculateTimingData() local 171 if (timings_[i].IsEndTiming()) { in CalculateTimingData() 172 CHECK(!open_stack.empty()) << "No starting split for ending split at index " << i; in CalculateTimingData() 174 uint64_t time = timings_[i].GetTime() - timings_[open_idx].GetTime(); in CalculateTimingData() [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/runtime/arch/arm64/ |
D | context_arm64.cc | 34 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in Reset() local 35 gprs_[i] = nullptr; in Reset() 37 for (size_t i = 0; i < kNumberOfDRegisters; i++) { in Reset() local 38 fprs_[i] = nullptr; in Reset() 55 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in FillCalleeSaves() local 56 if (((frame_info.CoreSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 57 gprs_[i] = fr.CalleeSaveAddress(spill_count - j, frame_info.FrameSizeInBytes()); in FillCalleeSaves() 66 for (size_t i = 0; i < kNumberOfDRegisters; i++) { in FillCalleeSaves() local 67 if (((frame_info.FpSpillMask() >> i) & 1) != 0) { in FillCalleeSaves() 68 fprs_[i] = fr.CalleeSaveAddress(spill_count + fp_spill_count - j, in FillCalleeSaves() [all …]
|
/art/compiler/ |
D | elf_fixup.cc | 69 for (Elf32_Word i = 0; i < elf_file.GetDynamicNum(); i++) { in FixupDynamic() local 70 Elf32_Dyn& elf_dyn = elf_file.GetDynamic(i); in FixupDynamic() 76 elf_file.GetFile().GetPath().c_str(), i, in FixupDynamic() 87 for (Elf32_Word i = 0; i < elf_file.GetSectionHeaderNum(); i++) { in FixupSectionHeaders() local 88 Elf32_Shdr* sh = elf_file.GetSectionHeader(i); in FixupSectionHeaders() 96 elf_file.GetFile().GetPath().c_str(), i, in FixupSectionHeaders() 106 for (Elf32_Word i = 0; i < elf_file.GetProgramHeaderNum(); i++) { in FixupProgramHeaders() local 107 Elf32_Phdr* ph = elf_file.GetProgramHeader(i); in FixupProgramHeaders() 109 CHECK_EQ(ph->p_vaddr, ph->p_paddr) << elf_file.GetFile().GetPath() << " i=" << i; in FixupProgramHeaders() 111 << elf_file.GetFile().GetPath() << " i=" << i; in FixupProgramHeaders() [all …]
|
/art/test/701-easy-div-rem/ |
D | genMain.py | 17 [('CheckDiv', 'idiv_by_pow2_', [2**i for i in range(31)]), 18 ('CheckDiv', 'idiv_by_small_', [i for i in range(3, 16) if i not in (4, 8)]), 19 ('CheckRem', 'irem_by_pow2_', [2**i for i in range(31)])]), 21 [('CheckDiv', 'ldiv_by_pow2_', [2**i for i in range(63)]), 22 ('CheckDiv', 'ldiv_by_small_', [i for i in range(3, 16) if i not in (4, 8)]), 23 ('CheckRem', 'lrem_by_pow2_', [2**i for i in range(63)])]) 39 for i, value in enumerate(values): 40 local_vars['@NAME@'] = name + str(i)
|
/art/test/115-native-bridge/src/ |
D | NativeBridgeMain.java | 97 for (int i = 0; i < returns.length; i++) { in testByteMethod() 98 byte result = byteMethod((byte)i, (byte)2, (byte)(-3), (byte)4, (byte)(-5), (byte)6, in testByteMethod() 100 if (returns[i] != result) { in testByteMethod() 101 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testByteMethod() 112 for (int i = 0; i < returns.length; i++) { in testShortMethod() 113 short result = shortMethod((short)i, (short)2, (short)(-3), (short)4, (short)(-5), (short)6, in testShortMethod() 115 if (returns[i] != result) { in testShortMethod() 116 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testShortMethod() 143 for (int i = 0; i < returns.length; i++) { in testCharMethod() 144 char result = charMethod((char)i, 'a', 'b', 'c', '0', '1', '2', (char)1234, (char)2345, in testCharMethod() [all …]
|
/art/test/004-JniTest/src/ |
D | Main.java | 102 for (int i = 0; i < returns.length; i++) { in testByteMethod() 103 byte result = byteMethod((byte)i, (byte)2, (byte)(-3), (byte)4, (byte)(-5), (byte)6, in testByteMethod() 105 if (returns[i] != result) { in testByteMethod() 106 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testByteMethod() 117 for (int i = 0; i < returns.length; i++) { in testShortMethod() 118 short result = shortMethod((short)i, (short)2, (short)(-3), (short)4, (short)(-5), (short)6, in testShortMethod() 120 if (returns[i] != result) { in testShortMethod() 121 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testShortMethod() 148 for (int i = 0; i < returns.length; i++) { in testCharMethod() 149 char result = charMethod((char)i, 'a', 'b', 'c', '0', '1', '2', (char)1234, (char)2345, in testCharMethod() [all …]
|
/art/test/027-arithmetic/ |
D | expected.txt | 1 f=1234.5677 --> i=1234 2 f=-1234.5677 --> i=-1234 3 d=1234.5678 --> i=1234 4 d=-1234.5678 --> i=-1234 7 i=7654 --> l=7654 8 i=-7654 --> l=-7654 9 l=5678956789 --> i=1383989493 10 l=-5678956789 --> i=-1383989493 11 i=1234 --> f=1234.0 12 i=-1234 --> f=-1234.0 [all …]
|