Home
last modified time | relevance | path

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

123

/art/runtime/mirror/
Dobject-inl.h44 inline Class* Object::GetClass() { in GetClass() function
182 DCHECK(GetClass<kVerifyFlags>() != NULL); in VerifierInstanceOf()
189 DCHECK(GetClass<kVerifyNone>() != NULL); in InstanceOf()
190 return klass->IsAssignableFrom(GetClass<kVerifyFlags>()); in InstanceOf()
195 Class* java_lang_Class = GetClass<kVerifyFlags, kReadBarrierOption>()-> in IsClass()
196 template GetClass<kVerifyFlags, kReadBarrierOption>(); in IsClass()
197 return GetClass<static_cast<VerifyObjectFlags>(kVerifyFlags & ~kVerifyThis), in IsClass()
211 !GetClass<kNewFlags>()->template GetComponentType<kNewFlags>()->IsPrimitive(); in IsObjectArray()
222 return GetClass<kVerifyFlags, kReadBarrierOption>()-> in IsArrayInstance()
228 return GetClass<kVerifyFlags, kReadBarrierOption>()-> in IsArtField()
[all …]
Dobject_test.cc124 EXPECT_TRUE(clone->GetClass() == a1->GetClass()); in TEST_F()
147 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass()); in TEST_F()
152 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass()); in TEST_F()
155 ASSERT_TRUE(oa->GetClass() != NULL); in TEST_F()
156 Handle<mirror::Class> klass(hs.NewHandle(oa->GetClass())); in TEST_F()
171 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
177 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
183 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
194 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
200 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
[all …]
Dobject.cc87 Class* c = src->GetClass(); in CopyObject()
133 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
135 copy = heap->AllocNonMovableObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
200 Class* c = GetClass(); in CheckFieldAssignmentImpl()
216 CHECK(fh.GetType()->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
236 CHECK(fh.GetType()->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
Darray.cc124 art::ThrowArrayStoreException(object->GetClass(), this->GetClass()); in ThrowArrayStoreException()
Dobject_array-inl.h65 Class* element_class = GetClass<kVerifyFlags>()->GetComponentType(); in CheckAssignable()
200 Class* dst_class = GetClass()->GetComponentType(); in AssignableCheckingMemcpy()
214 Class* o_class = o->GetClass(); in AssignableCheckingMemcpy()
253 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
/art/runtime/
Djobject_comparator.cc42 if (obj1->GetClass() != obj2->GetClass()) { in operator ()()
43 return obj1->GetClass()->IdentityHashCode() < obj2->IdentityHashCode(); in operator ()()
Dreference_table.cc91 if (obj1->GetClass() != obj2->GetClass()) { in operator ()()
92 return obj1->GetClass()->IdentityHashCode() < obj2->GetClass()->IdentityHashCode(); in operator ()()
174 if (ref->GetClass() == NULL) { in Dump()
187 } else if (ref->GetClass()->IsStringClass()) { in Dump()
230 … } else if (current->GetClass() == prev->GetClass() && GetElementCount(current) == element_count) { in Dump()
Dverify_object-inl.h38 mirror::Class* c = obj->GetClass<kVerifyNone>(); in VerifyObject()
54 mirror::Class* c_c = c->GetClass<kVerifyNone>(); in VerifyClassClass()
55 return c_c != nullptr && c_c == c_c->GetClass<kVerifyNone>(); in VerifyClassClass()
Dclass_linker_test.cc68 ASSERT_TRUE(primitive->GetClass() != NULL); in AssertPrimitiveClass()
69 ASSERT_EQ(primitive->GetClass(), primitive->GetClass()->GetClass()); in AssertPrimitiveClass()
70 EXPECT_TRUE(primitive->GetClass()->GetSuperClass() != NULL); in AssertPrimitiveClass()
120 ASSERT_TRUE(array->GetClass() != NULL); in AssertArrayClass()
121 ASSERT_EQ(array->GetClass(), array->GetClass()->GetClass()); in AssertArrayClass()
122 EXPECT_TRUE(array->GetClass()->GetSuperClass() != NULL); in AssertArrayClass()
163 EXPECT_TRUE(method->GetClass() != nullptr); in AssertMethod()
178 EXPECT_TRUE(field->GetClass() != NULL); in AssertField()
196 EXPECT_TRUE(klass->GetClass() != NULL); in AssertClass()
197 EXPECT_EQ(klass->GetClass(), klass->GetClass()->GetClass()); in AssertClass()
[all …]
Dreflection.cc247 if (LIKELY(arg != nullptr && arg->GetClass<>()->DescriptorEquals(match_descriptor))) { \ in BuildArgArrayFromObjectArray()
248 mirror::ArtField* primitive_field = arg->GetClass()->GetIFields()->Get(0); \ in BuildArgArrayFromObjectArray()
253 arg->GetClass<>()->DescriptorEquals(match_descriptor))) { \ in BuildArgArrayFromObjectArray()
254 mirror::ArtField* primitive_field = arg->GetClass()->GetIFields()->Get(0); \ in BuildArgArrayFromObjectArray()
259 if (arg->GetClass<>()->IsPrimitive()) { \ in BuildArgArrayFromObjectArray()
262 arg->GetClass<>()->GetDescriptor(&temp)); \ in BuildArgArrayFromObjectArray()
405 return receiver->GetClass()->FindVirtualMethodForVirtualOrInterface(method); in FindVirtualMethod()
551 m = receiver->GetClass()->FindVirtualMethodForVirtualOrInterface(m); in InvokeMethod()
738 mirror::Class* klass = o->GetClass(); in UnboxPrimitive()
741 mirror::ArtField* primitive_field = o->GetClass()->GetIFields()->Get(0); in UnboxPrimitive()
[all …]
Dtransaction_test.cc40 ASSERT_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
45 EXPECT_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
56 ASSERT_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
95 ASSERT_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
169 ASSERT_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
268 ASSERT_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
383 ASSERT_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
Dcommon_throws.cc187 referrer != NULL ? referrer->GetClass() : NULL, in ThrowIllegalAccessErrorFinalField()
220 referrer != NULL ? referrer->GetClass() : NULL, in ThrowIncompatibleClassChangeError()
231 msg << "Class '" << PrettyDescriptor(this_object->GetClass()) in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch()
236 referrer != NULL ? referrer->GetClass() : NULL, in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch()
246 ThrowException(NULL, "Ljava/lang/IncompatibleClassChangeError;", referrer->GetClass(), in ThrowIncompatibleClassChangeErrorField()
Dutils_test.cc121 EXPECT_EQ("java.lang.Class<java.lang.String[]>", PrettyTypeOf(o->GetClass())); in TEST_F()
130 EXPECT_EQ("java.lang.Class<java.lang.String[]>", PrettyClass(o->GetClass())); in TEST_F()
139 EXPECT_EQ("java.lang.Class<java.lang.String[],null>", PrettyClassAndClassLoader(o->GetClass())); in TEST_F()
/art/runtime/verifier/
Dreg_type.cc438 result << "Reference" << ": " << PrettyDescriptor(GetClass()); in Dump()
444 result << "Precise Reference" << ": "<< PrettyDescriptor(GetClass()); in Dump()
450 result << "Uninitialized Reference" << ": " << PrettyDescriptor(GetClass()); in Dump()
457 result << "Uninitialized This Reference" << ": " << PrettyDescriptor(GetClass()); in Dump()
619 mirror::Class* super_klass = GetClass()->GetSuperClass(); in GetSuperClass()
646 return GetClass()->CanAccess(other.GetClass()); in CanAccess()
648 return other.GetClass()->IsPublic(); // Be conservative, only allow if other is public. in CanAccess()
660 return GetClass()->CanAccessMember(klass, access_flags); in CanAccessMember()
672 mirror::Class* type = GetClass(); in IsObjectArrayTypes()
680 return IsReference() && GetClass()->IsObjectClass(); in IsJavaLangObject()
[all …]
Dreg_type_cache.cc38 if (!precise && entry->GetClass()->CannotBeAssignedFromOtherTypes()) { in MatchingPrecisionForClass()
384 mirror::Class* klass = type.GetClass(); in Uninitialized()
390 cur_entry->GetClass() == klass) { in Uninitialized()
414 mirror::Class* klass = uninit_type.GetClass(); in FromUninitialized()
419 if (cur_entry->IsReference() && cur_entry->GetClass() == klass) { in FromUninitialized()
429 if (cur_entry->IsPreciseReference() && cur_entry->GetClass() == klass) { in FromUninitialized()
492 mirror::Class* klass = type.GetClass(); in UninitializedThisArgument()
495 if (cur_entry->IsUninitializedThisReference() && cur_entry->GetClass() == klass) { in UninitializedThisArgument()
568 mirror::Class* klass = array.GetClass()->GetComponentType(); in GetComponentType()
/art/runtime/entrypoints/portable/
Dportable_cast_entrypoints.cc48 mirror::Class* array_class = array->GetClass(); in art_portable_check_put_array_element_from_code()
51 mirror::Class* element_class = element->GetClass(); in art_portable_check_put_array_element_from_code()
/art/runtime/native/
Djava_lang_System.cc87 mirror::Class* dstComponentType = dstArray->GetClass()->GetComponentType(); in System_arraycopy()
88 mirror::Class* srcComponentType = srcArray->GetClass()->GetComponentType(); in System_arraycopy()
166 DCHECK_EQ(srcArray->GetClass(), dstArray->GetClass()); in System_arraycopyTUnchecked()
167 DCHECK_EQ(srcArray->GetClass()->GetComponentType()->GetPrimitiveType(), kPrimType); in System_arraycopyTUnchecked()
Djava_lang_reflect_Array.cc37 DCHECK_EQ(dimensions_obj->GetClass()->GetComponentType()->GetPrimitiveType(), in Array_createMultiArray()
/art/runtime/entrypoints/quick/
Dquick_throw_entrypoints.cc115 ThrowArrayStoreException(value->GetClass(), array->GetClass()); in artThrowArrayStoreException()
/art/runtime/gc/collector/
Dmark_sweep-inl.h38 mirror::Class* klass = obj->GetClass<kVerifyNone>(); in ScanObjectVisit()
/art/runtime/entrypoints/
Dentrypoint_utils.cc293 proxy_method = rcvr->GetClass()->FindVirtualMethodForInterface( in InvokeProxyInvocationHandler()
314 mirror::Class* proxy_class = rcvr->GetClass(); in InvokeProxyInvocationHandler()
318 rcvr->GetClass()->FindVirtualMethodForInterface(interface_method); in InvokeProxyInvocationHandler()
330 mirror::Class* exception_class = exception->GetClass(); in InvokeProxyInvocationHandler()
Dentrypoint_utils-inl.h397 mirror::Class* klass = (*this_object)->GetClass(); in FindMethodFromCode()
431 … mirror::ArtMethod* imt_method = (*this_object)->GetClass()->GetEmbeddedImTableEntry(imt_index); in FindMethodFromCode()
434 mirror::Class* klass = (*this_object)->GetClass(); in FindMethodFromCode()
443 (*this_object)->GetClass()->FindVirtualMethodForInterface(resolved_method); in FindMethodFromCode()
563 return this_object->GetClass()->FindVirtualMethodForInterface(resolved_method); in FindMethodFast()
571 return this_object->GetClass()->GetVTableEntry(resolved_method->GetMethodIndex()); in FindMethodFast()
/art/compiler/dex/
Dverified_method.cc225 mirror::Class* reg_class = reg_type.GetClass(); in GenerateDevirtMap()
244 concrete_method = reg_type.GetClass()->FindVirtualMethodForInterface(abstract_method); in GenerateDevirtMap()
247 concrete_method = reg_type.GetClass()->FindVirtualMethodForVirtual(abstract_method); in GenerateDevirtMap()
/art/runtime/interpreter/
Dinterpreter_common.cc135 ArtField* f = ArtField::FindInstanceFieldWithOffset(obj->GetClass(), in DoIGetQuick()
277 reg->GetClass()->GetDescriptor(&temp1), in DoFieldPut()
339 ArtField* f = ArtField::FindInstanceFieldWithOffset(obj->GetClass(), in DoIPutQuick()
412 Handle<mirror::Class> exception_class(hs.NewHandle((*exception_)->GetClass())); in VisitFrame()
468 Handle<mirror::Class> exception_class(hs.NewHandle(exception->GetClass())); in FindNextInstructionFollowingException()
597 o->GetClass()->GetDescriptor(&temp1), in DoCall()
737 …Primitive::Type primitive_component_type = array->GetClass()->GetComponentType()->GetPrimitiveType… in RecordArrayElementsInTransaction()
879 Class* ctype = shadow_frame->GetVRegReference(arg_offset)->GetClass()->GetComponentType(); in UnstartedRuntimeInvoke()
/art/runtime/gc/space/
Dbump_pointer_space.cc175 if (obj->GetClass() == nullptr) { in Walk()
195 while (obj < end && obj->GetClass() != nullptr) { in Walk()

123