Home
last modified time | relevance | path

Searched refs:InstanceOf (Results 1 – 23 of 23) 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/test/486-checker-must-do-null-check/src/
DMain.java29 public void InstanceOf(Object o) throws Exception { in InstanceOf() method in Main
/art/runtime/mirror/
Dthrowable.cc72 if (InstanceOf(WellKnownClasses::ToClass(WellKnownClasses::java_lang_Error))) { in IsCheckedException()
75 return !InstanceOf(WellKnownClasses::ToClass(WellKnownClasses::java_lang_RuntimeException)); in IsCheckedException()
Dobject_test.cc525 TEST_F(ObjectTest, InstanceOf) { in TEST_F() argument
541 EXPECT_TRUE(x->InstanceOf(X)); in TEST_F()
542 EXPECT_FALSE(x->InstanceOf(Y)); in TEST_F()
543 EXPECT_TRUE(y->InstanceOf(X)); in TEST_F()
544 EXPECT_TRUE(y->InstanceOf(Y)); in TEST_F()
549 EXPECT_FALSE(java_lang_Class->InstanceOf(Object_array_class)); in TEST_F()
550 EXPECT_TRUE(Object_array_class->InstanceOf(java_lang_Class)); in TEST_F()
558 EXPECT_TRUE(array->InstanceOf(java_lang_Cloneable)); in TEST_F()
559 EXPECT_TRUE(array->InstanceOf(java_io_Serializable)); in TEST_F()
Dobject_array-inl.h79 if (UNLIKELY(!object->InstanceOf(element_class))) { in CheckAssignable()
Dobject-inl.h157 return klass->IsInterface() || InstanceOf(klass); in VerifierInstanceOf()
161 inline bool Object::InstanceOf(ObjPtr<Class> klass) { in InstanceOf() function
Dobject.h131 ALWAYS_INLINE bool InstanceOf(ObjPtr<Class> klass) REQUIRES_SHARED(Locks::mutator_lock_);
/art/runtime/
Dreflection-inl.h124 } else if (UNLIKELY(!o->InstanceOf(c.Ptr()))) { in VerifyObjectIsClass()
Dreflection.cc249 if (UNLIKELY(arg == nullptr || !arg->InstanceOf(dst_class))) { in BuildArgArrayFromObjectArray()
397 if (argument != nullptr && !argument->InstanceOf(param_type)) { in CheckMethodArguments()
781 if (UNLIKELY(o != nullptr && !o->InstanceOf(dst_class))) { in UnboxPrimitive()
911 if (obj != nullptr && !obj->InstanceOf(calling_class) && in VerifyAccess()
Dcheck_jni.cc418 } else if (!o->InstanceOf(m->GetDeclaringClass())) { in CheckMethodAndSig()
488 } else if (!o->InstanceOf(m->GetDeclaringClass())) { in CheckVirtualMethod()
Dclass_linker_test.cc69 EXPECT_TRUE(exception->InstanceOf(exception_class)); in AssertNonExistentClass()
Ddebugger.cc1344 if (o != nullptr && !o->InstanceOf(oa->GetClass()->GetComponentType())) { in SetArrayElements()
4095 if (argument != nullptr && !argument->InstanceOf(parameter_type)) { in PrepareInvokeMethod()
Djni_internal.cc551 return obj->InstanceOf(c) ? JNI_TRUE : JNI_FALSE; in IsInstanceOf()
Dclass_linker.cc7828 if (cause->InstanceOf(GetClassRoot(kJavaLangClassNotFoundException))) { in DoResolveType()
/art/compiler/optimizing/
Dscheduler_arm.h84 M(InstanceOf , unused) \
Dscheduler_arm64.h75 M(InstanceOf , unused) \
Dnodes.h1372 M(InstanceOf, Instruction) \
6806 DECLARE_INSTRUCTION(InstanceOf);
6809 DEFAULT_COPY_CONSTRUCTOR(InstanceOf);
/art/runtime/entrypoints/
Dentrypoint_utils.cc50 if (!o->InstanceOf(return_type)) { in CheckReferenceResult()
/art/runtime/interpreter/mterp/
Dmterp.cc434 if (UNLIKELY(obj != nullptr && !obj->InstanceOf(c))) { in MterpCheckCast()
456 return (obj != nullptr) && obj->InstanceOf(c); in MterpInstanceOf()
/art/runtime/interpreter/
Dinterpreter_switch_impl.cc615 if (UNLIKELY(obj != nullptr && !obj->InstanceOf(c))) { in ExecuteSwitchImplCpp()
636 (obj != nullptr && obj->InstanceOf(c)) ? 1 : 0); in ExecuteSwitchImplCpp()
Dinterpreter_common.cc1081 if (UNLIKELY(!object->InstanceOf(mirror::CallSite::StaticClass()))) { in InvokeBootstrapMethod()