/aosp12/art/runtime/ |
H A D | art_field.cc | 35 DCHECK(GetDeclaringClass()->IsLoaded() || GetDeclaringClass()->IsErroneous()); in SetOffset() 64 result += PrettyDescriptor(GetDeclaringClass()->GetDescriptor(&temp)); in PrettyField() 71 CHECK(GetDeclaringClass()->IsLoaded() || GetDeclaringClass()->IsErroneous()); in GetAccessFlagsDCheck() 75 CHECK(GetDeclaringClass()->IsResolved()); in GetOffsetDCheck()
|
H A D | art_field-inl.h | 40 return GetDeclaringClass<kWithoutReadBarrier>()->IsProxyClass<kVerifyNone>(); in IsProxyField() 48 ObjPtr<mirror::Class> declaring_class(GetDeclaringClass()); in CanBeChangedBy() 49 ObjPtr<mirror::Class> referring_class(method->GetDeclaringClass()); in CanBeChangedBy() 55 inline ObjPtr<mirror::Class> ArtField::GetDeclaringClass() { in GetDeclaringClass() function 68 DCHECK(GetDeclaringClass()->IsLoaded() || GetDeclaringClass()->IsErroneous()); in GetOffsetDuringLinking() 74 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Get32() 84 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Set32() 94 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Get64() 104 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Set64() 347 ObjPtr<mirror::Class> klass = GetDeclaringClass<kReadBarrierOption>(); in GetDexCache() [all …]
|
H A D | art_method-inl.h | 57 inline ObjPtr<mirror::Class> ArtMethod::GetDeclaringClass() { in GetDeclaringClass() function 82 DCHECK(IsRuntimeMethod() || GetDeclaringClass()->IsResolved()); in GetMethodIndex() 113 ObjPtr<mirror::Class> methods_class = GetDeclaringClass(); in CheckIncompatibleClassChange() 120 ObjPtr<mirror::Class> methods_class = GetDeclaringClass(); in CheckIncompatibleClassChange() 266 return GetDeclaringClass()->GetSourceFile(); in GetDeclaringClassSourceFile() 272 return GetDeclaringClass()->GetDexClassDefIndex(); in GetClassDefIndex() 306 return GetDeclaringClass()->GetClassLoader(); in GetClassLoader() 324 return GetDeclaringClass<kWithoutReadBarrier>()->IsProxyClass(); in IsProxyMethod() 341 DCHECK(!GetDeclaringClass()->IsResolved() || in GetInterfaceMethodIfProxy() 342 interface_method->GetDeclaringClass()->IsAssignableFrom(GetDeclaringClass())); in GetInterfaceMethodIfProxy() [all …]
|
H A D | art_method.cc | 74 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetCanonicalMethod() 118 ObjPtr<mirror::ClassExt> ext(GetDeclaringClass()->GetExtData()); in GetObsoleteDexCache() 131 CHECK(GetDeclaringClass()->IsObsoleteObject()) in GetObsoleteDexCache() 140 return GetDeclaringClass()->GetDexCache(); in GetObsoleteDexCache() 167 } else if (GetDeclaringClass()->IsInterface()) { in GetInvokeType() 211 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in FindOverriddenMethod() 225 ObjPtr<mirror::IfTable> iftable = GetDeclaringClass()->GetIfTable(); in FindOverriddenMethod() 397 return GetDeclaringClass()->IsInterface(); in IsOverridableByDefaultMethod() 408 ObjPtr<mirror::Class> cls = GetDeclaringClass(); in IsSignaturePolymorphic() 480 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in FindOatMethodFor() [all …]
|
H A D | proxy_test.cc | 126 EXPECT_STREQ("L$Proxy1234;", field->GetDeclaringClass()->GetDescriptor(&temp)); in TEST_F() 134 EXPECT_STREQ("L$Proxy1234;", field->GetDeclaringClass()->GetDescriptor(&temp)); in TEST_F() 168 EXPECT_OBJ_PTR_EQ(static_fields0->At(0).GetDeclaringClass(), proxyClass0.Get()); in TEST_F() 169 EXPECT_OBJ_PTR_EQ(static_fields0->At(1).GetDeclaringClass(), proxyClass0.Get()); in TEST_F() 170 EXPECT_OBJ_PTR_EQ(static_fields1->At(0).GetDeclaringClass(), proxyClass1.Get()); in TEST_F() 171 EXPECT_OBJ_PTR_EQ(static_fields1->At(1).GetDeclaringClass(), proxyClass1.Get()); in TEST_F()
|
H A D | class_linker-inl.h | 194 type = DoLookupResolvedType(type_idx, referrer->GetDeclaringClass()); in LookupResolvedType() 206 type = DoLookupResolvedType(type_idx, referrer->GetDeclaringClass()); in LookupResolvedType() 337 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in GetResolvedMethod() 338 if (!referring_class->CanAccessResolvedMethod(resolved_method->GetDeclaringClass(), in GetResolvedMethod() 370 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveMethod() 405 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in ResolveMethod() 406 if (!referring_class->CheckResolvedMethodAccess(resolved_method->GetDeclaringClass(), in ResolveMethod() 436 ObjPtr<mirror::ClassLoader> class_loader = referrer->GetDeclaringClass()->GetClassLoader(); in LookupResolvedField() 452 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in ResolveField()
|
H A D | proxy_test.h | 75 CHECK(method->GetDeclaringClass() == javaLangObject.Get()); in GenerateProxyClass() 83 CHECK(method->GetDeclaringClass() == javaLangObject.Get()); in GenerateProxyClass() 91 CHECK(method->GetDeclaringClass() == javaLangObject.Get()); in GenerateProxyClass()
|
H A D | cha.cc | 336 DCHECK(method_in_super->GetDeclaringClass()->IsResolved()) << "class isn't resolved"; in CheckVirtualMethodSingleImplementationInfo() 341 virtual_method->GetDeclaringClass() == klass.Get()); in CheckVirtualMethodSingleImplementationInfo() 511 if ((single_impl->GetDeclaringClass() == implementation_method->GetDeclaringClass()) && in CheckInterfaceMethodSingleImplementationInfo() 524 DCHECK(method->IsCopied() || method->GetDeclaringClass() == klass.Get()); in InitSingleImplementationFlag() 537 if (method->GetDeclaringClass()->IsInstantiable()) { in InitSingleImplementationFlag()
|
H A D | common_throws.cc | 229 referrer != nullptr ? referrer->GetDeclaringClass() : nullptr, in ThrowIllegalAccessErrorFinalField() 266 referrer != nullptr ? referrer->GetDeclaringClass() : nullptr, in ThrowIncompatibleClassChangeError() 284 referrer != nullptr ? referrer->GetDeclaringClass() : nullptr, in ThrowIncompatibleClassChangeErrorClassForInterfaceSuper() 297 << mirror::Class::PrettyDescriptor(interface_method->GetDeclaringClass()) in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch() 299 DumpB77342775DebugData(interface_method->GetDeclaringClass(), this_object->GetClass()); in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch() 301 referrer != nullptr ? referrer->GetDeclaringClass() : nullptr, in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch() 311 ThrowException("Ljava/lang/IncompatibleClassChangeError;", referrer->GetDeclaringClass(), in ThrowIncompatibleClassChangeErrorField()
|
H A D | reflection.cc | 537 bool is_string_init = method->GetDeclaringClass()->IsStringClass() && method->IsConstructor(); in InvokeWithVarArgs() 578 bool is_string_init = method->GetDeclaringClass()->IsStringClass() && method->IsConstructor(); in InvokeWithJValues() 621 bool is_string_init = method->GetDeclaringClass()->IsStringClass() && method->IsConstructor(); in InvokeVirtualOrInterfaceWithJValues() 665 bool is_string_init = method->GetDeclaringClass()->IsStringClass() && method->IsConstructor(); in InvokeVirtualOrInterfaceWithVarArgs() 710 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in InvokeMethod() 762 m->GetDeclaringClass() == nullptr ? "null" : in InvokeMethod() 763 m->GetDeclaringClass()->PrettyClass().c_str()).c_str()); in InvokeMethod() 804 ObjPtr<mirror::Class> declaring_class = constructor->GetDeclaringClass(); in InvokeConstructor() 1012 return visitor.caller != nullptr ? visitor.caller->GetDeclaringClass() : nullptr; in GetCallingClass()
|
/aosp12/art/runtime/mirror/ |
H A D | field.cc | 34 SetDeclaringClass<false>(new_value->GetDeclaringClass()); in VisitTarget() 36 IsStatic() ? GetDeclaringClass()->GetSFields() : GetDeclaringClass()->GetIFields(); in VisitTarget() 47 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetArtField() 86 field->GetDeclaringClass()); in CreateFromArtField() 89 auto iter_range = field->IsStatic() ? field->GetDeclaringClass()->GetSFields() in CreateFromArtField() 90 : field->GetDeclaringClass()->GetIFields(); in CreateFromArtField()
|
H A D | executable.cc | 32 DeclaringClassOffset(), method->GetDeclaringClass()); in InitializeFromArtMethod() 34 DeclaringClassOfOverriddenMethodOffset(), interface_method->GetDeclaringClass()); in InitializeFromArtMethod()
|
H A D | executable-inl.h | 37 inline ObjPtr<mirror::Class> Executable::GetDeclaringClass() { in GetDeclaringClass() function 49 SetDeclaringClass(new_target->GetDeclaringClass()); in VisitTarget()
|
H A D | class-refvisitor-inl.h | 59 CHECK_EQ(field->GetDeclaringClass<kReadBarrierOption>(), this) in VisitNativeRoots() 60 << GetStatus() << field->GetDeclaringClass()->PrettyClass() << " != " << PrettyClass(); in VisitNativeRoots()
|
/aosp12/art/runtime/interpreter/ |
H A D | interpreter.cc | 63 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 74 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 81 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 88 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 95 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 102 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 115 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 123 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 133 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni() 483 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in EnterInterpreterFromInvoke() [all …]
|
/aosp12/art/runtime/entrypoints/ |
H A D | entrypoint_utils-inl.h | 249 ObjPtr<mirror::Class> referrer = method->GetDeclaringClass(); in CheckArrayAlloc() 349 ObjPtr<mirror::Class> fields_class = resolved_field->GetDeclaringClass(); in FindFieldFromCode() 355 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in FindFieldFromCode() 434 if (UNLIKELY(resolved_method->GetDeclaringClass()->IsStringClass() && in FindMethodToCall() 459 ThrowNoSuchMethodError(type, resolved_method->GetDeclaringClass(), in FindMethodToCall() 498 ThrowNoSuchMethodError(type, resolved_method->GetDeclaringClass(), in FindMethodToCall() 522 ThrowNoSuchMethodError(type, resolved_method->GetDeclaringClass(), in FindMethodToCall() 622 ObjPtr<mirror::Class> fields_class = resolved_field->GetDeclaringClass(); in FindFieldFast() 630 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in FindFieldFast() 653 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in FindMethodFast() [all …]
|
/aosp12/art/runtime/native/ |
H A D | java_lang_reflect_Field.cc | 54 field->GetDeclaringClass() == nullptr ? "null" : in VerifyFieldAccess() 55 field->GetDeclaringClass()->PrettyClass().c_str()).c_str()); in VerifyFieldAccess() 61 field->GetDeclaringClass(), in VerifyFieldAccess() 70 field->GetDeclaringClass() == nullptr ? "null" : in VerifyFieldAccess() 71 field->GetDeclaringClass()->PrettyClass().c_str()).c_str()); in VerifyFieldAccess() 144 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver() 275 DCHECK(f->GetDeclaringClass()->IsInitializing()); in SetFieldValue() 469 if (field->GetDeclaringClass()->IsProxyClass()) { in Field_getAnnotationNative() 491 if (field->GetDeclaringClass()->IsProxyClass()) { in Field_getDeclaredAnnotations() 505 if (field->GetDeclaringClass()->IsProxyClass()) { in Field_getSignatureAnnotation() [all …]
|
H A D | java_lang_reflect_Method.cc | 41 if (!method->GetDeclaringClass()->IsAnnotation()) { in Method_getDefaultValue() 50 if (method->GetDeclaringClass()->IsProxyClass()) { in Method_getExceptionTypes() 51 ObjPtr<mirror::Class> klass = method->GetDeclaringClass(); in Method_getExceptionTypes()
|
H A D | dalvik_system_VMStack.cc | 106 return soa.AddLocalReference<jobject>(visitor.caller->GetDeclaringClass()->GetClassLoader()); in VMStack_getCallingClassLoader() 117 ObjPtr<mirror::Class> c = GetMethod()->GetDeclaringClass(); in VMStack_getClosestUserClassLoader() 146 return soa.AddLocalReference<jclass>(visitor.caller->GetDeclaringClass()); in VMStack_getStackClass2()
|
H A D | java_lang_reflect_Executable.cc | 45 if (method->GetDeclaringClass()->IsProxyClass()) { in Executable_getDeclaredAnnotationsNative() 73 if (method->GetDeclaringClass()->IsProxyClass()) { in Executable_getSignatureAnnotation() 107 Handle<mirror::Class> declaring_class = hs.NewHandle(method->GetDeclaringClass()); in Executable_getParameterAnnotationsNative() 164 if (art_method->GetDeclaringClass()->IsProxyClass()) { in Executable_getParameters0() 260 if (method->GetDeclaringClass()->IsProxyClass()) { in Executable_isAnnotationPresentNative()
|
/aosp12/art/runtime/jni/ |
H A D | jni_id_manager.cc | 280 DCHECK(!t->GetDeclaringClass().IsNull()) << "Null declaring class " << PrettyGeneric(t); in EncodeGenericId() 281 size_t off = GetIdOffset(t->GetDeclaringClass(), Canonicalize(t), kRuntimePointerSize); in EncodeGenericId() 283 bool allocation_failure = EnsureIdsArray(self, t->GetDeclaringClass(), t.Get()); in EncodeGenericId() 288 } else if (ShouldReturnPointer(t->GetDeclaringClass(), t.Get())) { in EncodeGenericId() 291 ObjPtr<mirror::Class> klass = t->GetDeclaringClass(); in EncodeGenericId() 426 ObjPtr<mirror::Class> old_class(old_field->GetDeclaringClass()); in VisitReflectiveTargets() 427 ObjPtr<mirror::Class> new_class(new_field->GetDeclaringClass()); in VisitReflectiveTargets() 479 ObjPtr<mirror::Class> old_class(old_method->GetDeclaringClass()); in VisitReflectiveTargets() 480 ObjPtr<mirror::Class> new_class(new_method->GetDeclaringClass()); in VisitReflectiveTargets() 624 bool alloc_failure = EnsureIdsArray(self, (*t)->GetDeclaringClass(), *t); in EndDefer() [all …]
|
/aosp12/art/runtime/interpreter/mterp/ |
H A D | nterp.cc | 338 ObjPtr<mirror::Class> executing_class = caller->GetDeclaringClass(); in NterpGetMethod() 347 resolved_method->GetDeclaringClass(), in NterpGetMethod() 363 resolved_method->GetDeclaringClass(), in NterpGetMethod() 376 if (resolved_method->GetDeclaringClass()->IsObjectClass()) { in NterpGetMethod() 381 DCHECK(resolved_method->GetDeclaringClass()->IsInterface()); in NterpGetMethod() 393 } else if (resolved_method->GetDeclaringClass()->IsStringClass() in NterpGetMethod() 437 ObjPtr<mirror::Class> fields_class = resolved_field->GetDeclaringClass(); in ResolveFieldWithAccessChecks() 442 ObjPtr<mirror::Class> referring_class = caller->GetDeclaringClass(); in ResolveFieldWithAccessChecks() 482 if (UNLIKELY(!resolved_field->GetDeclaringClass()->IsVisiblyInitialized())) { in NterpGetStaticField() 484 Handle<mirror::Class> h_class(hs.NewHandle(resolved_field->GetDeclaringClass())); in NterpGetStaticField()
|
/aosp12/art/compiler/dex/ |
H A D | inline_method_analyser.cc | 155 CHECK(target_method->GetDeclaringClass() == method->GetDeclaringClass() || in GetTargetConstructor() 156 target_method->GetDeclaringClass() == method->GetDeclaringClass()->GetSuperClass()); in GetTargetConstructor() 296 if (!method->GetDeclaringClass()->IsVerified() || in DoAnalyseConstructor() 318 if (target_method->GetDeclaringClass() == method->GetDeclaringClass() && in DoAnalyseConstructor() 326 if (target_method->GetDeclaringClass()->IsObjectClass()) { in DoAnalyseConstructor() 720 ObjPtr<mirror::Class> method_class = method->GetDeclaringClass(); in ComputeSpecialAccessorInfo() 721 ObjPtr<mirror::Class> field_class = field->GetDeclaringClass(); in ComputeSpecialAccessorInfo()
|
/aosp12/art/runtime/dex/ |
H A D | dex_file_annotations.cc | 77 : ClassData(hs.NewHandle(field->GetDeclaringClass())) { } in ClassData() 103 return method_->GetDeclaringClass()->GetClassLoader(); in GetClassLoader() 111 return method_->GetDeclaringClass(); in GetRealClass() 174 ObjPtr<mirror::Class> klass = field->GetDeclaringClass(); in FindAnnotationSetForField() 577 Handle<mirror::Class> field_class(hs.NewHandle(enum_field->GetDeclaringClass())); in ProcessAnnotationValue() 1489 ObjPtr<mirror::Class> GetDeclaringClass(Handle<mirror::Class> klass) { in GetDeclaringClass() function 1513 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(klass); in GetEnclosingClass() 1554 return method->GetDeclaringClass(); in GetEnclosingClass() 1727 case kBoolean: field->SetBoolean<kTransactionActive>(field->GetDeclaringClass(), jval_.z); in ReadValueToField() 1740 field->SetObject<kTransactionActive>(field->GetDeclaringClass(), resolved); in ReadValueToField() [all …]
|
/aosp12/art/runtime/verifier/ |
H A D | method_verifier.cc | 2440 << GetDeclaringClass(); in CodeFlowVerifyInstruction() 3699 << "' in " << GetDeclaringClass(); in ResolveClass() 3712 const RegType& referrer = GetDeclaringClass(); in ResolveClass() 3829 const RegType& referrer = GetDeclaringClass(); in ResolveMethodAndCheckAccess() 4224 if (!GetDeclaringClass().HasClass()) { in VerifyInvocationArgs() 4604 DCHECK(klass_type.Equals(GetDeclaringClass()) || in GetStaticField() 4620 } else if (!GetDeclaringClass().CanAccessMember(field->GetDeclaringClass(), in GetStaticField() 4651 DCHECK(klass_type.Equals(GetDeclaringClass()) || in GetInstanceField() 4709 if (!GetDeclaringClass().CanAccessMember(field->GetDeclaringClass(), in GetInstanceField() 4755 } else if (field->GetDeclaringClass() != GetDeclaringClass().GetClass()) { in VerifyISFieldAccess() [all …]
|