Lines Matching refs:klass

163                       art::Handle<art::mirror::Class> klass,  in ClassPreDefine()
215 art::Handle<art::mirror::ClassExt> ext(hs.NewHandle(klass->EnsureExtDataPresent(self))); in ClassPreDefine()
273 void ClassLoad(art::Handle<art::mirror::Class> klass) override in ClassLoad()
278 thread->GetJniEnv()->AddLocalReference<jclass>(klass.Get())); in ClassLoad()
288 if (klass->IsTemp()) { in ClassLoad()
295 art::Handle<art::mirror::Class> klass) in ClassPrepare()
299 if (temp_klass.Get() != klass.Get()) { in ClassPrepare()
302 HandleTempClass(thread, temp_klass, klass); in ClassPrepare()
305 thread->GetJniEnv()->AddLocalReference<jclass>(klass.Get())); in ClassPrepare()
322 void AddTempClass(art::Thread* self, jclass klass) { in AddTempClass()
324 jclass global_klass = reinterpret_cast<jclass>(self->GetJniEnv()->NewGlobalRef(klass)); in AddTempClass()
330 art::Handle<art::mirror::Class> klass) in HandleTempClass()
349 FixupTempClass(self, temp_klass, klass); in HandleTempClass()
355 art::Handle<art::mirror::Class> klass) in FixupTempClass()
369 art::mirror::Class* output = klass.Get(); in FixupTempClass()
487 void operator()(art::ObjPtr<art::mirror::Class> klass ATTRIBUTE_UNUSED, in FixupHeap()
549 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in GetClassFields() local
550 if (klass == nullptr) { in GetClassFields()
557 if (klass->IsTemp() || klass->IsRetired()) { in GetClassFields()
565 art::IterationRange<art::StrideIterator<art::ArtField>> ifields = klass->GetIFields(); in GetClassFields()
566 art::IterationRange<art::StrideIterator<art::ArtField>> sfields = klass->GetSFields(); in GetClassFields()
567 size_t array_size = klass->NumInstanceFields() + klass->NumStaticFields(); in GetClassFields()
597 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in GetClassMethods() local
598 if (klass == nullptr) { in GetClassMethods()
605 if (klass->IsTemp() || klass->IsRetired()) { in GetClassMethods()
613 size_t array_size = klass->NumDeclaredVirtualMethods() + klass->NumDirectMethods(); in GetClassMethods()
623 for (auto& m ATTRIBUTE_UNUSED : klass->GetDeclaredMethods(art::kRuntimePointerSize)) { in GetClassMethods()
626 CHECK_EQ(count, klass->NumDirectMethods() + klass->NumDeclaredVirtualMethods()); in GetClassMethods()
630 for (auto& m : klass->GetDeclaredMethods(art::kRuntimePointerSize)) { in GetClassMethods()
646 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in GetImplementedInterfaces() local
647 if (klass == nullptr) { in GetImplementedInterfaces()
657 if (klass->IsArrayClass()) { in GetImplementedInterfaces()
663 size_t array_size = klass->NumDirectInterfaces(); in GetImplementedInterfaces()
672 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(klass)); in GetImplementedInterfaces()
697 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in GetClassSignature() local
698 if (klass == nullptr) { in GetClassSignature()
705 const char* descriptor = klass->GetDescriptor(&storage); in GetClassSignature()
717 if (!klass->IsProxyClass() && klass->GetDexCache() != nullptr) { in GetClassSignature()
719 art::Handle<art::mirror::Class> h_klass = hs.NewHandle(klass); in GetClassSignature()
751 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in GetClassStatus() local
752 if (klass == nullptr) { in GetClassStatus()
760 if (klass->IsArrayClass()) { in GetClassStatus()
762 } else if (klass->IsPrimitive()) { in GetClassStatus()
767 if (klass->IsResolved()) { in GetClassStatus()
770 if (klass->IsInitialized()) { in GetClassStatus()
774 if (klass->IsErroneous()) { in GetClassStatus()
785 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in ClassIsT() local
786 if (klass == nullptr) { in ClassIsT()
794 *is_t_ptr = test(klass) ? JNI_TRUE : JNI_FALSE; in ClassIsT()
801 auto test = [](art::ObjPtr<art::mirror::Class> klass) REQUIRES_SHARED(art::Locks::mutator_lock_) { in IsInterface()
802 return klass->IsInterface(); in IsInterface()
810 auto test = [](art::ObjPtr<art::mirror::Class> klass) REQUIRES_SHARED(art::Locks::mutator_lock_) { in IsArrayClass()
811 return klass->IsArrayClass(); in IsArrayClass()
817 static uint32_t ClassGetModifiers(art::Thread* self, art::ObjPtr<art::mirror::Class> klass) in ClassGetModifiers() argument
819 if (klass->IsArrayClass()) { in ClassGetModifiers()
820 uint32_t component_modifiers = ClassGetModifiers(self, klass->GetComponentType()); in ClassGetModifiers()
827 uint32_t modifiers = klass->GetAccessFlags() & art::kAccJavaFlagsMask; in ClassGetModifiers()
830 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(klass)); in ClassGetModifiers()
838 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in GetClassModifiers() local
839 if (klass == nullptr) { in GetClassModifiers()
847 *modifiers_ptr = ClassGetModifiers(soa.Self(), klass); in GetClassModifiers()
856 art::ObjPtr<art::mirror::Class> klass = soa.Decode<art::mirror::Class>(jklass); in GetClassLoader() local
857 if (klass == nullptr) { in GetClassLoader()
865 *classloader_ptr = soa.AddLocalReference<jobject>(klass->GetClassLoader()); in GetClassLoader()
998 bool operator()(art::ObjPtr<art::mirror::Class> klass) { in GetClassLoaderClasses()
999 DCHECK(klass != nullptr); in GetClassLoaderClasses()
1024 bool operator()(art::ObjPtr<art::mirror::Class> klass) in GetClassLoaderClasses()
1026 DCHECK(klass != nullptr); in GetClassLoaderClasses()
1028 local_class_array[count++] = soa_ptr->AddLocalReference<jclass>(klass); in GetClassLoaderClasses()
1059 art::ObjPtr<art::mirror::Class> klass = jklass_obj->AsClass(); in GetClassVersionNumbers() local
1060 if (klass->IsPrimitive() || klass->IsArrayClass()) { in GetClassVersionNumbers()
1070 uint32_t version = klass->GetDexFile().GetHeader().GetVersion(); in GetClassVersionNumbers()
1087 art::ObjPtr<art::mirror::Class> klass = jklass_obj->AsClass(); in GetSourceFileName() local
1088 if (klass->IsPrimitive() || klass->IsArrayClass()) { in GetSourceFileName()
1092 const char* file_name = klass->GetSourceFile(); in GetSourceFileName()
1117 art::Handle<art::mirror::Class> klass(hs.NewHandle(jklass_obj->AsClass())); in GetSourceDebugExtension() local
1118 if (klass->IsPrimitive() || klass->IsArrayClass()) { in GetSourceDebugExtension()
1122 const char* data = art::annotations::GetSourceDebugExtension(klass); in GetSourceDebugExtension()