Home
last modified time | relevance | path

Searched refs:GetClass (Results 1 – 25 of 113) sorted by relevance

12345

/art/runtime/gc/
Dheap-visit-objects-inl.h116 if (obj != nullptr && (kls = obj->GetClass()) != nullptr) { in VisitObjectsInternal()
137 mirror::Class* klsClass = kls->GetClass(); in VisitObjectsInternal()
141 } else if (klsClass->GetClass() != klsClass) { in VisitObjectsInternal()
148 DCHECK(kls->GetClass() != nullptr) in VisitObjectsInternal()
150 DCHECK_EQ(kls->GetClass()->GetClass(), kls->GetClass()) in VisitObjectsInternal()
Dheap_verification_test.cc62 EXPECT_TRUE(v->IsValidHeapObjectAddress(string->GetClass())); in TEST_F()
63 const uintptr_t uint_klass = reinterpret_cast<uintptr_t>(string->GetClass()); in TEST_F()
81 EXPECT_TRUE(v->IsValidClass(string->GetClass())); in TEST_F()
92 const uintptr_t uint_klass = reinterpret_cast<uintptr_t>(string->GetClass()); in TEST_F()
120 LOG(INFO) << v->DumpObjectInfo(string->GetClass(), "obj"); in TEST_F()
121 const uintptr_t uint_klass = reinterpret_cast<uintptr_t>(string->GetClass()); in TEST_F()
143 v->LogHeapCorruption(string.Get(), mirror::Object::ClassOffset(), string->GetClass(), false); in TEST_F()
Dverification.cc57 mirror::Class* klass = obj->GetClass<kVerifyNone, kWithoutReadBarrier>(); in DumpObjectInfo()
99 mirror::Class* holder_klass = holder->GetClass<kVerifyNone, kWithoutReadBarrier>(); in LogHeapCorruption()
139 mirror::Class* k1 = klass->GetClass<kVerifyNone, kWithoutReadBarrier>(); in IsValidClass()
146 mirror::Class* k2 = k1->GetClass<kVerifyNone, kWithoutReadBarrier>(); in IsValidClass()
/art/runtime/verifier/
Dreg_type-inl.h40 return GetClass()->CanAccess(other.GetClass()); in CanAccess()
42 return other.GetClass()->IsPublic(); // Be conservative, only allow if other is public. in CanAccess()
55 return GetClass()->CanAccessMember(klass, access_flags); in CanAccessMember()
108 } else if (!strict && !lhs.IsUnresolvedTypes() && lhs.GetClass()->IsInterface()) { in AssignableFrom()
115 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom()
120 verifier->GetDexFile(), lhs.GetClass(), rhs.GetClass(), strict, result); in AssignableFrom()
Dreg_type.cc365 result << "Reference" << ": " << mirror::Class::PrettyDescriptor(GetClass()); in Dump()
371 result << "Precise Reference" << ": "<< mirror::Class::PrettyDescriptor(GetClass()); in Dump()
377 result << "Uninitialized Reference" << ": " << mirror::Class::PrettyDescriptor(GetClass()); in Dump()
384 result << "Uninitialized This Reference" << ": " << mirror::Class::PrettyDescriptor(GetClass()); in Dump()
508 mirror::Class* super_klass = GetClass()->GetSuperClass(); in GetSuperClass()
529 return IsReference() && GetClass()->IsObjectClass(); in IsJavaLangObject()
546 mirror::Class* type = GetClass(); in IsObjectArrayTypes()
564 return GetClass()->IsArrayClass(); in IsArrayTypes()
572 mirror::Class* type = GetClass(); in IsJavaLangObjectArray()
579 return IsUnresolvedTypes() || (IsNonZeroReferenceTypes() && GetClass()->IsInstantiable()); in IsInstantiableTypes()
[all …]
Dreg_type_cache.cc48 if (!precise && entry->GetClass()->CannotBeAssignedFromOtherTypes()) { in MatchingPrecisionForClass()
503 mirror::Class* klass = type.GetClass(); in Uninitialized()
509 cur_entry->GetClass() == klass) { in Uninitialized()
535 mirror::Class* klass = uninit_type.GetClass(); in FromUninitialized()
540 if (cur_entry->IsReference() && cur_entry->GetClass() == klass) { in FromUninitialized()
559 if (cur_entry->IsPreciseReference() && cur_entry->GetClass() == klass) { in FromUninitialized()
586 mirror::Class* klass = type.GetClass(); in UninitializedThisArgument()
589 if (cur_entry->IsUninitializedThisReference() && cur_entry->GetClass() == klass) { in UninitializedThisArgument()
658 mirror::Class* klass = array.GetClass()->GetComponentType(); in GetComponentType()
/art/runtime/
Djobject_comparator.cc43 if (obj1->GetClass() != obj2->GetClass()) { in operator ()()
44 return obj1->GetClass()->IdentityHashCode() < obj2->GetClass()->IdentityHashCode(); in operator ()()
Dverify_object-inl.h32 mirror::Class* c_c = c->GetClass<kVerifyNone>(); in VerifyClassClass()
33 return c_c != nullptr && c_c == c_c->GetClass<kVerifyNone>(); in VerifyClassClass()
Dreference_table.cc144 if (obj1->GetClass() != obj2->GetClass()) { in Dump()
145 return obj1->GetClass() < obj2->GetClass(); in Dump()
181 if (ref->GetClass() == nullptr) { in Dump()
194 } else if (ref->GetClass()->IsStringClass()) { in Dump()
310 } else if (current->GetClass() == prevObj->GetClass() && in Dump()
Ddebug_print.cc81 oss << loader_separator << loader->GetClass()->PrettyDescriptor() in DescribeLoaders()
96 if (loader->GetClass() == path_class_loader || in DescribeLoaders()
97 loader->GetClass() == dex_class_loader || in DescribeLoaders()
98 loader->GetClass() == delegate_last_class_loader) { in DescribeLoaders()
Dclass_linker_test.cc81 ASSERT_TRUE(primitive->GetClass() != nullptr); in AssertPrimitiveClass()
82 ASSERT_EQ(primitive->GetClass(), primitive->GetClass()->GetClass()); in AssertPrimitiveClass()
83 EXPECT_TRUE(primitive->GetClass()->GetSuperClass() != nullptr); in AssertPrimitiveClass()
119 ASSERT_TRUE(JavaLangObject->GetClass() != nullptr); in AssertObjectClass()
120 ASSERT_EQ(JavaLangObject->GetClass(), in AssertObjectClass()
121 JavaLangObject->GetClass()->GetClass()); in AssertObjectClass()
122 EXPECT_EQ(JavaLangObject, JavaLangObject->GetClass()->GetSuperClass()); in AssertObjectClass()
192 ASSERT_TRUE(array->GetClass() != nullptr); in AssertArrayClass()
193 ASSERT_EQ(array->GetClass(), array->GetClass()->GetClass()); in AssertArrayClass()
194 EXPECT_TRUE(array->GetClass()->GetSuperClass() != nullptr); in AssertArrayClass()
[all …]
Dverify_object.cc37 mirror::Class* c = obj->GetClass<kVerifyNone>(); in VerifyObjectImpl()
/art/runtime/mirror/
Darray.cc126 art::ThrowArrayStoreException(object->GetClass(), this->GetClass()); in ThrowArrayStoreException()
130 CHECK(GetClass()->GetComponentType()->IsPrimitive()) << "Will miss write barriers"; in CopyOf()
138 const auto component_size = GetClass()->GetComponentSize(); in CopyOf()
139 const auto component_shift = GetClass()->GetComponentSizeShift(); in CopyOf()
140 …ObjPtr<Array> new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_typ… in CopyOf()
Dobject-inl.h52 inline Class* Object::GetClass() { in GetClass() function
156 DCHECK(GetClass<kVerifyFlags>() != nullptr); in VerifierInstanceOf()
163 DCHECK(GetClass<kVerifyNone>() != nullptr) in InstanceOf()
165 return klass->IsAssignableFrom(GetClass<kVerifyFlags>()); in InstanceOf()
170 Class* java_lang_Class = GetClass<kVerifyFlags, kReadBarrierOption>()-> in IsClass()
171 template GetClass<kVerifyFlags, kReadBarrierOption>(); in IsClass()
172 return GetClass<static_cast<VerifyObjectFlags>(kVerifyFlags & ~kVerifyThis), in IsClass()
186 !GetClass<kNewFlags, kReadBarrierOption>()-> in IsObjectArray()
198 return GetClass<kVerifyFlags, kReadBarrierOption>()-> in IsArrayInstance()
204 return GetClass<kVerifyFlags, kReadBarrierOption>()->IsTypeOfReferenceClass(); in IsReferenceInstance()
[all …]
Dobject.cc123 ObjPtr<Class> c = src->GetClass(); in CopyObject()
163 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
165 copy = heap->AllocNonMovableObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
167 if (this_object->GetClass()->IsFinalizable()) { in Clone()
232 ObjPtr<Class> c = GetClass(); in CheckFieldAssignmentImpl()
246 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
264 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
277 : ArtField::FindInstanceFieldWithOffset(GetClass(), offset.Uint32Value()); in FindFieldByOffset()
291 ObjPtr<mirror::Class> klass = GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>(); in PrettyTypeOf()
Dobject_test.cc114 EXPECT_TRUE(clone->GetClass() == a1->GetClass()); in TEST_F()
136 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
141 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
144 ASSERT_TRUE(oa->GetClass() != nullptr); in TEST_F()
145 Handle<mirror::Class> klass(hs.NewHandle(oa->GetClass())); in TEST_F()
160 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
166 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
172 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
183 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
189 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
[all …]
Dobject_array-inl.h51 DCHECK_EQ(array->GetClass()->GetComponentSizeShift(), in Alloc()
78 Class* element_class = GetClass<kVerifyFlags>()->GetComponentType(); in CheckAssignable()
268 Class* dst_class = GetClass()->GetComponentType(); in AssignableCheckingMemcpy()
291 Class* o_class = o->GetClass(); in AssignableCheckingMemcpy()
316 Class* o_class = o->GetClass(); in AssignableCheckingMemcpy()
357 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
/art/runtime/entrypoints/quick/
Dquick_throw_entrypoints.cc125 artThrowClassCastException(dest_type, obj->GetClass(), self); in artThrowClassCastExceptionForObject()
132 ThrowArrayStoreException(value->GetClass(), array->GetClass()); in artThrowArrayStoreException()
/art/runtime/gc/space/
Dbump_pointer_space-walk-inl.h67 if (obj->GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>() == nullptr) { in Walk()
88 while (obj < end_obj && obj->GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>() != nullptr) { in Walk()
/art/compiler/dex/
Dverified_method.cc93 cast_type.GetClass(), in GenerateSafeCastSet()
94 reg_type.GetClass(), in GenerateSafeCastSet()
/art/openjdkjvmti/
Dti_class_loader.cc88 art::ArtField* internal_cookie_field = java_dex_file->GetClass()->FindDeclaredInstanceField( in UpdateJavaDexFile()
90 art::ArtField* cookie_field = java_dex_file->GetClass()->FindDeclaredInstanceField( in UpdateJavaDexFile()
108 art::ArtField* internal_cookie_field = java_dex_file_obj->GetClass()->FindDeclaredInstanceField( in GetDexFileCookie()
153 art::Handle<art::mirror::Class> loader_class(hs.NewHandle(loader->GetClass())); in GetDexElementList()
Dti_class_definition.cc152 DCHECK(orig_dex->GetClass()->GetComponentType()->IsPrimitiveByte()); in GetDexDataForRetransformation()
161 DCHECK(orig_dex->GetClass()->DescriptorEquals("Ljava/lang/Long;")) in GetDexDataForRetransformation()
163 << orig_dex->GetClass()->PrettyClass(); in GetDexDataForRetransformation()
200 DCHECK(orig_dex->IsDexCache() || orig_dex->GetClass()->DescriptorEquals("Ljava/lang/Long;")); in DexNeedsDequickening()
206 DCHECK(orig_dex->GetClass()->GetComponentType()->IsPrimitiveByte()); in DexNeedsDequickening()
225 DCHECK(orig_dex->GetClass()->DescriptorEquals("Ljava/lang/Long;")) in GetQuickenedDexFile()
227 << orig_dex->GetClass()->PrettyClass(); in GetQuickenedDexFile()
/art/test/626-const-class-linking/
Dclear_dex_cache_types.cc57 << i << " " << classes->Get(i)->GetClass()->PrettyDescriptor(); in Java_Main_nativeDumpClasses()
65 << (loader != nullptr ? loader->GetClass()->PrettyDescriptor() : "N/A"); in Java_Main_nativeDumpClasses()
/art/runtime/native/
Djava_lang_System.cc91 ObjPtr<mirror::Class> dstComponentType = dstArray->GetClass()->GetComponentType(); in System_arraycopy()
92 ObjPtr<mirror::Class> srcComponentType = srcArray->GetClass()->GetComponentType(); in System_arraycopy()
180 DCHECK_EQ(srcArray->GetClass(), dstArray->GetClass()); in System_arraycopyTUnchecked()
181 DCHECK_EQ(srcArray->GetClass()->GetComponentType()->GetPrimitiveType(), kPrimType); in System_arraycopyTUnchecked()
/art/runtime/gc/collector/
Dmark_sweep-inl.h39 mirror::Class* klass = obj->GetClass<kVerifyNone>(); in ScanObjectVisit()

12345