/art/test/602-deoptimizeable/src/ |
D | Main.java | 74 int[] arr = new int[3]; in main() 76 int res = $noinline$run1(arr); in main() 89 int[] arr = new int[3]; in main() 95 double res = (double)method.invoke(Main.class, arr); in main() 146 public static int $noinline$run1(int[] arr) { in $noinline$run1() argument 155 arr[0] = 1; in $noinline$run1() 156 arr[1] = 1; in $noinline$run1() 157 arr[2] = 1; in $noinline$run1() 159 arr[3] = 1; in $noinline$run1() 171 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 | 29 ObjPtr<PointerArray> arr(GetObsoleteMethods<kDefaultVerifyFlags, kReadBarrierOption>()); in VisitNativeRoots() 30 if (arr.IsNull()) { in VisitNativeRoots() 33 int32_t len = arr->GetLength(); in VisitNativeRoots() 35 ArtMethod* method = arr->GetElementPtrSize<ArtMethod*, in VisitNativeRoots()
|
D | iftable-inl.h | 34 inline void IfTable::SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) { in SetMethodArray() argument 35 DCHECK(arr != nullptr); in SetMethodArray() 38 Set<false>(idx, arr); in SetMethodArray()
|
D | iftable.h | 54 void SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) REQUIRES_SHARED(Locks::mutator_lock_);
|
D | array-inl.h | 215 Handle<PrimitiveArray<T>> arr(hs.NewHandle(PrimitiveArray<T>::Alloc(self, length))); in AllocateAndFill() 216 if (!arr.IsNull()) { in AllocateAndFill() 218 memcpy(arr->GetData(), data, sizeof(T) * length); in AllocateAndFill() 220 return arr.Get(); in AllocateAndFill()
|
D | class-inl.h | 1045 LengthPrefixedArray<ArtField>* arr = GetIFieldsPtrUnchecked(); in NumInstanceFields() local 1046 return arr != nullptr ? arr->size() : 0u; in NumInstanceFields() 1050 LengthPrefixedArray<ArtField>* arr = GetSFieldsPtrUnchecked(); in NumStaticFields() local 1051 return arr != nullptr ? arr->size() : 0u; in NumStaticFields()
|
/art/compiler/optimizing/ |
D | scheduler_test.cc | 203 HInstruction* arr = new (&allocator_) HParameterValue(graph_->GetDexFile(), in TestDependencyGraphOnAliasingArrayAccesses() local 225 HInstruction* arr_set_0 = new (&allocator_) HArraySet(arr, c0, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 226 HInstruction* arr_set_1 = new (&allocator_) HArraySet(arr, c1, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 227 HInstruction* arr_set_i = new (&allocator_) HArraySet(arr, i, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 228 HInstruction* arr_set_add0 = new (&allocator_) HArraySet(arr, add0, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 229 HInstruction* arr_set_add1 = new (&allocator_) HArraySet(arr, add1, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 230 HInstruction* arr_set_sub0 = new (&allocator_) HArraySet(arr, sub0, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 231 HInstruction* arr_set_sub1 = new (&allocator_) HArraySet(arr, sub1, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 232 HInstruction* arr_set_j = new (&allocator_) HArraySet(arr, j, c0, Primitive::kPrimInt, 0); in TestDependencyGraphOnAliasingArrayAccesses() 244 HInstruction* block_instructions[] = {arr, in TestDependencyGraphOnAliasingArrayAccesses() [all …]
|
/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/117-nopatchoat/src/ |
D | Main.java | 42 String arr[] = {"This", "is", "a", "function", "call"}; in functionCall() local 44 for (int i = 0; i < arr.length; i++) { in functionCall() 45 ret = ret + arr[i] + " "; in functionCall()
|
/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 | 116 Handle<mirror::ObjectArray<mirror::Object>> arr( in TEST_F() local 125 LOG(INFO) << v->DumpObjectInfo(arr.Get(), "arr"); in TEST_F() 137 Handle<ObjArray> arr( in TEST_F() local 140 arr->Set(0, string.Get()); in TEST_F() 142 v->LogHeapCorruption(arr.Get(), ObjArray::DataOffset(kHeapReferenceSize), string.Get(), false); in TEST_F() 146 v->LogHeapCorruption(nullptr, MemberOffset(0), arr.Get(), false); in TEST_F() 155 Handle<mirror::ObjectArray<mirror::Object>> arr( in TEST_F() local 158 arr->Set(0, str); in TEST_F() 163 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/runtime/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/runtime/native/ |
D | dalvik_system_VMDebug.cc | 336 jlong* arr = reinterpret_cast<jlong*>(env->GetPrimitiveArrayCritical(data, 0)); in VMDebug_getHeapSpaceStats() local 337 if (arr == nullptr || env->GetArrayLength(data) < 9) { in VMDebug_getHeapSpaceStats() 380 arr[j++] = allocSize; in VMDebug_getHeapSpaceStats() 381 arr[j++] = allocUsed; in VMDebug_getHeapSpaceStats() 382 arr[j++] = allocFree; in VMDebug_getHeapSpaceStats() 383 arr[j++] = zygoteSize; in VMDebug_getHeapSpaceStats() 384 arr[j++] = zygoteUsed; in VMDebug_getHeapSpaceStats() 385 arr[j++] = zygoteFree; in VMDebug_getHeapSpaceStats() 386 arr[j++] = largeObjectsSize; in VMDebug_getHeapSpaceStats() 387 arr[j++] = largeObjectsUsed; in VMDebug_getHeapSpaceStats() [all …]
|
/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/530-checker-lse/src/ |
D | Main.java | 800 private static int testStoreStoreWithDeoptimize(int[] arr) { in testStoreStoreWithDeoptimize() argument 806 arr[0] = 1; // One HDeoptimize here. in testStoreStoreWithDeoptimize() 807 arr[1] = 1; in testStoreStoreWithDeoptimize() 808 arr[2] = 1; in testStoreStoreWithDeoptimize() 809 arr[3] = 1; in testStoreStoreWithDeoptimize() 810 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/005-annotations/src/android/test/anno/ |
D | TestAnnotations.java | 31 static private void printAnnotationArray(String prefix, Annotation[] arr) { in printAnnotationArray() argument 35 for (Annotation a : arr) { in printAnnotationArray()
|
/art/runtime/gc/space/ |
D | space_test.h | 116 mirror::Array* arr = o->AsArray<kVerifyNone>(); in InstallClass() local 119 arr->SetLength(length); in InstallClass() 120 EXPECT_EQ(arr->SizeOf<kVerifyNone>(), size); in InstallClass()
|
/art/compiler/ |
D | image_writer.cc | 500 void ImageWriter::AddMethodPointerArray(mirror::PointerArray* arr) { in AddMethodPointerArray() argument 501 DCHECK(arr != nullptr); in AddMethodPointerArray() 503 for (size_t i = 0, len = arr->GetLength(); i < len; i++) { in AddMethodPointerArray() 504 ArtMethod* method = arr->GetElementPtrSize<ArtMethod*>(i, target_ptr_size_); in AddMethodPointerArray() 514 pointer_arrays_.emplace(arr, kBinArtMethodClean); in AddMethodPointerArray() 2170 mirror::PointerArray* arr, in FixupPointerArray() argument 2174 CHECK(arr->IsIntArray() || arr->IsLongArray()) << klass->PrettyClass() << " " << arr; in FixupPointerArray() 2176 const size_t num_elements = arr->GetLength(); in FixupPointerArray() 2177 dst->SetClass(GetImageAddress(arr->GetClass())); in FixupPointerArray() 2180 void* elem = arr->GetElementPtrSize<void*>(i, target_ptr_size_); in FixupPointerArray()
|
D | image_writer.h | 351 void AddMethodPointerArray(mirror::PointerArray* arr) REQUIRES_SHARED(Locks::mutator_lock_); 433 mirror::PointerArray* arr,
|
/art/runtime/openjdkjvmti/ |
D | ti_class.cc | 266 art::MutableHandle<art::mirror::Object> arr(hs.NewHandle<art::mirror::Object>(nullptr)); in ClassPreDefine() local 273 arr.Assign(art::BoxPrimitive(art::Primitive::kPrimLong, val)); in ClassPreDefine() 275 arr.Assign(art::mirror::ByteArray::AllocateAndFill( in ClassPreDefine() 280 if (arr.IsNull()) { in ClassPreDefine() 305 ext->SetOriginalDexFile(arr.Get()); in ClassPreDefine()
|