/art/compiler/optimizing/ |
H A D | optimization.cc | 21 void HOptimization::MaybeRecordStat(MethodCompilationStat compilation_stat, size_t count) const { 23 stats_->RecordStat(compilation_stat, count);
|
/art/runtime/arch/ |
H A D | memcmp16.cc | 22 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count); 23 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count) { argument 24 for (size_t i = 0; i < count; i++) { 36 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count) { argument 37 return MemCmp16(s0, s1, count);
|
H A D | memcmp16.h | 35 extern "C" uint32_t __memcmp16(const uint16_t* s0, const uint16_t* s1, size_t count); 41 static inline int32_t MemCmp16(const uint16_t* s0, const uint16_t* s1, size_t count) { argument 42 for (size_t i = 0; i < count; i++) { 50 extern "C" int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count); 60 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count);
|
/art/test/023-many-interfaces/ |
H A D | iface-gen.c | 11 static int createFiles(int count) argument 16 for (i = 0; i < count; i++) { 35 for (i = 0; i < count; i++) { 36 fprintf(fp, " Interface%03d%s\n", i, (i == count-1) ? "" : ","); 39 for (i = 1; i < count; i += 2) {
|
/art/runtime/ |
H A D | thread_pool_test.cc | 29 explicit CountTask(AtomicInteger* count) : count_(count), verbose_(false) {} argument 64 AtomicInteger count(0); 67 thread_pool.AddTask(self, new CountTask(&count)); 73 EXPECT_EQ(num_tasks, count.LoadSequentiallyConsistent()); 79 AtomicInteger count(0); 82 thread_pool.AddTask(self, new CountTask(&count)); 86 EXPECT_EQ(0, count.LoadSequentiallyConsistent()); 103 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) argument 105 count_(count), [all...] |
H A D | barrier.cc | 26 Barrier::Barrier(int count) argument 27 : count_(count), 41 void Barrier::Init(Thread* self, int count) { argument 43 SetCountLocked(self, count); 50 // Increment the count. If it becomes zero after the increment 54 // Pass function is called by the last thread, the count will 83 void Barrier::SetCountLocked(Thread* self, int count) { argument 84 count_ = count; 85 if (count == 0) { 93 CHECK_EQ(count_, 0) << "Attempted to destroy barrier with non zero count"; [all...] |
H A D | nth_caller_visitor.h | 33 count(0), 47 if (count == n) { 51 count++; 58 size_t count; member in struct:art::NthCallerVisitor
|
H A D | barrier.h | 21 // latch API, it is possible to initialize the latch to a count of zero, repeatedly call 22 // Pass() or Wait(), and only then set the count using the Increment() method. Threads at 23 // a Wait() are only awoken if the count reaches zero AFTER the decrement is applied. 25 // decrementing the count, and thus nobody can spuriosly wake up on the initial zero. 38 explicit Barrier(int count); 41 // Pass through the barrier, decrement the count but do not block. 44 // Wait on the barrier, decrement the count. 53 // Increment the count by delta, wait on condition if count is non zero. 56 // Increment the count b [all...] |
H A D | native_bridge_art_interface.cc | 62 uint32_t count = 0; local 65 if (count < method_count) { 66 methods[count].name = m.GetName(); 67 methods[count].signature = m.GetShorty(); 68 methods[count].fnPtr = m.GetEntryPointFromJni(); 69 count++; 75 return count;
|
H A D | barrier_test.cc | 89 CheckPassTask(Barrier* barrier, AtomicInteger* count, size_t subtasks) argument 91 count_(count), 116 AtomicInteger count(0); 120 thread_pool.AddTask(self, new CheckPassTask(&barrier, &count, num_sub_tasks)); 127 EXPECT_EQ(count.LoadRelaxed(), expected_total_tasks);
|
/art/runtime/native/ |
H A D | java_lang_System.cc | 48 // The API is defined in terms of length, but length is somewhat overloaded so we use count. 49 const jint count = length; local 77 if (UNLIKELY(srcPos < 0) || UNLIKELY(dstPos < 0) || UNLIKELY(count < 0) || 78 UNLIKELY(srcPos > srcArray->GetLength() - count) || 79 UNLIKELY(dstPos > dstArray->GetLength() - count)) { 83 count); 100 dstArray->AsByteSizedArray()->Memmove(dstPos, srcArray->AsByteSizedArray(), srcPos, count); 105 dstArray->AsShortSizedArray()->Memmove(dstPos, srcArray->AsShortSizedArray(), srcPos, count); 109 dstArray->AsIntArray()->Memmove(dstPos, srcArray->AsIntArray(), srcPos, count); 113 dstArray->AsFloatArray()->Memmove(dstPos, srcArray->AsFloatArray(), srcPos, count); 164 System_arraycopyTUnchecked(JNIEnv* env, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 178 System_arraycopyCharUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 184 System_arraycopyByteUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 190 System_arraycopyShortUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 196 System_arraycopyIntUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 202 System_arraycopyLongUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 208 System_arraycopyFloatUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 214 System_arraycopyDoubleUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument 220 System_arraycopyBooleanUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint count) argument [all...] |
/art/test/004-NativeAllocations/src/ |
H A D | Main.java | 64 int count = 16; 65 int size = (int)(maxMem / 2 / count); 67 NativeAllocation[] allocations = new NativeAllocation[count]; 69 allocations[i % count] = new NativeAllocation(size, false); 76 allocations[i % count] = new NativeAllocation(size, true); 81 allocations[i % count] = new NativeAllocation(size, true);
|
/art/runtime/interpreter/mterp/arm/ |
H A D | header.S | 160 .macro FETCH_ADVANCE_INST count 161 ldrh rINST, [rPC, #((\count)*2)]! 168 .macro PREFETCH_ADVANCE_INST dreg, sreg, count 169 ldrh \dreg, [\sreg, #((\count)*2)]! 177 .macro PREFETCH_INST count 178 ldrh rINST, [rPC, #((\count)*2)] 182 .macro ADVANCE count 183 add rPC, #((\count)*2) 206 .macro FETCH reg, count 207 ldrh \reg, [rPC, #((\count)* [all...] |
/art/runtime/interpreter/mterp/arm64/ |
H A D | header.S | 157 .macro FETCH_ADVANCE_INST count 158 ldrh wINST, [xPC, #((\count)*2)]! 165 .macro PREFETCH_ADVANCE_INST dreg, sreg, count 166 ldrh \dreg, [\sreg, #((\count)*2)]! 174 .macro PREFETCH_INST count 175 ldrh wINST, [xPC, #((\count)*2)] 179 .macro ADVANCE count 180 add xPC, xPC, #((\count)*2) 200 .macro FETCH reg, count 201 ldrh \reg, [xPC, #((\count)* [all...] |
/art/test/444-checker-nce/src/ |
H A D | Main.java | 97 public Main forRemoveTest(int count) { argument 100 for (int i = 0; i < count; i++) { 113 public Main forKeepTest(int count) { argument 116 for (int i = 0; i < count; i++) { 131 public Main phiFlowRemoveTest(int count) { argument 134 for (int i = 0; i < count; i++) { 140 for (int i = 0; i < count; i++) { 153 public Main phiFlowKeepTest(int count) { argument 156 for (int i = 0; i < count; i++) { 164 for (int i = 0; i < count; 174 scopeRemoveTest(int count, Main a) argument 192 scopeKeepTest(int count, Main a) argument [all...] |
/art/test/004-StackWalk/ |
H A D | stack_walk_jni.cc | 79 extern "C" JNIEXPORT jint JNICALL Java_Main_stackmap(JNIEnv*, jobject, jint count) { argument 81 CHECK_EQ(count, 0); 88 return count + 1; 91 extern "C" JNIEXPORT jint JNICALL Java_Main_refmap2(JNIEnv*, jobject, jint count) { argument 99 return count + 1;
|
/art/test/303-verification-stress/ |
H A D | classes-gen.c | 11 static int createFiles(int count, int array_size) argument 17 for (i = 0; i < count; i++) { 46 for (i = 0; i < count; i++) {
|
/art/runtime/base/ |
H A D | hex_dump.cc | 71 size_t count = std::min(byte_count, 16 - gap); local 72 // CHECK_NE(count, 0U); 73 // CHECK_LE(count + gap, 16U); 82 for (i = gap ; i < count + gap; i++) { 104 byte_count -= count; 105 offset += count;
|
/art/runtime/mirror/ |
H A D | string-inl.h | 40 // Sets string count in the allocation code path to ensure it is guarded by a CAS. 43 explicit SetStringCountVisitor(int32_t count) : count_(count) { argument 57 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS. 60 SetStringCountAndBytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset, argument 62 : count_(count), src_array_(src_array), offset_(offset), high_byte_(high_byte) { 84 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS. 87 SetStringCountAndValueVisitorFromCharArray(int32_t count, Handle<CharArray> src_array, argument 89 count_(count), src_array_(src_array), offset_(offset) { 107 // Sets string count an 110 SetStringCountAndValueVisitorFromString(int32_t count, Handle<String> src_string, int32_t offset) argument 135 int32_t count = GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); local 200 AllocFromCharArray(Thread* self, int32_t count, Handle<CharArray> array, int32_t offset, gc::AllocatorType allocator_type) argument [all...] |
H A D | object_array-inl.h | 124 int32_t src_pos, int32_t count) { 126 for (int i = 0; i < count; ++i) { 138 const bool copy_forward = (src != this) || (dst_pos < src_pos) || (dst_pos - src_pos >= count); 141 for (int i = 0; i < count; ++i) { 148 for (int i = count - 1; i >= 0; --i) { 155 dstAsIntArray->Memmove(dst_pos, srcAsIntArray, src_pos, count); 157 Runtime::Current()->GetHeap()->WriteBarrierArray(this, dst_pos, count); 159 for (int i = 0; i < count; ++i) { 168 int32_t src_pos, int32_t count) { 170 for (int i = 0; i < count; 123 AssignableMemmove(int32_t dst_pos, ObjectArray<T>* src, int32_t src_pos, int32_t count) argument 167 AssignableMemcpy(int32_t dst_pos, ObjectArray<T>* src, int32_t src_pos, int32_t count) argument 201 AssignableCheckingMemcpy(int32_t dst_pos, ObjectArray<T>* src, int32_t src_pos, int32_t count, bool throw_exception) argument [all...] |
H A D | array-inl.h | 255 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) { argument 256 d += count; 257 s += count; 258 for (int32_t i = 0; i < count; ++i) { 268 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { argument 269 for (int32_t i = 0; i < count; ++i) { 278 int32_t count) { 279 if (UNLIKELY(count == 0)) { 284 DCHECK_GT(count, 0); 287 DCHECK_LE(dst_pos, GetLength() - count); 277 Memmove(int32_t dst_pos, PrimitiveArray<T>* src, int32_t src_pos, int32_t count) argument 337 Memcpy(int32_t dst_pos, PrimitiveArray<T>* src, int32_t src_pos, int32_t count) argument [all...] |
/art/test/050-sync-test/src/ |
H A D | Main.java | 118 int count = mCount; 128 count++; 129 mCount = count; 137 private static int count = 0; field in class:SleepyThread 143 setName("thread#" + count); 144 count++;
|
/art/test/370-dex-v37/ |
H A D | build | 26 printf '037' | dd status=none conv=notrunc of=classes.dex bs=1 seek=4 count=3
|
/art/test/044-proxy/src/ |
H A D | NarrowingTest.java | 35 int count = 0; 40 if (count == 0) { 41 count++;
|
/art/test/023-many-interfaces/src/ |
H A D | ManyInterfaces.java | 302 static void testIface001(Interface001 iface, int count) { argument 303 while (count-- != 0) { 311 static void testIface049(Interface049 iface, int count) { argument 312 while (count-- != 0) { 320 static void testIface099(Interface099 iface, int count) { argument 321 while (count-- != 0) { 329 static void testVirt001(ManyInterfaces obj, int count) { argument 330 while (count-- != 0) { 338 static void testVirt049(ManyInterfaces obj, int count) { argument 339 while (count 347 testVirt099(ManyInterfaces obj, int count) argument 356 testInstance001(Object obj, int count) argument 380 testInstance049(Object obj, int count) argument 404 testInstance099(Object obj, int count) argument [all...] |