Home
last modified time | relevance | path

Searched refs:array_class (Results 1 – 18 of 18) sorted by relevance

/art/runtime/mirror/
Darray.cc45 Handle<Class> array_class, int current_dimension, in RecursiveCreateMultiArray() argument
52 Array::Alloc<true>(self, array_class.Get(), array_length, in RecursiveCreateMultiArray()
53 array_class->GetComponentSizeShift(), in RecursiveCreateMultiArray()
63 Handle<mirror::Class> h_component_type(hs2.NewHandle(array_class->GetComponentType())); in RecursiveCreateMultiArray()
99 MutableHandle<mirror::Class> array_class( in CreateMultiArray() local
101 if (UNLIKELY(array_class == nullptr)) { in CreateMultiArray()
106 ObjPtr<mirror::Class> array_class_ptr = array_class.Get(); in CreateMultiArray()
107 array_class.Assign(class_linker->FindArrayClass(self, &array_class_ptr)); in CreateMultiArray()
108 if (UNLIKELY(array_class == nullptr)) { in CreateMultiArray()
114 ObjPtr<Array> new_array = RecursiveCreateMultiArray(self, array_class, 0, dimensions); in CreateMultiArray()
Darray-inl.h155 ObjPtr<Class> array_class, in Alloc() argument
160 DCHECK(array_class != nullptr); in Alloc()
161 DCHECK(array_class->IsArrayClass()); in Alloc()
162 DCHECK_EQ(array_class->GetComponentSizeShift(), component_size_shift); in Alloc()
163 DCHECK_EQ(array_class->GetComponentSize(), (1U << component_size_shift)); in Alloc()
172 array_class->PrettyDescriptor().c_str(), in Alloc()
182 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, array_class, size, in Alloc()
189 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, array_class, size, in Alloc()
193 array_class = result->GetClass(); // In case the array class moved. in Alloc()
194 CHECK_EQ(array_class->GetComponentSize(), 1U << component_size_shift); in Alloc()
[all …]
Darray.h42 ObjPtr<Class> array_class,
170 static void SetArrayClass(ObjPtr<Class> array_class);
Demulated_stack_frame.cc170 ObjPtr<mirror::Class> array_class(class_linker->GetClassRoot(ClassLinker::kObjectArrayClass)); in CreateFromShadowFrameAndArgs() local
173 mirror::ObjectArray<mirror::Object>::Alloc(self, array_class, refs_size))); in CreateFromShadowFrameAndArgs()
Dvar_handle_test.cc64 Handle<Class> array_class, in CreateArrayElementVarHandle() argument
74 Handle<Class> var_type = hs.NewHandle(array_class->GetComponentType()); in CreateArrayElementVarHandle()
76 InitializeVarHandle(vh.Get(), var_type, array_class, index_type, access_modes_bit_mask); in CreateArrayElementVarHandle()
/art/runtime/native/
Djava_lang_reflect_Array.cc63 ObjPtr<mirror::Class> array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in Array_createObjectArray() local
64 if (UNLIKELY(array_class == nullptr)) { in Array_createObjectArray()
68 DCHECK(array_class->IsObjectArrayClass()); in Array_createObjectArray()
71 array_class, in Array_createObjectArray()
Ddalvik_system_VMRuntime.cc113 ObjPtr<mirror::Class> array_class = in VMRuntime_newNonMovableArray() local
115 if (UNLIKELY(array_class == nullptr)) { in VMRuntime_newNonMovableArray()
120 array_class, in VMRuntime_newNonMovableArray()
122 array_class->GetComponentSizeShift(), in VMRuntime_newNonMovableArray()
140 ObjPtr<mirror::Class> array_class = runtime->GetClassLinker()->FindArrayClass(soa.Self(), in VMRuntime_newUnpaddedArray() local
142 if (UNLIKELY(array_class == nullptr)) { in VMRuntime_newUnpaddedArray()
148 array_class, in VMRuntime_newUnpaddedArray()
150 array_class->GetComponentSizeShift(), in VMRuntime_newUnpaddedArray()
/art/runtime/
Dclass_linker-inl.h40 ObjPtr<mirror::Class> array_class = find_array_class_cache_[i].Read(); in FindArrayClass() local
41 if (array_class != nullptr && array_class->GetComponentType() == *element_class) { in FindArrayClass()
42 return array_class.Ptr(); in FindArrayClass()
51 ObjPtr<mirror::Class> array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass() local
52 if (array_class != nullptr) { in FindArrayClass()
55 find_array_class_cache_[victim_index] = GcRoot<mirror::Class>(array_class); in FindArrayClass()
61 return array_class.Ptr(); in FindArrayClass()
Dcommon_throws.h56 ObjPtr<mirror::Class> array_class)
Djni_internal_test.cc1286 jclass array_class = env_->FindClass("[Ljava/lang/String;"); in TEST_F() local
1287 ASSERT_NE(array_class, nullptr); in TEST_F()
1291 EXPECT_TRUE(env_->IsInstanceOf(a, array_class)); in TEST_F()
1296 EXPECT_TRUE(env_->IsInstanceOf(a, array_class)); in TEST_F()
1337 jclass array_class = env_->FindClass("[Ljava/lang/String;"); in TEST_F() local
1338 ASSERT_NE(array_class, nullptr); in TEST_F()
1343 EXPECT_TRUE(env_->IsInstanceOf(a, array_class)); in TEST_F()
Dcommon_throws.cc130 ObjPtr<mirror::Class> array_class) { in ThrowArrayStoreException() argument
134 mirror::Class::PrettyDescriptor(array_class).c_str()).c_str()); in ThrowArrayStoreException()
Djni_internal.cc2023 ObjPtr<mirror::Class> array_class; in NewObjectArray() local
2033 array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in NewObjectArray()
2034 if (UNLIKELY(array_class == nullptr)) { in NewObjectArray()
2041 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), array_class, length); in NewObjectArray()
Dclass_linker_test.cc1060 mirror::Class* array_class = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F() local
1062 mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), array_class, 0); in TEST_F()
Dthread.cc2513 ObjPtr<mirror::Class> array_class = class_linker->GetClassRoot(ClassLinker::kObjectArrayClass); in Init() local
2518 mirror::ObjectArray<mirror::Object>::Alloc(hs.Self(), array_class, depth + 1))); in Init()
/art/runtime/dex/
Ddex_file_annotations.cc401 Handle<mirror::Class> array_class, in ProcessAnnotationValue() argument
584 if (result_style == DexFile::kAllRaw || array_class == nullptr) { in ProcessAnnotationValue()
590 Handle<mirror::Class> component_type(hs.NewHandle(array_class->GetComponentType())); in ProcessAnnotationValue()
592 self, array_class.Get(), size, array_class->GetComponentSizeShift(), in ProcessAnnotationValue()
820 Handle<mirror::Class> array_class, in GetAnnotationValue() argument
834 array_class, in GetAnnotationValue()
839 array_class, in GetAnnotationValue()
/art/runtime/interpreter/
Dinterpreter_common.cc1442 ObjPtr<mirror::Class> array_class = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in DoFilledNewArray() local
1447 if (UNLIKELY(array_class == nullptr)) { in DoFilledNewArray()
1451 CHECK(array_class->IsArrayClass()); in DoFilledNewArray()
1452 ObjPtr<mirror::Class> component_class = array_class->GetComponentType(); in DoFilledNewArray()
1467 array_class, in DoFilledNewArray()
1469 array_class->GetComponentSizeShift(), in DoFilledNewArray()
Dunstarted_runtime.cc1694 ObjPtr<mirror::Class> array_class = in UnstartedJNIVMRuntimeNewUnpaddedArray() local
1696 DCHECK(array_class != nullptr); in UnstartedJNIVMRuntimeNewUnpaddedArray()
1699 array_class, in UnstartedJNIVMRuntimeNewUnpaddedArray()
1701 array_class->GetComponentSizeShift(), in UnstartedJNIVMRuntimeNewUnpaddedArray()
1822 ObjPtr<mirror::Class> array_class = class_linker->FindArrayClass(self, &element_class); in UnstartedJNIArrayCreateObjectArray() local
1823 if (UNLIKELY(array_class == nullptr)) { in UnstartedJNIArrayCreateObjectArray()
1827 DCHECK(array_class->IsObjectArrayClass()); in UnstartedJNIArrayCreateObjectArray()
1829 self, array_class, length, runtime->GetHeap()->GetCurrentAllocator()); in UnstartedJNIArrayCreateObjectArray()
/art/runtime/verifier/
Dreg_type.cc792 mirror::Class* array_class = class_linker->FindArrayClass(self, &common_elem); in ClassJoin() local
793 if (UNLIKELY(array_class == nullptr)) { in ClassJoin()
797 return array_class; in ClassJoin()