Home
last modified time | relevance | path

Searched refs:ClassStatus (Results 1 – 25 of 32) sorted by relevance

12

/art/dex2oat/dex/
Dquick_compiler_callbacks.cc37 ClassStatus QuickCompilerCallbacks::GetPreviousClassState(ClassReference ref) { in GetPreviousClassState()
41 return ClassStatus::kNotReady; in GetPreviousClassState()
50 void QuickCompilerCallbacks::UpdateClassState(ClassReference ref, ClassStatus status) { in UpdateClassState()
Dquick_compiler_callbacks.h53 ClassStatus GetPreviousClassState(ClassReference ref) override;
62 void UpdateClassState(ClassReference ref, ClassStatus state) override;
/art/runtime/
Daot_class_linker.cc50 if (klass->GetSuperClass()->GetStatus() == ClassStatus::kInitializing) { in InitializeClass()
82 ClassStatus old_status = callbacks->GetPreviousClassState( in PerformClassVerification()
85 if (old_status >= ClassStatus::kVerified) { in PerformClassVerification()
89 if (old_status >= ClassStatus::kRetryVerificationAtRuntime) { in PerformClassVerification()
Dcompiler_callbacks.h59 virtual ClassStatus GetPreviousClassState(ClassReference ref ATTRIBUTE_UNUSED) { in GetPreviousClassState()
60 return ClassStatus::kNotReady; in GetPreviousClassState()
71 ClassStatus state ATTRIBUTE_UNUSED) {} in UpdateClassState()
Dclass_status.h74 enum class ClassStatus : uint8_t { enum
93 std::ostream& operator<<(std::ostream& os, const ClassStatus& rhs);
Dsubtype_check_bits_and_status.h68 static constexpr size_t kClassStatusBitSize = MinimumBitsToStore(enum_cast<>(ClassStatus::kLast));
72 BitStructField<ClassStatus,
Dsubtype_check.h367 static void WriteStatus(ClassPtr klass, ClassStatus status) in WriteStatus()
470 ClassStatus old_status; in WriteSubtypeCheckBits()
510 static void WriteStatusImpl(ClassPtr klass, ClassStatus status) in WriteStatusImpl()
515 ClassStatus old_status; in WriteStatusImpl()
Doat_file.h212 ClassStatus GetStatus() const { in GetStatus()
240 ClassStatus::kErrorUnresolved, in Invalid()
249 ClassStatus status,
257 const ClassStatus status_;
Dclass_linker.cc227 mirror::Class::SetStatus(klass, ClassStatus::kVerified, Thread::Current()); in EnsureSkipAccessChecksMethods()
493 mirror::Class::SetStatus(java_lang_Object, ClassStatus::kLoaded, self); in InitWithoutImage()
532 mirror::Class::SetStatus(java_lang_String, ClassStatus::kResolved, self); in InitWithoutImage()
538 mirror::Class::SetStatus(java_lang_ref_Reference, ClassStatus::kResolved, self); in InitWithoutImage()
591 mirror::Class::SetStatus(java_lang_DexCache, ClassStatus::kResolved, self); in InitWithoutImage()
598 mirror::Class::SetStatus(dalvik_system_ClassExt, ClassStatus::kResolved, self); in InitWithoutImage()
642 mirror::Class::SetStatus(java_lang_Object, ClassStatus::kNotReady, self); in InitWithoutImage()
645 mirror::Class::SetStatus(java_lang_String, ClassStatus::kNotReady, self); in InitWithoutImage()
647 mirror::Class::SetStatus(java_lang_DexCache, ClassStatus::kNotReady, self); in InitWithoutImage()
650 mirror::Class::SetStatus(dalvik_system_ClassExt, ClassStatus::kNotReady, self); in InitWithoutImage()
[all …]
Doat_file.cc1962 is_vdex_verified ? ClassStatus::kVerified : ClassStatus::kNotReady, in GetOatClass()
1976 ClassStatus status = enum_cast<ClassStatus>(*reinterpret_cast<const int16_t*>(status_pointer)); in GetOatClass()
1977 CHECK_LE(status, ClassStatus::kLast); in GetOatClass()
2081 ClassStatus status, in OatClass()
Dclass_table.cc76 CHECK_EQ(klass->GetStatus(), ClassStatus::kResolving) << descriptor; in UpdateClass()
Dclass_linker_test.cc95 EXPECT_EQ(ClassStatus::kInitialized, primitive->GetStatus()); in AssertPrimitiveClass()
134 EXPECT_EQ(ClassStatus::kInitialized, JavaLangObject->GetStatus()); in AssertObjectClass()
210 EXPECT_EQ(ClassStatus::kInitialized, array->GetStatus()); in AssertArrayClass()
936 EXPECT_EQ(ClassStatus::kResolved, MyClass->GetStatus()); in TEST_F()
Dtransaction_test.cc70 ClassStatus old_status = h_klass->GetStatus(); in testTransactionAbort()
Dclass_linker.h501 ClassStatus& oat_file_class_status)
/art/test/800-smali/
Djni.cc35 ClassStatus oat_file_class_status(ClassStatus::kNotReady); in Java_Main_isAotVerified()
/art/dex2oat/driver/
Dcompiler_driver_test.cc307 ClassStatus status; in CheckVerifiedClass()
311 EXPECT_EQ(status, ClassStatus::kVerified); in CheckVerifiedClass()
349 static_assert(enum_cast<size_t>(ClassStatus::kLast) < std::numeric_limits<size_t>::max(), in TEST_F()
351 for (size_t i = enum_cast<size_t>(ClassStatus::kRetryVerificationAtRuntime); in TEST_F()
352 i <= enum_cast<size_t>(ClassStatus::kLast); in TEST_F()
354 const ClassStatus expected_status = enum_cast<ClassStatus>(i); in TEST_F()
356 if (expected_status == ClassStatus::kVerifyingAtRuntime || in TEST_F()
357 expected_status == ClassStatus::kInitializing) { in TEST_F()
361 ClassStatus status = {}; in TEST_F()
Dcompiler_driver.cc136 class_status_count_ + static_cast<size_t>(ClassStatus::kLast) + 1, in Dump()
138 for (size_t i = 0; i <= static_cast<size_t>(ClassStatus::kLast); ++i) { in Dump()
140 oss << "classes with status " << static_cast<ClassStatus>(i); in Dump()
223 void AddClassStatus(ClassStatus status) REQUIRES(!stats_lock_) { in AddClassStatus()
249 size_t class_status_count_[static_cast<size_t>(ClassStatus::kLast) + 1] = {};
701 ClassStatus::kRetryVerificationAtRuntime) { in ResolveConstStrings()
1718 ClassStatus status, in LoadAndUpdateStatus()
1734 if (status >= ClassStatus::kVerified) { in LoadAndUpdateStatus()
1790 const ClassStatus existing = ClassStatus::kNotReady; in FastVerify()
1792 compiled_classes_.Insert(ref, existing, ClassStatus::kVerified); in FastVerify()
[all …]
Dcompiler_driver.h130 ClassStatus GetClassStatus(const ClassReference& ref) const;
131 bool GetCompiledClass(const ClassReference& ref, ClassStatus* status) const;
205 void RecordClassStatus(const ClassReference& ref, ClassStatus status);
310 using ClassStateTable = AtomicDexRefMap<ClassReference, ClassStatus>;
/art/test/626-const-class-linking/
Dclear_dex_cache_types.cc40 ClassStatus status = klass->GetStatus(); in Java_Main_nativeSkipVerification()
41 if (status == ClassStatus::kResolved) { in Java_Main_nativeSkipVerification()
43 klass->SetStatus(klass, ClassStatus::kVerified, soa.Self()); in Java_Main_nativeSkipVerification()
/art/runtime/mirror/
Dclass.h90 ClassStatus GetStatus() REQUIRES_SHARED(Locks::mutator_lock_) { in GetStatus()
93 return enum_cast<ClassStatus>( in GetStatus()
98 static void SetStatus(Handle<Class> h_this, ClassStatus new_status, Thread* self)
108 return GetStatus<kVerifyFlags>() == ClassStatus::kRetired; in IsRetired()
114 return GetStatus<kVerifyFlags>() == ClassStatus::kErrorUnresolved; in IsErroneousUnresolved()
120 return GetStatus<kVerifyFlags>() == ClassStatus::kErrorResolved; in IsErroneousResolved()
124 static bool IsErroneous(ClassStatus status) { in IsErroneous()
125 return status == ClassStatus::kErrorUnresolved || status == ClassStatus::kErrorResolved; in IsErroneous()
137 return GetStatus<kVerifyFlags>() >= ClassStatus::kIdx; in IsIdxLoaded()
143 return GetStatus<kVerifyFlags>() >= ClassStatus::kLoaded; in IsLoaded()
[all …]
Dclass.cc143 void Class::SetStatus(Handle<Class> h_this, ClassStatus new_status, Thread* self) { in SetStatus()
144 ClassStatus old_status = h_this->GetStatus(); in SetStatus()
149 new_status != ClassStatus::kErrorUnresolved && in SetStatus()
150 new_status != ClassStatus::kErrorResolved && in SetStatus()
151 new_status != ClassStatus::kRetired)) { in SetStatus()
155 if (new_status >= ClassStatus::kResolved || old_status >= ClassStatus::kResolved) { in SetStatus()
167 CHECK_EQ(new_status == ClassStatus::kErrorResolved, old_status >= ClassStatus::kResolved); in SetStatus()
203 if (new_status == ClassStatus::kInitialized && !h_this->IsVariableSize()) { in SetStatus()
211 if (kIsDebugBuild && new_status >= ClassStatus::kInitialized) { in SetStatus()
225 CHECK_LT(new_status, ClassStatus::kResolved) << h_this->PrettyDescriptor(); in SetStatus()
[all …]
/art/test/692-vdex-inmem-loader/
Dvdex_inmem_loader.cc159 ClassStatus oat_file_class_status(ClassStatus::kNotReady); in Java_Main_areClassesPreverified()
/art/dex2oat/
Dverifier_deps_test.cc242 ASSERT_EQ(cls->GetStatus(), ClassStatus::kVerified); in VerifyClassStatus()
244 ASSERT_LT(cls->GetStatus(), ClassStatus::kVerified); in VerifyClassStatus()
/art/dex2oat/linker/
Doat_writer.cc205 ClassStatus status) in OatClassHeader()
227 static_assert(enum_cast<>(ClassStatus::kLast) < (1 << 16), "class status won't fit in 16bits");
971 ClassStatus status; in EndClass()
979 status = ClassStatus::kErrorResolved; in EndClass()
981 status = ClassStatus::kNotReady; in EndClass()
Doat_writer_test.cc443 CHECK_EQ(ClassStatus::kNotReady, oat_class.GetStatus()) << descriptor; in TEST_F()

12