Lines Matching refs:klass
523 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationlevel() local
524 if (klass == nullptr) { in GetDexToDexCompilationlevel()
535 if (klass->IsVerified()) { in GetDexToDexCompilationlevel()
538 } else if (klass->IsCompileTimeVerified()) { in GetDexToDexCompilationlevel()
540 DCHECK_EQ(klass->GetStatus(), mirror::Class::kStatusRetryVerificationAtRuntime); in GetDexToDexCompilationlevel()
686 static bool RecordImageClassesVisitor(mirror::Class* klass, void* arg) in RecordImageClassesVisitor() argument
690 image_classes->insert(klass->GetDescriptor(&temp)); in RecordImageClassesVisitor()
711 Handle<mirror::Class> klass( in LoadImageClasses() local
713 if (klass.Get() == nullptr) { in LoadImageClasses()
738 Handle<mirror::Class> klass(hs.NewHandle( in LoadImageClasses() local
741 if (klass.Get() == nullptr) { in LoadImageClasses()
746 DCHECK(java_lang_Throwable->IsAssignableFrom(klass.Get())); in LoadImageClasses()
765 Handle<mirror::Class> klass(hs.NewHandle(c.Get())); in MaybeAddToImageClasses() local
767 while (!klass->IsObjectClass()) { in MaybeAddToImageClasses()
768 const char* descriptor = klass->GetDescriptor(&temp); in MaybeAddToImageClasses()
774 for (size_t i = 0; i < klass->NumDirectInterfaces(); ++i) { in MaybeAddToImageClasses()
776 MaybeAddToImageClasses(hs.NewHandle(mirror::Class::GetDirectInterface(self, klass, i)), in MaybeAddToImageClasses()
779 if (klass->IsArrayClass()) { in MaybeAddToImageClasses()
781 MaybeAddToImageClasses(hs.NewHandle(klass->GetComponentType()), image_classes); in MaybeAddToImageClasses()
783 klass.Assign(klass->GetSuperClass()); in MaybeAddToImageClasses()
1465 static bool SkipClass(jobject class_loader, const DexFile& dex_file, mirror::Class* klass) in SkipClass() argument
1467 DCHECK(klass != nullptr); in SkipClass()
1468 const DexFile& original_dex_file = *klass->GetDexCache()->GetDexFile(); in SkipClass()
1471 LOG(WARNING) << "Skipping class " << PrettyDescriptor(klass) << " from " in SkipClass()
1535 mirror::Class* klass = class_linker->ResolveType(dex_file, class_def.class_idx_, dex_cache, in ResolveClassFieldsAndMethods() local
1538 if (klass == nullptr) { in ResolveClassFieldsAndMethods()
1545 if (SkipClass(jclass_loader, dex_file, klass)) { in ResolveClassFieldsAndMethods()
1624 mirror::Class* klass = class_linker->ResolveType(dex_file, type_idx, dex_cache, class_loader); in ResolveType() local
1626 if (klass == nullptr) { in ResolveType()
1689 Handle<mirror::Class> klass( in VerifyClass() local
1691 if (klass.Get() == nullptr) { in VerifyClass()
1708 } else if (!SkipClass(jclass_loader, dex_file, klass.Get())) { in VerifyClass()
1709 CHECK(klass->IsResolved()) << PrettyClass(klass.Get()); in VerifyClass()
1710 class_linker->VerifyClass(klass); in VerifyClass()
1712 if (klass->IsErroneous()) { in VerifyClass()
1718 CHECK(klass->IsCompileTimeVerified() || klass->IsErroneous()) in VerifyClass()
1719 << PrettyDescriptor(klass.Get()) << ": state=" << klass->GetStatus(); in VerifyClass()
1746 Handle<mirror::Class> klass( in SetVerifiedClass() local
1749 if (klass.Get() != nullptr) { in SetVerifiedClass()
1752 if (klass->IsResolved()) { in SetVerifiedClass()
1753 if (klass->GetStatus() < mirror::Class::kStatusVerified) { in SetVerifiedClass()
1754 ObjectLock<mirror::Class> lock(soa.Self(), klass); in SetVerifiedClass()
1755 klass->SetStatus(mirror::Class::kStatusVerified, soa.Self()); in SetVerifiedClass()
1759 manager->GetCompiler()->RecordClassStatus(ref, klass->GetStatus()); in SetVerifiedClass()
1791 Handle<mirror::Class> klass( in InitializeClass() local
1794 if (klass.Get() != nullptr && !SkipClass(jclass_loader, dex_file, klass.Get())) { in InitializeClass()
1796 if (klass->IsVerified()) { in InitializeClass()
1799 manager->GetClassLinker()->EnsureInitialized(klass, false, false); in InitializeClass()
1800 if (!klass->IsInitialized()) { in InitializeClass()
1809 Handle<mirror::Class> h_klass(hs.NewHandle(klass->GetClass())); in InitializeClass()
1813 manager->GetClassLinker()->EnsureInitialized(klass, false, true); in InitializeClass()
1814 if (!klass->IsInitialized()) { in InitializeClass()
1831 const mirror::Class::Status old_status = klass->GetStatus(); in InitializeClass()
1832 bool success = manager->GetClassLinker()->EnsureInitialized(klass, true, true); in InitializeClass()
1847 CHECK_EQ(old_status, klass->GetStatus()) << "Previous class status not restored"; in InitializeClass()
1857 manager->GetCompiler()->RecordClassStatus(ref, klass->GetStatus()); in InitializeClass()
1916 Handle<mirror::Class> klass( in CompileClass() local
1918 if (klass.Get() == nullptr) { in CompileClass()
1921 } else if (SkipClass(jclass_loader, dex_file, klass.Get())) { in CompileClass()