Searched refs:SubtypeCheckInfo (Results 1 – 7 of 7) sorted by relevance
/art/runtime/ |
D | subtype_check_info_test.cc | 96 static SubtypeCheckInfo MakeSubtypeCheckInfo(BitString path_to_root = {}, in MakeSubtypeCheckInfo() 102 return SubtypeCheckInfo(path_to_root, next, overflow, depth); 105 static SubtypeCheckInfo MakeSubtypeCheckInfoInfused(BitString bs = {}, in MakeSubtypeCheckInfoInfused() 113 return SubtypeCheckInfo::Create(iod, depth); 116 static SubtypeCheckInfo MakeSubtypeCheckInfoUnchecked(BitString bs = {}, in MakeSubtypeCheckInfoUnchecked() 121 return SubtypeCheckInfo::MakeUnchecked(bs, overflow, depth); 124 static bool HasNext(const SubtypeCheckInfo& io) { in HasNext() 128 static BitString GetPathToRoot(const SubtypeCheckInfo& io) { in GetPathToRoot() 134 static SubtypeCheckInfo CopyCleared(const SubtypeCheckInfo& sc) { in CopyCleared() 135 SubtypeCheckInfo cleared_copy{}; in CopyCleared() [all …]
|
D | subtype_check.h | 237 static SubtypeCheckInfo::State EnsureInitialized(ClassPtr klass) in EnsureInitialized() 250 static SubtypeCheckInfo::State EnsureAssigned(ClassPtr klass) in EnsureAssigned() 265 static SubtypeCheckInfo::State ForceUninitialize(ClassPtr klass) in ForceUninitialize() 286 return SubtypeCheckInfo::kUninitialized; in ForceUninitialize() 294 static SubtypeCheckInfo::State GetState(ClassPtr klass) in GetState() 309 DCHECK_NE(SubtypeCheckInfo::kUninitialized, GetSubtypeCheckInfo(klass).GetState()); in GetEncodedPathToRootForSource() 322 SubtypeCheckInfo sci = GetSubtypeCheckInfo(klass); in GetEncodedPathToRootForTarget() 323 DCHECK_EQ(SubtypeCheckInfo::kAssigned, sci.GetState()); in GetEncodedPathToRootForTarget() 336 SubtypeCheckInfo sci = GetSubtypeCheckInfo(klass); in GetEncodedPathToRootMask() 337 DCHECK_EQ(SubtypeCheckInfo::kAssigned, sci.GetState()); in GetEncodedPathToRootMask() [all …]
|
D | subtype_check_test.cc | 228 SubtypeCheckInfo::State EnsureInitialized() in EnsureInitialized() 234 SubtypeCheckInfo::State EnsureAssigned() in EnsureAssigned() 240 SubtypeCheckInfo::State ForceUninitialize() in ForceUninitialize() 264 SubtypeCheckInfo::Result IsSubtypeOf(const MockSubtypeCheck& target) in IsSubtypeOf() 278 SubtypeCheckInfo::State GetState() const in GetState() 350 EXPECT_EQ(SubtypeCheckInfo::kUninitialized, SCTree::Lookup(kls).GetState()); in TEST_F() 361 EXPECT_EQ(SubtypeCheckInfo::kAssigned, root.EnsureInitialized()); in TEST_F() 362 EXPECT_EQ(SubtypeCheckInfo::kSubtypeOf, root.IsSubtypeOf(root)) << root; in TEST_F() 371 EXPECT_EQ(SubtypeCheckInfo::kAssigned, root.EnsureInitialized()); in TEST_F() 380 EXPECT_EQ(SubtypeCheckInfo::kUnknownSubtypeOf, root.IsSubtypeOf(child_tree)) << child_tree; in TEST_F() [all …]
|
D | subtype_check_info.h | 125 struct SubtypeCheckInfo { struct 155 static SubtypeCheckInfo Create(SubtypeCheckBits compressed_value, size_t depth) { in Create() argument 156 SubtypeCheckInfo io; in Create() 169 Result IsSubtypeOf(const SubtypeCheckInfo& target) { in IsSubtypeOf() argument 170 if (target.GetState() != SubtypeCheckInfo::kAssigned) { in IsSubtypeOf() 172 } else if (GetState() == SubtypeCheckInfo::kUninitialized) { in IsSubtypeOf() 198 static SubtypeCheckInfo CreateRoot() { in CreateRoot() argument 199 SubtypeCheckInfo io{}; in CreateRoot() 204 DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); in CreateRoot() 216 SubtypeCheckInfo CreateChild(bool assign_next) { in CreateChild() argument [all …]
|
/art/compiler/optimizing/ |
D | sharpening.cc | 264 SubtypeCheckInfo::State old_state = SubtypeCheck<ObjPtr<mirror::Class>>::GetState(klass); in CanUseTypeCheckBitstring() 265 CHECK(old_state == SubtypeCheckInfo::kAssigned || old_state == SubtypeCheckInfo::kOverflowed) in CanUseTypeCheckBitstring() 269 SubtypeCheckInfo::State state = SubtypeCheck<ObjPtr<mirror::Class>>::EnsureAssigned(klass); in CanUseTypeCheckBitstring() 270 return state == SubtypeCheckInfo::kAssigned; in CanUseTypeCheckBitstring()
|
D | graph_checker.cc | 625 SubtypeCheckInfo::State state = SubtypeCheck<ObjPtr<mirror::Class>>::GetState(klass); in HandleTypeCheckInstruction() 626 if (state == SubtypeCheckInfo::kAssigned) { in HandleTypeCheckInstruction()
|
/art/runtime/mirror/ |
D | class-inl.h | 597 SubtypeCheckInfo::Result sc_result = SubtypeCheck<ObjPtr<Class>>::IsSubtypeOf(dis, klass); in IsSubClass() 598 if (sc_result != SubtypeCheckInfo::kUnknownSubtypeOf) { in IsSubClass() 607 SubtypeCheckInfo::Result expected_result = in IsSubClass() 608 result ? SubtypeCheckInfo::kSubtypeOf : SubtypeCheckInfo::kNotSubtypeOf; in IsSubClass()
|