/art/runtime/mirror/ |
D | object_test.cc | 562 TEST_F(ObjectTest, IsAssignableFrom) { in TEST_F() argument 570 EXPECT_TRUE(X->IsAssignableFrom(X)); in TEST_F() 571 EXPECT_TRUE(X->IsAssignableFrom(Y)); in TEST_F() 572 EXPECT_FALSE(Y->IsAssignableFrom(X)); in TEST_F() 573 EXPECT_TRUE(Y->IsAssignableFrom(Y)); in TEST_F() 579 EXPECT_TRUE(charseq->IsAssignableFrom(string)); in TEST_F() 581 EXPECT_FALSE(string->IsAssignableFrom(charseq)); in TEST_F() 592 EXPECT_TRUE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F() 594 EXPECT_FALSE(prim_types[i]->IsAssignableFrom(prim_types[j])); in TEST_F() 637 EXPECT_TRUE(YAA->IsAssignableFrom(YAA)); // identity in TEST_F() [all …]
|
D | object.cc | 244 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl() 261 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
|
D | object_array-inl.h | 294 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy() 319 } else if (LIKELY(dst_class->IsAssignableFrom(o_class))) { in AssignableCheckingMemcpy()
|
D | class.cc | 389 return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this); in IsThrowableClass() 673 if (iface->IsAssignableFrom(possible_override->GetDeclaringClass())) { in FindVirtualMethodForInterfaceSuper() 976 while (!common_super_class->IsAssignableFrom(klass.Get())) { in GetCommonSuperClass()
|
D | class-inl.h | 395 return GetComponentType()->IsAssignableFrom(src->GetComponentType()); in IsArrayAssignableFromArray() 1021 inline bool Class::IsAssignableFrom(ObjPtr<Class> src) { in IsAssignableFrom() function
|
/art/runtime/entrypoints/quick/ |
D | quick_cast_entrypoints.cc | 27 return klass->IsAssignableFrom(ref_class) ? 1 : 0; in artIsAssignableFromCode()
|
D | quick_throw_entrypoints.cc | 114 DCHECK(!dest_type->IsAssignableFrom(src_type)); in artThrowClassCastException()
|
/art/runtime/verifier/ |
D | reg_type-inl.h | 114 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom() 130 inline bool RegType::IsAssignableFrom(const RegType& src, MethodVerifier* verifier) const { in IsAssignableFrom() function
|
D | register_line-inl.h | 134 if (UNLIKELY(!check_type.IsAssignableFrom(src_type, verifier))) { in VerifyRegisterType()
|
D | reg_type.cc | 742 } else if (s->IsAssignableFrom(t)) { in ClassJoin() 744 } else if (t->IsAssignableFrom(s)) { in ClassJoin() 911 if (cmp1.IsAssignableFrom(cmp2, verifier)) { in CanAssignArray()
|
D | verifier_deps.cc | 393 if (destination->IsAssignableFrom(boundary)) { in FindOneClassPathBoundaryForInterface() 456 DCHECK_EQ(is_assignable, destination->IsAssignableFrom(source)); in AddAssignability() 914 if (destination->IsAssignableFrom(source.Get()) != expected_assignability) { in VerifyAssignability()
|
D | method_verifier.cc | 2235 } else if (!return_type.IsAssignableFrom(reg_type, this)) { in CodeFlowVerifyInstruction() 2533 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(res_type, this)) { in CodeFlowVerifyInstruction() 3786 if (!reg_types_.JavaLangThrowable(false).IsAssignableFrom(exception, this)) { in GetCaughtExceptionType() 3803 reg_types_.JavaLangThrowable(false).IsAssignableFrom( in GetCaughtExceptionType() 4047 if (!res_method_class->IsAssignableFrom(adjusted_type, this)) { in VerifyInvocationArgsFromIterator() 4525 if (!res_method_class.IsAssignableFrom(actual_arg_type, this)) { in VerifyInvokeVirtualQuickArgs() 4895 } else if (!field_klass.IsAssignableFrom(obj_type, this)) { in GetInstanceField() 5003 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess() 5035 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess() 5166 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyQuickFieldAccess() [all …]
|
D | register_line.cc | 79 if (!check_type1.IsAssignableFrom(src_type, verifier)) { in VerifyRegisterTypeWide()
|
D | reg_type.h | 216 bool IsAssignableFrom(const RegType& src, MethodVerifier* verifier) const
|
/art/runtime/ |
D | jni_internal_test.cc | 1341 TEST_F(JniInternalTest, IsAssignableFrom) { in TEST_F() argument 1349 ASSERT_TRUE(env_->IsAssignableFrom(string_class, object_class)); in TEST_F() 1350 ASSERT_FALSE(env_->IsAssignableFrom(object_class, string_class)); in TEST_F() 1357 ASSERT_TRUE(env_->IsAssignableFrom(string_class, charsequence_interface)); in TEST_F() 1358 ASSERT_FALSE(env_->IsAssignableFrom(charsequence_interface, string_class)); in TEST_F() 1365 ASSERT_TRUE(env_->IsAssignableFrom(string_array_class, object_array_class)); in TEST_F() 1366 ASSERT_FALSE(env_->IsAssignableFrom(object_array_class, string_array_class)); in TEST_F() 1373 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F() 1375 EXPECT_EQ(env_->IsAssignableFrom(object_class, nullptr), JNI_FALSE); in TEST_F() 1378 EXPECT_EQ(env_->IsAssignableFrom(nullptr, string_class), JNI_FALSE); in TEST_F() [all …]
|
D | class_linker_test.cc | 344 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())) in AssertClass() 1204 EXPECT_TRUE(I->IsAssignableFrom(A.Get())); in TEST_F() 1205 EXPECT_TRUE(J->IsAssignableFrom(A.Get())); in TEST_F() 1206 EXPECT_TRUE(J->IsAssignableFrom(K.Get())); in TEST_F() 1207 EXPECT_TRUE(K->IsAssignableFrom(B.Get())); in TEST_F() 1208 EXPECT_TRUE(J->IsAssignableFrom(B.Get())); in TEST_F()
|
D | debugger.cc | 406 if (!java_lang_Thread->IsAssignableFrom(thread_peer->GetClass())) { in DecodeThread() 448 if (thread_class->IsAssignableFrom(c)) { in TagFromClass() 455 if (thread_group_class->IsAssignableFrom(c)) { in TagFromClass() 462 if (class_loader_class->IsAssignableFrom(c)) { in TagFromClass() 1391 return expected_class->IsAssignableFrom(event_class); in MatchType() 1806 if (receiver_class != nullptr && !f->GetDeclaringClass()->IsAssignableFrom(receiver_class)) { in GetFieldValueImpl() 1905 if (!field_type->IsAssignableFrom(v->GetClass())) { in SetArtFieldValue() 1981 if (!java_lang_String->IsAssignableFrom(obj->GetClass())) { in StringToUtf8() 2074 if (!c->IsAssignableFrom(thread_group->GetClass())) { in DecodeThreadGroup() 3976 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in PrepareInvokeMethod()
|
D | method_handles.cc | 145 return to->IsAssignableFrom(GetBoxedPrimitiveClass(from_primitive)); in IsParameterTypeConvertible() 234 if (h_obj != nullptr && !to->IsAssignableFrom(h_obj->GetClass())) { in ConvertJValueCommon()
|
D | check_jni.cc | 342 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckMethodAndSig() 398 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod() 718 if (o == nullptr || !field->GetDeclaringClass()->IsAssignableFrom(o->GetClass())) { in CheckFieldAccess() 1743 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() function in art::CheckJNI 1749 result.b = baseEnv(env)->IsAssignableFrom(env, c1, c2); in IsAssignableFrom() 3599 CheckJNI::IsAssignableFrom,
|
D | art_method.cc | 280 } else if (iter_exception_type->IsAssignableFrom(exception_type.Get())) { in FindCatchBlock()
|
/art/runtime/entrypoints/ |
D | entrypoint_utils-inl.h | 533 if (method_reference_class->IsAssignableFrom(h_referring_class.Get())) { in FindMethodFromCode() 554 if (!method_reference_class->IsAssignableFrom(h_this->GetClass())) { in FindMethodFromCode() 727 if (!method_reference_class->IsAssignableFrom(referring_class)) { in FindMethodFast()
|
D | entrypoint_utils.cc | 146 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
|
/art/runtime/native/ |
D | java_lang_System.cc | 151 if (dstComponentType->IsAssignableFrom(srcComponentType)) { in System_arraycopy()
|
/art/test/004-JniTest/ |
D | jni_test.cc | 285 return env->IsAssignableFrom(from, to); in Java_Main_nativeIsAssignableFrom()
|
/art/compiler/optimizing/ |
D | inliner.cc | 210 } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { in FindVirtualOrInterfaceTarget() 722 if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(klass.Get())) { in ResolveMethodFromInlineCache()
|