Home
last modified time | relevance | path

Searched refs:declaring_class (Results 1 – 25 of 36) sorted by relevance

12

/art/runtime/mirror/
Dstack_trace_element.cc31 Handle<String> declaring_class, in Alloc() argument
39 trace->Init<true>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
41 trace->Init<false>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
48 void StackTraceElement::Init(ObjPtr<String> declaring_class, in Init() argument
53 declaring_class); in Init()
Dfield.cc47 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetArtField() local
49 DCHECK_LT(GetArtFieldIndex(), declaring_class->NumStaticFields()); in GetArtField()
50 return declaring_class->GetStaticField(GetArtFieldIndex()); in GetArtField()
52 DCHECK_LT(GetArtFieldIndex(), declaring_class->NumInstanceFields()); in GetArtField()
53 return declaring_class->GetInstanceField(GetArtFieldIndex()); in GetArtField()
Dstack_trace_element.h45 Handle<String> declaring_class,
59 void Init(ObjPtr<String> declaring_class,
Dclass.cc595 ObjPtr<mirror::Class> declaring_class) in IsValidInheritanceCheck() argument
598 return declaring_class->IsObjectClass(); in IsValidInheritanceCheck()
600 return declaring_class->IsObjectClass() || declaring_class == klass; in IsValidInheritanceCheck()
602 return klass->IsSubClass(declaring_class); in IsValidInheritanceCheck()
607 ObjPtr<mirror::Class> declaring_class, in IsInheritedMethod() argument
610 DCHECK_EQ(declaring_class, method.GetDeclaringClass()); in IsInheritedMethod()
611 DCHECK_NE(klass, declaring_class); in IsInheritedMethod()
612 DCHECK(IsValidInheritanceCheck(klass, declaring_class)); in IsInheritedMethod()
620 for (; klass != declaring_class; klass = klass->GetSuperClass()) { in IsInheritedMethod()
621 if (!klass->IsInSamePackage(declaring_class)) { in IsInheritedMethod()
Dclass-inl.h619 ObjPtr<Class> declaring_class = method->GetDeclaringClass(); in FindVirtualMethodForInterface() local
620 DCHECK(declaring_class != nullptr) << PrettyClass(); in FindVirtualMethodForInterface()
621 if (UNLIKELY(!declaring_class->IsInterface())) { in FindVirtualMethodForInterface()
622 DCHECK(declaring_class->IsObjectClass()) << method->PrettyMethod(); in FindVirtualMethodForInterface()
631 if (iftable->GetInterface(i) == declaring_class) { in FindVirtualMethodForInterface()
/art/runtime/native/
Djava_lang_reflect_Parameter.cc74 Handle<mirror::Class> declaring_class = hs.NewHandle(method->GetDeclaringClass()); in Parameter_getAnnotationNative() local
75 if (annotations::GetEnclosingMethod(declaring_class) == nullptr && !declaring_class->IsEnum()) { in Parameter_getAnnotationNative()
Djava_lang_Class.cc88 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in GetReflectionCaller() local
89 if (declaring_class->IsBootStrapClassLoaded()) { in GetReflectionCaller()
90 if (declaring_class->IsClassClass()) { in GetReflectionCaller()
99 if ((declaring_class == lookup_class || declaring_class->IsInSamePackage(lookup_class)) in GetReflectionCaller()
109 if (declaring_class->IsInSamePackage(proxy_class) && declaring_class != proxy_class) { in GetReflectionCaller()
947 ObjPtr<mirror::Class> declaring_class = constructor->GetDeclaringClass(); in Class_newInstance() local
953 declaring_class, in Class_newInstance()
963 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in Class_newInstance()
965 Handle<mirror::Class> h_class = hs.NewHandle(declaring_class); in Class_newInstance()
Djava_lang_reflect_Field.cc144 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver() local
146 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in CheckReceiver()
150 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(&declaring_class)); in CheckReceiver()
158 *class_or_rcvr = declaring_class; in CheckReceiver()
162 if (!VerifyObjectIsClass(*class_or_rcvr, declaring_class)) { in CheckReceiver()
Djava_lang_reflect_Executable.cc107 Handle<mirror::Class> declaring_class = hs.NewHandle(method->GetDeclaringClass()); in Executable_getParameterAnnotationsNative() local
108 if (annotations::GetEnclosingMethod(declaring_class) != nullptr || in Executable_getParameterAnnotationsNative()
109 declaring_class->IsEnum()) { in Executable_getParameterAnnotationsNative()
/art/test/918-fields/
Dfields.cc87 jclass declaring_class; in Java_art_Test918_getFieldDeclaringClass() local
88 jvmtiError result = jvmti_env->GetFieldDeclaringClass(klass, id, &declaring_class); in Java_art_Test918_getFieldDeclaringClass()
97 return declaring_class; in Java_art_Test918_getFieldDeclaringClass()
/art/runtime/
Dreflection.cc710 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in InvokeMethod() local
711 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in InvokeMethod()
714 HandleWrapperObjPtr<mirror::Class> h_class(hs.NewHandleWrapper(&declaring_class)); in InvokeMethod()
726 if (declaring_class->IsStringClass() && m->IsConstructor()) { in InvokeMethod()
732 if (!VerifyObjectIsClass(receiver, declaring_class)) { in InvokeMethod()
753 declaring_class, in InvokeMethod()
804 ObjPtr<mirror::Class> declaring_class = constructor->GetDeclaringClass(); in InvokeConstructor() local
805 CHECK(declaring_class->IsInitializing()); in InvokeConstructor()
808 CHECK(!declaring_class->IsStringClass()); in InvokeConstructor()
812 CHECK(VerifyObjectIsClass(receiver, declaring_class)); in InvokeConstructor()
[all …]
Dart_method.cc74 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetCanonicalMethod() local
75 DCHECK(declaring_class->IsInterface()); in GetCanonicalMethod()
76 ArtMethod* ret = declaring_class->FindInterfaceMethod(GetDexCache(), in GetCanonicalMethod()
211 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in FindOverriddenMethod() local
212 ObjPtr<mirror::Class> super_class = declaring_class->GetSuperClass(); in FindOverriddenMethod()
480 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in FindOatMethodFor() local
487 oat_method_index = declaring_class->NumDirectMethods(); in FindOatMethodFor()
489 for (ArtMethod& art_method : declaring_class->GetVirtualMethods(pointer_size)) { in FindOatMethodFor()
501 GetOatMethodIndexFromMethodIndex(declaring_class->GetDexFile(), in FindOatMethodFor()
504 OatFile::OatClass oat_class = OatFile::FindOatClass(declaring_class->GetDexFile(), in FindOatMethodFor()
[all …]
Dsdk_checker.cc102 std::string declaring_class; in ShouldDenyAccess() local
105 art_field->GetDeclaringClass()->GetDescriptor(&declaring_class)); in ShouldDenyAccess()
Dhidden_api.cc413 ObjPtr<mirror::Class> declaring_class = member->GetDeclaringClass(); in GetDexFlags() local
414 DCHECK(!declaring_class.IsNull()) << "Attempting to access a runtime method"; in GetDexFlags()
422 ObjPtr<mirror::ClassExt> ext(declaring_class->GetExtData()); in GetDexFlags()
427 const dex::ClassDef* class_def = declaring_class->GetClassDef(); in GetDexFlags()
430 DCHECK(declaring_class->IsProxyClass()) in GetDexFlags()
442 VisitMembers(declaring_class->GetDexFile(), *class_def, fn_visit); in GetDexFlags()
Daot_class_linker.cc193 ObjPtr<mirror::Class> declaring_class = m.GetDeclaringClass(); in CanReferenceInBootImageExtension() local
194 CHECK(heap->ObjectIsInBootImageSpace(declaring_class) || in CanReferenceInBootImageExtension()
195 !heap->ObjectIsInBootImageSpace(declaring_class->GetDexCache())); in CanReferenceInBootImageExtension()
Dreflection.h122 ObjPtr<mirror::Class> declaring_class,
130 ObjPtr<mirror::Class> declaring_class,
Dstack.cc693 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in ValidateFrame() local
696 CHECK(declaring_class != nullptr); in ValidateFrame()
697 CHECK_EQ(declaring_class->GetClass(), declaring_class->GetClass()->GetClass()) in ValidateFrame()
698 << declaring_class; in ValidateFrame()
700 CHECK(declaring_class == nullptr); in ValidateFrame()
Dart_field-inl.h48 ObjPtr<mirror::Class> declaring_class(GetDeclaringClass()); in CanBeChangedBy()
50 return !IsFinal() || (declaring_class == referring_class) || in CanBeChangedBy()
51 UNLIKELY(referring_class->IsObsoleteVersionOf(declaring_class)); in CanBeChangedBy()
Dmethod_handles.cc667 ObjPtr<mirror::Class> declaring_class(target_method->GetDeclaringClass()); in RefineTargetMethod() local
668 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod()
671 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod()
691 ObjPtr<mirror::Class> declaring_class = target_method->GetDeclaringClass(); in RefineTargetMethod() local
692 if (referrer_class == declaring_class) { in RefineTargetMethod()
695 if (declaring_class->IsInterface()) { in RefineTargetMethod()
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc46 extern void ReadBarrierJni(mirror::CompressedReference<mirror::Class>* declaring_class, in ReadBarrierJni() argument
50 DCHECK(declaring_class->AsMirrorPtr() != nullptr) in ReadBarrierJni()
53 if (LIKELY(declaring_class->AsMirrorPtr()->GetMarkBit() != 0)) { in ReadBarrierJni()
58 mirror::Class* to_ref = ReadBarrier::BarrierForRoot(declaring_class); in ReadBarrierJni()
59 declaring_class->Assign(to_ref); in ReadBarrierJni()
Dquick_trampoline_entrypoints.cc693 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in artQuickToInterpreterBridge() local
694 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in artQuickToInterpreterBridge()
697 Handle<mirror::Class> h_class(hs.NewHandle(declaring_class)); in artQuickToInterpreterBridge()
1950 auto* declaring_class = reinterpret_cast<mirror::CompressedReference<mirror::Class>*>( in BuildGenericJniFrameVisitor() local
1953 ReadBarrierJni(declaring_class, self); in BuildGenericJniFrameVisitor()
1955 sm_.AdvancePointer(declaring_class); in BuildGenericJniFrameVisitor()
2110 ObjPtr<mirror::Class> declaring_class = called->GetDeclaringClass(); in artQuickGenericJniTrampoline() local
2111 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in artQuickGenericJniTrampoline()
2114 Handle<mirror::Class> h_class(hs.NewHandle(declaring_class)); in artQuickGenericJniTrampoline()
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc77 ObjPtr<mirror::Class> declaring_class = target_method->GetDeclaringClass(); in artFindNativeMethodRunnable() local
78 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in artFindNativeMethodRunnable()
80 Handle<mirror::Class> h_class(hs.NewHandle(declaring_class)); in artFindNativeMethodRunnable()
/art/test/910-methods/
Dmethods.cc80 jclass declaring_class; in Java_art_Test910_getMethodDeclaringClass() local
81 jvmtiError result = jvmti_env->GetMethodDeclaringClass(id, &declaring_class); in Java_art_Test910_getMethodDeclaringClass()
86 return declaring_class; in Java_art_Test910_getMethodDeclaringClass()
/art/runtime/interpreter/
Dinterpreter.cc483 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in EnterInterpreterFromInvoke() local
484 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in EnterInterpreterFromInvoke()
486 Handle<mirror::Class> h_class(hs.NewHandle(declaring_class)); in EnterInterpreterFromInvoke()
665 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in ArtInterpreterToInterpreterBridge() local
666 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in ArtInterpreterToInterpreterBridge()
668 Handle<mirror::Class> h_class(hs.NewHandle(declaring_class)); in ArtInterpreterToInterpreterBridge()
/art/imgdiag/
Dimgdiag.cc820 ObjPtr<mirror::Class> declaring_class = in DumpDirtyEntries() local
824 DumpOneArtMethod(art_method, declaring_class, remote_declaring_class); in DumpDirtyEntries()
833 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in DumpFalseDirtyEntries() local
834 DumpOneArtMethod(method, declaring_class, nullptr); in DumpFalseDirtyEntries()
921 ObjPtr<mirror::Class> declaring_class, in DumpOneArtMethod() argument
934 if (declaring_class != nullptr) { in DumpOneArtMethod()
935 os_ << " class_status (local): " << declaring_class->GetStatus(); in DumpOneArtMethod()

12