Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 39) 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/test/1974-resize-array/src/art/
DTest1974.java129 String[] arr = new String[] {"weak", "ref"}; in runWeakReference() local
130 WeakReference<String[]> wr = new WeakReference(arr); in runWeakReference()
136 System.out.println("Same value? " + (wr.get() == arr)); in runWeakReference()
226 public final Object[] arr = new Object[] {"1", "2", "3"}; in runMultiThreadLocal()
229 return arr; in runMultiThreadLocal()
285 public final Object[] arr = new Object[] {"A", "2", "C"}; in runWithLocks()
288 return arr; in runWithLocks()
365 Object[] arr = new Object[] {"1", "11", "111"}; in runWithJniGlobal() local
366 final long globalID = GetGlobalJniRef(arr); in runWithJniGlobal()
374 System.out.println("Same value? " + (ReadJniRef(globalID) == arr)); in runWithJniGlobal()
[all …]
/art/runtime/mirror/
Dclass_ext-inl.h101 ObjPtr<Object> arr(GetInstanceJFieldIDs<kVerifyFlags, kReadBarrierOption>()); in HasInstanceFieldPointerIdMarker()
102 return !arr.IsNull() && !arr->IsArrayInstance(); in HasInstanceFieldPointerIdMarker()
122 ObjPtr<Object> arr(GetStaticJFieldIDs<kVerifyFlags, kReadBarrierOption>()); in HasStaticFieldPointerIdMarker()
123 return !arr.IsNull() && !arr->IsArrayInstance(); in HasStaticFieldPointerIdMarker()
144 ObjPtr<Object> arr(GetJMethodIDs<kVerifyFlags, kReadBarrierOption>()); in HasMethodPointerIdMarker()
145 return !arr.IsNull() && !arr->IsArrayInstance(); in HasMethodPointerIdMarker()
178 ObjPtr<PointerArray> arr(GetObsoleteMethods<kDefaultVerifyFlags, kReadBarrierOption>()); in VisitMethods()
179 if (!arr.IsNull()) { in VisitMethods()
180 int32_t len = arr->GetLength(); in VisitMethods()
182 ArtMethod* method = arr->GetElementPtrSize<ArtMethod*>(i, pointer_size); in VisitMethods()
[all …]
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.h174 Handle<PrimitiveArray<T>> arr(hs.NewHandle(PrimitiveArray<T>::Alloc(self, length))); in AllocateAndFill()
175 if (!arr.IsNull()) { in AllocateAndFill()
177 memcpy(arr->GetData(), data, sizeof(T) * length); in AllocateAndFill()
179 return arr.Get(); in AllocateAndFill()
/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/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/140-dce-regression/src/
DMain.java20 int[] arr = null; in testArrayLength() local
23 len = arr.length; in testArrayLength()
/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/test/1975-hello-structural-transformation/
Dstructural_transform.cc67 jlongArray arr = env->NewLongArray(len); in Java_art_Test1975_getNativeFields() local
71 env->SetLongArrayRegion(arr, i, 1, &lfid); in Java_art_Test1975_getNativeFields()
73 return arr; in Java_art_Test1975_getNativeFields()
/art/test/1976-hello-structural-static-methods/
Dstructural_transform_methods.cc65 jlongArray arr = env->NewLongArray(len); in Java_art_Test1976_getMethodIds() local
70 env->SetLongArrayRegion(arr, i, 1, &lmid); in Java_art_Test1976_getMethodIds()
73 return arr; in Java_art_Test1976_getMethodIds()
/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/1974-resize-array/
Dresize_array.cc41 using ChangeArraySize = jvmtiError (*)(jvmtiEnv* env, jobject arr, jint size);
123 jobject arr = env->CallObjectMethod(ref_gen, getArr); in Java_art_Test1974_ResizeArray() local
124 JvmtiErrorToException(env, jvmti_env, change_array_size(jvmti_env, arr, new_size)); in Java_art_Test1974_ResizeArray()
165 jobjectArray arr, in Java_art_Test1974_runNativeTest() argument
172 env->CallVoidMethod(print, accept, arr); in Java_art_Test1974_runNativeTest()
174 env->CallVoidMethod(print, accept, arr); in Java_art_Test1974_runNativeTest()
175 env->CallVoidMethod(check, accept, arr); in Java_art_Test1974_runNativeTest()
257 ScopedLocalRef<jlongArray> arr(env, env->NewLongArray(info->freed_tags_.size())); in Java_art_Test1974_CollectFreedTags() local
261 env->SetLongArrayRegion(arr.get(), 0, info->freed_tags_.size(), info->freed_tags_.data()); in Java_art_Test1974_CollectFreedTags()
265 return arr.release(); in Java_art_Test1974_CollectFreedTags()
/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/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/compiler/optimizing/
Dscheduler_test.cc206 HInstruction* arr = new (GetAllocator()) HParameterValue(graph_->GetDexFile(), in TestDependencyGraphOnAliasingArrayAccesses() local
229 new (GetAllocator()) HArraySet(arr, c0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
231 new (GetAllocator()) HArraySet(arr, c1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
232 HInstruction* arr_set_i = new (GetAllocator()) HArraySet(arr, i, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
234 new (GetAllocator()) HArraySet(arr, add0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
236 new (GetAllocator()) HArraySet(arr, add1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
238 new (GetAllocator()) HArraySet(arr, sub0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
240 new (GetAllocator()) HArraySet(arr, sub1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
241 HInstruction* arr_set_j = new (GetAllocator()) HArraySet(arr, j, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses()
253 HInstruction* block_instructions[] = {arr, in TestDependencyGraphOnAliasingArrayAccesses()
/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/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/runtime/native/
Ddalvik_system_VMDebug.cc398 jlong* arr = reinterpret_cast<jlong*>(env->GetPrimitiveArrayCritical(data, nullptr)); in VMDebug_getHeapSpaceStats() local
399 if (arr == nullptr || env->GetArrayLength(data) < 9) { in VMDebug_getHeapSpaceStats()
442 arr[j++] = allocSize; in VMDebug_getHeapSpaceStats()
443 arr[j++] = allocUsed; in VMDebug_getHeapSpaceStats()
444 arr[j++] = allocFree; in VMDebug_getHeapSpaceStats()
445 arr[j++] = zygoteSize; in VMDebug_getHeapSpaceStats()
446 arr[j++] = zygoteUsed; in VMDebug_getHeapSpaceStats()
447 arr[j++] = zygoteFree; in VMDebug_getHeapSpaceStats()
448 arr[j++] = largeObjectsSize; in VMDebug_getHeapSpaceStats()
449 arr[j++] = largeObjectsUsed; in VMDebug_getHeapSpaceStats()
[all …]
/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/1980-obsolete-object-cleared/src/
DMain.java153 for (Object[] arr : iter) { in main()
160 + deepPrint(arr) in main()
162 + safePrint(m.invoke(c, arr))); in main()
165 … m + " with " + deepPrint(arr) + " throws " + safePrint(e) + ": " + safePrint(e.getCause())); in main()

12