Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 32) sorted by relevance

12

/art/benchmark/type-check/src/
DTypeCheckBenchmark.java19 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/
DMain.java60 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/
Dscoped_primitive_array.cc21 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/
DMain.java89 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/
DMain.java43 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/
Dclass_ext-inl.h50 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()
Diftable-inl.h66 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()
Darray-alloc-inl.h173 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()
Diftable.h47 void SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) REQUIRES_SHARED(Locks::mutator_lock_);
/art/benchmark/scoped-primitive-array/src/
DScopedPrimitiveArrayBenchmark.java19 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/
DMain.java25 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/
DMain.java20 int[] arr = null; in testArrayLength() local
23 len = arr.length; in testArrayLength()
/art/runtime/gc/
Dheap_verification_test.cc128 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/
DMain.java50 char[] arr = {'a', 'b', 'c'}; in $noinline$run0() local
51 String str = new String(arr, 0, arr.length); in $noinline$run0()
/art/libartbase/base/
Dlength_prefixed_array.h113 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/
Dscheduler_test.cc214 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/
DTest944.java129 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/
Downed_monitors.cc121 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/
Ddalvik_system_VMDebug.cc394 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/
Ddescriptors.cc71 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/
DMain.java802 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/
DMain.java472 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/
DTest1922.java122 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/
DTestAnnotations.java32 static private void printAnnotationArray(String prefix, Annotation[] arr) { in printAnnotationArray() argument
36 for (Annotation a : arr) { in printAnnotationArray()
/art/runtime/gc/space/
Dspace_test.h115 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()

12