Lines Matching refs:mirror
32 inline mirror::Class* ClassLinker::FindSystemClass(Thread* self, const char* descriptor) { in FindSystemClass()
33 return FindClass(self, descriptor, ScopedNullHandle<mirror::ClassLoader>()); in FindSystemClass()
36 inline mirror::Class* ClassLinker::FindArrayClass(Thread* self, mirror::Class** element_class) { in FindArrayClass()
39 mirror::Class* array_class = find_array_class_cache_[i].Read(); in FindArrayClass()
48 Handle<mirror::ClassLoader> class_loader(hs.NewHandle((*element_class)->GetClassLoader())); in FindArrayClass()
49 HandleWrapper<mirror::Class> h_element_class(hs.NewHandleWrapper(element_class)); in FindArrayClass()
50 mirror::Class* array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
54 find_array_class_cache_[victim_index] = GcRoot<mirror::Class>(array_class); in FindArrayClass()
63 inline mirror::String* ClassLinker::ResolveString(uint32_t string_idx, ArtMethod* referrer) { in ResolveString()
64 mirror::Class* declaring_class = referrer->GetDeclaringClass(); in ResolveString()
67 mirror::String* resolved_string = declaring_class->GetDexCacheStrings()[string_idx].Read(); in ResolveString()
70 Handle<mirror::DexCache> dex_cache(hs.NewHandle(declaring_class->GetDexCache())); in ResolveString()
80 inline mirror::Class* ClassLinker::ResolveType(uint16_t type_idx, ArtMethod* referrer) { in ResolveType()
81 mirror::Class* resolved_type = referrer->GetDexCacheResolvedType(type_idx, image_pointer_size_); in ResolveType()
83 mirror::Class* declaring_class = referrer->GetDeclaringClass(); in ResolveType()
85 Handle<mirror::DexCache> dex_cache(hs.NewHandle(declaring_class->GetDexCache())); in ResolveType()
86 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
95 inline mirror::Class* ClassLinker::ResolveType(uint16_t type_idx, ArtField* referrer) { in ResolveType()
96 mirror::Class* declaring_class = referrer->GetDeclaringClass(); in ResolveType()
97 mirror::DexCache* dex_cache_ptr = declaring_class->GetDexCache(); in ResolveType()
98 mirror::Class* resolved_type = dex_cache_ptr->GetResolvedType(type_idx); in ResolveType()
101 Handle<mirror::DexCache> dex_cache(hs.NewHandle(dex_cache_ptr)); in ResolveType()
102 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
119 inline mirror::Class* ClassLinker::ResolveReferencedClassOfMethod( in ResolveReferencedClassOfMethod()
121 Handle<mirror::DexCache> dex_cache, in ResolveReferencedClassOfMethod()
122 Handle<mirror::ClassLoader> class_loader) { in ResolveReferencedClassOfMethod()
133 mirror::Class* resolved_type = dex_cache->GetResolvedType(method.class_idx_); in ResolveReferencedClassOfMethod()
147 mirror::Class* declaring_class = referrer->GetDeclaringClass(); in ResolveMethod()
149 Handle<mirror::DexCache> h_dex_cache(hs.NewHandle(declaring_class->GetDexCache())); in ResolveMethod()
150 Handle<mirror::ClassLoader> h_class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveMethod()
164 inline ArtField* ClassLinker::GetResolvedField(uint32_t field_idx, mirror::DexCache* dex_cache) { in GetResolvedField()
169 uint32_t field_idx, mirror::Class* field_declaring_class) { in GetResolvedField()
175 mirror::Class* declaring_class = referrer->GetDeclaringClass(); in ResolveField()
179 Handle<mirror::DexCache> dex_cache(hs.NewHandle(declaring_class->GetDexCache())); in ResolveField()
180 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveField()
189 inline mirror::Object* ClassLinker::AllocObject(Thread* self) { in AllocObject()
196 inline mirror::ObjectArray<T>* ClassLinker::AllocObjectArray(Thread* self, size_t length) { in AllocObjectArray()
197 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length); in AllocObjectArray()
200 inline mirror::ObjectArray<mirror::Class>* ClassLinker::AllocClassArray(Thread* self, in AllocClassArray()
202 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length); in AllocClassArray()
205 inline mirror::ObjectArray<mirror::String>* ClassLinker::AllocStringArray(Thread* self, in AllocStringArray()
207 return mirror::ObjectArray<mirror::String>::Alloc(self, in AllocStringArray()
212 inline mirror::IfTable* ClassLinker::AllocIfTable(Thread* self, size_t ifcount) { in AllocIfTable()
213 return down_cast<mirror::IfTable*>( in AllocIfTable()
214 mirror::IfTable::Alloc(self, in AllocIfTable()
216 ifcount * mirror::IfTable::kMax)); in AllocIfTable()
219 inline mirror::Class* ClassLinker::GetClassRoot(ClassRoot class_root) in GetClassRoot()
222 mirror::ObjectArray<mirror::Class>* class_roots = class_roots_.Read(); in GetClassRoot()
223 mirror::Class* klass = class_roots->Get(class_root); in GetClassRoot()