Home
last modified time | relevance | path

Searched refs:InstanceOf (Results 1 – 24 of 24) sorted by relevance

/art/test/486-checker-must-do-null-check/
Dinfo.txt1 Verifies MustDoNullCheck() on InstanceOf and CheckCast
/art/test/108-check-cast/
Dinfo.txt5 CCE throw| InstanceOf | Correct?
/art/runtime/entrypoints/quick/
Dquick_cast_entrypoints.cc35 return obj->InstanceOf(ref_class) ? 1 : 0; in artInstanceOfFromCode()
/art/runtime/mirror/
Dthrowable.cc73 if (InstanceOf(WellKnownClasses::ToClass(WellKnownClasses::java_lang_Error))) { in IsCheckedException()
76 return !InstanceOf(WellKnownClasses::ToClass(WellKnownClasses::java_lang_RuntimeException)); in IsCheckedException()
80 return InstanceOf(WellKnownClasses::ToClass(WellKnownClasses::java_lang_Error)); in IsError()
Dobject_test.cc577 TEST_F(ObjectTest, InstanceOf) { in TEST_F() argument
593 EXPECT_TRUE(x->InstanceOf(X.Get())); in TEST_F()
594 EXPECT_FALSE(x->InstanceOf(Y.Get())); in TEST_F()
595 EXPECT_TRUE(y->InstanceOf(X.Get())); in TEST_F()
596 EXPECT_TRUE(y->InstanceOf(Y.Get())); in TEST_F()
603 EXPECT_FALSE(java_lang_Class->InstanceOf(Object_array_class.Get())); in TEST_F()
604 EXPECT_TRUE(Object_array_class->InstanceOf(java_lang_Class.Get())); in TEST_F()
613 EXPECT_TRUE(array->InstanceOf(java_lang_Cloneable.Get())); in TEST_F()
614 EXPECT_TRUE(array->InstanceOf(java_io_Serializable.Get())); in TEST_F()
Dobject_array-inl.h52 if (UNLIKELY(!object->InstanceOf(element_class))) { in CheckAssignable()
Dobject-inl.h130 return klass->IsInterface() || InstanceOf(klass); in VerifierInstanceOf()
134 inline bool Object::InstanceOf(ObjPtr<Class> klass) { in InstanceOf() function
Dobject.h129 ALWAYS_INLINE bool InstanceOf(ObjPtr<Class> klass) REQUIRES_SHARED(Locks::mutator_lock_);
/art/test/486-checker-must-do-null-check/src/
DMain.java29 public void InstanceOf(Object o) throws Exception { in InstanceOf() method in Main
/art/runtime/
Dreflection-inl.h123 } else if (UNLIKELY(!o->InstanceOf(c))) { in VerifyObjectIsClass()
Dclass_loader_utils.h37 return class_loader->InstanceOf( in IsInstanceOfBaseDexClassLoader()
Dreflection.cc251 if (UNLIKELY(arg == nullptr || !arg->InstanceOf(dst_class))) { in BuildArgArrayFromObjectArray()
399 if (argument != nullptr && !argument->InstanceOf(param_type)) { in CheckMethodArguments()
893 if (UNLIKELY(o != nullptr && !o->InstanceOf(dst_class))) { in UnboxPrimitive()
1023 if (obj != nullptr && !obj->InstanceOf(calling_class) && in VerifyAccess()
Dclass_linker_test.cc75 EXPECT_TRUE(exception->InstanceOf(exception_class)); in AssertNonExistentClass()
Dclass_linker.cc2959 throwable->InstanceOf(GetClassRoot(ClassRoot::kJavaLangClassNotFoundException, in MatchesDexFileCaughtExceptions()
2963 throwable->InstanceOf(Runtime::Current()->GetPreAllocatedNoClassDefFoundError()->GetClass()); in MatchesDexFileCaughtExceptions()
8774 if (cause->InstanceOf(GetClassRoot(ClassRoot::kJavaLangClassNotFoundException, this))) { in DoResolveType()
/art/compiler/optimizing/
Dscheduler_arm.h84 M(InstanceOf , unused) \
Dscheduler_arm64.h74 M(InstanceOf , unused) \
Dnodes.h1471 M(InstanceOf, Instruction) \
7393 DECLARE_INSTRUCTION(InstanceOf);
7396 DEFAULT_COPY_CONSTRUCTOR(InstanceOf);
/art/runtime/entrypoints/
Dentrypoint_utils.cc54 if (!o->InstanceOf(return_type)) { in CheckReferenceResult()
/art/runtime/interpreter/mterp/
Dmterp.cc415 if (UNLIKELY(obj != nullptr && !obj->InstanceOf(c))) { in MterpCheckCast()
437 return (obj != nullptr) && obj->InstanceOf(c) ? 1u : 0u; in MterpInstanceOf()
/art/runtime/interpreter/
Dinterpreter_switch_impl-inl.h693 if (UNLIKELY(obj != nullptr && !obj->InstanceOf(c))) { in CHECK_CAST()
711 SetVReg(A(), (obj != nullptr && obj->InstanceOf(c)) ? 1 : 0); in INSTANCE_OF()
Dinterpreter_common.cc1086 if (UNLIKELY(!object->InstanceOf(call_site_class))) { in InvokeBootstrapMethod()
/art/runtime/jni/
Dcheck_jni.cc421 } else if (!o->InstanceOf(m->GetDeclaringClass())) { in CheckMethodAndSig()
491 } else if (!o->InstanceOf(m->GetDeclaringClass())) { in CheckVirtualMethod()
Djni_internal.cc584 return obj->InstanceOf(c) ? JNI_TRUE : JNI_FALSE; in IsInstanceOf()
/art/openjdkjvmti/
Dti_redefine.cc1725 return obj->InstanceOf(old_klass.Get()); in CollectAndCreateNewInstances()