/art/test/2247-checker-write-barrier-elimination/src/ |
D | Main.java | 88 Object[] arr, Object o, Object o2, Object o3) { in $noinline$testArraySets() argument 89 arr[0] = o; in $noinline$testArraySets() 90 arr[1] = o2; in $noinline$testArraySets() 91 arr[2] = o3; in $noinline$testArraySets() 92 return arr; in $noinline$testArraySets() 100 private static java.lang.Object[] $noinline$testSwapArray(Object[] arr) { in $noinline$testSwapArray() argument 101 arr[0] = arr[1]; in $noinline$testSwapArray() 102 arr[1] = arr[2]; in $noinline$testSwapArray() 103 arr[2] = arr[0]; in $noinline$testSwapArray() 104 return arr; in $noinline$testSwapArray() [all …]
|
/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/2272-checker-codegen-honor-write-barrier-kind/src/ |
D | Main.java | 24 String[] arr = {"Hello", "World"}; in $noinline$testHonorWriteBarrier() local 33 $noinline$testArraySetsHonorWriteBarrier(arr, "Universe"); in $noinline$testHonorWriteBarrier() 60 String[] arr, String o2) { in $noinline$testArraySetsHonorWriteBarrier() argument 62 arr[0] = (String) o; in $noinline$testArraySetsHonorWriteBarrier() 63 arr[1] = o2; in $noinline$testArraySetsHonorWriteBarrier() 64 return arr; in $noinline$testArraySetsHonorWriteBarrier() 68 String[] arr = {"Hello", "World"}; in $noinline$testDontSkipWriteBarrier() local 77 $noinline$testArraySetsDontSkipWriteBarrier(arr, null, "Universe"); in $noinline$testDontSkipWriteBarrier() 89 String[] arr, String o, String o2) { in $noinline$testArraySetsDontSkipWriteBarrier() argument 90 arr[0] = o; in $noinline$testArraySetsDontSkipWriteBarrier() [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/test/685-deoptimizeable/src/ |
D | Main.java | 91 int[] arr = new int[3]; in main() 93 int res = $noinline$run1(arr); in main() 111 int[] arr = new int[3]; in main() 117 double res = (double)method.invoke(Main.class, arr); in main() 181 public static int $noinline$run1(int[] arr) { in $noinline$run1() argument 190 arr[0] = 1; in $noinline$run1() 191 arr[1] = 1; in $noinline$run1() 192 arr[2] = 1; in $noinline$run1() 194 arr[3] = 1; in $noinline$run1() 206 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/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 | 100 ObjPtr<Object> arr(GetInstanceJFieldIDs<kVerifyFlags, kReadBarrierOption>()); in HasInstanceFieldPointerIdMarker() 101 return !arr.IsNull() && !arr->IsArrayInstance(); in HasInstanceFieldPointerIdMarker() 121 ObjPtr<Object> arr(GetStaticJFieldIDs<kVerifyFlags, kReadBarrierOption>()); in HasStaticFieldPointerIdMarker() 122 return !arr.IsNull() && !arr->IsArrayInstance(); in HasStaticFieldPointerIdMarker() 143 ObjPtr<Object> arr(GetJMethodIDs<kVerifyFlags, kReadBarrierOption>()); in HasMethodPointerIdMarker() 144 return !arr.IsNull() && !arr->IsArrayInstance(); in HasMethodPointerIdMarker() 177 ObjPtr<ObjectArray<DexCache>> arr(GetObsoleteDexCaches<kVerifyFlags, kReadBarrierOption>()); in VisitDexCaches() 178 if (!arr.IsNull()) { in VisitDexCaches() 179 int32_t len = arr->GetLength(); in VisitDexCaches() 181 ObjPtr<mirror::DexCache> dex_cache = arr->Get<kVerifyFlags, kReadBarrierOption>(i); in VisitDexCaches() [all …]
|
D | iftable-inl.h | 66 inline void IfTable::SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) { in SetMethodArray() argument 67 DCHECK(arr != nullptr); in SetMethodArray() 68 DCHECK_EQ(static_cast<size_t>(arr->GetLength()), GetInterface(i)->NumDeclaredVirtualMethods()); in SetMethodArray() 70 Set<false>(idx, arr); in SetMethodArray()
|
/art/test/1974-resize-array/src/art/ |
D | Test1974.java | 129 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/test/455-checker-gvn/src/ |
D | Main.java | 96 public int[] arr; field in Main.MyList 114 public static int $noinline$deoptimizeArray(int[] arr) { in $noinline$deoptimizeArray() argument 115 if (arr == null) { in $noinline$deoptimizeArray() 116 arr = new int[100]; in $noinline$deoptimizeArray() 119 arr[i] = i; in $noinline$deoptimizeArray() 123 sum += arr[i]; in $noinline$deoptimizeArray()
|
/art/test/590-checker-arr-set-null-regression/ |
D | Android.bp | 3 // Build rules for ART run-test `590-checker-arr-set-null-regression`. 16 name: "art-run-test-590-checker-arr-set-null-regression", 21 ":art-run-test-590-checker-arr-set-null-regression-expected-stdout", 22 ":art-run-test-590-checker-arr-set-null-regression-expected-stderr", 31 name: "art-run-test-590-checker-arr-set-null-regression-expected-stdout", 32 out: ["art-run-test-590-checker-arr-set-null-regression-expected-stdout.txt"], 39 name: "art-run-test-590-checker-arr-set-null-regression-expected-stderr", 40 out: ["art-run-test-590-checker-arr-set-null-regression-expected-stderr.txt"],
|
/art/test/2234-checker-remove-entry-suspendcheck/src/ |
D | Main.java | 20 int[] arr = {1, 2, 3}; field in Main.Inner 43 return this.arr[0]; in $noinline$removeSuspendCheckArrayGet() 55 return this.arr[0] = 2; in $noinline$removeSuspendCheckArraySet()
|
/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/521-checker-array-set-null/src/ |
D | Main.java | 72 Object[] arr = new Object[1]; in $noinline$testWithSameRTI() local 73 arr[0] = static_obj; in $noinline$testWithSameRTI() 75 return arr; in $noinline$testWithSameRTI()
|
/art/test/655-checker-simd-arm-opt/src/ |
D | Main.java | 21 static int[] arr; field in Main 124 arr[i] += x; in SVEIntermediateAddress() 154 arr = new int[ARRAY_SIZE]; in checkSVEIntermediateAddress() 158 arr[i] = i; in checkSVEIntermediateAddress() 164 expectEquals(i + 2, arr[i]); in checkSVEIntermediateAddress()
|
/art/test/1974-resize-array/ |
D | resize_array.cc | 41 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/runtime/gc/ |
D | heap_verification_test.cc | 130 Handle<mirror::ObjectArray<mirror::Object>> arr( in TEST_F() local 139 LOG(INFO) << v->DumpObjectInfo(arr.Get(), "arr"); in TEST_F() 157 Handle<ObjArray> arr( in TEST_F() local 160 arr->Set(0, string.Get()); in TEST_F() 162 v->LogHeapCorruption(arr.Get(), ObjArray::DataOffset(kHeapReferenceSize), string.Get(), false); in TEST_F() 166 v->LogHeapCorruption(nullptr, MemberOffset(0), arr.Get(), false); in TEST_F() 174 Handle<mirror::ObjectArray<mirror::Object>> arr( in TEST_F() local 177 arr->Set(0, str); in TEST_F() 182 oss << arr.Get(); in TEST_F()
|
/art/test/140-dce-regression/src/ |
D | Main.java | 20 int[] arr = null; in testArrayLength() local 23 len = arr.length; in testArrayLength()
|
/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/test/1975-hello-structural-transformation/ |
D | structural_transform.cc | 67 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/ |
D | structural_transform_methods.cc | 65 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/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 | 208 HInstruction* arr = new (GetAllocator()) HParameterValue(graph_->GetDexFile(), in TestDependencyGraphOnAliasingArrayAccesses() local 231 new (GetAllocator()) HArraySet(arr, c0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 233 new (GetAllocator()) HArraySet(arr, c1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 234 HInstruction* arr_set_i = new (GetAllocator()) HArraySet(arr, i, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 236 new (GetAllocator()) HArraySet(arr, add0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 238 new (GetAllocator()) HArraySet(arr, add1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 240 new (GetAllocator()) HArraySet(arr, sub0, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 242 new (GetAllocator()) HArraySet(arr, sub1, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 243 HInstruction* arr_set_j = new (GetAllocator()) HArraySet(arr, j, c0, DataType::Type::kInt32, 0); in TestDependencyGraphOnAliasingArrayAccesses() 255 HInstruction* block_instructions[] = {arr, in TestDependencyGraphOnAliasingArrayAccesses()
|