Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dfield.cc58 mirror::Class* declaring_class = GetDeclaringClass(); in GetArtField() local
59 if (UNLIKELY(declaring_class->IsProxyClass())) { in GetArtField()
61 DCHECK_EQ(declaring_class->NumStaticFields(), 2U); in GetArtField()
64 return &declaring_class->GetSFieldsPtr()->At(0); in GetArtField()
67 return &declaring_class->GetSFieldsPtr()->At(1); in GetArtField()
70 mirror::DexCache* const dex_cache = declaring_class->GetDexCache(); in GetArtField()
74 art_field = declaring_class->FindDeclaredStaticField(dex_cache, GetDexFieldIndex()); in GetArtField()
76 art_field = declaring_class->FindInstanceField(dex_cache, GetDexFieldIndex()); in GetArtField()
81 CHECK_EQ(declaring_class, art_field->GetDeclaringClass()); in GetArtField()
Dstack_trace_element.cc44 Handle<String> declaring_class, in Alloc() argument
52 trace->Init<true>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
54 trace->Init<false>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
61 void StackTraceElement::Init(ObjPtr<String> declaring_class, in Init() argument
66 declaring_class); in Init()
Dstack_trace_element.h50 Handle<String> declaring_class,
73 void Init(ObjPtr<String> declaring_class,
Dclass.cc520 ObjPtr<mirror::Class> declaring_class) in IsValidInheritanceCheck() argument
523 return declaring_class->IsObjectClass(); in IsValidInheritanceCheck()
525 return declaring_class->IsObjectClass() || declaring_class == klass; in IsValidInheritanceCheck()
527 return klass->IsSubClass(declaring_class); in IsValidInheritanceCheck()
532 ObjPtr<mirror::Class> declaring_class, in IsInheritedMethod() argument
535 DCHECK_EQ(declaring_class, method.GetDeclaringClass()); in IsInheritedMethod()
536 DCHECK_NE(klass, declaring_class); in IsInheritedMethod()
537 DCHECK(IsValidInheritanceCheck(klass, declaring_class)); in IsInheritedMethod()
545 for (; klass != declaring_class; klass = klass->GetSuperClass()) { in IsInheritedMethod()
546 if (!klass->IsInSamePackage(declaring_class)) { in IsInheritedMethod()
Dclass-inl.h582 ObjPtr<Class> declaring_class = method->GetDeclaringClass(); in FindVirtualMethodForInterface() local
583 DCHECK(declaring_class != nullptr) << PrettyClass(); in FindVirtualMethodForInterface()
584 if (UNLIKELY(!declaring_class->IsInterface())) { in FindVirtualMethodForInterface()
585 DCHECK(declaring_class->IsObjectClass()) << method->PrettyMethod(); in FindVirtualMethodForInterface()
594 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.cc75 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in IsCallerTrusted() local
76 if (declaring_class->IsBootStrapClassLoaded()) { in IsCallerTrusted()
77 if (declaring_class->IsClassClass()) { in IsCallerTrusted()
86 if ((declaring_class == lookup_class || declaring_class->IsInSamePackage(lookup_class)) in IsCallerTrusted()
849 auto* declaring_class = constructor->GetDeclaringClass(); in Class_newInstance() local
855 declaring_class, in Class_newInstance()
865 if (UNLIKELY(!declaring_class->IsInitialized())) { in Class_newInstance()
867 soa.Self(), hs.NewHandle(declaring_class), true, true)) { in Class_newInstance()
Djava_lang_reflect_Field.cc128 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver() local
130 if (UNLIKELY(!declaring_class->IsInitialized())) { in CheckReceiver()
133 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(&declaring_class)); in CheckReceiver()
140 *class_or_rcvr = declaring_class; in CheckReceiver()
144 if (!VerifyObjectIsClass(*class_or_rcvr, declaring_class)) { in CheckReceiver()
Djava_lang_reflect_Executable.cc104 Handle<mirror::Class> declaring_class = hs.NewHandle(method->GetDeclaringClass()); in Executable_getParameterAnnotationsNative() local
105 if (annotations::GetEnclosingMethod(declaring_class) != nullptr || in Executable_getParameterAnnotationsNative()
106 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/
Dart_field-inl.h306 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in LookupResolvedType() local
307 if (UNLIKELY(declaring_class->IsProxyClass())) { in LookupResolvedType()
311 declaring_class->GetDexFile().GetFieldId(field_index).type_idx_, declaring_class); in LookupResolvedType()
318 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in ResolveType() local
319 if (UNLIKELY(declaring_class->IsProxyClass())) { in ResolveType()
323 declaring_class->GetDexFile().GetFieldId(field_index).type_idx_, declaring_class); in ResolveType()
Dart_method.cc71 mirror::Class* declaring_class = GetDeclaringClass(); in GetCanonicalMethod() local
72 DCHECK(declaring_class->IsInterface()); in GetCanonicalMethod()
73 ArtMethod* ret = declaring_class->FindInterfaceMethod(declaring_class->GetDexCache(), in GetCanonicalMethod()
216 mirror::Class* declaring_class = GetDeclaringClass(); in FindOverriddenMethod() local
217 mirror::Class* super_class = declaring_class->GetSuperClass(); in FindOverriddenMethod()
513 mirror::Class* declaring_class = method->GetDeclaringClass(); in FindOatMethodFor() local
520 oat_method_index = declaring_class->NumDirectMethods(); in FindOatMethodFor()
522 for (ArtMethod& art_method : declaring_class->GetVirtualMethods(pointer_size)) { in FindOatMethodFor()
534 GetOatMethodIndexFromMethodIndex(*declaring_class->GetDexCache()->GetDexFile(), in FindOatMethodFor()
537 OatFile::OatClass oat_class = OatFile::FindOatClass(*declaring_class->GetDexCache()->GetDexFile(), in FindOatMethodFor()
[all …]
Dreflection.cc603 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in InvokeMethod() local
604 if (UNLIKELY(!declaring_class->IsInitialized())) { in InvokeMethod()
606 HandleWrapperObjPtr<mirror::Class> h_class(hs.NewHandleWrapper(&declaring_class)); in InvokeMethod()
615 if (declaring_class->IsStringClass() && m->IsConstructor()) { in InvokeMethod()
621 if (!VerifyObjectIsClass(receiver, declaring_class)) { in InvokeMethod()
647 declaring_class, in InvokeMethod()
883 ObjPtr<mirror::Class> declaring_class, in VerifyAccess() argument
896 return VerifyAccess(obj, declaring_class, access_flags, klass); in VerifyAccess()
900 ObjPtr<mirror::Class> declaring_class, in VerifyAccess() argument
903 if (calling_class == declaring_class) { in VerifyAccess()
[all …]
Dreflection.h100 ObjPtr<mirror::Class> declaring_class,
108 ObjPtr<mirror::Class> declaring_class,
Dstack.cc638 mirror::Class* declaring_class = method->GetDeclaringClass(); in SanityCheckFrame() local
641 CHECK(declaring_class != nullptr); in SanityCheckFrame()
642 CHECK_EQ(declaring_class->GetClass(), declaring_class->GetClass()->GetClass()) in SanityCheckFrame()
643 << declaring_class; in SanityCheckFrame()
645 CHECK(declaring_class == nullptr); in SanityCheckFrame()
Dmethod_handles.cc658 ObjPtr<mirror::Class> declaring_class(target_method->GetDeclaringClass()); in RefineTargetMethod() local
659 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod()
662 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod()
682 ObjPtr<mirror::Class> declaring_class = target_method->GetDeclaringClass(); in RefineTargetMethod() local
683 if (referrer_class == declaring_class) { in RefineTargetMethod()
686 if (!declaring_class->IsInterface()) { in RefineTargetMethod()
Dclass_linker-inl.h292 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveMethod() local
295 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.cc802 mirror::Class* declaring_class = in DumpDirtyEntries() local
806 DumpOneArtMethod(art_method, declaring_class, remote_declaring_class); in DumpDirtyEntries()
815 mirror::Class* declaring_class = method->GetDeclaringClass(); in DumpFalseDirtyEntries() local
816 DumpOneArtMethod(method, declaring_class, nullptr); in DumpFalseDirtyEntries()
905 mirror::Class* declaring_class, in DumpOneArtMethod() argument
918 if (declaring_class != nullptr) { in DumpOneArtMethod()
919 os_ << " class_status (local): " << declaring_class->GetStatus(); in DumpOneArtMethod()
/art/dexdump/
Ddexdump.cc1654 const char* declaring_class; in dumpMethodHandle() local
1660 declaring_class = pDexFile->GetMethodDeclaringClassDescriptor(method_id); in dumpMethodHandle()
1665 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle()
1670 member_type = android::base::StringPrintf("(%s%s", declaring_class, member_type.c_str() + 1); in dumpMethodHandle()
1674 declaring_class = "?"; in dumpMethodHandle()
1682 fprintf(gOutFile, " target : %s %s\n", declaring_class, member); in dumpMethodHandle()
1687 fprintf(gOutFile, " target_class=\"%s\"\n", declaring_class); in dumpMethodHandle()
/art/compiler/optimizing/
Dreference_type_propagation.cc548 mirror::Class* declaring_class = method->GetDeclaringClass(); in SetClassAsTypeInfo() local
549 DCHECK(declaring_class != nullptr); in SetClassAsTypeInfo()
550 DCHECK(declaring_class->IsStringClass()) in SetClassAsTypeInfo()
551 << "Expected String class: " << declaring_class->PrettyDescriptor(); in SetClassAsTypeInfo()
/art/runtime/interpreter/
Dinterpreter.cc616 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in ArtInterpreterToInterpreterBridge() local
617 if (UNLIKELY(!declaring_class->IsInitialized())) { in ArtInterpreterToInterpreterBridge()
619 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, 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.cc1667 const RegType& declaring_class = GetDeclaringClass(); in SetTypesFromSignature() local
1669 if (declaring_class.IsJavaLangObject()) { in SetTypesFromSignature()
1672 reg_line->SetRegisterType<LockOp::kClear>(this, arg_start + cur_arg, declaring_class); in SetTypesFromSignature()
1677 reg_types_.UninitializedThisArgument(declaring_class)); in SetTypesFromSignature()
1680 reg_line->SetRegisterType<LockOp::kClear>(this, arg_start + cur_arg, declaring_class); in SetTypesFromSignature()
3359 auto& declaring_class = GetDeclaringClass(); in CodeFlowVerifyInstruction() local
3360 if (declaring_class.IsUnresolvedReference()) { in CodeFlowVerifyInstruction()
3371 auto* klass = declaring_class.GetClass(); in CodeFlowVerifyInstruction()
/art/runtime/dex/
Ddex_file_annotations.cc1379 mirror::Class* declaring_class = GetDeclaringClass(klass); in GetEnclosingClass() local
1380 if (declaring_class != nullptr) { in GetEnclosingClass()
1381 return declaring_class; in GetEnclosingClass()

12