/art/benchmark/type-check/src/ |
D | TypeCheckBenchmark.java | 19 Object[] arr = arr1; in timeCheckCastLevel1ToLevel1() local 21 Level1 l1 = (Level1) arr[i & 1023]; in timeCheckCastLevel1ToLevel1() 26 Object[] arr = arr2; in timeCheckCastLevel2ToLevel1() local 28 Level1 l1 = (Level1) arr[i & 1023]; in timeCheckCastLevel2ToLevel1() 33 Object[] arr = arr3; in timeCheckCastLevel3ToLevel1() local 35 Level1 l1 = (Level1) arr[i & 1023]; in timeCheckCastLevel3ToLevel1() 40 Object[] arr = arr9; in timeCheckCastLevel9ToLevel1() local 42 Level1 l1 = (Level1) arr[i & 1023]; in timeCheckCastLevel9ToLevel1() 47 Object[] arr = arr9; in timeCheckCastLevel9ToLevel2() local 49 Level2 l2 = (Level2) arr[i & 1023]; in timeCheckCastLevel9ToLevel2() [all …]
|
/art/test/602-deoptimizeable/src/ |
D | Main.java | 60 int[] arr = new int[3]; in main() 61 int res = $noinline$run1(arr); in main() 73 int[] arr = new int[3]; in main() 78 double res = (double)method.invoke(Main.class, arr); in main() 127 public static int $noinline$run1(int[] arr) { in $noinline$run1() argument 135 arr[0] = 1; in $noinline$run1() 136 arr[1] = 1; in $noinline$run1() 137 arr[2] = 1; in $noinline$run1() 139 arr[3] = 1; in $noinline$run1() 149 public static double $noinline$run2(int[] arr) { in $noinline$run2() argument [all …]
|
/art/benchmark/scoped-primitive-array/ |
D | scoped_primitive_array.cc | 21 JNIEnv* env, jclass, int reps, jbyteArray arr) { in Java_ScopedPrimitiveArrayBenchmark_measureByteArray() argument 24 ScopedByteArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureByteArray() 31 JNIEnv* env, jclass, int reps, jshortArray arr) { in Java_ScopedPrimitiveArrayBenchmark_measureShortArray() argument 34 ScopedShortArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureShortArray() 41 JNIEnv* env, jclass, int reps, jintArray arr) { in Java_ScopedPrimitiveArrayBenchmark_measureIntArray() argument 44 ScopedIntArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureIntArray() 51 JNIEnv* env, jclass, int reps, jlongArray arr) { in Java_ScopedPrimitiveArrayBenchmark_measureLongArray() argument 54 ScopedLongArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureLongArray()
|
/art/test/685-deoptimizeable/src/ |
D | Main.java | 89 int[] arr = new int[3]; in main() 91 int res = $noinline$run1(arr); in main() 109 int[] arr = new int[3]; in main() 115 double res = (double)method.invoke(Main.class, arr); in main() 179 public static int $noinline$run1(int[] arr) { in $noinline$run1() argument 188 arr[0] = 1; in $noinline$run1() 189 arr[1] = 1; in $noinline$run1() 190 arr[2] = 1; in $noinline$run1() 192 arr[3] = 1; in $noinline$run1() 204 public static double $noinline$run2(int[] arr) { in $noinline$run2() argument [all …]
|
/art/test/625-checker-licm-regressions/src/ |
D | Main.java | 43 static void foo(int[] arr) { in foo() argument 47 } while (j < arr.length); in foo() 68 static void bar(int[] arr) { in bar() argument 73 } while (j < arr.length); in bar() 87 static int catcher(int[] arr) { in catcher() argument 92 } while (j < arr.length); in catcher()
|
/art/runtime/mirror/ |
D | class_ext-inl.h | 50 ObjPtr<PointerArray> arr(GetObsoleteMethods<kDefaultVerifyFlags, kReadBarrierOption>()); in VisitNativeRoots() 51 if (arr.IsNull()) { in VisitNativeRoots() 54 int32_t len = arr->GetLength(); in VisitNativeRoots() 56 ArtMethod* method = arr->GetElementPtrSize<ArtMethod*, kDefaultVerifyFlags>(i, pointer_size); in VisitNativeRoots()
|
D | iftable-inl.h | 66 inline void IfTable::SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) { in SetMethodArray() argument 67 DCHECK(arr != nullptr); in SetMethodArray() 70 Set<false>(idx, arr); in SetMethodArray()
|
D | array-alloc-inl.h | 173 Handle<PrimitiveArray<T>> arr(hs.NewHandle(PrimitiveArray<T>::Alloc(self, length))); in AllocateAndFill() 174 if (!arr.IsNull()) { in AllocateAndFill() 176 memcpy(arr->GetData(), data, sizeof(T) * length); in AllocateAndFill() 178 return arr.Get(); in AllocateAndFill()
|
D | iftable.h | 47 void SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) REQUIRES_SHARED(Locks::mutator_lock_);
|
/art/benchmark/scoped-primitive-array/src/ |
D | ScopedPrimitiveArrayBenchmark.java | 19 static native long measureByteArray(int reps, byte[] arr); in measureByteArray() argument 20 static native long measureShortArray(int reps, short[] arr); in measureShortArray() argument 21 static native long measureIntArray(int reps, int[] arr); in measureIntArray() argument 22 static native long measureLongArray(int reps, long[] arr); in measureLongArray() argument
|
/art/test/1338-gc-no-los/src-art/ |
D | Main.java | 25 byte[] arr = new byte[128 * 1024]; in main() 32 arr[0] = 1; in main() 34 System.out.println(arr.length + " " + arr2.length + " " + (weakRef.get() != null)); in main()
|
/art/test/140-dce-regression/src/ |
D | Main.java | 20 int[] arr = null; in testArrayLength() local 23 len = arr.length; in testArrayLength()
|
/art/runtime/gc/ |
D | heap_verification_test.cc | 128 Handle<mirror::ObjectArray<mirror::Object>> arr( in TEST_F() local 137 LOG(INFO) << v->DumpObjectInfo(arr.Get(), "arr"); in TEST_F() 155 Handle<ObjArray> arr( in TEST_F() local 158 arr->Set(0, string.Get()); in TEST_F() 160 v->LogHeapCorruption(arr.Get(), ObjArray::DataOffset(kHeapReferenceSize), string.Get(), false); in TEST_F() 164 v->LogHeapCorruption(nullptr, MemberOffset(0), arr.Get(), false); in TEST_F() 172 Handle<mirror::ObjectArray<mirror::Object>> arr( in TEST_F() local 175 arr->Set(0, str); in TEST_F() 180 oss << arr.Get(); in TEST_F()
|
/art/test/597-deopt-new-string/src/ |
D | Main.java | 50 char[] arr = {'a', 'b', 'c'}; in $noinline$run0() local 51 String str = new String(arr, 0, arr.length); in $noinline$run0()
|
/art/libartbase/base/ |
D | length_prefixed_array.h | 113 LengthPrefixedArray<T>* arr, size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 114 return arr != nullptr ? 115 MakeIterationRange(arr->begin(element_size, alignment), arr->end(element_size, alignment)) :
|
/art/compiler/optimizing/ |
D | scheduler_test.cc | 214 HInstruction* arr = new (GetAllocator()) HParameterValue(graph_->GetDexFile(), in TestDependencyGraphOnAliasingArrayAccesses() local 237 new (GetAllocator()) HArraySet(arr, c0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 239 new (GetAllocator()) HArraySet(arr, c1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 240 HInstruction* arr_set_i = new (GetAllocator()) HArraySet(arr, i, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 242 new (GetAllocator()) HArraySet(arr, add0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 244 new (GetAllocator()) HArraySet(arr, add1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 246 new (GetAllocator()) HArraySet(arr, sub0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 248 new (GetAllocator()) HArraySet(arr, sub1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 249 HInstruction* arr_set_j = new (GetAllocator()) HArraySet(arr, j, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 261 HInstruction* block_instructions[] = {arr, in TestDependencyGraphOnAliasingArrayAccesses()
|
/art/test/944-transform-classloaders/src/art/ |
D | Test944.java | 129 private static boolean arrayContains(long[] arr, long value) { in arrayContains() argument 130 if (arr == null) { in arrayContains() 133 for (int i = 0; i < arr.length; i++) { in arrayContains() 134 if (arr[i] == value) { in arrayContains()
|
/art/test/1922-owned-monitors-info/ |
D | owned_monitors.cc | 121 jobject* arr = nullptr; in Java_art_Test1922_getOwnedMonitors() local 122 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetOwnedMonitorInfo(thread, &len, &arr))) { in Java_art_Test1922_getOwnedMonitors() 135 env->SetObjectArrayElement(ret, i, arr[i]); in Java_art_Test1922_getOwnedMonitors()
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 394 jlong* arr = reinterpret_cast<jlong*>(env->GetPrimitiveArrayCritical(data, nullptr)); in VMDebug_getHeapSpaceStats() local 395 if (arr == nullptr || env->GetArrayLength(data) < 9) { in VMDebug_getHeapSpaceStats() 438 arr[j++] = allocSize; in VMDebug_getHeapSpaceStats() 439 arr[j++] = allocUsed; in VMDebug_getHeapSpaceStats() 440 arr[j++] = allocFree; in VMDebug_getHeapSpaceStats() 441 arr[j++] = zygoteSize; in VMDebug_getHeapSpaceStats() 442 arr[j++] = zygoteUsed; in VMDebug_getHeapSpaceStats() 443 arr[j++] = zygoteFree; in VMDebug_getHeapSpaceStats() 444 arr[j++] = largeObjectsSize; in VMDebug_getHeapSpaceStats() 445 arr[j++] = largeObjectsUsed; in VMDebug_getHeapSpaceStats() [all …]
|
/art/test/1946-list-descriptors/ |
D | descriptors.cc | 71 ScopedLocalRef<jobjectArray> arr(env, env->NewObjectArray(cnt, in Java_art_Test1946_getClassloaderDescriptors() local 80 env->SetObjectArrayElement(arr.get(), i, env->NewStringUTF(classes[i])); in Java_art_Test1946_getClassloaderDescriptors() 87 return arr.release(); in Java_art_Test1946_getClassloaderDescriptors()
|
/art/test/530-checker-lse/src/ |
D | Main.java | 802 private static int testStoreStoreWithDeoptimize(int[] arr) { in testStoreStoreWithDeoptimize() argument 808 arr[0] = 1; // One HDeoptimize here. in testStoreStoreWithDeoptimize() 809 arr[1] = 1; in testStoreStoreWithDeoptimize() 810 arr[2] = 1; in testStoreStoreWithDeoptimize() 811 arr[3] = 1; in testStoreStoreWithDeoptimize() 812 return arr[0] + arr[1] + arr[2] + arr[3]; in testStoreStoreWithDeoptimize()
|
/art/test/618-checker-induction/src/ |
D | Main.java | 472 private static int getIncr2(int[] arr) { in getIncr2() argument 474 arr[i++] = 30; in getIncr2() 475 arr[i++] = 29; in getIncr2() 479 sum += arr[i]; in getIncr2()
|
/art/test/1922-owned-monitors-info/src/art/ |
D | Test1922.java | 122 private static Object[] sortByString(Object[] arr) { in sortByString() argument 123 Arrays.sort(arr, (a, b) -> a.toString().compareTo(b.toString())); in sortByString() 124 return arr; in sortByString()
|
/art/test/005-annotations/src/android/test/anno/ |
D | TestAnnotations.java | 32 static private void printAnnotationArray(String prefix, Annotation[] arr) { in printAnnotationArray() argument 36 for (Annotation a : arr) { in printAnnotationArray()
|
/art/runtime/gc/space/ |
D | space_test.h | 115 ObjPtr<mirror::Array> arr = o->AsArray<kVerifyNone>(); in InstallClass() local 118 arr->SetLength(length); in InstallClass() 119 EXPECT_EQ(arr->SizeOf<kVerifyNone>(), size); in InstallClass()
|