/art/runtime/mirror/ |
D | array.cc | 44 Handle<Class> array_class, int current_dimension, in RecursiveCreateMultiArray() argument 51 Array::Alloc<true>(self, array_class.Get(), array_length, array_class->GetComponentSize(), in RecursiveCreateMultiArray() 61 Handle<mirror::Class> h_component_type(hs.NewHandle(array_class->GetComponentType())); in RecursiveCreateMultiArray() 97 Handle<mirror::Class> array_class( in CreateMultiArray() local 99 if (UNLIKELY(array_class.Get() == nullptr)) { in CreateMultiArray() 104 mirror::Class* array_class_ptr = array_class.Get(); in CreateMultiArray() 105 array_class.Assign(class_linker->FindArrayClass(self, &array_class_ptr)); in CreateMultiArray() 106 if (UNLIKELY(array_class.Get() == nullptr)) { in CreateMultiArray() 112 Array* new_array = RecursiveCreateMultiArray(self, array_class, 0, dimensions); in CreateMultiArray()
|
D | array-inl.h | 58 static inline size_t ComputeArraySize(Thread* self, Class* array_class, int32_t component_count, in ComputeArraySize() argument 61 DCHECK(array_class != NULL); in ComputeArraySize() 63 DCHECK(array_class->IsArrayClass()); in ComputeArraySize() 73 PrettyDescriptor(array_class).c_str(), in ComputeArraySize() 133 inline Array* Array::Alloc(Thread* self, Class* array_class, int32_t component_count, in Alloc() argument 137 size_t size = ComputeArraySize(self, array_class, component_count, component_size); in Alloc() 146 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, array_class, size, in Alloc() 152 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, array_class, size, in Alloc() 156 array_class = result->GetClass(); // In case the array class moved. in Alloc() 157 CHECK_EQ(array_class->GetComponentSize(), component_size); in Alloc()
|
D | array.h | 40 static Array* Alloc(Thread* self, Class* array_class, int32_t component_count, 161 static void SetArrayClass(Class* array_class) { in SetArrayClass() argument 163 CHECK(array_class != nullptr); in SetArrayClass() 164 array_class_ = GcRoot<Class>(array_class); in SetArrayClass()
|
/art/runtime/entrypoints/portable/ |
D | portable_cast_entrypoints.cc | 48 mirror::Class* array_class = array->GetClass(); in art_portable_check_put_array_element_from_code() local 49 DCHECK(array_class != NULL); in art_portable_check_put_array_element_from_code() 50 mirror::Class* component_type = array_class->GetComponentType(); in art_portable_check_put_array_element_from_code() 53 ThrowArrayStoreException(element_class, array_class); in art_portable_check_put_array_element_from_code()
|
/art/runtime/native/ |
D | java_lang_reflect_Array.cc | 56 mirror::Class* array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in Array_createObjectArray() local 57 if (UNLIKELY(array_class == NULL)) { in Array_createObjectArray() 61 DCHECK(array_class->IsObjectArrayClass()); in Array_createObjectArray() 62 mirror::Array* new_array = mirror::Array::Alloc<true>(soa.Self(), array_class, length, in Array_createObjectArray()
|
D | dalvik_system_VMRuntime.cc | 72 mirror::Class* array_class = in VMRuntime_newNonMovableArray() local 74 if (UNLIKELY(array_class == nullptr)) { in VMRuntime_newNonMovableArray() 78 mirror::Array* result = mirror::Array::Alloc<true>(soa.Self(), array_class, length, in VMRuntime_newNonMovableArray() 79 array_class->GetComponentSize(), allocator); in VMRuntime_newNonMovableArray() 96 mirror::Class* array_class = runtime->GetClassLinker()->FindArrayClass(soa.Self(), in VMRuntime_newUnpaddedArray() local 98 if (UNLIKELY(array_class == nullptr)) { in VMRuntime_newUnpaddedArray() 102 mirror::Array* result = mirror::Array::Alloc<true>(soa.Self(), array_class, length, in VMRuntime_newUnpaddedArray() 103 array_class->GetComponentSize(), allocator, in VMRuntime_newUnpaddedArray()
|
/art/runtime/ |
D | class_linker-inl.h | 39 mirror::Class* array_class = find_array_class_cache_[i].Read(); in FindArrayClass() local 40 if (array_class != nullptr && array_class->GetComponentType() == *element_class) { in FindArrayClass() 41 return array_class; in FindArrayClass() 51 mirror::Class* array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass() local 54 find_array_class_cache_[victim_index] = GcRoot<mirror::Class>(array_class); in FindArrayClass() 56 return array_class; in FindArrayClass()
|
D | common_throws.h | 50 void ThrowArrayStoreException(mirror::Class* element_class, mirror::Class* array_class)
|
D | jni_internal_test.cc | 861 jclass array_class = env_->FindClass("[Ljava/lang/String;"); in TEST_F() local 862 ASSERT_NE(array_class, nullptr); in TEST_F() 866 EXPECT_TRUE(env_->IsInstanceOf(a, array_class)); in TEST_F() 871 EXPECT_TRUE(env_->IsInstanceOf(a, array_class)); in TEST_F() 905 jclass array_class = env_->FindClass("[Ljava/lang/String;"); in TEST_F() local 906 ASSERT_NE(array_class, nullptr); in TEST_F() 911 EXPECT_TRUE(env_->IsInstanceOf(a, array_class)); in TEST_F()
|
D | common_throws.cc | 112 void ThrowArrayStoreException(mirror::Class* element_class, mirror::Class* array_class) { in ThrowArrayStoreException() argument 116 PrettyDescriptor(array_class).c_str()).c_str()); in ThrowArrayStoreException()
|
D | class_linker_test.cc | 772 mirror::Class* array_class = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F() local 774 mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), array_class, 0); in TEST_F()
|
D | jni_internal.cc | 2132 mirror::Class* array_class; in NewObjectArray() local 2141 array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in NewObjectArray() 2142 if (UNLIKELY(array_class == nullptr)) { in NewObjectArray() 2149 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), array_class, length); in NewObjectArray()
|
/art/runtime/interpreter/ |
D | interpreter.cc | 36 mirror::Class* array_class = runtime->GetClassLinker()->FindArrayClass(self, &element_class); in UnstartedRuntimeJni() local 37 DCHECK(array_class != nullptr); in UnstartedRuntimeJni() 39 result->SetL(mirror::Array::Alloc<true>(self, array_class, length, in UnstartedRuntimeJni() 40 array_class->GetComponentSize(), allocator, true)); in UnstartedRuntimeJni()
|
/art/runtime/verifier/ |
D | reg_type.cc | 933 mirror::Class* array_class = class_linker->FindArrayClass(Thread::Current(), &common_elem); in ClassJoin() local 934 DCHECK(array_class != NULL); in ClassJoin() 935 return array_class; in ClassJoin()
|