Lines Matching refs:ObjPtr

176   ObjPtr<mirror::Class> exception_class = class_linker->FindClass(self, descriptor, class_loader);  in HasInitWithString()
190 static ObjPtr<mirror::Object> GetVerifyError(ObjPtr<mirror::Class> c) in GetVerifyError()
192 ObjPtr<mirror::ClassExt> ext(c->GetExtData()); in GetVerifyError()
203 ObjPtr<mirror::Class> c) in HandleEarlierVerifyError()
205 ObjPtr<mirror::Object> obj = GetVerifyError(c); in HandleEarlierVerifyError()
222 ObjPtr<mirror::Class> throwable_class = GetClassRoot<mirror::Throwable>(class_linker); in HandleEarlierVerifyError()
223 ObjPtr<mirror::Class> error_class = obj->GetClass(); in HandleEarlierVerifyError()
289 void AddClass(Thread* self, ObjPtr<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_) { in AddClass()
329 klass.Assign(ObjPtr<mirror::Class>::DownCast(self->DecodeJObject(classes_[i]))); in AdjustThreadVisibilityCounter()
519 void ClassLinker::ThrowEarlierClassFailure(ObjPtr<mirror::Class> c, in ThrowEarlierClassFailure()
529 ObjPtr<mirror::Object> verify_error = GetVerifyError(c); in ThrowEarlierClassFailure()
547 ObjPtr<mirror::Throwable> pre_allocated = runtime->GetPreAllocatedNoClassDefFoundError(); in ThrowEarlierClassFailure()
550 ObjPtr<mirror::Object> verify_error = GetVerifyError(c); in ThrowEarlierClassFailure()
720 ObjPtr<mirror::Class> c2 = FindSystemClass(self, descriptor); in CheckSystemClass()
758 Handle<mirror::Class> java_lang_Class(hs.NewHandle(ObjPtr<mirror::Class>::DownCast( in InitWithoutImage()
800 SubtypeCheck<ObjPtr<mirror::Class>>::EnsureInitialized(java_lang_Object.Get()); in InitWithoutImage()
801 SubtypeCheck<ObjPtr<mirror::Class>>::EnsureInitialized(java_lang_Class.Get()); in InitWithoutImage()
995 ObjPtr<mirror::Class> class_root = FindSystemClass(self, "Ljava/lang/reflect/Field;"); in InitWithoutImage()
1121 ObjPtr<mirror::Class> string_factory_class = in CreateStringInitBindings()
1124 ObjPtr<mirror::Class> string_class = GetClassRoot<mirror::String>(class_linker); in CreateStringInitBindings()
1168 ObjPtr<mirror::Class> klass = GetClassRoot(class_root); in FinishInit()
1187 ObjPtr<mirror::Class> soe_klass = FindSystemClass(self, "Ljava/lang/StackOverflowError;"); in FinishInit()
1200 ObjPtr<mirror::Class> c = GetClassRoot(ClassRoot(i), this); in RunRootClinits()
1319 ObjPtr<mirror::Class> klass = obj->AsClass(); in InitFromBootImage()
1346 ObjPtr<mirror::ObjectArray<mirror::Class>>::DownCast( in InitFromBootImage()
1351 ObjPtr<mirror::ObjectArray<mirror::Object>> boot_image_live_objects = in InitFromBootImage()
1352 ObjPtr<mirror::ObjectArray<mirror::Object>>::DownCast( in InitFromBootImage()
1390 ObjPtr<mirror::ClassLoader> class_loader) { in IsBootClassLoader()
1403 bool operator()(ObjPtr<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_) { in operator ()()
1427 void TestObject(ObjPtr<mirror::Object> referred_obj) const in TestObject()
1432 ObjPtr<mirror::String> referred_str = referred_obj->AsString(); in TestObject()
1454 void operator()(ObjPtr<mirror::Object> obj, in operator ()()
1459 ObjPtr<mirror::Object> referred_obj = in operator ()()
1464 void operator()(ObjPtr<mirror::Class> klass ATTRIBUTE_UNUSED, in operator ()()
1465 ObjPtr<mirror::Reference> ref) const in operator ()()
1542 ObjPtr<mirror::DexCache> dex_cache = in VisitInternedStringReferences()
1548 ObjPtr<mirror::String> referred_string = source.object.Read(); in VisitInternedStringReferences()
1551 ObjPtr<mirror::String> visited = visitor(referred_string); in VisitInternedStringReferences()
1563 ObjPtr<mirror::DexCache> dex_cache = in VisitInternedStringReferences()
1573 ObjPtr<mirror::String> referred_string = in VisitInternedStringReferences()
1576 ObjPtr<mirror::String> visited = visitor(referred_string); in VisitInternedStringReferences()
1590 ObjPtr<mirror::Object> obj_ptr = in VisitInternedStringReferences()
1593 ObjPtr<mirror::String> referred_string = in VisitInternedStringReferences()
1600 ObjPtr<mirror::String> visited = visitor(referred_string); in VisitInternedStringReferences()
1625 [&image_interns, &num_recorded_refs](ObjPtr<mirror::String> str) in VerifyInternedStringReferences()
1697 ObjPtr<mirror::Class> klass = types[j].load(std::memory_order_relaxed).object.Read(); in Update()
1704 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in Update()
1749 ObjPtr<mirror::Class> klass = method.GetDeclaringClassUnchecked(); in Update()
1782 ObjPtr<mirror::String> string = it->Read(); in HandleAppImageStrings()
1783 ObjPtr<mirror::String> existing = intern_table->LookupWeakLocked(string); in HandleAppImageStrings()
1800 ObjPtr<mirror::String> existing = root.Read(); in HandleAppImageStrings()
1809 ObjPtr<mirror::String> string = root.Read(); in HandleAppImageStrings()
1821 [&intern_remap](ObjPtr<mirror::String> str) REQUIRES_SHARED(Locks::mutator_lock_) { in HandleAppImageStrings()
1824 return ObjPtr<mirror::String>(it->second); in HandleAppImageStrings()
1866 ObjPtr<mirror::Object> dex_caches_object = header.GetImageRoot(ImageHeader::kDexCaches); in OpenImageDexFiles()
1868 ObjPtr<mirror::ObjectArray<mirror::DexCache>> dex_caches = in OpenImageDexFiles()
1908 ObjPtr<mirror::PointerArray> vtable = klass->GetVTable(); in CheckObjects()
1923 ObjPtr<mirror::IfTable> iftable = klass->GetIfTable(); in CheckObjects()
1958 void CheckArtMethod(ArtMethod* m, ObjPtr<mirror::Class> expected_class) in CheckArtMethod()
1961 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClassUnchecked(); in CheckArtMethod()
1979 void CheckArtMethodPointerArray(ObjPtr<mirror::PointerArray> arr, in CheckArtMethodPointerArray()
1980 ObjPtr<mirror::Class> expected_class) in CheckArtMethodPointerArray()
2034 ObjPtr<mirror::Class> klass = method.GetDeclaringClass(); in VerifyAppImage()
2042 std::vector<ObjPtr<mirror::Class>> classes; in VerifyAppImage()
2043 auto verify_direct_interfaces_in_table = [&](ObjPtr<mirror::Class> klass) in VerifyAppImage()
2052 for (ObjPtr<mirror::Class> klass : classes) { in VerifyAppImage()
2063 ObjPtr<mirror::Class> klass = types[j].load(std::memory_order_relaxed).object.Read(); in VerifyAppImage()
2082 ObjPtr<mirror::Object> dex_caches_object = header.GetImageRoot(ImageHeader::kDexCaches); in AddImageSpace()
2117 ObjPtr<mirror::ObjectArray<mirror::Class>> existing_class_roots = GetClassRoots(); in AddImageSpace()
2147 ObjPtr<mirror::Class> klass = types[j].load(std::memory_order_relaxed).object.Read(); in AddImageSpace()
2242 ObjPtr<mirror::ClassLoader> loader(class_loader.Get()); in AddImageSpace()
2246 ObjPtr<mirror::Class> klass(root.Read()); in AddImageSpace()
2271 SubtypeCheck<ObjPtr<mirror::Class>>::EnsureInitialized(root.Read()); in AddImageSpace()
2296 bool ClassLinker::ClassInClassTable(ObjPtr<mirror::Class> klass) { in ClassInClassTable()
2345 ObjPtr<mirror::Class> old_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots()
2347 ObjPtr<mirror::Class> new_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots()
2353 ObjPtr<mirror::Object> old_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots()
2357 ObjPtr<mirror::Object> new_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots()
2394 void Visit(ObjPtr<mirror::ClassLoader> class_loader) in Visit()
2412 DefiningClassLoaderFilterVisitor(ObjPtr<mirror::ClassLoader> defining_class_loader, in DefiningClassLoaderFilterVisitor()
2416 bool operator()(ObjPtr<mirror::Class> klass) override REQUIRES_SHARED(Locks::mutator_lock_) { in operator ()()
2423 const ObjPtr<mirror::ClassLoader> defining_class_loader_;
2453 bool operator()(ObjPtr<mirror::Class> klass) override { in operator ()()
2457 std::vector<ObjPtr<mirror::Class>> classes_;
2465 bool operator()(ObjPtr<mirror::Class> klass) override REQUIRES_SHARED(Locks::mutator_lock_) { in operator ()()
2490 for (ObjPtr<mirror::Class> klass : accumulator.classes_) { in VisitClassesWithoutClassesLock()
2508 ObjPtr<mirror::Class> array_of_class = GetClassRoot<mirror::ObjectArray<mirror::Class>>(this); in VisitClassesWithoutClassesLock()
2522 ObjPtr<mirror::Class> klass = classes->Get(i); in VisitClassesWithoutClassesLock()
2581 ObjPtr<mirror::PointerArray> ClassLinker::AllocPointerArray(Thread* self, size_t length) { in AllocPointerArray()
2582 return ObjPtr<mirror::PointerArray>::DownCast( in AllocPointerArray()
2584 ? ObjPtr<mirror::Array>(mirror::LongArray::Alloc(self, length)) in AllocPointerArray()
2585 : ObjPtr<mirror::Array>(mirror::IntArray::Alloc(self, length))); in AllocPointerArray()
2588 ObjPtr<mirror::DexCache> ClassLinker::AllocDexCache(/*out*/ ObjPtr<mirror::String>* out_location, in AllocDexCache()
2593 auto dex_cache(hs.NewHandle(ObjPtr<mirror::DexCache>::DownCast( in AllocDexCache()
2601 ObjPtr<mirror::String> location = intern_table_->InternWeak(dex_file.GetLocation().c_str()); in AllocDexCache()
2610 ObjPtr<mirror::DexCache> ClassLinker::AllocAndInitializeDexCache(Thread* self, in AllocAndInitializeDexCache()
2613 ObjPtr<mirror::String> location = nullptr; in AllocAndInitializeDexCache()
2614 ObjPtr<mirror::DexCache> dex_cache = AllocDexCache(&location, self, dex_file); in AllocAndInitializeDexCache()
2629 ObjPtr<mirror::Class> ClassLinker::AllocClass(Thread* self, in AllocClass()
2630 ObjPtr<mirror::Class> java_lang_Class, in AllocClass()
2635 ObjPtr<mirror::Object> k = (kMovingClasses && kMovable) ? in AllocClass()
2646 ObjPtr<mirror::Class> ClassLinker::AllocClass(Thread* self, in AllocClass()
2647 ObjPtr<mirror::Class> java_lang_Class, in AllocClass()
2653 ObjPtr<mirror::Class> ClassLinker::AllocClass(Thread* self, uint32_t class_size) { in AllocClass()
2666 ObjPtr<mirror::Class> array_class = AllocClass</* kMovable= */ false>( in AllocPrimitiveArrayClass()
2668 ObjPtr<mirror::Class> component_type = GetClassRoot(primitive_root, this); in AllocPrimitiveArrayClass()
2674 void ClassLinker::FinishArrayClassSetup(ObjPtr<mirror::Class> array_class) { in FinishArrayClassSetup()
2675 ObjPtr<mirror::Class> java_lang_Object = GetClassRoot<mirror::Object>(this); in FinishArrayClassSetup()
2679 ObjPtr<mirror::Class> component_type = array_class->GetComponentType(); in FinishArrayClassSetup()
2703 ObjPtr<mirror::IfTable> array_iftable = GetArrayIfTable(); in FinishArrayClassSetup()
2729 ObjPtr<mirror::Class> array_class = GetClassRoot(array_root, this); in FinishCoreArrayClassSetup()
2735 ObjPtr<mirror::Class> existing = InsertClass(descriptor, array_class, hash); in FinishCoreArrayClassSetup()
2739 ObjPtr<mirror::ObjectArray<mirror::StackTraceElement>> ClassLinker::AllocStackTraceElementArray( in AllocStackTraceElementArray()
2746 ObjPtr<mirror::Class> ClassLinker::EnsureResolved(Thread* self, in EnsureResolved()
2748 ObjPtr<mirror::Class> klass) { in EnsureResolved()
2843 /*out*/ ObjPtr<mirror::Class>* result) { in FindClassInSharedLibraries()
2846 ObjPtr<mirror::Object> raw_shared_libraries = field->GetObject(class_loader.Get()); in FindClassInSharedLibraries()
2872 /*out*/ ObjPtr<mirror::Class>* result) { in FindClassInBaseDexClassLoader()
2954 ALWAYS_INLINE bool MatchesDexFileCaughtExceptions(ObjPtr<mirror::Throwable> throwable, in MatchesDexFileCaughtExceptions()
2978 ObjPtr<mirror::Class> ClassLinker::FindClassInBootClassLoaderClassPath(Thread* self, in FindClassInBootClassLoaderClassPath()
2981 ObjPtr<mirror::Class> result = nullptr; in FindClassInBootClassLoaderClassPath()
2984 ObjPtr<mirror::Class> klass = LookupClass(self, descriptor, hash, nullptr); in FindClassInBootClassLoaderClassPath()
3003 ObjPtr<mirror::Class> ClassLinker::FindClassInBaseDexClassLoaderClassPath( in FindClassInBaseDexClassLoaderClassPath()
3013 ObjPtr<mirror::Class> ret; in FindClassInBaseDexClassLoaderClassPath()
3017 ObjPtr<mirror::Class> klass = DefineClass(soa.Self(), in FindClassInBaseDexClassLoaderClassPath()
3040 ObjPtr<mirror::Class> ClassLinker::FindClass(Thread* self, in FindClass()
3054 ObjPtr<mirror::Class> klass = LookupClass(self, descriptor, hash, class_loader.Get()); in FindClass()
3073 ObjPtr<mirror::Throwable> pre_allocated = in FindClass()
3079 ObjPtr<mirror::Class> result_ptr; in FindClass()
3111 ObjPtr<mirror::Throwable> pre_allocated = in FindClass()
3187 ObjPtr<mirror::Class> old; in FindClass()
3203 ObjPtr<mirror::Class> loader_class = class_loader->GetClass(); in FindClass()
3243 ObjPtr<mirror::Class> Finish(Handle<mirror::Class> h_klass) in Finish()
3253 ObjPtr<mirror::Class> Finish(ObjPtr<mirror::Class> klass) in Finish()
3260 ObjPtr<mirror::Class> Finish(nullptr_t np ATTRIBUTE_UNUSED) in Finish()
3271 ObjPtr<mirror::Class> ClassLinker::DefineClass(Thread* self, in DefineClass()
3305 ObjPtr<mirror::Throwable> pre_allocated = in DefineClass()
3316 ObjPtr<mirror::Throwable> pre_allocated = in DefineClass()
3354 ObjPtr<mirror::DexCache> dex_cache = RegisterDexFile(*new_dex_file, class_loader.Get()); in DefineClass()
3375 ObjPtr<mirror::Class> existing = InsertClass(descriptor, klass.Get(), hash); in DefineClass()
3609 void ClassLinker::FixupStaticTrampolines(Thread* self, ObjPtr<mirror::Class> klass) { in FixupStaticTrampolines()
3770 ObjPtr<mirror::ClassLoader> class_loader) { in SetupClass()
3824 LinearAlloc* ClassLinker::GetAllocatorForClassLoader(ObjPtr<mirror::ClassLoader> class_loader) { in GetAllocatorForClassLoader()
3833 LinearAlloc* ClassLinker::GetOrCreateAllocatorForClassLoader(ObjPtr<mirror::ClassLoader> class_load… in GetOrCreateAllocatorForClassLoader()
4032 ObjPtr<mirror::DexCache> dex_cache = AllocAndInitializeDexCache( in AppendToBootClassPath()
4041 ObjPtr<mirror::DexCache> dex_cache) { in AppendToBootClassPath()
4050 ObjPtr<mirror::DexCache> dex_cache, in RegisterDexFileLocked()
4051 ObjPtr<mirror::ClassLoader> class_loader) { in RegisterDexFileLocked()
4121 ObjPtr<mirror::DexCache> ClassLinker::DecodeDexCacheLocked(Thread* self, const DexCacheData* data) { in DecodeDexCacheLocked()
4123 ? ObjPtr<mirror::DexCache>::DownCast(self->DecodeJObject(data->weak_root)) in DecodeDexCacheLocked()
4128 ObjPtr<mirror::DexCache> dex_cache, in IsSameClassLoader()
4130 ObjPtr<mirror::ClassLoader> class_loader) { in IsSameClassLoader()
4136 void ClassLinker::RegisterExistingDexCache(ObjPtr<mirror::DexCache> dex_cache, in RegisterExistingDexCache()
4137 ObjPtr<mirror::ClassLoader> class_loader) { in RegisterExistingDexCache()
4148 ObjPtr<mirror::DexCache> old_dex_cache = DecodeDexCacheLocked(self, old_data); in RegisterExistingDexCache()
4178 ObjPtr<mirror::DexCache> ClassLinker::RegisterDexFile(const DexFile& dex_file, in RegisterDexFile()
4179 ObjPtr<mirror::ClassLoader> class_loader) { in RegisterDexFile()
4181 ObjPtr<mirror::DexCache> old_dex_cache; in RegisterDexFile()
4215 ObjPtr<mirror::String> location; in RegisterDexFile()
4276 ObjPtr<mirror::DexCache> ClassLinker::FindDexCache(Thread* self, const DexFile& dex_file) { in FindDexCache()
4279 ObjPtr<mirror::DexCache> dex_cache = DecodeDexCacheLocked(self, dex_cache_data); in FindDexCache()
4294 ClassTable* ClassLinker::FindClassTable(Thread* self, ObjPtr<mirror::DexCache> dex_cache) { in FindClassTable()
4302 ObjPtr<mirror::DexCache> registered_dex_cache = DecodeDexCacheLocked(self, &data); in FindClassTable()
4326 ObjPtr<mirror::Class> primitive_class = in CreatePrimitiveClass()
4342 ObjPtr<mirror::Class> existing = InsertClass(descriptor, in CreatePrimitiveClass()
4349 inline ObjPtr<mirror::IfTable> ClassLinker::GetArrayIfTable() { in GetArrayIfTable()
4366 ObjPtr<mirror::Class> ClassLinker::CreateArrayClass(Thread* self, in CreateArrayClass()
4379 ObjPtr<mirror::Throwable> pre_allocated = in CreateArrayClass()
4421 ObjPtr<mirror::Class> new_class = in CreateArrayClass()
4445 auto visitor = [this, array_class_size, component_type](ObjPtr<mirror::Object> obj, in CreateArrayClass()
4451 ObjPtr<mirror::Class> klass = ObjPtr<mirror::Class>::DownCast(obj); in CreateArrayClass()
4466 ObjPtr<mirror::Class> existing = InsertClass(descriptor, new_class.Get(), hash); in CreateArrayClass()
4486 ObjPtr<mirror::Class> ClassLinker::LookupPrimitiveClass(char type) { in LookupPrimitiveClass()
4504 ObjPtr<mirror::Class> ClassLinker::FindPrimitiveClass(char type) { in FindPrimitiveClass()
4505 ObjPtr<mirror::Class> result = LookupPrimitiveClass(type); in FindPrimitiveClass()
4513 ObjPtr<mirror::Class> ClassLinker::InsertClass(const char* descriptor, in InsertClass()
4514 ObjPtr<mirror::Class> klass, in InsertClass()
4518 ObjPtr<mirror::DexCache> dex_cache = klass->GetDexCache(); in InsertClass()
4528 const ObjPtr<mirror::ClassLoader> class_loader = klass->GetClassLoader(); in InsertClass()
4530 ObjPtr<mirror::Class> existing = class_table->Lookup(descriptor, hash); in InsertClass()
4562 void ClassLinker::UpdateClassMethods(ObjPtr<mirror::Class> klass, in UpdateClassMethods()
4571 ObjPtr<mirror::Class> ClassLinker::LookupClass(Thread* self, in LookupClass()
4573 ObjPtr<mirror::ClassLoader> class_loader) { in LookupClass()
4577 ObjPtr<mirror::Class> ClassLinker::LookupClass(Thread* self, in LookupClass()
4580 ObjPtr<mirror::ClassLoader> class_loader) { in LookupClass()
4584 ObjPtr<mirror::Class> result = class_table->Lookup(descriptor, hash); in LookupClass()
4596 void Visit(ObjPtr<mirror::ClassLoader> class_loader) in Visit()
4618 std::vector<ObjPtr<mirror::Class>>* result) in LookupClassesVisitor()
4623 void Visit(ObjPtr<mirror::ClassLoader> class_loader) in Visit()
4626 ObjPtr<mirror::Class> klass = class_table->Lookup(descriptor_, hash_); in Visit()
4636 std::vector<ObjPtr<mirror::Class>>* const result_;
4640 std::vector<ObjPtr<mirror::Class>>& result) { in LookupClasses()
4645 ObjPtr<mirror::Class> klass = boot_class_table_->Lookup(descriptor, hash); in LookupClasses()
4931 ObjPtr<mirror::Class> klass, in VerifyClassUsingOatFile()
5012 ObjPtr<mirror::Class> exception_type = ResolveType(iterator.GetHandlerTypeIndex(), method); in ResolveMethodExceptionHandlerTypes()
5023 ObjPtr<mirror::Class> ClassLinker::CreateProxyClass(ScopedObjectAccessAlreadyRunnable& soa, in CreateProxyClass()
5036 ObjPtr<mirror::Throwable> pre_allocated = in CreateProxyClass()
5073 ObjPtr<mirror::Class> existing = InsertClass(descriptor, temp_klass.Get(), hash); in CreateProxyClass()
5210 SubtypeCheck<ObjPtr<mirror::Class>>::EnsureInitialized(klass.Get()); in CreateProxyClass()
5256 ObjPtr<mirror::Class> proxy_class = GetClassRoot<mirror::Proxy>(this); in CreateProxyConstructor()
5331 bool ClassLinker::CanWeInitializeClass(ObjPtr<mirror::Class> klass, bool can_init_statics, in CanWeInitializeClass()
5356 ObjPtr<mirror::Class> iface = klass->GetIfTable()->GetInterface(i); in CanWeInitializeClass()
5367 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in CanWeInitializeClass()
5507 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in InitializeClass()
5697 ObjPtr<mirror::Class> super_iface = mirror::Class::GetDirectInterface(self, iface.Get(), i); in InitializeDefaultInterfaceRecursive()
5851 ObjPtr<mirror::Class> other_return_type = method2->ResolveReturnType(); in HasSameSignatureWithDifferentClassLoaders()
5903 ObjPtr<mirror::Class> other_param_type = in HasSameSignatureWithDifferentClassLoaders()
6007 SubtypeCheck<ObjPtr<mirror::Class>>::EnsureInitialized(c.Get()); in EnsureInitialized()
6021 void ClassLinker::FixupTemporaryDeclaringClass(ObjPtr<mirror::Class> temp_class, in FixupTemporaryDeclaringClass()
6022 ObjPtr<mirror::Class> new_class) { in FixupTemporaryDeclaringClass()
6050 void ClassLinker::RegisterClassLoader(ObjPtr<mirror::ClassLoader> class_loader) { in RegisterClassLoader()
6066 ClassTable* ClassLinker::InsertClassTableForClassLoader(ObjPtr<mirror::ClassLoader> class_loader) { in InsertClassTableForClassLoader()
6079 ClassTable* ClassLinker::ClassTableForClassLoader(ObjPtr<mirror::ClassLoader> class_loader) { in ClassTableForClassLoader()
6083 static ImTable* FindSuperImt(ObjPtr<mirror::Class> klass, PointerSize pointer_size) in FindSuperImt()
6199 const ObjPtr<mirror::ClassLoader> class_loader = h_new_class.Get()->GetClassLoader(); in LinkClass()
6201 const ObjPtr<mirror::Class> existing = in LinkClass()
6253 ObjPtr<mirror::Class> super_class = ResolveType(super_class_idx, klass.Get()); in LoadSuperAndInterfaces()
6272 ObjPtr<mirror::Class> interface = ResolveType(idx, klass.Get()); in LoadSuperAndInterfaces()
6295 ObjPtr<mirror::Class> super = klass->GetSuperClass(); in LinkSuperClass()
6296 ObjPtr<mirror::Class> object_class = GetClassRoot<mirror::Object>(this); in LinkSuperClass()
6586 vtable = hs.NewHandle(ObjPtr<mirror::PointerArray>::DownCast( in LinkVirtualMethods()
6723 vtable.Assign(ObjPtr<mirror::PointerArray>::DownCast( in LinkVirtualMethods()
6738 ObjPtr<mirror::PointerArray> vtable = AllocPointerArray(self, num_virtual_methods); in LinkVirtualMethods()
6922 ArtMethod* ClassLinker::AddMethodToConflictTable(ObjPtr<mirror::Class> klass, in AddMethodToConflictTable()
6976 ObjPtr<mirror::PointerArray> method_array; in AllocateIfTableMethodArrays()
6978 ObjPtr<mirror::IfTable> if_table = klass->GetSuperClass()->GetIfTable(); in AllocateIfTableMethodArrays()
6985 ObjPtr<mirror::PointerArray>::DownCast(mirror::Object::Clone(old_array, self)); in AllocateIfTableMethodArrays()
7030 void ClassLinker::FillIMTAndConflictTables(ObjPtr<mirror::Class> klass) { in FillIMTAndConflictTables()
7055 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in FillIMTAndConflictTables()
7105 void ClassLinker::FillIMTFromIfTable(ObjPtr<mirror::IfTable> if_table, in FillIMTFromIfTable()
7108 ObjPtr<mirror::Class> klass, in FillIMTFromIfTable()
7115 ObjPtr<mirror::Class> interface = if_table->GetInterface(i); in FillIMTFromIfTable()
7130 ObjPtr<mirror::PointerArray> method_array = if_table->GetMethodArray(i); in FillIMTFromIfTable()
7182 ObjPtr<mirror::Class> interface = if_table->GetInterface(i); in FillIMTFromIfTable()
7188 ObjPtr<mirror::PointerArray> method_array = if_table->GetMethodArray(i); in FillIMTFromIfTable()
7215 const std::unordered_set<ObjPtr<mirror::Class>, HashObjPtr>& classes, in NotSubinterfaceOfAny()
7216 ObjPtr<mirror::Class> val) in NotSubinterfaceOfAny()
7220 for (ObjPtr<mirror::Class> c : classes) { in NotSubinterfaceOfAny()
7247 static size_t FillIfTable(ObjPtr<mirror::IfTable> iftable, in FillIfTable()
7249 const std::vector<ObjPtr<mirror::Class>>& to_process) in FillIfTable()
7254 std::unordered_set<ObjPtr<mirror::Class>, HashObjPtr> classes_in_iftable; in FillIfTable()
7257 ObjPtr<mirror::Class> iface = iftable->GetInterface(i); in FillIfTable()
7262 for (ObjPtr<mirror::Class> interface : to_process) { in FillIfTable()
7275 ObjPtr<mirror::Class> super_interface = interface->GetIfTable()->GetInterface(j); in FillIfTable()
7292 ObjPtr<mirror::Class> super_interface = interface->GetIfTable()->GetInterface(j); in FillIfTable()
7302 ObjPtr<mirror::Class> if_a = iftable->GetInterface(i); in FillIfTable()
7304 ObjPtr<mirror::Class> if_b = iftable->GetInterface(j); in FillIfTable()
7336 ObjPtr<mirror::IfTable> super_iftable = klass->GetSuperClass()->GetIfTable(); in SetupInterfaceLookupTable()
7352 ObjPtr<mirror::Class> interface = have_interfaces in SetupInterfaceLookupTable()
7374 ObjPtr<mirror::IfTable> super_iftable = klass->GetSuperClass()->GetIfTable(); in SetupInterfaceLookupTable()
7376 ObjPtr<mirror::Class> super_interface = super_iftable->GetInterface(i); in SetupInterfaceLookupTable()
7389 std::vector<ObjPtr<mirror::Class>> to_add; in SetupInterfaceLookupTable()
7391 ObjPtr<mirror::Class> interface = have_interfaces ? interfaces->Get(i) : in SetupInterfaceLookupTable()
7404 iftable.Assign(ObjPtr<mirror::IfTable>::DownCast( in SetupInterfaceLookupTable()
7447 ObjPtr<mirror::Class> super_temp = (klass->HasSuperClass()) ? klass->GetSuperClass() : nullptr; in CheckClassOwnsVTableEntries()
7658 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in FillImtFromSuperClass()
7666 ObjPtr<mirror::IfTable> if_table = super_class->GetIfTable(); in FillImtFromSuperClass()
7721 ObjPtr<mirror::PointerArray> UpdateVtable(
8049 ObjPtr<mirror::PointerArray> ClassLinker::LinkInterfaceMethodsHelper::UpdateVtable( in UpdateVtable()
8060 ObjPtr<mirror::PointerArray> vtable = ObjPtr<mirror::PointerArray>::DownCast( in UpdateVtable()
8148 ObjPtr<mirror::PointerArray> method_array = iftable->GetMethodArray(i); in UpdateIfTable()
8474 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in LinkFields()
8561 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in LinkFields()
8573 ObjPtr<mirror::Class> cur_super = klass.Get(); in LinkFields()
8649 ObjPtr<mirror::Class> super_class = klass->GetSuperClass(); in CreateReferenceInstanceOffsets()
8675 ObjPtr<mirror::String> ClassLinker::DoResolveString(dex::StringIndex string_idx, in DoResolveString()
8676 ObjPtr<mirror::DexCache> dex_cache) { in DoResolveString()
8682 ObjPtr<mirror::String> ClassLinker::DoResolveString(dex::StringIndex string_idx, in DoResolveString()
8687 ObjPtr<mirror::String> string = intern_table_->InternStrong(utf16_length, utf8_data); in DoResolveString()
8694 ObjPtr<mirror::String> ClassLinker::DoLookupString(dex::StringIndex string_idx, in DoLookupString()
8695 ObjPtr<mirror::DexCache> dex_cache) { in DoLookupString()
8700 ObjPtr<mirror::String> string = in DoLookupString()
8708 ObjPtr<mirror::Class> ClassLinker::DoLookupResolvedType(dex::TypeIndex type_idx, in DoLookupResolvedType()
8709 ObjPtr<mirror::Class> referrer) { in DoLookupResolvedType()
8713 ObjPtr<mirror::Class> ClassLinker::DoLookupResolvedType(dex::TypeIndex type_idx, in DoLookupResolvedType()
8714 ObjPtr<mirror::DexCache> dex_cache, in DoLookupResolvedType()
8715 ObjPtr<mirror::ClassLoader> class_loader) { in DoLookupResolvedType()
8719 ObjPtr<mirror::Class> type = nullptr; in DoLookupResolvedType()
8742 ObjPtr<mirror::Class> ClassLinker::DoResolveType(dex::TypeIndex type_idx, RefType referrer) { in DoResolveType()
8750 template ObjPtr<mirror::Class> ClassLinker::DoResolveType(dex::TypeIndex type_idx,
8752 template ObjPtr<mirror::Class> ClassLinker::DoResolveType(dex::TypeIndex type_idx,
8754 template ObjPtr<mirror::Class> ClassLinker::DoResolveType(dex::TypeIndex type_idx,
8755 ObjPtr<mirror::Class> referrer);
8757 ObjPtr<mirror::Class> ClassLinker::DoResolveType(dex::TypeIndex type_idx, in DoResolveType()
8762 ObjPtr<mirror::Class> resolved = FindClass(self, descriptor, class_loader); in DoResolveType()
8786 ArtMethod* ClassLinker::FindResolvedMethod(ObjPtr<mirror::Class> klass, in FindResolvedMethod()
8787 ObjPtr<mirror::DexCache> dex_cache, in FindResolvedMethod()
8788 ObjPtr<mirror::ClassLoader> class_loader, in FindResolvedMethod()
8829 ObjPtr<mirror::DexCache> dex_cache, in CheckNoSuchMethod()
8830 ObjPtr<mirror::ClassLoader> class_loader) in CheckNoSuchMethod()
8838 ArtMethod* ClassLinker::FindIncompatibleMethod(ObjPtr<mirror::Class> klass, in FindIncompatibleMethod()
8839 ObjPtr<mirror::DexCache> dex_cache, in FindIncompatibleMethod()
8840 ObjPtr<mirror::ClassLoader> class_loader, in FindIncompatibleMethod()
8880 ObjPtr<mirror::Class> klass = nullptr; in ResolveMethod()
8920 ObjPtr<mirror::Class> methods_class = resolved->GetDeclaringClass(); in ResolveMethod()
8921 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in ResolveMethod()
8968 ObjPtr<mirror::Class> klass = ResolveType(method_id.class_idx_, dex_cache, class_loader); in ResolveMethodWithoutInvokeType()
8989 ObjPtr<mirror::DexCache> dex_cache, in LookupResolvedField()
8990 ObjPtr<mirror::ClassLoader> class_loader, in LookupResolvedField()
8994 ObjPtr<mirror::Class> klass = dex_cache->GetResolvedType(field_id.class_idx_); in LookupResolvedField()
9020 ObjPtr<mirror::Class> klass = ResolveType(field_id.class_idx_, dex_cache, class_loader); in ResolveField()
9046 ObjPtr<mirror::Class> klass = ResolveType(field_id.class_idx_, dex_cache, class_loader); in ResolveFieldJLS()
9061 ArtField* ClassLinker::FindResolvedField(ObjPtr<mirror::Class> klass, in FindResolvedField()
9062 ObjPtr<mirror::DexCache> dex_cache, in FindResolvedField()
9063 ObjPtr<mirror::ClassLoader> class_loader, in FindResolvedField()
9095 ArtField* ClassLinker::FindResolvedFieldJLS(ObjPtr<mirror::Class> klass, in FindResolvedFieldJLS()
9096 ObjPtr<mirror::DexCache> dex_cache, in FindResolvedFieldJLS()
9097 ObjPtr<mirror::ClassLoader> class_loader, in FindResolvedFieldJLS()
9122 ObjPtr<mirror::MethodType> ClassLinker::ResolveMethodType( in ResolveMethodType()
9130 ObjPtr<mirror::MethodType> resolved = dex_cache->GetResolvedMethodType(proto_idx); in ResolveMethodType()
9153 ObjPtr<mirror::Class> array_of_class = GetClassRoot<mirror::ObjectArray<mirror::Class>>(this); in ResolveMethodType()
9184 ObjPtr<mirror::MethodType> ClassLinker::ResolveMethodType(Thread* self, in ResolveMethodType()
9193 ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForField( in ResolveMethodHandleForField()
9243 ObjPtr<mirror::Class> target_class = target_field->GetDeclaringClass(); in ResolveMethodHandleForField()
9244 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in ResolveMethodHandleForField()
9259 ObjPtr<mirror::Class> array_of_class = GetClassRoot<mirror::ObjectArray<mirror::Class>>(this); in ResolveMethodHandleForField()
9321 ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForMethod( in ResolveMethodHandleForMethod()
9422 ObjPtr<mirror::Class> target_class = target_method->GetDeclaringClass(); in ResolveMethodHandleForMethod()
9423 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in ResolveMethodHandleForMethod()
9437 ObjPtr<mirror::Class> array_of_class = GetClassRoot<mirror::ObjectArray<mirror::Class>>(this); in ResolveMethodHandleForMethod()
9452 ObjPtr<mirror::Class> receiver_class = LookupResolvedType(method_id.class_idx_, referrer); in ResolveMethodHandleForMethod()
9463 ObjPtr<mirror::Class> klass = ResolveType(type_idx, referrer); in ResolveMethodHandleForMethod()
9497 ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandle(Thread* self, in ResolveMethodHandle()
9573 ObjPtr<mirror::ClassLoader> loader = in DumpForSigQuit()
9574 ObjPtr<mirror::ClassLoader>::DownCast(soa.Self()->DecodeJObject(class_loader.weak_root)); in DumpForSigQuit()
9592 ObjPtr<mirror::ClassLoader> loader2 = ObjPtr<mirror::ClassLoader>::DownCast( in DumpForSigQuit()
9621 void Visit(ObjPtr<mirror::ClassLoader> class_loader) in Visit()
9660 void ClassLinker::SetClassRoot(ClassRoot class_root, ObjPtr<mirror::Class> klass) { in SetClassRoot()
9674 ObjPtr<mirror::ClassLoader> ClassLinker::CreateWellKnownClassLoader( in CreateWellKnownClassLoader()
9753 ObjPtr<mirror::Class> list_class = FindSystemClass(self, "Ljava/util/ArrayList;"); in CreateWellKnownClassLoader()
9762 ObjPtr<mirror::Object> list_object = list_class->AllocObject(self); in CreateWellKnownClassLoader()
9772 ObjPtr<mirror::ClassLoader>::DownCast(loader_class->AllocObject(self))); in CreateWellKnownClassLoader()
9790 ObjPtr<mirror::Object> boot_loader(soa.Decode<mirror::Class>( in CreateWellKnownClassLoader()
9831 ObjPtr<mirror::ClassLoader> loader = CreateWellKnownClassLoader( in CreateWellKnownClassLoader()
9861 ObjPtr<mirror::ClassLoader> class_loader = ObjPtr<mirror::ClassLoader>::DownCast( in VisitClassLoaders()
9878 void ClassLinker::InsertDexFileInToClassLoader(ObjPtr<mirror::Object> dex_file, in InsertDexFileInToClassLoader()
9879 ObjPtr<mirror::ClassLoader> class_loader) { in InsertDexFileInToClassLoader()
9901 ObjPtr<mirror::ClassLoader> class_loader = in CleanupClassLoaders()
9902 ObjPtr<mirror::ClassLoader>::DownCast(self->DecodeJObject(data.weak_root)); in CleanupClassLoaders()
9924 bool operator()(ObjPtr<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_) override { in operator ()()
9932 ObjPtr<mirror::Class> holder_ = nullptr;
9937 ObjPtr<mirror::Class> ClassLinker::GetHoldingClassOfCopiedMethod(ArtMethod* method) { in GetHoldingClassOfCopiedMethod()
9945 ObjPtr<mirror::IfTable> ClassLinker::AllocIfTable(Thread* self, size_t ifcount) { in AllocIfTable()
9946 return ObjPtr<mirror::IfTable>::DownCast(ObjPtr<mirror::ObjectArray<mirror::Object>>( in AllocIfTable()
9973 template ObjPtr<mirror::Class> ClassLinker::AllocClass</* kMovable= */ true>(
9975 ObjPtr<mirror::Class> java_lang_Class,
9977 template ObjPtr<mirror::Class> ClassLinker::AllocClass</* kMovable= */ false>(
9979 ObjPtr<mirror::Class> java_lang_Class,