Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dfield.cc47 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetArtField() local
49 IsStatic() ? declaring_class->NumStaticFields() : declaring_class->NumInstanceFields()); in GetArtField()
51 return declaring_class->GetStaticField(GetArtFieldIndex()); in GetArtField()
53 return declaring_class->GetInstanceField(GetArtFieldIndex()); in GetArtField()
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()
Dstack_trace_element.h43 Handle<String> declaring_class,
57 void Init(ObjPtr<String> declaring_class,
Dclass.cc626 ObjPtr<mirror::Class> declaring_class) in IsValidInheritanceCheck() argument
629 return declaring_class->IsObjectClass(); in IsValidInheritanceCheck()
631 return declaring_class->IsObjectClass() || declaring_class == klass; in IsValidInheritanceCheck()
633 return klass->IsSubClass(declaring_class); in IsValidInheritanceCheck()
638 ObjPtr<mirror::Class> declaring_class, in IsInheritedMethod() argument
641 DCHECK_EQ(declaring_class, method.GetDeclaringClass()); in IsInheritedMethod()
642 DCHECK_NE(klass, declaring_class); in IsInheritedMethod()
643 DCHECK(IsValidInheritanceCheck(klass, declaring_class)); in IsInheritedMethod()
651 for (; klass != declaring_class; klass = klass->GetSuperClass()) { in IsInheritedMethod()
652 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.cc87 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in GetReflectionCaller() local
88 if (declaring_class->IsBootStrapClassLoaded()) { in GetReflectionCaller()
89 if (declaring_class->IsClassClass()) { in GetReflectionCaller()
98 if ((declaring_class == lookup_class || declaring_class->IsInSamePackage(lookup_class)) in GetReflectionCaller()
107 if (declaring_class->IsInSamePackage(proxy_class) && declaring_class != proxy_class) { in GetReflectionCaller()
945 ObjPtr<mirror::Class> declaring_class = constructor->GetDeclaringClass(); in Class_newInstance() local
951 declaring_class, in Class_newInstance()
961 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in Class_newInstance()
963 Handle<mirror::Class> h_class = hs.NewHandle(declaring_class); in Class_newInstance()
Djava_lang_reflect_Field.cc130 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver() local
132 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in CheckReceiver()
136 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(&declaring_class)); in CheckReceiver()
144 *class_or_rcvr = declaring_class; in CheckReceiver()
148 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.cc701 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in InvokeMethod() local
702 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in InvokeMethod()
705 HandleWrapperObjPtr<mirror::Class> h_class(hs.NewHandleWrapper(&declaring_class)); in InvokeMethod()
717 if (declaring_class->IsStringClass() && m->IsConstructor()) { in InvokeMethod()
723 if (!VerifyObjectIsClass(receiver, declaring_class)) { in InvokeMethod()
744 declaring_class, in InvokeMethod()
782 ObjPtr<mirror::Class> declaring_class = constructor->GetDeclaringClass(); in InvokeConstructor() local
783 CHECK(declaring_class->IsInitializing()); in InvokeConstructor()
786 CHECK(!declaring_class->IsStringClass()); in InvokeConstructor()
790 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()
210 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in FindOverriddenMethod() local
211 ObjPtr<mirror::Class> super_class = declaring_class->GetSuperClass(); in FindOverriddenMethod()
497 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in FindOatMethodFor() local
504 oat_method_index = declaring_class->NumDirectMethods(); in FindOatMethodFor()
506 for (ArtMethod& art_method : declaring_class->GetVirtualMethods(pointer_size)) { in FindOatMethodFor()
518 GetOatMethodIndexFromMethodIndex(declaring_class->GetDexFile(), in FindOatMethodFor()
521 OatFile::OatClass oat_class = OatFile::FindOatClass(declaring_class->GetDexFile(), in FindOatMethodFor()
[all …]
Daot_class_linker.cc191 ObjPtr<mirror::Class> declaring_class = m.GetDeclaringClass(); in CanReferenceInBootImageExtension() local
192 CHECK(heap->ObjectIsInBootImageSpace(declaring_class) || in CanReferenceInBootImageExtension()
193 !heap->ObjectIsInBootImageSpace(declaring_class->GetDexCache())); in CanReferenceInBootImageExtension()
Dhidden_api.cc388 ObjPtr<mirror::Class> declaring_class = member->GetDeclaringClass(); in GetDexFlags() local
389 DCHECK(!declaring_class.IsNull()) << "Attempting to access a runtime method"; in GetDexFlags()
397 ObjPtr<mirror::ClassExt> ext(declaring_class->GetExtData()); in GetDexFlags()
402 const dex::ClassDef* class_def = declaring_class->GetClassDef(); in GetDexFlags()
405 DCHECK(declaring_class->IsProxyClass()) in GetDexFlags()
417 VisitMembers(declaring_class->GetDexFile(), *class_def, fn_visit); in GetDexFlags()
Dreflection.h120 ObjPtr<mirror::Class> declaring_class,
128 ObjPtr<mirror::Class> declaring_class,
Dstack.cc718 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in SanityCheckFrame() local
721 CHECK(declaring_class != nullptr); in SanityCheckFrame()
722 CHECK_EQ(declaring_class->GetClass(), declaring_class->GetClass()->GetClass()) in SanityCheckFrame()
723 << declaring_class; in SanityCheckFrame()
725 CHECK(declaring_class == nullptr); in SanityCheckFrame()
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()
Dclass_linker-inl.h360 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveMethod() local
363 Handle<mirror::ClassLoader> h_class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveMethod()
/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.cc494 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in EnterInterpreterFromInvoke() local
495 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in EnterInterpreterFromInvoke()
497 Handle<mirror::Class> h_class(hs.NewHandle(declaring_class)); in EnterInterpreterFromInvoke()
676 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in ArtInterpreterToInterpreterBridge() local
677 if (UNLIKELY(!declaring_class->IsVisiblyInitialized())) { in ArtInterpreterToInterpreterBridge()
679 Handle<mirror::Class> h_class(hs.NewHandle(declaring_class)); in ArtInterpreterToInterpreterBridge()
/art/imgdiag/
Dimgdiag.cc819 ObjPtr<mirror::Class> declaring_class = in DumpDirtyEntries() local
823 DumpOneArtMethod(art_method, declaring_class, remote_declaring_class); in DumpDirtyEntries()
832 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in DumpFalseDirtyEntries() local
833 DumpOneArtMethod(method, declaring_class, nullptr); in DumpFalseDirtyEntries()
920 ObjPtr<mirror::Class> declaring_class, in DumpOneArtMethod() argument
933 if (declaring_class != nullptr) { in DumpOneArtMethod()
934 os_ << " class_status (local): " << declaring_class->GetStatus(); in DumpOneArtMethod()
/art/dexdump/
Ddexdump.cc1630 const char* declaring_class; in dumpMethodHandle() local
1636 declaring_class = pDexFile->GetMethodDeclaringClassDescriptor(method_id); in dumpMethodHandle()
1641 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle()
1646 member_type = android::base::StringPrintf("(%s%s", declaring_class, member_type.c_str() + 1); in dumpMethodHandle()
1650 declaring_class = "?"; in dumpMethodHandle()
1658 fprintf(gOutFile, " target : %s %s\n", declaring_class, member); in dumpMethodHandle()
1663 fprintf(gOutFile, " target_class=\"%s\"\n", declaring_class); in dumpMethodHandle()
/art/compiler/optimizing/
Dreference_type_propagation.cc566 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in SetClassAsTypeInfo() local
567 DCHECK(declaring_class != nullptr); in SetClassAsTypeInfo()
568 DCHECK(declaring_class->IsStringClass()) in SetClassAsTypeInfo()
569 << "Expected String class: " << declaring_class->PrettyDescriptor(); in SetClassAsTypeInfo()
/art/test/004-JniTest/
Djni_test.cc707 void TestCalls(const char* declaring_class, const std::vector<const char*>& methods) { in TestCalls() argument
712 jclass decl_class = env_->FindClass(declaring_class); in TestCalls()
718 printf("Calling method %s->%s on object of type ConcreteClass\n", declaring_class, method); in TestCalls()

12