Home
last modified time | relevance | path

Searched refs:declaring_class (Results 1 – 25 of 27) 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.cc43 Handle<String> declaring_class, in Alloc() argument
51 trace->Init<true>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
53 trace->Init<false>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
60 void StackTraceElement::Init(ObjPtr<String> declaring_class, in Init() argument
65 declaring_class); in Init()
Dstack_trace_element.h51 Handle<String> declaring_class,
74 void Init(ObjPtr<String> declaring_class,
Dclass-inl.h534 ObjPtr<Class> declaring_class = method->GetDeclaringClass(); in FindVirtualMethodForInterface() local
535 DCHECK(declaring_class != nullptr) << PrettyClass(); in FindVirtualMethodForInterface()
536 DCHECK(declaring_class->IsInterface()) << method->PrettyMethod(); in FindVirtualMethodForInterface()
542 if (iftable->GetInterface(i) == declaring_class) { in FindVirtualMethodForInterface()
/art/runtime/
Dclass_linker-inl.h84 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveType() local
86 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
130 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveMethod() local
133 Handle<mirror::ClassLoader> h_class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveMethod()
162 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveField() local
168 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveField()
Dreflection.cc598 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in InvokeMethod() local
599 if (UNLIKELY(!declaring_class->IsInitialized())) { in InvokeMethod()
601 HandleWrapperObjPtr<mirror::Class> h_class(hs.NewHandleWrapper(&declaring_class)); in InvokeMethod()
610 if (declaring_class->IsStringClass() && m->IsConstructor()) { in InvokeMethod()
616 if (!VerifyObjectIsClass(receiver, declaring_class)) { in InvokeMethod()
642 declaring_class, in InvokeMethod()
878 ObjPtr<mirror::Class> declaring_class, in VerifyAccess() argument
891 return VerifyAccess(obj, declaring_class, access_flags, klass); in VerifyAccess()
895 ObjPtr<mirror::Class> declaring_class, in VerifyAccess() argument
898 if (calling_class == declaring_class) { in VerifyAccess()
[all …]
Dreflection.h100 ObjPtr<mirror::Class> declaring_class,
108 ObjPtr<mirror::Class> declaring_class,
Dart_method.cc191 mirror::Class* declaring_class = GetDeclaringClass(); in FindOverriddenMethod() local
192 mirror::Class* super_class = declaring_class->GetSuperClass(); in FindOverriddenMethod()
518 mirror::Class* declaring_class = method->GetDeclaringClass(); in FindOatMethodFor() local
525 oat_method_index = declaring_class->NumDirectMethods(); in FindOatMethodFor()
527 for (ArtMethod& art_method : declaring_class->GetVirtualMethods(pointer_size)) { in FindOatMethodFor()
539 GetOatMethodIndexFromMethodIndex(*declaring_class->GetDexCache()->GetDexFile(), in FindOatMethodFor()
542 OatFile::OatClass oat_class = OatFile::FindOatClass(*declaring_class->GetDexCache()->GetDexFile(), in FindOatMethodFor()
543 declaring_class->GetDexClassDefIndex(), in FindOatMethodFor()
Dart_field-inl.h308 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetType() local
309 if (UNLIKELY(declaring_class->IsProxyClass())) { in GetType()
312 auto* dex_cache = declaring_class->GetDexCache(); in GetType()
319 type = class_linker->ResolveType(*dex_file, field_id.type_idx_, declaring_class); in GetType()
323 *dex_file, field_id.type_idx_, dex_cache, declaring_class->GetClassLoader()); in GetType()
Dart_method-inl.h117 auto* declaring_class = method->GetDeclaringClass(); in GetDexCacheResolvedMethod() local
118 if (LIKELY(declaring_class == nullptr || !declaring_class->IsErroneous())) { in GetDexCacheResolvedMethod()
Dstack.cc684 auto* declaring_class = method->GetDeclaringClass(); in SanityCheckFrame() local
687 CHECK(declaring_class != nullptr); in SanityCheckFrame()
688 CHECK_EQ(declaring_class->GetClass(), declaring_class->GetClass()->GetClass()) in SanityCheckFrame()
689 << declaring_class; in SanityCheckFrame()
691 CHECK(declaring_class == nullptr); in SanityCheckFrame()
Dmethod_handles.cc659 ObjPtr<mirror::Class> declaring_class(target_method->GetDeclaringClass()); in RefineTargetMethod() local
660 if (receiver == nullptr || receiver->GetClass() != declaring_class) { in RefineTargetMethod()
663 if (!VerifyObjectIsClass(receiver, declaring_class)) { in RefineTargetMethod()
678 ObjPtr<mirror::Class> declaring_class = target_method->GetDeclaringClass(); in RefineTargetMethod() local
685 if (!declaring_class->IsInterface()) { in RefineTargetMethod()
Ddex_file_annotations.cc1308 mirror::Class* declaring_class = GetDeclaringClass(klass); in GetEnclosingClass() local
1309 if (declaring_class != nullptr) { in GetEnclosingClass()
1310 return declaring_class; in GetEnclosingClass()
/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/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/native/
Djava_lang_reflect_Field.cc126 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver() local
128 if (UNLIKELY(!declaring_class->IsInitialized())) { in CheckReceiver()
131 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(&declaring_class)); in CheckReceiver()
138 *class_or_rcvr = declaring_class; in CheckReceiver()
142 if (!VerifyObjectIsClass(*class_or_rcvr, declaring_class)) { in CheckReceiver()
Djava_lang_Class.cc720 auto* declaring_class = constructor->GetDeclaringClass(); in Class_newInstance() local
726 declaring_class, in Class_newInstance()
736 if (UNLIKELY(!declaring_class->IsInitialized())) { in Class_newInstance()
738 soa.Self(), hs.NewHandle(declaring_class), true, true)) { in Class_newInstance()
/art/compiler/optimizing/
Dreference_type_propagation.cc532 mirror::Class* declaring_class = method->GetDeclaringClass(); in SetClassAsTypeInfo() local
533 DCHECK(declaring_class != nullptr); in SetClassAsTypeInfo()
534 DCHECK(declaring_class->IsStringClass()) in SetClassAsTypeInfo()
535 << "Expected String class: " << declaring_class->PrettyDescriptor(); in SetClassAsTypeInfo()
/art/imgdiag/
Dimgdiag.cc728 mirror::Class* declaring_class = in DumpImageDiffMap() local
742 os << " class_status (local): " << declaring_class->GetStatus(); in DumpImageDiffMap()
812 mirror::Class* declaring_class = art_method->GetDeclaringClass(); in DumpImageDiffMap() local
823 os << " class_status (local): " << declaring_class->GetStatus(); in DumpImageDiffMap()
/art/runtime/interpreter/
Dinterpreter.cc605 ObjPtr<mirror::Class> declaring_class = method->GetDeclaringClass(); in ArtInterpreterToInterpreterBridge() local
606 if (UNLIKELY(!declaring_class->IsInitialized())) { in ArtInterpreterToInterpreterBridge()
608 HandleWrapperObjPtr<mirror::Class> h_declaring_class(hs.NewHandleWrapper(&declaring_class)); in ArtInterpreterToInterpreterBridge()
/art/test/004-JniTest/
Djni_test.cc696 void TestCalls(const char* declaring_class, std::vector<const char*> methods) { in TestCalls() argument
701 jclass decl_class = env_->FindClass(declaring_class); in TestCalls()
707 printf("Calling method %s->%s on object of type ConcreteClass\n", declaring_class, method); in TestCalls()
/art/dexdump/
Ddexdump.cc1619 const char* declaring_class; in dumpMethodHandle() local
1624 declaring_class = pDexFile->GetMethodDeclaringClassDescriptor(method_id); in dumpMethodHandle()
1629 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle()
1637 fprintf(gOutFile, " target : %s %s\n", declaring_class, member); in dumpMethodHandle()
1642 fprintf(gOutFile, " target_class=\"%s\"\n", declaring_class); in dumpMethodHandle()
/art/compiler/
Dimage_writer.cc632 mirror::Class* declaring_class = m->GetDeclaringClass(); in WillMethodBeDirty() local
634 return declaring_class == nullptr || declaring_class->GetStatus() != Class::kStatusInitialized; in WillMethodBeDirty()
947 mirror::Class* declaring_class = method->GetDeclaringClass(); in PruneAndPreloadDexCache() local
951 if (method->IsCopied() || !KeepClass(declaring_class)) { in PruneAndPreloadDexCache()
959 CHECK(class_linker->ClassInClassTable(declaring_class)) << "Class " in PruneAndPreloadDexCache()
960 << Class::PrettyClass(declaring_class) << " not in class linker table"; in PruneAndPreloadDexCache()
Doat_writer.cc1068 mirror::Class* declaring_class = method.GetDeclaringClass(); in StartClass() local
1069 ArtMethod* origin = declaring_class->FindDeclaredVirtualMethod( in StartClass()
1070 declaring_class->GetDexCache(), in StartClass()
1074 if (IsInOatFile(&declaring_class->GetDexFile())) { in StartClass()
/art/runtime/verifier/
Dmethod_verifier.cc1726 const RegType& declaring_class = GetDeclaringClass(); in SetTypesFromSignature() local
1728 if (declaring_class.IsJavaLangObject()) { in SetTypesFromSignature()
1731 reg_line->SetRegisterType<LockOp::kClear>(this, arg_start + cur_arg, declaring_class); in SetTypesFromSignature()
1736 reg_types_.UninitializedThisArgument(declaring_class)); in SetTypesFromSignature()
1739 reg_line->SetRegisterType<LockOp::kClear>(this, arg_start + cur_arg, declaring_class); in SetTypesFromSignature()
3369 auto& declaring_class = GetDeclaringClass(); in CodeFlowVerifyInstruction() local
3370 if (declaring_class.IsUnresolvedReference()) { in CodeFlowVerifyInstruction()
3381 auto* klass = declaring_class.GetClass(); in CodeFlowVerifyInstruction()

12