Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dfield.cc28 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetArtField() local
29 if (UNLIKELY(declaring_class->IsProxyClass())) { in GetArtField()
31 DCHECK_EQ(declaring_class->NumStaticFields(), 2U); in GetArtField()
34 return &declaring_class->GetSFieldsPtr()->At(0); in GetArtField()
37 return &declaring_class->GetSFieldsPtr()->At(1); in GetArtField()
40 const ObjPtr<mirror::DexCache> dex_cache = declaring_class->GetDexCache(); in GetArtField()
44 art_field = declaring_class->FindDeclaredStaticField(dex_cache, GetDexFieldIndex()); in GetArtField()
46 art_field = declaring_class->FindInstanceField(dex_cache, GetDexFieldIndex()); in GetArtField()
51 CHECK_EQ(declaring_class, art_field->GetDeclaringClass()); 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.cc505 ObjPtr<mirror::Class> declaring_class) in IsValidInheritanceCheck() argument
508 return declaring_class->IsObjectClass(); in IsValidInheritanceCheck()
510 return declaring_class->IsObjectClass() || declaring_class == klass; in IsValidInheritanceCheck()
512 return klass->IsSubClass(declaring_class); in IsValidInheritanceCheck()
517 ObjPtr<mirror::Class> declaring_class, in IsInheritedMethod() argument
520 DCHECK_EQ(declaring_class, method.GetDeclaringClass()); in IsInheritedMethod()
521 DCHECK_NE(klass, declaring_class); in IsInheritedMethod()
522 DCHECK(IsValidInheritanceCheck(klass, declaring_class)); in IsInheritedMethod()
530 for (; klass != declaring_class; klass = klass->GetSuperClass()) { in IsInheritedMethod()
531 if (!klass->IsInSamePackage(declaring_class)) { in IsInheritedMethod()
Dclass-inl.h597 ObjPtr<Class> declaring_class = method->GetDeclaringClass(); in FindVirtualMethodForInterface() local
598 DCHECK(declaring_class != nullptr) << PrettyClass(); in FindVirtualMethodForInterface()
599 if (UNLIKELY(!declaring_class->IsInterface())) { in FindVirtualMethodForInterface()
600 DCHECK(declaring_class->IsObjectClass()) << method->PrettyMethod(); in FindVirtualMethodForInterface()
609 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.cc80 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in GetReflectionCaller() local
81 if (declaring_class->IsBootStrapClassLoaded()) { in GetReflectionCaller()
82 if (declaring_class->IsClassClass()) { in GetReflectionCaller()
91 if ((declaring_class == lookup_class || declaring_class->IsInSamePackage(lookup_class)) in GetReflectionCaller()
839 ObjPtr<mirror::Class> declaring_class = constructor->GetDeclaringClass(); in Class_newInstance() local
845 declaring_class, in Class_newInstance()
855 if (UNLIKELY(!declaring_class->IsInitialized())) { in Class_newInstance()
857 soa.Self(), hs.NewHandle(declaring_class), true, true)) { in Class_newInstance()
Djava_lang_reflect_Field.cc130 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver() local
132 if (UNLIKELY(!declaring_class->IsInitialized())) { in CheckReceiver()
135 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(&declaring_class)); in CheckReceiver()
142 *class_or_rcvr = declaring_class; in CheckReceiver()
146 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.cc663 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in InvokeMethod() local
664 if (UNLIKELY(!declaring_class->IsInitialized())) { in InvokeMethod()
666 HandleWrapperObjPtr<mirror::Class> h_class(hs.NewHandleWrapper(&declaring_class)); in InvokeMethod()
675 if (declaring_class->IsStringClass() && m->IsConstructor()) { in InvokeMethod()
681 if (!VerifyObjectIsClass(receiver, declaring_class)) { in InvokeMethod()
702 declaring_class, in InvokeMethod()
740 ObjPtr<mirror::Class> declaring_class = constructor->GetDeclaringClass(); in InvokeConstructor() local
741 CHECK(declaring_class->IsInitialized()); in InvokeConstructor()
744 CHECK(!declaring_class->IsStringClass()); in InvokeConstructor()
748 CHECK(VerifyObjectIsClass(receiver, declaring_class)); in InvokeConstructor()
[all …]
Dart_method.cc71 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetCanonicalMethod() local
72 DCHECK(declaring_class->IsInterface()); in GetCanonicalMethod()
73 ArtMethod* ret = declaring_class->FindInterfaceMethod(GetDexCache(), in GetCanonicalMethod()
201 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in FindOverriddenMethod() local
202 ObjPtr<mirror::Class> super_class = declaring_class->GetSuperClass(); in FindOverriddenMethod()
488 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in FindOatMethodFor() local
495 oat_method_index = declaring_class->NumDirectMethods(); in FindOatMethodFor()
497 for (ArtMethod& art_method : declaring_class->GetVirtualMethods(pointer_size)) { in FindOatMethodFor()
509 GetOatMethodIndexFromMethodIndex(declaring_class->GetDexFile(), in FindOatMethodFor()
512 OatFile::OatClass oat_class = OatFile::FindOatClass(declaring_class->GetDexFile(), in FindOatMethodFor()
[all …]
Dhidden_api.cc352 ObjPtr<mirror::Class> declaring_class = member->GetDeclaringClass(); in GetDexFlags() local
353 DCHECK(!declaring_class.IsNull()) << "Attempting to access a runtime method"; in GetDexFlags()
361 ObjPtr<mirror::ClassExt> ext(declaring_class->GetExtData()); in GetDexFlags()
366 const dex::ClassDef* class_def = declaring_class->GetClassDef(); in GetDexFlags()
369 DCHECK(declaring_class->IsProxyClass()) in GetDexFlags()
381 VisitMembers(declaring_class->GetDexFile(), *class_def, fn_visit); in GetDexFlags()
Dreflection.h108 ObjPtr<mirror::Class> declaring_class,
116 ObjPtr<mirror::Class> declaring_class,
Dstack.cc621 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in SanityCheckFrame() local
624 CHECK(declaring_class != nullptr); in SanityCheckFrame()
625 CHECK_EQ(declaring_class->GetClass(), declaring_class->GetClass()->GetClass()) in SanityCheckFrame()
626 << declaring_class; in SanityCheckFrame()
628 CHECK(declaring_class == nullptr); in SanityCheckFrame()
Dmethod_handles.cc660 ObjPtr<mirror::Class> declaring_class(target_method->GetDeclaringClass()); in RefineTargetMethod() local
661 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod()
664 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod()
684 ObjPtr<mirror::Class> declaring_class = target_method->GetDeclaringClass(); in RefineTargetMethod() local
685 if (referrer_class == declaring_class) { in RefineTargetMethod()
688 if (!declaring_class->IsInterface()) { in RefineTargetMethod()
Dclass_linker-inl.h357 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveMethod() local
360 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/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()
914 ObjPtr<mirror::Class> declaring_class, in DumpOneArtMethod() argument
927 if (declaring_class != nullptr) { in DumpOneArtMethod()
928 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/runtime/interpreter/
Dinterpreter.cc656 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in ArtInterpreterToInterpreterBridge() local
657 if (UNLIKELY(!declaring_class->IsInitialized())) { in ArtInterpreterToInterpreterBridge()
659 HandleWrapperObjPtr<mirror::Class> h_declaring_class(hs.NewHandleWrapper(&declaring_class)); in ArtInterpreterToInterpreterBridge()
/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()
/art/runtime/verifier/
Dmethod_verifier.cc1692 const RegType& declaring_class = GetDeclaringClass(); in SetTypesFromSignature() local
1694 if (declaring_class.IsJavaLangObject()) { in SetTypesFromSignature()
1697 reg_line->SetRegisterType<LockOp::kClear>(this, arg_start + cur_arg, declaring_class); in SetTypesFromSignature()
1702 reg_types_.UninitializedThisArgument(declaring_class)); in SetTypesFromSignature()
1705 reg_line->SetRegisterType<LockOp::kClear>(this, arg_start + cur_arg, declaring_class); in SetTypesFromSignature()
3424 const RegType& declaring_class = GetDeclaringClass(); in CodeFlowVerifyInstruction() local
3425 if (declaring_class.IsUnresolvedReference()) { in CodeFlowVerifyInstruction()
3436 ObjPtr<mirror::Class> klass = declaring_class.GetClass(); in CodeFlowVerifyInstruction()
/art/runtime/dex/
Ddex_file_annotations.cc1572 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(klass); in GetEnclosingClass() local
1573 if (declaring_class != nullptr) { in GetEnclosingClass()
1574 return declaring_class; in GetEnclosingClass()

12