Home
last modified time | relevance | path

Searched refs:GetDeclaringClass (Results 1 – 25 of 97) sorted by relevance

1234

/art/runtime/
Dart_field.cc35 DCHECK(GetDeclaringClass()->IsLoaded() || GetDeclaringClass()->IsErroneous()); in SetOffset()
64 result += PrettyDescriptor(GetDeclaringClass()->GetDescriptor(&temp)); in PrettyField()
71 CHECK(GetDeclaringClass()->IsLoaded() || GetDeclaringClass()->IsErroneous()); in GetAccessFlagsDCheck()
75 CHECK(GetDeclaringClass()->IsResolved()); in GetOffsetDCheck()
Dart_method-inl.h57 inline ObjPtr<mirror::Class> ArtMethod::GetDeclaringClass() { in GetDeclaringClass() function
82 DCHECK(IsRuntimeMethod() || GetDeclaringClass()->IsResolved()); in GetMethodIndex()
113 ObjPtr<mirror::Class> methods_class = GetDeclaringClass(); in CheckIncompatibleClassChange()
120 ObjPtr<mirror::Class> methods_class = GetDeclaringClass(); in CheckIncompatibleClassChange()
258 return GetDeclaringClass()->GetSourceFile(); in GetDeclaringClassSourceFile()
264 return GetDeclaringClass()->GetDexClassDefIndex(); in GetClassDefIndex()
298 return GetDeclaringClass()->GetClassLoader(); in GetClassLoader()
304 ObjPtr<mirror::Class> klass = GetDeclaringClass<kReadBarrierOption>(); in GetDexCache()
316 return GetDeclaringClass<kWithoutReadBarrier>()->IsProxyClass(); in IsProxyMethod()
333 DCHECK(!GetDeclaringClass()->IsResolved() || in GetInterfaceMethodIfProxy()
[all …]
Dart_field-inl.h40 return GetDeclaringClass<kWithoutReadBarrier>()->IsProxyClass<kVerifyNone>(); in IsProxyField()
48 ObjPtr<mirror::Class> declaring_class(GetDeclaringClass()); in CanBeChangedBy()
49 ObjPtr<mirror::Class> referring_class(method->GetDeclaringClass()); in CanBeChangedBy()
55 inline ObjPtr<mirror::Class> ArtField::GetDeclaringClass() { in GetDeclaringClass() function
68 DCHECK(GetDeclaringClass()->IsLoaded() || GetDeclaringClass()->IsErroneous()); in GetOffsetDuringLinking()
74 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Get32()
84 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Set32()
94 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Get64()
104 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Set64()
115 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in GetObj()
[all …]
Dart_method.cc74 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetCanonicalMethod()
90 return &GetDeclaringClass()->GetDirectMethodsSlice(kRuntimePointerSize)[GetMethodIndex()]; in GetNonObsoleteMethod()
92 return GetDeclaringClass()->GetVTableEntry(GetMethodIndex(), kRuntimePointerSize); in GetNonObsoleteMethod()
115 ObjPtr<mirror::ClassExt> ext(GetDeclaringClass()->GetExtData()); in GetObsoleteDexCache()
128 CHECK(GetDeclaringClass()->IsObsoleteObject()) in GetObsoleteDexCache()
130 << GetDeclaringClass()->PrettyClass() << " Searched " << len << " caches."; in GetObsoleteDexCache()
133 &(*GetDeclaringClass()->GetMethods(pointer_size).begin()), in GetObsoleteDexCache()
134 &(*GetDeclaringClass()->GetMethods(pointer_size).end()))) in GetObsoleteDexCache()
136 << "despite not being the original method pointer for " << GetDeclaringClass()->PrettyClass(); in GetObsoleteDexCache()
137 return GetDeclaringClass()->GetDexCache(); in GetObsoleteDexCache()
[all …]
Dproxy_test.cc126 EXPECT_STREQ("L$Proxy1234;", field->GetDeclaringClass()->GetDescriptor(&temp)); in TEST_F()
134 EXPECT_STREQ("L$Proxy1234;", field->GetDeclaringClass()->GetDescriptor(&temp)); in TEST_F()
168 EXPECT_OBJ_PTR_EQ(static_fields0->At(0).GetDeclaringClass(), proxyClass0.Get()); in TEST_F()
169 EXPECT_OBJ_PTR_EQ(static_fields0->At(1).GetDeclaringClass(), proxyClass0.Get()); in TEST_F()
170 EXPECT_OBJ_PTR_EQ(static_fields1->At(0).GetDeclaringClass(), proxyClass1.Get()); in TEST_F()
171 EXPECT_OBJ_PTR_EQ(static_fields1->At(1).GetDeclaringClass(), proxyClass1.Get()); in TEST_F()
Dproxy_test.h75 CHECK(method->GetDeclaringClass() == javaLangObject.Get()); in GenerateProxyClass()
83 CHECK(method->GetDeclaringClass() == javaLangObject.Get()); in GenerateProxyClass()
91 CHECK(method->GetDeclaringClass() == javaLangObject.Get()); in GenerateProxyClass()
Dclass_linker-inl.h194 type = DoLookupResolvedType(type_idx, referrer->GetDeclaringClass()); in LookupResolvedType()
206 type = DoLookupResolvedType(type_idx, referrer->GetDeclaringClass()); in LookupResolvedType()
328 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in GetResolvedMethod()
329 if (!referring_class->CanAccessResolvedMethod(resolved_method->GetDeclaringClass(), in GetResolvedMethod()
361 ObjPtr<mirror::Class> declaring_class = referrer->GetDeclaringClass(); in ResolveMethod()
396 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in ResolveMethod()
397 if (!referring_class->CheckResolvedMethodAccess(resolved_method->GetDeclaringClass(), in ResolveMethod()
427 ObjPtr<mirror::ClassLoader> class_loader = referrer->GetDeclaringClass()->GetClassLoader(); in LookupResolvedField()
443 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in ResolveField()
Dcha.cc336 DCHECK(method_in_super->GetDeclaringClass()->IsResolved()) << "class isn't resolved"; in CheckVirtualMethodSingleImplementationInfo()
341 virtual_method->GetDeclaringClass() == klass.Get()); in CheckVirtualMethodSingleImplementationInfo()
511 if ((single_impl->GetDeclaringClass() == implementation_method->GetDeclaringClass()) && in CheckInterfaceMethodSingleImplementationInfo()
524 DCHECK(method->IsCopied() || method->GetDeclaringClass() == klass.Get()); in InitSingleImplementationFlag()
537 if (method->GetDeclaringClass()->IsInstantiable()) { in InitSingleImplementationFlag()
/art/runtime/mirror/
Dfield.cc34 SetDeclaringClass<false>(new_value->GetDeclaringClass()); in VisitTarget()
36 IsStatic() ? GetDeclaringClass()->GetSFields() : GetDeclaringClass()->GetIFields(); in VisitTarget()
47 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(); in GetArtField()
86 field->GetDeclaringClass()); in CreateFromArtField()
89 auto iter_range = field->IsStatic() ? field->GetDeclaringClass()->GetSFields() in CreateFromArtField()
90 : field->GetDeclaringClass()->GetIFields(); in CreateFromArtField()
Dexecutable.cc32 DeclaringClassOffset(), method->GetDeclaringClass()); in InitializeFromArtMethod()
34 DeclaringClassOfOverriddenMethodOffset(), interface_method->GetDeclaringClass()); in InitializeFromArtMethod()
Dexecutable-inl.h37 inline ObjPtr<mirror::Class> Executable::GetDeclaringClass() { in GetDeclaringClass() function
49 SetDeclaringClass(new_target->GetDeclaringClass()); in VisitTarget()
Dclass-refvisitor-inl.h59 CHECK_EQ(field->GetDeclaringClass<kReadBarrierOption>(), this) in VisitNativeRoots()
60 << GetStatus() << field->GetDeclaringClass()->PrettyClass() << " != " << PrettyClass(); in VisitNativeRoots()
Dstack_trace_element-inl.h27 inline ObjPtr<String> StackTraceElement::GetDeclaringClass() { in GetDeclaringClass() function
Dfield-inl.h31 inline ObjPtr<mirror::Class> Field::GetDeclaringClass() REQUIRES_SHARED(Locks::mutator_lock_) { in GetDeclaringClass() function
Dstack_trace_element.h32 ObjPtr<String> GetDeclaringClass() REQUIRES_SHARED(Locks::mutator_lock_);
/art/runtime/native/
Djava_lang_reflect_Method.cc41 if (!method->GetDeclaringClass()->IsAnnotation()) { in Method_getDefaultValue()
50 if (method->GetDeclaringClass()->IsProxyClass()) { in Method_getExceptionTypes()
51 ObjPtr<mirror::Class> klass = method->GetDeclaringClass(); in Method_getExceptionTypes()
Djava_lang_reflect_Field.cc53 field->GetDeclaringClass() == nullptr ? "null" : in VerifyFieldAccess()
54 field->GetDeclaringClass()->PrettyClass().c_str()).c_str()); in VerifyFieldAccess()
60 field->GetDeclaringClass(), in VerifyFieldAccess()
69 field->GetDeclaringClass() == nullptr ? "null" : in VerifyFieldAccess()
70 field->GetDeclaringClass()->PrettyClass().c_str()).c_str()); in VerifyFieldAccess()
130 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver()
261 DCHECK(f->GetDeclaringClass()->IsInitializing()); in SetFieldValue()
455 if (field->GetDeclaringClass()->IsProxyClass()) { in Field_getAnnotationNative()
477 if (field->GetDeclaringClass()->IsProxyClass()) { in Field_getDeclaredAnnotations()
491 if (field->GetDeclaringClass()->IsProxyClass()) { in Field_getSignatureAnnotation()
[all …]
Ddalvik_system_VMStack.cc107 return soa.AddLocalReference<jobject>(visitor.caller->GetDeclaringClass()->GetClassLoader()); in VMStack_getCallingClassLoader()
118 ObjPtr<mirror::Class> c = GetMethod()->GetDeclaringClass(); in VMStack_getClosestUserClassLoader()
147 return soa.AddLocalReference<jclass>(visitor.caller->GetDeclaringClass()); in VMStack_getStackClass2()
/art/runtime/interpreter/
Dinterpreter.cc63 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
74 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
81 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
88 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
95 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
102 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
115 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
123 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
133 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
140 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
[all …]
/art/runtime/interpreter/mterp/
Dnterp.cc242 ObjPtr<mirror::Class> executing_class = caller->GetDeclaringClass(); in NterpGetMethod()
251 resolved_method->GetDeclaringClass(), in NterpGetMethod()
267 resolved_method->GetDeclaringClass(), in NterpGetMethod()
279 if (resolved_method->GetDeclaringClass()->IsObjectClass()) { in NterpGetMethod()
285 DCHECK(resolved_method->GetDeclaringClass()->IsInterface()); in NterpGetMethod()
289 } else if (resolved_method->GetDeclaringClass()->IsStringClass() in NterpGetMethod()
331 ObjPtr<mirror::Class> fields_class = resolved_field->GetDeclaringClass(); in ResolveFieldWithAccessChecks()
336 ObjPtr<mirror::Class> referring_class = caller->GetDeclaringClass(); in ResolveFieldWithAccessChecks()
368 if (UNLIKELY(!resolved_field->GetDeclaringClass()->IsVisiblyInitialized())) { in NterpGetStaticField()
370 Handle<mirror::Class> h_class(hs.NewHandle(resolved_field->GetDeclaringClass())); in NterpGetStaticField()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h249 ObjPtr<mirror::Class> referrer = method->GetDeclaringClass(); in CheckArrayAlloc()
349 ObjPtr<mirror::Class> fields_class = resolved_field->GetDeclaringClass(); in FindFieldFromCode()
355 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in FindFieldFromCode()
434 if (UNLIKELY(resolved_method->GetDeclaringClass()->IsStringClass() && in FindMethodToCall()
459 ThrowNoSuchMethodError(type, resolved_method->GetDeclaringClass(), in FindMethodToCall()
474 Handle<mirror::Class> h_referring_class(hs2.NewHandle(referrer->GetDeclaringClass())); in FindMethodToCall()
498 ThrowNoSuchMethodError(type, resolved_method->GetDeclaringClass(), in FindMethodToCall()
522 ThrowNoSuchMethodError(type, resolved_method->GetDeclaringClass(), in FindMethodToCall()
623 ObjPtr<mirror::Class> fields_class = resolved_field->GetDeclaringClass(); in FindFieldFast()
631 ObjPtr<mirror::Class> referring_class = referrer->GetDeclaringClass(); in FindFieldFast()
[all …]
/art/runtime/jni/
Djni_id_manager.cc280 DCHECK(!t->GetDeclaringClass().IsNull()) << "Null declaring class " << PrettyGeneric(t); in EncodeGenericId()
281 size_t off = GetIdOffset(t->GetDeclaringClass(), Canonicalize(t), kRuntimePointerSize); in EncodeGenericId()
283 bool allocation_failure = EnsureIdsArray(self, t->GetDeclaringClass(), t.Get()); in EncodeGenericId()
288 } else if (ShouldReturnPointer(t->GetDeclaringClass(), t.Get())) { in EncodeGenericId()
291 ObjPtr<mirror::Class> klass = t->GetDeclaringClass(); in EncodeGenericId()
426 ObjPtr<mirror::Class> old_class(old_field->GetDeclaringClass()); in VisitReflectiveTargets()
427 ObjPtr<mirror::Class> new_class(new_field->GetDeclaringClass()); in VisitReflectiveTargets()
479 ObjPtr<mirror::Class> old_class(old_method->GetDeclaringClass()); in VisitReflectiveTargets()
480 ObjPtr<mirror::Class> new_class(new_method->GetDeclaringClass()); in VisitReflectiveTargets()
624 bool alloc_failure = EnsureIdsArray(self, (*t)->GetDeclaringClass(), *t); in EndDefer()
[all …]
/art/compiler/dex/
Dinline_method_analyser.cc155 CHECK(target_method->GetDeclaringClass() == method->GetDeclaringClass() || in GetTargetConstructor()
156 target_method->GetDeclaringClass() == method->GetDeclaringClass()->GetSuperClass()); in GetTargetConstructor()
296 if (!method->GetDeclaringClass()->IsVerified() || in DoAnalyseConstructor()
318 if (target_method->GetDeclaringClass() == method->GetDeclaringClass() && in DoAnalyseConstructor()
326 if (target_method->GetDeclaringClass()->IsObjectClass()) { in DoAnalyseConstructor()
720 ObjPtr<mirror::Class> method_class = method->GetDeclaringClass(); in ComputeSpecialAccessorInfo()
721 ObjPtr<mirror::Class> field_class = field->GetDeclaringClass(); in ComputeSpecialAccessorInfo()
/art/dex2oat/linker/
Dimage_test.cc128 ASSERT_OBJ_PTR_EQ(origin->GetDeclaringClass(), iface_klass); in TEST_F()
151 ASSERT_OBJ_PTR_EQ(origin->GetDeclaringClass(), iterable_klass); in TEST_F()
/art/runtime/dex/
Ddex_file_annotations.cc77 : ClassData(hs.NewHandle(field->GetDeclaringClass())) { } in ClassData()
103 return method_->GetDeclaringClass()->GetClassLoader(); in GetClassLoader()
111 return method_->GetDeclaringClass(); in GetRealClass()
174 ObjPtr<mirror::Class> klass = field->GetDeclaringClass(); in FindAnnotationSetForField()
577 Handle<mirror::Class> field_class(hs.NewHandle(enum_field->GetDeclaringClass())); in ProcessAnnotationValue()
1527 ObjPtr<mirror::Class> GetDeclaringClass(Handle<mirror::Class> klass) { in GetDeclaringClass() function
1551 ObjPtr<mirror::Class> declaring_class = GetDeclaringClass(klass); in GetEnclosingClass()
1592 return method->GetDeclaringClass(); in GetEnclosingClass()
1765 case kBoolean: field->SetBoolean<kTransactionActive>(field->GetDeclaringClass(), jval_.z); in ReadValueToField()
1767 case kByte: field->SetByte<kTransactionActive>(field->GetDeclaringClass(), jval_.b); break; in ReadValueToField()
[all …]

1234