/art/compiler/dex/ |
D | mir_method_info.cc | 35 for (auto it = method_infos, end = method_infos + count; it != end; ++it) { in Resolve() local 36 MirMethodLoweringInfo unresolved(it->MethodIndex(), it->GetInvokeType()); in Resolve() 37 if (it->target_dex_file_ != nullptr) { in Resolve() 38 unresolved.target_dex_file_ = it->target_dex_file_; in Resolve() 39 unresolved.target_method_idx_ = it->target_method_idx_; in Resolve() 41 DCHECK_EQ(memcmp(&unresolved, &*it, sizeof(*it)), 0); in Resolve() 57 for (auto it = method_infos, end = method_infos + count; it != end; ++it) { in Resolve() local 59 MethodReference devirt_ref(it->target_dex_file_, it->target_method_idx_); in Resolve() 60 MethodReference* devirt_target = (it->target_dex_file_ != nullptr) ? &devirt_ref : nullptr; in Resolve() 61 it->target_dex_file_ = mUnit->GetDexFile(); in Resolve() [all …]
|
D | mir_field_info.cc | 37 for (auto it = field_infos, end = field_infos + count; it != end; ++it) { in Resolve() local 38 MirIFieldLoweringInfo unresolved(it->field_idx_); in Resolve() 39 DCHECK_EQ(memcmp(&unresolved, &*it, sizeof(*it)), 0); in Resolve() 55 for (auto it = field_infos, end = field_infos + count; it != end; ++it) { in Resolve() local 56 uint32_t field_idx = it->field_idx_; in Resolve() 63 &it->declaring_dex_file_, &it->declaring_class_idx_, &it->declaring_field_idx_); in Resolve() 65 it->field_offset_ = resolved_field->GetOffset(); in Resolve() 68 it->flags_ = 0u | // Without kFlagIsStatic. in Resolve() 81 for (auto it = field_infos, end = field_infos + count; it != end; ++it) { in Resolve() local 82 MirSFieldLoweringInfo unresolved(it->field_idx_); in Resolve() [all …]
|
D | verification_results.cc | 65 auto it = verified_methods_.find(ref); in ProcessVerifiedMethod() local 66 if (it != verified_methods_.end()) { in ProcessVerifiedMethod() 70 DCHECK_EQ(it->second->GetDevirtMap().size(), verified_method->GetDevirtMap().size()); in ProcessVerifiedMethod() 71 DCHECK_EQ(it->second->GetSafeCastSet().size(), verified_method->GetSafeCastSet().size()); in ProcessVerifiedMethod() 72 DCHECK_EQ(it->second->GetDexGcMap().size(), verified_method->GetDexGcMap().size()); in ProcessVerifiedMethod() 73 delete it->second; in ProcessVerifiedMethod() 74 verified_methods_.erase(it); in ProcessVerifiedMethod() 83 auto it = verified_methods_.find(ref); in GetVerifiedMethod() local 84 return (it != verified_methods_.end()) ? it->second : nullptr; in GetVerifiedMethod() 89 auto it = verified_methods_.find(ref); in RemoveVerifiedMethod() local [all …]
|
D | local_value_numbering.cc | 233 auto it = map->find(key); in AliasingValuesMergeGet() local 234 if (it == map->end()) { in AliasingValuesMergeGet() 237 } else if (it->second.store_loc_set.count(location) != 0u) { in AliasingValuesMergeGet() 238 value_name = it->second.last_stored_value; in AliasingValuesMergeGet() 240 auto load_it = it->second.load_value_map.find(location); in AliasingValuesMergeGet() 241 if (load_it != it->second.load_value_map.end()) { in AliasingValuesMergeGet() 244 … value_name = Versions::LookupGlobalValue(gvn, key, location, it->second.last_load_memory_version); in AliasingValuesMergeGet() 296 auto it = values->load_value_map.begin(), end = values->load_value_map.end(); in HandleAliasingValuesPut() local 297 while (it != end) { in HandleAliasingValuesPut() 298 if (it->second == value) { in HandleAliasingValuesPut() [all …]
|
/art/compiler/optimizing/ |
D | ssa_phi_elimination.cc | 23 for (HReversePostOrderIterator it(*graph_); !it.Done(); it.Advance()) { in Run() local 24 HBasicBlock* block = it.Current(); in Run() 25 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in Run() local 26 HPhi* phi = it.Current()->AsPhi(); in Run() 31 for (HUseIterator<HInstruction> it(phi->GetUses()); !it.Done(); it.Advance()) { in Run() local 32 HUseListNode<HInstruction>* current = it.Current(); in Run() 47 for (HInputIterator it(phi); !it.Done(); it.Advance()) { in Run() local 48 HInstruction* input = it.Current(); in Run() 58 for (HPostOrderIterator it(*graph_); !it.Done(); it.Advance()) { in Run() local 59 HBasicBlock* block = it.Current(); in Run() [all …]
|
D | ssa_type_propagation.cc | 50 for (HReversePostOrderIterator it(*graph_); !it.Done(); it.Advance()) { in Run() local 51 VisitBasicBlock(it.Current()); in Run() 58 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in VisitBasicBlock() local 59 HPhi* phi = it.Current()->AsPhi(); in VisitBasicBlock() 66 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in VisitBasicBlock() local 67 HPhi* phi = it.Current()->AsPhi(); in VisitBasicBlock() 89 for (HUseIterator<HInstruction> it(instruction->GetUses()); !it.Done(); it.Advance()) { in AddDependentInstructionsToWorklist() local 90 HPhi* phi = it.Current()->GetUser()->AsPhi(); in AddDependentInstructionsToWorklist()
|
D | ssa_liveness_analysis.cc | 104 for (HLinearOrderIterator it(*this); !it.Done(); it.Advance()) { in NumberInstructions() local 105 HBasicBlock* block = it.Current(); in NumberInstructions() 108 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in NumberInstructions() local 109 HInstruction* current = it.Current(); in NumberInstructions() 125 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in NumberInstructions() local 126 HInstruction* current = it.Current(); in NumberInstructions() 146 for (HLinearOrderIterator it(*this); !it.Done(); it.Advance()) { in ComputeLiveness() local 147 HBasicBlock* block = it.Current(); in ComputeLiveness() 167 for (HLinearPostOrderIterator it(*this); !it.Done(); it.Advance()) { in ComputeLiveRanges() local 168 HBasicBlock* block = it.Current(); in ComputeLiveRanges() [all …]
|
D | ssa_builder.cc | 28 for (HReversePostOrderIterator it(*GetGraph()); !it.Done(); it.Advance()) { in BuildSsa() local 29 VisitBasicBlock(it.Current()); in BuildSsa() 35 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in BuildSsa() local 36 HPhi* phi = it.Current()->AsPhi(); in BuildSsa() 50 for (HInstructionIterator it(GetGraph()->GetEntryBlock()->GetInstructions()); in BuildSsa() local 51 !it.Done(); in BuildSsa() 52 it.Advance()) { in BuildSsa() 53 HInstruction* current = it.Current(); in BuildSsa() 127 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in VisitBasicBlock() local 128 it.Current()->Accept(this); in VisitBasicBlock()
|
D | nodes.cc | 40 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in RemoveDeadBlocks() local 41 block->RemovePhi(it.Current()->AsPhi()); in RemoveDeadBlocks() 43 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in RemoveDeadBlocks() local 44 block->RemoveInstruction(it.Current()); in RemoveDeadBlocks() 397 for (HUseIterator<HInstruction> it(GetUses()); !it.Done(); it.Advance()) { in ReplaceWith() local 398 HUseListNode<HInstruction>* current = it.Current(); in ReplaceWith() 405 for (HUseIterator<HEnvironment> it(GetEnvUses()); !it.Done(); it.Advance()) { in ReplaceWith() local 406 HUseListNode<HEnvironment>* current = it.Current(); in ReplaceWith() 440 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in VisitBasicBlock() local 441 it.Current()->Accept(this); in VisitBasicBlock() [all …]
|
D | pretty_printer.h | 45 for (HInputIterator it(instruction); !it.Done(); it.Advance()) { in PrintPostInstruction() 51 PrintInt(it.Current()->GetId()); in PrintPostInstruction() 58 for (HUseIterator<HInstruction> it(instruction->GetUses()); !it.Done(); it.Advance()) { in PrintPostInstruction() 64 PrintInt(it.Current()->GetUser()->GetId()); in PrintPostInstruction()
|
D | ssa_test.cc | 69 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in ReNumberInstructions() local 70 it.Current()->SetId(id++); in ReNumberInstructions() 72 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in ReNumberInstructions() local 73 it.Current()->SetId(id++); in ReNumberInstructions() 92 for (HInstructionIterator it(graph->GetBlocks().Get(i)->GetPhis()); !it.Done(); it.Advance()) { in TestCode() local 93 ASSERT_NE(it.Current()->GetType(), Primitive::kPrimVoid); in TestCode()
|
/art/runtime/jdwp/ |
D | object_registry.cc | 94 for (auto it = object_to_entry_.lower_bound(identity_hash_code), end = object_to_entry_.end(); in ContainsLocked() local 95 it != end && it->first == identity_hash_code; ++it) { in ContainsLocked() 96 ObjectRegistryEntry* entry = it->second; in ContainsLocked() 130 auto it = id_to_entry_.find(id); in InternalGet() local 131 if (it == id_to_entry_.end()) { in InternalGet() 134 ObjectRegistryEntry& entry = *it->second; in InternalGet() 144 auto it = id_to_entry_.find(id); in GetJObject() local 145 CHECK(it != id_to_entry_.end()) << id; in GetJObject() 146 ObjectRegistryEntry& entry = *it->second; in GetJObject() 153 auto it = id_to_entry_.find(id); in DisableCollection() local [all …]
|
/art/runtime/gc/accounting/ |
D | heap_bitmap.cc | 28 auto it = std::find(continuous_space_bitmaps_.begin(), continuous_space_bitmaps_.end(), in ReplaceBitmap() local 30 CHECK(it != continuous_space_bitmaps_.end()) << " continuous space bitmap " << old_bitmap in ReplaceBitmap() 32 *it = new_bitmap; in ReplaceBitmap() 37 auto it = std::find(large_object_bitmaps_.begin(), large_object_bitmaps_.end(), old_bitmap); in ReplaceLargeObjectBitmap() local 38 CHECK(it != large_object_bitmaps_.end()) << " large object bitmap " << old_bitmap in ReplaceLargeObjectBitmap() 40 *it = new_bitmap; in ReplaceLargeObjectBitmap() 57 auto it = std::find(continuous_space_bitmaps_.begin(), continuous_space_bitmaps_.end(), bitmap); in RemoveContinuousSpaceBitmap() local 58 DCHECK(it != continuous_space_bitmaps_.end()); in RemoveContinuousSpaceBitmap() 59 continuous_space_bitmaps_.erase(it); in RemoveContinuousSpaceBitmap() 69 auto it = std::find(large_object_bitmaps_.begin(), large_object_bitmaps_.end(), bitmap); in RemoveLargeObjectBitmap() local [all …]
|
D | card_table.h | 76 for (byte* it = card_start; it != card_end; ++it) { in VisitClear() local 77 if (*it == kCardDirty) { in VisitClear() 78 *it = kCardClean; in VisitClear() 79 visitor(it); in VisitClear()
|
/art/runtime/ |
D | mem_map.cc | 51 for (BacktraceMap::const_iterator it = iters.first; it != iters.second; ++it) { in operator <<() local 53 static_cast<uint32_t>(it->start), in operator <<() 54 static_cast<uint32_t>(it->end), in operator <<() 55 (it->flags & PROT_READ) ? 'r' : '-', in operator <<() 56 (it->flags & PROT_WRITE) ? 'w' : '-', in operator <<() 57 (it->flags & PROT_EXEC) ? 'x' : '-', it->name.c_str()); in operator <<() 64 for (auto it = mem_maps.begin(); it != mem_maps.end(); ++it) { in operator <<() local 65 void* base = it->first; in operator <<() 66 MemMap* map = it->second; in operator <<() 143 for (BacktraceMap::const_iterator it = map->begin(); it != map->end(); ++it) { in ContainedWithinExistingMap() local [all …]
|
D | dex_method_iterator_test.cc | 36 DexMethodIterator it(dex_files); in TEST_F() local 37 while (it.HasNext()) { in TEST_F() 38 const DexFile& dex_file = it.GetDexFile(); in TEST_F() 39 InvokeType invoke_type = it.GetInvokeType(); in TEST_F() 40 uint32_t method_idx = it.GetMemberIndex(); in TEST_F() 44 it.Next(); in TEST_F()
|
D | transaction.cc | 42 for (auto it : object_logs_) { in ~Transaction() local 43 field_values_count += it.second.Size(); in ~Transaction() 47 for (auto it : array_logs_) { in ~Transaction() local 48 array_values_count += it.second.Size(); in ~Transaction() 133 for (auto it : object_logs_) { in UndoObjectModifications() local 134 it.second.Undo(it.first); in UndoObjectModifications() 142 for (auto it : array_logs_) { in UndoArrayModifications() local 143 it.second.Undo(it.first); in UndoArrayModifications() 171 for (auto it : object_logs_) { in VisitObjectLogs() local 172 it.second.VisitRoots(callback, arg); in VisitObjectLogs() [all …]
|
D | intern_table.cc | 295 auto it = post_zygote_table_.Find(GcRoot<mirror::String>(s)); in Remove() local 296 if (it != post_zygote_table_.end()) { in Remove() 297 post_zygote_table_.Erase(it); in Remove() 299 it = pre_zygote_table_.Find(GcRoot<mirror::String>(s)); in Remove() 300 DCHECK(it != pre_zygote_table_.end()); in Remove() 301 pre_zygote_table_.Erase(it); in Remove() 307 auto it = pre_zygote_table_.Find(GcRoot<mirror::String>(s)); in Find() local 308 if (it != pre_zygote_table_.end()) { in Find() 309 return it->Read(); in Find() 311 it = post_zygote_table_.Find(GcRoot<mirror::String>(s)); in Find() [all …]
|
D | dex_file_verifier.cc | 684 ClassDataItemIterator it(*dex_file_, ptr_); in CheckIntraClassDataItem() local 688 for (; it.HasNextStaticField(); it.Next()) { in CheckIntraClassDataItem() 689 if (!CheckClassDataItemField(it.GetMemberIndex(), it.GetRawMemberAccessFlags(), true)) { in CheckIntraClassDataItem() 693 for (; it.HasNextInstanceField(); it.Next()) { in CheckIntraClassDataItem() 694 if (!CheckClassDataItemField(it.GetMemberIndex(), it.GetRawMemberAccessFlags(), false)) { in CheckIntraClassDataItem() 698 for (; it.HasNextDirectMethod(); it.Next()) { in CheckIntraClassDataItem() 699 if (!CheckClassDataItemMethod(it.GetMemberIndex(), it.GetRawMemberAccessFlags(), in CheckIntraClassDataItem() 700 it.GetMethodCodeItemOffset(), true)) { in CheckIntraClassDataItem() 704 for (; it.HasNextVirtualMethod(); it.Next()) { in CheckIntraClassDataItem() 705 if (!CheckClassDataItemMethod(it.GetMemberIndex(), it.GetRawMemberAccessFlags(), in CheckIntraClassDataItem() [all …]
|
/art/runtime/base/ |
D | hash_set_test.cc | 70 auto it = hash_set.Find(test_string); in TEST_F() local 71 ASSERT_EQ(*it, test_string); in TEST_F() 72 auto after_it = hash_set.Erase(it); in TEST_F() 76 it = hash_set.Find(test_string); in TEST_F() 77 ASSERT_TRUE(it == hash_set.end()); in TEST_F() 88 auto it = hash_set.Find(strings[i]); in TEST_F() local 89 ASSERT_TRUE(it != hash_set.end()); in TEST_F() 90 ASSERT_EQ(*it, strings[i]); in TEST_F() 95 auto it = hash_set.Find(strings[i]); in TEST_F() local 96 ASSERT_TRUE(it != hash_set.end()); in TEST_F() [all …]
|
/art/compiler/ |
D | elf_writer_quick.cc | 141 for (auto it = pieces.begin(); it != pieces.end(); ++it) { in WriteOutFile() local 142 if (!(*it)->Write(elf_file)) { in WriteOutFile() 373 ElfRawSectionBuilder* it = other_builders_.data(); in Write() local 374 for (uint32_t cnt = 0; cnt < other_builders_.size(); ++it, ++cnt) { in Write() 376 section_ptrs.push_back(&it->section_); in Write() 377 AssignSectionStr(it, &shstrtab); in Write() 378 it->section_index_ = section_index++; in Write() 488 for (auto it = other_builders_.begin(); it != other_builders_.end(); ++it) { in Write() local 489 it->section_.sh_offset = NextOffset(it->section_, prev); in Write() 490 it->section_.sh_addr = 0; in Write() [all …]
|
D | elf_writer_mclinker.cc | 244 DexMethodIterator it(dex_files); in AddMethodInputs() local 245 while (it.HasNext()) { in AddMethodInputs() 246 const DexFile& dex_file = it.GetDexFile(); in AddMethodInputs() 247 uint32_t method_idx = it.GetMemberIndex(); in AddMethodInputs() 253 it.Next(); in AddMethodInputs() 262 SafeMap<const std::string*, const std::string*>::iterator it = added_symbols_.find(&symbol); in AddCompiledCodeInput() local 263 if (it != added_symbols_.end()) { in AddCompiledCodeInput() 354 DexMethodIterator it(dex_files); in FixupOatMethodOffsets() local 355 while (it.HasNext()) { in FixupOatMethodOffsets() 356 const DexFile& dex_file = it.GetDexFile(); in FixupOatMethodOffsets() [all …]
|
/art/compiler/utils/ |
D | swap_space.cc | 111 auto it = free_by_start_.empty() in Alloc() local 114 if (it != free_by_size_.end()) { in Alloc() 115 old_chunk = *it->second; in Alloc() 116 RemoveChunk(&free_by_start_, &free_by_size_, it); in Alloc() 173 auto it = free_by_start_.lower_bound(chunk); in Free() local 174 if (it != free_by_start_.begin()) { in Free() 175 auto prev = it; in Free() 188 if (it != free_by_start_.end()) { in Free() 189 CHECK_LE(chunk.End(), it->Start()); in Free() 190 if (chunk.End() == it->Start()) { in Free() [all …]
|
/art/runtime/verifier/ |
D | register_line.h | 296 auto it = reg_to_lock_depths_.find(src); in CopyRegToLockDepth() local 297 if (it != reg_to_lock_depths_.end()) { in CopyRegToLockDepth() 298 reg_to_lock_depths_.Put(dst, it->second); in CopyRegToLockDepth() 303 auto it = reg_to_lock_depths_.find(reg); in IsSetLockDepth() local 304 if (it != reg_to_lock_depths_.end()) { in IsSetLockDepth() 305 return (it->second & (1 << depth)) != 0; in IsSetLockDepth() 314 auto it = reg_to_lock_depths_.find(reg); in SetRegToLockDepth() local 315 if (it == reg_to_lock_depths_.end()) { in SetRegToLockDepth() 318 it->second |= (1 << depth); in SetRegToLockDepth() 325 auto it = reg_to_lock_depths_.find(reg); in ClearRegToLockDepth() local [all …]
|
/art/runtime/entrypoints/portable/ |
D | portable_throw_entrypoints.cc | 91 for (CatchHandlerIterator it(*code_item, *try_item); it.HasNext(); it.Next()) { in art_portable_find_catch_block_from_code() local 92 uint16_t iter_type_idx = it.GetHandlerTypeIndex(); in art_portable_find_catch_block_from_code() 95 catch_dex_pc = it.GetHandlerAddress(); in art_portable_find_catch_block_from_code() 108 catch_dex_pc = it.GetHandlerAddress(); in art_portable_find_catch_block_from_code()
|