Home
last modified time | relevance | path

Searched refs:check_cast (Results 1 – 7 of 7) sorted by relevance

/art/runtime/entrypoints/quick/
Dquick_throw_entrypoints.cc125 const Instruction& check_cast = accessor.InstructionAt(dex_pc); in artThrowClassCastException() local
126 DCHECK_EQ(check_cast.Opcode(), Instruction::CHECK_CAST); in artThrowClassCastException()
127 dex::TypeIndex type_index(check_cast.VRegB_21c()); in artThrowClassCastException()
/art/compiler/optimizing/
Dprepare_for_register_allocation.h46 void VisitCheckCast(HCheckCast* check_cast) override;
Dprepare_for_register_allocation.cc38 void PrepareForRegisterAllocation::VisitCheckCast(HCheckCast* check_cast) { in VisitCheckCast() argument
40 if (check_cast->GetTypeCheckKind() == TypeCheckKind::kBitstringCheck) { in VisitCheckCast()
Dcode_generator.h460 static bool IsTypeCheckSlowPathFatal(HCheckCast* check_cast) { in IsTypeCheckSlowPathFatal() argument
461 switch (check_cast->GetTypeCheckKind()) { in IsTypeCheckSlowPathFatal()
468 kEmitCompilerReadBarrier && !check_cast->GetTargetClass()->IsInBootImage(); in IsTypeCheckSlowPathFatal()
483 static LocationSummary::CallKind GetCheckCastCallKind(HCheckCast* check_cast) { in GetCheckCastCallKind() argument
484 return (IsTypeCheckSlowPathFatal(check_cast) && !check_cast->CanThrowIntoCatchBlock()) in GetCheckCastCallKind()
Dinstruction_simplifier.cc616 void InstructionSimplifierVisitor::VisitCheckCast(HCheckCast* check_cast) { in VisitCheckCast() argument
617 HInstruction* object = check_cast->InputAt(0); in VisitCheckCast()
618 if (check_cast->GetTypeCheckKind() != TypeCheckKind::kBitstringCheck && in VisitCheckCast()
619 check_cast->GetTargetClass()->NeedsAccessCheck()) { in VisitCheckCast()
624 if (CanEnsureNotNullAt(object, check_cast)) { in VisitCheckCast()
625 check_cast->ClearMustDoNullCheck(); in VisitCheckCast()
629 check_cast->GetBlock()->RemoveInstruction(check_cast); in VisitCheckCast()
637 if (TypeCheckHasKnownOutcome(check_cast->GetTargetClassRTI(), object, &outcome)) { in VisitCheckCast()
639 check_cast->GetBlock()->RemoveInstruction(check_cast); in VisitCheckCast()
641 if (check_cast->GetTypeCheckKind() != TypeCheckKind::kBitstringCheck) { in VisitCheckCast()
[all …]
Dreference_type_propagation.cc715 void ReferenceTypePropagation::RTPVisitor::VisitCheckCast(HCheckCast* check_cast) { in VisitCheckCast() argument
716 HBoundType* bound_type = check_cast->GetNext()->AsBoundType(); in VisitCheckCast()
722 DCHECK_EQ(bound_type->InputAt(0), check_cast->InputAt(0)); in VisitCheckCast()
725 Handle<mirror::Class> klass = check_cast->GetClass(); in VisitCheckCast()
728 check_cast->SetValidTargetClassRTI(); in VisitCheckCast()
Dgraph_visualizer.cc421 void VisitCheckCast(HCheckCast* check_cast) override { in VisitCheckCast() argument
422 HandleTypeCheckInstruction(check_cast); in VisitCheckCast()