Home
last modified time | relevance | path

Searched refs:arraysize (Results 1 – 25 of 37) sorted by relevance

12

/art/compiler/optimizing/
Dlive_interval_test.cc31 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST()
37 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST()
48 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST()
58 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST()
76 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST()
86 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), &allocator); in TEST()
104 LiveInterval* interval1 = BuildInterval(ranges1, arraysize(ranges1), &allocator); in TEST()
106 LiveInterval* interval2 = BuildInterval(ranges2, arraysize(ranges2), &allocator); in TEST()
113 LiveInterval* interval1 = BuildInterval(ranges1, arraysize(ranges1), &allocator); in TEST()
115 LiveInterval* interval2 = BuildInterval(ranges2, arraysize(ranges2), &allocator); in TEST()
[all …]
Dparallel_move_test.cc86 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST()
93 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST()
105 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST()
112 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST()
119 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST()
126 resolver.EmitNativeCode(BuildParallelMove(&allocator, moves, arraysize(moves))); in TEST()
Dregister_allocator_test.cc65 intervals.Add(BuildInterval(ranges, arraysize(ranges), &allocator, 0)); in TEST()
66 intervals.Add(BuildInterval(ranges, arraysize(ranges), &allocator, 1)); in TEST()
79 intervals.Add(BuildInterval(ranges1, arraysize(ranges1), &allocator, 0)); in TEST()
81 intervals.Add(BuildInterval(ranges2, arraysize(ranges2), &allocator, 1)); in TEST()
94 intervals.Add(BuildInterval(ranges1, arraysize(ranges1), &allocator, 0)); in TEST()
96 intervals.Add(BuildInterval(ranges2, arraysize(ranges2), &allocator, 1)); in TEST()
109 intervals.Add(BuildInterval(ranges1, arraysize(ranges1), &allocator, 0)); in TEST()
111 intervals.Add(BuildInterval(ranges2, arraysize(ranges2), &allocator, 1)); in TEST()
124 intervals.Add(BuildInterval(ranges1, arraysize(ranges1), &allocator, 0)); in TEST()
127 intervals.Add(BuildInterval(ranges2, arraysize(ranges2), &allocator, 1)); in TEST()
Dcode_generator_x86_64.h32 static constexpr size_t kParameterCoreRegistersLength = arraysize(kParameterCoreRegisters);
Dcode_generator_x86.h34 static constexpr size_t kParameterCoreRegistersLength = arraysize(kParameterCoreRegisters);
Dcode_generator_arm.h34 static constexpr size_t kParameterCoreRegistersLength = arraysize(kParameterCoreRegisters);
/art/runtime/
Dleb128_test.cc95 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
114 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
134 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
138 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
154 uint8_t encoded_data[5 * arraysize(uleb128_tests)]; in TEST()
156 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
161 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
176 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
195 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
215 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
[all …]
Dthread_android.cc85 for (size_t i = 0; i < arraysize(kNiceValues); i++) { in GetNativePriority()
Djni_internal.h36 RegisterNativeMethods(env, jni_class_name, gMethods, arraysize(gMethods))
/art/compiler/dex/quick/arm/
Dtarget_arm.cc375 snprintf(tbuf, arraysize(tbuf), ", %s %d", shift_names[operand & 0x3], operand >> 2); in BuildInsnString()
415 snprintf(tbuf, arraysize(tbuf), "%d [%#x]", operand, operand); in BuildInsnString()
419 snprintf(tbuf, arraysize(tbuf), "%d [%#x]", operand, operand); in BuildInsnString()
422 snprintf(tbuf, arraysize(tbuf), "s%d", RegStorage::RegNum(operand)); in BuildInsnString()
425 snprintf(tbuf, arraysize(tbuf), "d%d", RegStorage::RegNum(operand)); in BuildInsnString()
428 snprintf(tbuf, arraysize(tbuf), "%04x", operand); in BuildInsnString()
432 snprintf(tbuf, arraysize(tbuf), "%d", operand); in BuildInsnString()
438 snprintf(tbuf, arraysize(tbuf), "%s", core_reg_names[operand]); in BuildInsnString()
441 snprintf(tbuf, arraysize(tbuf), "%d", operand*4); in BuildInsnString()
444 snprintf(tbuf, arraysize(tbuf), "%d", operand*2); in BuildInsnString()
[all …]
/art/compiler/dex/quick/mips/
Dtarget_mips.cc221 snprintf(tbuf, arraysize(tbuf), "$f%d", RegStorage::RegNum(operand)); in BuildInsnString()
225 snprintf(tbuf, arraysize(tbuf), "$f%d", RegStorage::RegNum(operand)); in BuildInsnString()
228 snprintf(tbuf, arraysize(tbuf), "%04x", operand); in BuildInsnString()
232 snprintf(tbuf, arraysize(tbuf), "%d", operand); in BuildInsnString()
235 snprintf(tbuf, arraysize(tbuf), "%d", operand+1); in BuildInsnString()
238 snprintf(tbuf, arraysize(tbuf), "%d", operand*4); in BuildInsnString()
241 snprintf(tbuf, arraysize(tbuf), "%d", operand*2); in BuildInsnString()
244 snprintf(tbuf, arraysize(tbuf), "0x%08" PRIxPTR " (L%p)", in BuildInsnString()
249 snprintf(tbuf, arraysize(tbuf), "0x%08x", operand << 2); in BuildInsnString()
257 snprintf(tbuf, arraysize(tbuf), "%p", reinterpret_cast<void*>(target)); in BuildInsnString()
[all …]
/art/compiler/dex/quick/arm64/
Dtarget_arm64.cc362 DecodeRegExtendOrShift(operand, tbuf, arraysize(tbuf)); in BuildInsnString()
371 DecodeRegExtendOrShift(operand, tbuf, arraysize(tbuf)); in BuildInsnString()
401 snprintf(tbuf, arraysize(tbuf), "s%d", operand & RegStorage::kRegNumMask); in BuildInsnString()
404 snprintf(tbuf, arraysize(tbuf), "d%d", operand & RegStorage::kRegNumMask); in BuildInsnString()
407 snprintf(tbuf, arraysize(tbuf), "%c%d", (IS_FWIDE(lir->opcode)) ? 'd' : 's', in BuildInsnString()
413 snprintf(tbuf, arraysize(tbuf), "%" PRId64 " (%#" PRIx64 ")", imm, imm); in BuildInsnString()
417 snprintf(tbuf, arraysize(tbuf), "%f", DecodeImmSingle(operand)); in BuildInsnString()
423 snprintf(tbuf, arraysize(tbuf), ", lsl #%d", 16*operand); in BuildInsnString()
426 snprintf(tbuf, arraysize(tbuf), "%d", operand); in BuildInsnString()
430 snprintf(tbuf, arraysize(tbuf), "w%d", operand & RegStorage::kRegNumMask); in BuildInsnString()
[all …]
/art/compiler/dex/
Dglobal_value_numbering_test.cc582 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
654 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
723 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
790 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
855 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
917 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
965 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
1080 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
1163 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
1237 ASSERT_EQ(arraysize(mirs), value_names_.size()); in TEST_F()
[all …]
Dmir_optimization_test.cc258 ASSERT_EQ(arraysize(expected_ignore_clinit_check), mir_count_); in TEST_F()
259 for (size_t i = 0u; i != arraysize(mirs); ++i) { in TEST_F()
331 ASSERT_EQ(arraysize(expected_ignore_clinit_check), mir_count_); in TEST_F()
332 for (size_t i = 0u; i != arraysize(mirs); ++i) { in TEST_F()
365 ASSERT_EQ(arraysize(expected_ignore_clinit_check), mir_count_); in TEST_F()
366 for (size_t i = 0u; i != arraysize(mirs); ++i) { in TEST_F()
419 ASSERT_EQ(arraysize(expected_ignore_clinit_check), mir_count_); in TEST_F()
420 for (size_t i = 0u; i != arraysize(mirs); ++i) { in TEST_F()
Dpass_driver_me_post_opt.cc54 arraysize(PassDriver<PassDriverMEPostOpt>::g_passes);
Dlocal_value_numbering_test.cc256 for (size_t i = 0; i != arraysize(mirs); ++i) { in TEST_F()
278 for (size_t i = 0; i != arraysize(mirs); ++i) { in TEST_F()
300 for (size_t i = 0; i != arraysize(mirs); ++i) { in TEST_F()
325 for (size_t i = 0; i != arraysize(mirs); ++i) { in TEST_F()
349 for (size_t i = 0; i != arraysize(mirs); ++i) { in TEST_F()
515 for (size_t i = 9; i != arraysize(mirs); ++i) { in TEST_F()
518 for (size_t i = 0; i != arraysize(mirs); ++i) { in TEST_F()
538 for (size_t i = 0; i != arraysize(mirs); ++i) { in TEST_F()
Dpass_driver_me_opts.cc50 arraysize(PassDriver<PassDriverMEOpts>::g_passes);
Dfrontend.cc456 arraysize(kAllOpcodes),
458 arraysize(kAllOpcodes),
470 arraysize(kAllOpcodes),
/art/compiler/utils/
Darena_allocator.cc56 std::fill_n(alloc_stats_, arraysize(alloc_stats_), 0u); in ArenaAllocatorStatsImpl()
62 std::copy(other.alloc_stats_, other.alloc_stats_ + arraysize(alloc_stats_), alloc_stats_); in Copy()
79 return std::accumulate(alloc_stats_, alloc_stats_ + arraysize(alloc_stats_), init); in BytesAllocated()
105 COMPILE_ASSERT(arraysize(kAllocNames) == kNumArenaAllocKinds, check_arraysize_kAllocNames); in Dump()
/art/compiler/dex/quick/
Dresource_mask.cc89 COMPILE_ASSERT(arraysize(kSingleRegMasks) == arraysize(kNoRegMasks) * 32, check_arraysizes);
118 COMPILE_ASSERT(arraysize(kTwoRegsMasks) == 16 * 15 / 2, check_arraysize_kTwoRegsMasks);
158 DCHECK_LT(index, arraysize(kNoRegMasks)); in GetMask()
Ddex_file_method_inliner.cc69 COMPILE_ASSERT(arraysize(kIntrinsicIsStatic) == kInlineOpNop, check_arraysize_kIntrinsicIsStatic);
397 COMPILE_ASSERT(arraysize(kClassCacheNames) == kClassCacheLast, bad_arraysize_kClassCacheNames); in DexFileMethodInliner()
399 COMPILE_ASSERT(arraysize(kNameCacheNames) == kNameCacheLast, bad_arraysize_kNameCacheNames); in DexFileMethodInliner()
401 COMPILE_ASSERT(arraysize(kProtoCacheDefs) == kProtoCacheLast, bad_arraysize_kProtoCacheNames); in DexFileMethodInliner()
677 std::fill_n(class_indexes, arraysize(class_indexes), kIndexUnresolved); in IndexCache()
678 std::fill_n(name_indexes, arraysize(name_indexes), kIndexUnresolved); in IndexCache()
679 std::fill_n(proto_indexes, arraysize(proto_indexes), kIndexUnresolved); in IndexCache()
/art/runtime/native/
Ddalvik_system_VMDebug.cc47 jobjectArray result = env->NewObjectArray(arraysize(features), in VMDebug_getVmFeatureList()
51 for (size_t i = 0; i < arraysize(features); ++i) { in VMDebug_getVmFeatureList()
/art/runtime/base/
Dmacros.h99 #define arraysize(array) (sizeof(ArraySizeHelper(array))) macro
/art/runtime/gc/space/
Dspace_test.h347 for (size_t i = 0; i < arraysize(lots_of_objects); i++) { in AllocAndFreeListTestBody()
359 space->FreeList(self, arraysize(lots_of_objects), lots_of_objects); in AllocAndFreeListTestBody()
362 for (size_t i = 0; i < arraysize(lots_of_objects); i++) { in AllocAndFreeListTestBody()
372 space->FreeList(self, arraysize(lots_of_objects), lots_of_objects); in AllocAndFreeListTestBody()
/art/disassembler/
Ddisassembler_mips.cc187 for (size_t i = 0; i < arraysize(gMipsInstructions); ++i) { in Dump()

12