• Home
  • Raw
  • Download

Lines Matching refs:it

183     for (auto it = kept_end; it != methods_.end(); it++) {  in RemoveMethodsIn()  local
184 VLOG(jit) << "JIT removed (JNI) " << (*it)->PrettyMethod() << ": " << code_; in RemoveMethodsIn()
190 auto it = std::find(methods_.begin(), methods_.end(), method); in RemoveMethod() local
191 if (it != methods_.end()) { in RemoveMethod()
192 VLOG(jit) << "JIT removed (JNI) " << (*it)->PrettyMethod() << ": " << code_; in RemoveMethod()
193 methods_.erase(it); in RemoveMethod()
294 auto it = jni_stubs_map_.find(JniStubKey(method)); in ContainsMethod() local
295 if (it != jni_stubs_map_.end() && in ContainsMethod()
296 it->second.IsCompiled() && in ContainsMethod()
297 ContainsElement(it->second.GetMethods(), method)) { in ContainsMethod()
301 for (const auto& it : method_code_map_) { in ContainsMethod() local
302 if (it.second == method) { in ContainsMethod()
316 auto it = jni_stubs_map_.find(JniStubKey(method)); in GetJniStubCode() local
317 if (it != jni_stubs_map_.end()) { in GetJniStubCode()
318 JniStubData& data = it->second; in GetJniStubCode()
333 auto it = saved_compiled_methods_map_.find(method); in GetSavedEntryPointOfPreCompiledMethod() local
334 if (it != saved_compiled_methods_map_.end()) { in GetSavedEntryPointOfPreCompiledMethod()
335 code_ptr = it->second; in GetSavedEntryPointOfPreCompiledMethod()
437 for (auto it : profiling_infos_) { in SweepRootTables() local
438 ProfilingInfo* info = it.second; in SweepRootTables()
499 for (auto it : compiled_methods) { in FreeAllMethodHeaders() local
500 CHECK_EQ(debug_info.count(it.first), 1u) << "No debug info: " << it.second->PrettyMethod(); in FreeAllMethodHeaders()
520 for (auto it = jni_stubs_map_.begin(); it != jni_stubs_map_.end();) { in RemoveMethodsIn() local
521 it->second.RemoveMethodsIn(alloc); in RemoveMethodsIn()
522 if (it->second.GetMethods().empty()) { in RemoveMethodsIn()
523 method_headers.insert(OatQuickMethodHeader::FromCodePointer(it->second.GetCode())); in RemoveMethodsIn()
524 it = jni_stubs_map_.erase(it); in RemoveMethodsIn()
526 it->first.UpdateShorty(it->second.GetMethods().front()); in RemoveMethodsIn()
527 ++it; in RemoveMethodsIn()
530 for (auto it = method_code_map_.begin(); it != method_code_map_.end();) { in RemoveMethodsIn() local
531 if (alloc.ContainsUnsafe(it->second)) { in RemoveMethodsIn()
532 method_headers.insert(OatQuickMethodHeader::FromCodePointer(it->first)); in RemoveMethodsIn()
533 VLOG(jit) << "JIT removed " << it->second->PrettyMethod() << ": " << it->first; in RemoveMethodsIn()
534 it = method_code_map_.erase(it); in RemoveMethodsIn()
536 ++it; in RemoveMethodsIn()
540 for (auto it = osr_code_map_.begin(); it != osr_code_map_.end();) { in RemoveMethodsIn() local
541 if (alloc.ContainsUnsafe(it->first)) { in RemoveMethodsIn()
544 it = osr_code_map_.erase(it); in RemoveMethodsIn()
546 ++it; in RemoveMethodsIn()
549 for (auto it = profiling_infos_.begin(); it != profiling_infos_.end();) { in RemoveMethodsIn() local
550 ProfilingInfo* info = it->second; in RemoveMethodsIn()
553 it = profiling_infos_.erase(it); in RemoveMethodsIn()
555 ++it; in RemoveMethodsIn()
729 auto it = jni_stubs_map_.find(JniStubKey(method)); in Commit() local
730 DCHECK(it != jni_stubs_map_.end()) in Commit()
732 JniStubData* data = &it->second; in Commit()
808 auto it = profiling_infos_.find(method); in RemoveMethodLocked() local
809 if (it != profiling_infos_.end()) { in RemoveMethodLocked()
810 profiling_infos_.erase(it); in RemoveMethodLocked()
817 auto it = jni_stubs_map_.find(JniStubKey(method)); in RemoveMethodLocked() local
818 if (it != jni_stubs_map_.end() && it->second.RemoveMethod(method)) { in RemoveMethodLocked()
820 if (it->second.GetMethods().empty()) { in RemoveMethodLocked()
822 FreeCodeAndData(it->second.GetCode()); in RemoveMethodLocked()
824 jni_stubs_map_.erase(it); in RemoveMethodLocked()
826 it->first.UpdateShorty(it->second.GetMethods().front()); in RemoveMethodLocked()
830 for (auto it = method_code_map_.begin(); it != method_code_map_.end();) { in RemoveMethodLocked() local
831 if (it->second == method) { in RemoveMethodLocked()
834 FreeCodeAndData(it->first); in RemoveMethodLocked()
836 VLOG(jit) << "JIT removed " << it->second->PrettyMethod() << ": " << it->first; in RemoveMethodLocked()
837 it = method_code_map_.erase(it); in RemoveMethodLocked()
839 ++it; in RemoveMethodLocked()
877 for (auto& it : method_code_map_) { in MoveObsoleteMethod() local
878 if (it.second == old_method) { in MoveObsoleteMethod()
879 it.second = new_method; in MoveObsoleteMethod()
897 for (const auto& it : method_code_map_) { in TransitionToDebuggable() local
898 ArtMethod* method = it.second; in TransitionToDebuggable()
1039 for (const auto& it : *thread->GetInstrumentationStack()) { in Run()
1044 code_cache_->LookupMethodHeader(it.second.return_pc_, /* method= */ nullptr); in Run()
1159 for (auto it : profiling_infos_) { in GarbageCollectCache() local
1160 it.second->ResetCounter(); in GarbageCollectCache()
1194 for (auto it = jni_stubs_map_.begin(); it != jni_stubs_map_.end();) { in RemoveUnmarkedCode() local
1195 JniStubData* data = &it->second; in RemoveUnmarkedCode()
1199 ++it; in RemoveUnmarkedCode()
1205 it = jni_stubs_map_.erase(it); in RemoveUnmarkedCode()
1208 for (auto it = method_code_map_.begin(); it != method_code_map_.end();) { in RemoveUnmarkedCode() local
1209 const void* code_ptr = it->first; in RemoveUnmarkedCode()
1212 ++it; in RemoveUnmarkedCode()
1216 VLOG(jit) << "JIT removed " << it->second->PrettyMethod() << ": " << it->first; in RemoveUnmarkedCode()
1217 it = method_code_map_.erase(it); in RemoveUnmarkedCode()
1287 auto it = profiling_infos_.find(method); in GetProfilingInfo() local
1288 if (it == profiling_infos_.end()) { in GetProfilingInfo()
1291 return it->second; in GetProfilingInfo()
1296 auto it = profiling_infos_.find(method); in ResetHotnessCounter() local
1297 DCHECK(it != profiling_infos_.end()); in ResetHotnessCounter()
1298 it->second->ResetCounter(); in ResetHotnessCounter()
1312 for (auto it : profiling_infos_) { in DoCollection() local
1313 ProfilingInfo* info = it.second; in DoCollection()
1348 for (const auto& it : method_code_map_) { in DoCollection() local
1349 ArtMethod* method = it.second; in DoCollection()
1350 const void* code_ptr = it.first; in DoCollection()
1397 auto it = jni_stubs_map_.find(JniStubKey(method)); in LookupMethodHeader() local
1398 if (it == jni_stubs_map_.end() || !ContainsElement(it->second.GetMethods(), method)) { in LookupMethodHeader()
1401 const void* code_ptr = it->second.GetCode(); in LookupMethodHeader()
1413 auto it = method_code_map_.lower_bound(reinterpret_cast<const void*>(pc)); in LookupMethodHeader() local
1414 if (it != method_code_map_.begin()) { in LookupMethodHeader()
1415 --it; in LookupMethodHeader()
1416 const void* code_ptr = it->first; in LookupMethodHeader()
1419 found_method = it->second; in LookupMethodHeader()
1449 auto it = osr_code_map_.find(method); in LookupOsrMethodHeader() local
1450 if (it == osr_code_map_.end()) { in LookupOsrMethodHeader()
1453 return OatQuickMethodHeader::FromCodePointer(it->second); in LookupOsrMethodHeader()
1478 auto it = profiling_infos_.find(method); in AddProfilingInfoInternal() local
1479 if (it != profiling_infos_.end()) { in AddProfilingInfoInternal()
1480 return it->second; in AddProfilingInfoInternal()
1511 for (auto it : profiling_infos_) { in GetProfiledMethods() local
1512 ProfilingInfo* info = it.second; in GetProfiledMethods()
1648 auto it = jni_stubs_map_.find(key); in NotifyCompilationOf() local
1650 if (it == jni_stubs_map_.end()) { in NotifyCompilationOf()
1652 it = jni_stubs_map_.Put(key, JniStubData{}); in NotifyCompilationOf()
1655 JniStubData* data = &it->second; in NotifyCompilationOf()
1700 auto it = profiling_infos_.find(method); in NotifyCompilerUse() local
1701 if (it == profiling_infos_.end()) { in NotifyCompilerUse()
1704 if (!it->second->IncrementInlineUse()) { in NotifyCompilerUse()
1708 return it->second; in NotifyCompilerUse()
1713 auto it = profiling_infos_.find(method); in DoneCompilerUse() local
1714 DCHECK(it != profiling_infos_.end()); in DoneCompilerUse()
1715 it->second->DecrementInlineUse(); in DoneCompilerUse()
1724 auto it = jni_stubs_map_.find(JniStubKey(method)); in DoneCompiling() local
1725 DCHECK(it != jni_stubs_map_.end()); in DoneCompiling()
1726 JniStubData* data = &it->second; in DoneCompiling()
1730 jni_stubs_map_.erase(it); // Remove the entry added in NotifyCompilationOf(). in DoneCompiling()
1741 for (auto it : method_code_map_) { in InvalidateAllCompiledCode() local
1742 ArtMethod* meth = it.second; in InvalidateAllCompiledCode()
1769 auto it = osr_code_map_.find(method); in InvalidateCompiledCodeFor() local
1770 if (it != osr_code_map_.end() && OatQuickMethodHeader::FromCodePointer(it->second) == header) { in InvalidateCompiledCodeFor()
1772 osr_code_map_.erase(it); in InvalidateCompiledCodeFor()
1863 for (const auto& it : jni_stubs_map_) { in VisitAllMethods() local
1864 const JniStubData& data = it.second; in VisitAllMethods()
1871 for (auto it : method_code_map_) { // Includes OSR methods. in VisitAllMethods() local
1872 cb(it.first, it.second); in VisitAllMethods()
1874 for (auto it : saved_compiled_methods_map_) { in VisitAllMethods() local
1875 cb(it.second, it.first); in VisitAllMethods()
1877 for (auto it : zygote_map_) { in VisitAllMethods() local
1878 if (it.code_ptr != nullptr && it.method != nullptr) { in VisitAllMethods()
1879 cb(it.code_ptr, it.method); in VisitAllMethods()