/art/compiler/optimizing/ |
D | prepare_for_register_allocation.cc | 155 HLoadClass* load_class = check->GetLoadClass(); in VisitClinitCheck() local 156 bool can_merge_with_load_class = CanMoveClinitCheck(load_class, check); in VisitClinitCheck() 158 check->ReplaceWith(load_class); in VisitClinitCheck() 164 if (can_merge_with_load_class && !load_class->HasUses()) { in VisitClinitCheck() 165 load_class->GetBlock()->RemoveInstruction(load_class); in VisitClinitCheck() 168 load_class->GetLoadKind() != HLoadClass::LoadKind::kRuntimeCall) { in VisitClinitCheck() 169 DCHECK(!load_class->NeedsAccessCheck()); in VisitClinitCheck() 172 DCHECK(load_class->HasEnvironment()); in VisitClinitCheck() 173 load_class->SetMustGenerateClinitCheck(true); in VisitClinitCheck()
|
D | sharpening.cc | 129 HLoadClass* load_class, in ComputeLoadClassKind() argument 132 Handle<mirror::Class> klass = load_class->GetClass(); in ComputeLoadClassKind() 133 DCHECK(load_class->GetLoadKind() == HLoadClass::LoadKind::kRuntimeCall || in ComputeLoadClassKind() 134 load_class->GetLoadKind() == HLoadClass::LoadKind::kReferrersClass) in ComputeLoadClassKind() 135 << load_class->GetLoadKind(); in ComputeLoadClassKind() 136 DCHECK(!load_class->IsInBootImage()) << "HLoadClass should not be optimized before sharpening."; in ComputeLoadClassKind() 138 HLoadClass::LoadKind load_kind = load_class->GetLoadKind(); in ComputeLoadClassKind() 140 if (load_class->NeedsAccessCheck()) { in ComputeLoadClassKind() 148 const DexFile& dex_file = load_class->GetDexFile(); in ComputeLoadClassKind() 149 dex::TypeIndex type_index = load_class->GetTypeIndex(); in ComputeLoadClassKind() [all …]
|
D | pc_relative_fixups_mips.cc | 73 void VisitLoadClass(HLoadClass* load_class) override { in VisitLoadClass() argument 74 HLoadClass::LoadKind load_kind = load_class->GetLoadKind(); in VisitLoadClass() 82 load_class->AddSpecialInput(base_); in VisitLoadClass()
|
D | pc_relative_fixups_x86.cc | 83 void VisitLoadClass(HLoadClass* load_class) override { in VisitLoadClass() argument 84 if (load_class->HasPcRelativeLoadKind()) { in VisitLoadClass() 85 HX86ComputeBaseMethodAddress* method_address = GetPCRelativeBasePointer(load_class); in VisitLoadClass() 86 load_class->AddSpecialInput(method_address); in VisitLoadClass()
|
D | ssa_builder.cc | 474 HLoadClass* load_class = nullptr; in RemoveRedundantUninitializedStrings() local 481 load_class = input->InputAt(0)->AsLoadClass(); in RemoveRedundantUninitializedStrings() 482 input->ReplaceWith(load_class); in RemoveRedundantUninitializedStrings() 485 load_class = input->AsLoadClass(); in RemoveRedundantUninitializedStrings() 487 DCHECK(!load_class->NeedsAccessCheck()) << "String class is always accessible"; in RemoveRedundantUninitializedStrings() 489 DCHECK(load_class != nullptr); in RemoveRedundantUninitializedStrings() 490 if (!load_class->HasUses()) { in RemoveRedundantUninitializedStrings() 493 load_class->GetBlock()->RemoveInstruction(load_class); in RemoveRedundantUninitializedStrings()
|
D | sharpening.h | 37 static HLoadClass::LoadKind ComputeLoadClassKind(HLoadClass* load_class,
|
D | graph_visualizer.cc | 377 void VisitLoadClass(HLoadClass* load_class) override { in VisitLoadClass() argument 378 StartAttributeStream("load_kind") << load_class->GetLoadKind(); in VisitLoadClass() 379 const char* descriptor = load_class->GetDexFile().GetTypeDescriptor( in VisitLoadClass() 380 load_class->GetDexFile().GetTypeId(load_class->GetTypeIndex())); in VisitLoadClass() 383 << load_class->MustGenerateClinitCheck() << std::noboolalpha; in VisitLoadClass() 385 << load_class->NeedsAccessCheck() << std::noboolalpha; in VisitLoadClass()
|
D | reference_type_propagation.cc | 99 void VisitLoadClass(HLoadClass* load_class) override; 100 void VisitInstanceOf(HInstanceOf* load_class) override; 314 HLoadClass* load_class = input_one->IsLoadClass() in BoundTypeForClassCheck() local 317 if (load_class == nullptr) { in BoundTypeForClassCheck() 321 ReferenceTypeInfo class_rti = load_class->GetLoadedClassRTI(); in BoundTypeForClassCheck() 327 HInstanceFieldGet* field_get = (load_class == input_one) in BoundTypeForClassCheck()
|
D | instruction_simplifier.cc | 646 HLoadClass* load_class = check_cast->GetTargetClass(); in VisitCheckCast() local 647 if (!load_class->HasUses()) { in VisitCheckCast() 651 load_class->GetBlock()->RemoveInstruction(load_class); in VisitCheckCast() 701 HLoadClass* load_class = instruction->GetTargetClass(); in VisitInstanceOf() local 702 if (!load_class->HasUses()) { in VisitInstanceOf() 706 load_class->GetBlock()->RemoveInstruction(load_class); in VisitInstanceOf() 1524 HLoadClass* load_class = input_one->IsLoadClass() in RecognizeAndSimplifyClassCheck() local 1527 if (load_class == nullptr) { in RecognizeAndSimplifyClassCheck() 1531 ReferenceTypeInfo class_rti = load_class->GetLoadedClassRTI(); in RecognizeAndSimplifyClassCheck() 1537 HInstanceFieldGet* field_get = (load_class == input_one) in RecognizeAndSimplifyClassCheck()
|
D | inliner.cc | 953 HLoadClass* load_class = new (graph_->GetAllocator()) HLoadClass(graph_->GetCurrentMethod(), in AddTypeGuard() local 961 load_class, codegen_, caller_compilation_unit_); in AddTypeGuard() 965 load_class->SetLoadKind(kind); in AddTypeGuard() 966 bb_cursor->InsertInstructionAfter(load_class, receiver_class); in AddTypeGuard() 970 if (load_class->NeedsEnvironment()) { in AddTypeGuard() 972 load_class->CopyEnvironmentFrom(invoke_instruction->GetEnvironment()); in AddTypeGuard() 975 HNotEqual* compare = new (graph_->GetAllocator()) HNotEqual(load_class, receiver_class); in AddTypeGuard() 976 bb_cursor->InsertInstructionAfter(compare, load_class); in AddTypeGuard()
|
D | instruction_builder.cc | 1051 HLoadClass* load_class = BuildLoadClass(type_index, dex_pc); in BuildNewInstance() local 1053 HInstruction* cls = load_class; in BuildNewInstance() 1054 Handle<mirror::Class> klass = load_class->GetClass(); in BuildNewInstance() 1057 cls = new (allocator_) HClinitCheck(load_class, dex_pc); in BuildNewInstance() 1065 if (load_class->NeedsAccessCheck() || klass->IsFinalizable() || !klass->IsInstantiable()) { in BuildNewInstance() 1103 HLoadClass* load_class = new_inst->GetLoadClass(); in BuildConstructorFenceForAllocation() local 1108 Handle<mirror::Class> klass = load_class->GetClass(); in BuildConstructorFenceForAllocation() 1969 HLoadClass* load_class = new (allocator_) HLoadClass( in BuildLoadClass() local 1978 HLoadClass::LoadKind load_kind = HSharpening::ComputeLoadClassKind(load_class, in BuildLoadClass() 1987 load_class->SetLoadKind(load_kind); in BuildLoadClass() [all …]
|
D | code_generator_x86_64.h | 426 void RecordBootImageTypePatch(HLoadClass* load_class); 427 Label* NewTypeBssEntryPatch(HLoadClass* load_class);
|
D | code_generator_x86.h | 431 void RecordBootImageTypePatch(HLoadClass* load_class); 432 Label* NewTypeBssEntryPatch(HLoadClass* load_class);
|
D | code_generator.cc | 812 uint32_t CodeGenerator::GetBootImageOffset(HLoadClass* load_class) NO_THREAD_SAFETY_ANALYSIS { in GetBootImageOffset() argument 813 DCHECK_EQ(load_class->GetLoadKind(), HLoadClass::LoadKind::kBootImageRelRo); in GetBootImageOffset() 814 ObjPtr<mirror::Class> klass = load_class->GetClass().Get(); in GetBootImageOffset()
|
D | code_generator.h | 576 uint32_t GetBootImageOffset(HLoadClass* load_class);
|
D | code_generator_x86.cc | 4969 void CodeGeneratorX86::RecordBootImageTypePatch(HLoadClass* load_class) { in RecordBootImageTypePatch() argument 4971 load_class->InputAt(0)->AsX86ComputeBaseMethodAddress(); in RecordBootImageTypePatch() 4973 method_address, &load_class->GetDexFile(), load_class->GetTypeIndex().index_); in RecordBootImageTypePatch() 4977 Label* CodeGeneratorX86::NewTypeBssEntryPatch(HLoadClass* load_class) { in NewTypeBssEntryPatch() argument 4979 load_class->InputAt(0)->AsX86ComputeBaseMethodAddress(); in NewTypeBssEntryPatch() 4981 method_address, &load_class->GetDexFile(), load_class->GetTypeIndex().index_); in NewTypeBssEntryPatch()
|
D | code_generator_x86_64.cc | 1099 void CodeGeneratorX86_64::RecordBootImageTypePatch(HLoadClass* load_class) { in RecordBootImageTypePatch() argument 1101 &load_class->GetDexFile(), load_class->GetTypeIndex().index_); in RecordBootImageTypePatch() 1105 Label* CodeGeneratorX86_64::NewTypeBssEntryPatch(HLoadClass* load_class) { in NewTypeBssEntryPatch() argument 1107 &load_class->GetDexFile(), load_class->GetTypeIndex().index_); in NewTypeBssEntryPatch()
|
D | nodes.h | 7129 HInstruction* load_class = InputAt(1); in GetTargetClass() local 7130 DCHECK(load_class->IsLoadClass()); in GetTargetClass() 7131 return load_class->AsLoadClass(); in GetTargetClass()
|