Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/art/test/478-checker-clinit-check-pruning/src/
DMain.java436 static void constClassAndInvokeStatic(Iterable<?> it) { in constClassAndInvokeStatic() argument
438 ClassWithClinit7.$noinline$someStaticMethod(it); in constClassAndInvokeStatic()
449 static void $noinline$someStaticMethod(Iterable<?> it) { in $noinline$someStaticMethod() argument
450 it.iterator(); in $noinline$someStaticMethod()
465 static void sgetAndInvokeStatic(Iterable<?> it) { in sgetAndInvokeStatic() argument
467 ClassWithClinit8.$noinline$someStaticMethod(it); in sgetAndInvokeStatic()
479 static void $noinline$someStaticMethod(Iterable<?> it) { in $noinline$someStaticMethod() argument
480 it.iterator(); in $noinline$someStaticMethod()
494 static void constClassSgetAndInvokeStatic(Iterable<?> it) { in constClassSgetAndInvokeStatic() argument
497 ClassWithClinit9.$noinline$someStaticMethod(it); in constClassSgetAndInvokeStatic()
[all …]
/art/test/548-checker-inlining-and-dce/src/
DMain.java21 private void inlinedForNull(Iterable it) { in inlinedForNull() argument
22 if (it != null) { in inlinedForNull()
28 private void inlinedForFalse(boolean value, Iterable it) { in inlinedForFalse() argument
42 public void testInlinedForFalseInlined(Iterable it) { in testInlinedForFalseInlined() argument
43 inlinedForFalse(false, it); in testInlinedForFalseInlined()
52 public void testInlinedForFalseNotInlined(Iterable it) { in testInlinedForFalseNotInlined() argument
53 inlinedForFalse(true, it); in testInlinedForFalseNotInlined()
63 public void testInlinedForNullInlined(Iterable it) { in testInlinedForNullInlined() argument
73 public void testInlinedForNullNotInlined(Iterable it) { in testInlinedForNullNotInlined() argument
74 inlinedForNull(it); in testInlinedForNullNotInlined()
[all …]
/art/libartbase/base/
Dutils_test.cc129 auto it = range.begin(); in TEST_F() local
130 EXPECT_FALSE(it == range.end()); in TEST_F()
131 EXPECT_EQ(*it++, ""); in TEST_F()
132 EXPECT_FALSE(it == range.end()); in TEST_F()
133 EXPECT_EQ(*it++, "ab"); in TEST_F()
134 EXPECT_FALSE(it == range.end()); in TEST_F()
135 EXPECT_EQ(*it++, "c"); in TEST_F()
136 EXPECT_FALSE(it == range.end()); in TEST_F()
137 EXPECT_EQ(*it++, ""); in TEST_F()
138 EXPECT_FALSE(it == range.end()); in TEST_F()
[all …]
Dhash_set_test.cc74 auto it = hash_set.find(test_string); in TEST_F() local
75 ASSERT_EQ(*it, test_string); in TEST_F()
76 auto after_it = hash_set.erase(it); in TEST_F()
80 it = hash_set.find(test_string); in TEST_F()
81 ASSERT_TRUE(it == hash_set.end()); in TEST_F()
92 auto it = hash_set.find(strings[i]); in TEST_F() local
93 ASSERT_TRUE(it != hash_set.end()); in TEST_F()
94 ASSERT_EQ(*it, strings[i]); in TEST_F()
99 auto it = hash_set.find(strings[i]); in TEST_F() local
100 ASSERT_TRUE(it != hash_set.end()); in TEST_F()
[all …]
Dstats-inl.h51 for (const auto& it : Children()) { in Dump() local
52 sorted_children.emplace(std::make_pair(-it.second.Value(), it.first), it.second); in Dump()
64 for (const auto& it : sorted_children) { in Dump() local
65 it.second.Dump(os, it.first.second, total, unit_size, unit); in Dump()
Dmem_map.cc69 for (auto it = gMaps->lower_bound(map.BaseBegin()), end = gMaps->end(); in GetGMapsEntry() local
70 it != end && it->first == map.BaseBegin(); in GetGMapsEntry()
71 ++it) { in GetGMapsEntry()
72 if (it->second == &map) { in GetGMapsEntry()
73 return it; in GetGMapsEntry()
82 for (auto it = mem_maps.begin(); it != mem_maps.end(); ++it) { in operator <<() local
83 void* base = it->first; in operator <<()
84 MemMap* map = it->second; in operator <<()
289 auto it = debugStrMap.find(debug_friendly_name); in SetDebugName() local
291 if (it == debugStrMap.end()) { in SetDebugName()
[all …]
/art/runtime/
Dbacktrace_helper.cc102 for (auto it = frames.begin(); it != frames.end(); it++) { in Collect() local
103 if (it == frames.begin() || std::prev(it)->map_name != it->map_name) { in Collect()
104 LOG(ERROR) << " in " << it->map_name.c_str(); in Collect()
107 it->rel_pc << " " << it->function_name.c_str(); in Collect()
123 for (auto it = unwinder->frames().begin() + skip_count_; it != unwinder->frames().end(); ++it) { in CollectImpl() local
125 out_frames_[num_frames_++] = static_cast<uintptr_t>(it->pc); in CollectImpl()
131 if (exit_pc - 4 <= it->pc && it->pc <= exit_pc) { in CollectImpl()
136 if (it->function_name.empty()) { in CollectImpl()
139 if (it->function_name == "main" || in CollectImpl()
140 it->function_name == "start_thread" || in CollectImpl()
[all …]
Dnative_stack_dump.cc356 for (Backtrace::const_iterator it = backtrace->begin(); in DumpNativeStack() local
357 it != backtrace->end(); ++it) { in DumpNativeStack()
366 os << prefix << StringPrintf("#%02zu pc ", it->num); in DumpNativeStack()
368 if (!BacktraceMap::IsValid(it->map)) { in DumpNativeStack()
371 it->pc); in DumpNativeStack()
375 it->rel_pc); in DumpNativeStack()
376 if (it->map.name.empty()) { in DumpNativeStack()
377 os << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); in DumpNativeStack()
379 os << it->map.name; in DumpNativeStack()
381 if (it->map.offset != 0) { in DumpNativeStack()
[all …]
/art/runtime/jit/
Djit_code_cache.cc182 for (auto it = kept_end; it != methods_.end(); it++) { in RemoveMethodsIn() local
183 VLOG(jit) << "JIT removed (JNI) " << (*it)->PrettyMethod() << ": " << code_; in RemoveMethodsIn()
189 auto it = std::find(methods_.begin(), methods_.end(), method); in RemoveMethod() local
190 if (it != methods_.end()) { in RemoveMethod()
191 VLOG(jit) << "JIT removed (JNI) " << (*it)->PrettyMethod() << ": " << code_; in RemoveMethod()
192 methods_.erase(it); in RemoveMethod()
293 auto it = jni_stubs_map_.find(JniStubKey(method)); in ContainsMethod() local
294 if (it != jni_stubs_map_.end() && in ContainsMethod()
295 it->second.IsCompiled() && in ContainsMethod()
296 ContainsElement(it->second.GetMethods(), method)) { in ContainsMethod()
[all …]
Ddebugger_interface.cc501 for (const JITCodeEntry* it = descriptor.head_; it != nullptr; it = it->next_) { in RepackEntries() local
502 if (it == descriptor.zygote_head_entry_ && !is_zygote) { in RepackEntries()
505 if (it->allow_packing_) { in RepackEntries()
506 if (!compress_entries && it->is_compressed_ && removed.empty()) { in RepackEntries()
509 entries.push_back(it); in RepackEntries()
560 for (auto it : elfs) { in RepackEntries() local
561 DeleteJITCodeEntryInternal<JitNativeInfo>(/*entry=*/ it); in RepackEntries()
624 for (const JITCodeEntry* it = __jit_debug_descriptor.head_; it != nullptr;) { in RepackNativeDebugInfoForJitLocked() local
625 const JITCodeEntry* next = it->next_; in RepackNativeDebugInfoForJitLocked()
626 if (!it->allow_packing_ && std::binary_search(removed.begin(), removed.end(), it->addr_)) { in RepackNativeDebugInfoForJitLocked()
[all …]
/art/profman/
Dboot_image_profile.cc74 for (const auto& it : metadata.GetAnnotations()) { in GetPackageUseString() local
75 result += it.GetOriginPackageName() + ","; in GetPackageUseString()
127 for (auto& it : accessor.GetStaticFields()) { in MaybeIsClassClean() local
128 if (!it.IsFinal()) { in MaybeIsClassClean()
133 for (auto& it : accessor.GetMethods()) { in MaybeIsClassClean() local
134 uint32_t flags = it.GetAccessFlags(); in MaybeIsClassClean()
230 for (const auto& it : flattend_data->GetMethodData()) { in GenerateBootImageProfile() local
231 if (IncludeMethodInProfile(flattend_data->GetMaxAggregationForMethods(), it.second, options)) { in GenerateBootImageProfile()
232 FlattenProfileData::ItemMetadata metadata(it.second); in GenerateBootImageProfile()
237 profile_methods.Put(BootImageRepresentation(it.first), metadata); in GenerateBootImageProfile()
[all …]
/art/compiler/optimizing/
Dregister_allocator.cc61 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in ~RegisterAllocator() local
62 it.Current()->SetLiveInterval(bad_live_interval); in ~RegisterAllocator()
64 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in ~RegisterAllocator() local
65 it.Current()->SetLiveInterval(bad_live_interval); in ~RegisterAllocator()
114 for (AllRangesIterator it(start_interval); !it.Done(); it.Advance()) { in ValidateIntervals() local
115 max_end = std::max(max_end, it.CurrentRange()->GetEnd()); in ValidateIntervals()
128 for (AllRangesIterator it(start_interval); !it.Done(); it.Advance()) { in ValidateIntervals() local
129 LiveInterval* current = it.CurrentInterval(); in ValidateIntervals()
138 for (size_t j = it.CurrentRange()->GetStart(); j < it.CurrentRange()->GetEnd(); ++j) { in ValidateIntervals()
160 for (size_t j = it.CurrentRange()->GetStart(); j < it.CurrentRange()->GetEnd(); ++j) { in ValidateIntervals()
[all …]
Dsuperblock_cloner.cc177 for (HInstructionIterator it(orig_succ->GetPhis()); !it.Done(); it.Advance()) { in RemapOrigInternalOrIncomingEdge() local
178 HPhi* orig_phi = it.Current()->AsPhi(); in RemapOrigInternalOrIncomingEdge()
207 for (HInstructionIterator it(orig_succ->GetPhis()); !it.Done(); it.Advance()) { in AddCopyInternalEdge() local
208 HPhi* orig_phi = it.Current()->AsPhi(); in AddCopyInternalEdge()
223 for (HInstructionIterator it(orig_succ->GetPhis()); !it.Done(); it.Advance()) { in RemapCopyInternalEdge() local
224 HPhi* orig_phi = it.Current()->AsPhi(); in RemapCopyInternalEdge()
251 for (HInstructionIterator it(orig_block->GetPhis()); !it.Done(); it.Advance()) { in CopyIncomingEdgesForVersioning() local
252 HPhi* orig_phi = it.Current()->AsPhi(); in CopyIncomingEdgesForVersioning()
549 for (HInstructionIterator it(orig_block->GetPhis()); !it.Done(); it.Advance()) { in ResolveDataFlow() local
550 HPhi* orig_phi = it.Current()->AsPhi(); in ResolveDataFlow()
[all …]
Dselect_generator.cc42 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in IsSimpleBlock() local
43 HInstruction* instruction = it.Current(); in IsSimpleBlock()
78 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in GetSingleChangedPhi() local
79 HPhi* phi = it.Current()->AsPhi(); in GetSingleChangedPhi()
198 auto it = cache.find(condition); in Run() local
199 if (it == cache.end()) { in Run()
203 HSelect* cached = it->second; in Run()
211 it->second = select; // always cache latest in Run()
Dssa_test.cc74 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in ReNumberInstructions() local
75 it.Current()->SetId(id++); in ReNumberInstructions()
77 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in ReNumberInstructions() local
78 it.Current()->SetId(id++); in ReNumberInstructions()
92 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in TestCode() local
93 ASSERT_NE(it.Current()->GetType(), DataType::Type::kVoid); in TestCode()
/art/tools/veridex/
Dhidden_api.h47 auto it = api_list_.find(name); in GetApiList() local
48 return (it == api_list_.end()) ? hiddenapi::ApiList() : it->second; in GetApiList()
57 auto it = source_.find(type); in AddSignatureSource() local
58 if (it == source_.end() || it->second == SignatureSource::UNKNOWN) { in AddSignatureSource()
60 } else if (it->second != source) { in AddSignatureSource()
64 it->second = source; in AddSignatureSource()
72 auto it = source_.find(GetApiClassName(signature)); in GetSignatureSource() local
73 return (it == source_.end()) ? SignatureSource::UNKNOWN : it->second; in GetSignatureSource()
/art/compiler/dex/
Dverification_results.cc69 auto it = verified_methods_.find(ref); in ProcessVerifiedMethod() local
70 inserted = it == verified_methods_.end(); in ProcessVerifiedMethod()
75 existing = it->second; in ProcessVerifiedMethod()
97 auto it = verified_methods_.find(ref); in GetVerifiedMethod() local
98 return (it != verified_methods_.end()) ? it->second : nullptr; in GetVerifiedMethod()
147 for (auto it = verified_methods_.begin(); it != verified_methods_.end(); ) { in AddDexFile() local
148 MethodReference ref = it->first; in AddDexFile()
150 CHECK(atomic_verified_methods_.Insert(ref, nullptr, it->second) == in AddDexFile()
152 it = verified_methods_.erase(it); in AddDexFile()
154 ++it; in AddDexFile()
/art/compiler/utils/
Dswap_space.cc114 auto it = free_by_start_.empty() in Alloc() local
117 if (it != free_by_size_.end()) { in Alloc()
118 SpaceChunk old_chunk = *it->free_by_start_entry; in Alloc()
120 RemoveChunk(it); in Alloc()
127 it->free_by_start_entry->ptr += size; in Alloc()
128 it->free_by_start_entry->size -= size; in Alloc()
130 auto node = free_by_size_.extract(it); in Alloc()
185 auto it = free_by_start_.lower_bound(chunk); in Free() local
186 if (it != free_by_start_.begin()) { in Free()
187 auto prev = it; in Free()
[all …]
Datomic_dex_ref_map-inl.h106 auto it = arrays_.find(dex_file); in GetArray() local
107 return (it != arrays_.end()) ? &it->second : nullptr; in GetArray()
113 auto it = arrays_.find(dex_file); in GetArray() local
114 return (it != arrays_.end()) ? &it->second : nullptr; in GetArray()
130 for (auto& it : arrays_) { in ClearEntries()
131 for (auto& element : it.second) { in ClearEntries()
142 for (auto& it : arrays_) { in GetDexFiles()
143 result.push_back(it.first); in GetDexFiles()
/art/test/923-monitors/src/art/
DTest923.java143 Iterator<String> it = output.iterator(); in threadTests() local
149 String s = it.next(); in threadTests()
166 expect("Lock", it, output); in threadTests()
167 expect("Notify", it, output); in threadTests()
168 expect("Unlock", it, output); in threadTests()
171 expect("Awakened", it, output); in threadTests()
172 expect("Unlock", it, output); in threadTests()
175 expect("Lock", it, output); in threadTests()
176 expect("NotifyAll", it, output); in threadTests()
177 expect("Unlock", it, output); in threadTests()
[all …]
/art/runtime/gc/accounting/
Dheap_bitmap.cc40 auto it = std::find(continuous_space_bitmaps_.begin(), continuous_space_bitmaps_.end(), bitmap); in RemoveContinuousSpaceBitmap() local
41 DCHECK(it != continuous_space_bitmaps_.end()); in RemoveContinuousSpaceBitmap()
42 continuous_space_bitmaps_.erase(it); in RemoveContinuousSpaceBitmap()
52 auto it = std::find(large_object_bitmaps_.begin(), large_object_bitmaps_.end(), bitmap); in RemoveLargeObjectBitmap() local
53 DCHECK(it != large_object_bitmaps_.end()); in RemoveLargeObjectBitmap()
54 large_object_bitmaps_.erase(it); in RemoveLargeObjectBitmap()
/art/runtime/gc/
Dallocation_record.cc59 for (auto it = entries_.rbegin(), end = entries_.rend(); it != end; ++it) { in VisitRoots() local
60 AllocRecord& record = it->second; in VisitRoots()
97 for (auto it = entries_.begin(), end = entries_.end(); it != end;) { in SweepAllocationRecords() local
100 mirror::Object* old_object = it->first.Read<kWithoutReadBarrier>(); in SweepAllocationRecords()
101 AllocRecord& record = it->second; in SweepAllocationRecords()
105 it->first = GcRoot<mirror::Object>(nullptr); in SweepAllocationRecords()
107 ++it; in SweepAllocationRecords()
109 it = entries_.erase(it); in SweepAllocationRecords()
114 it->first = GcRoot<mirror::Object>(new_object); in SweepAllocationRecords()
118 ++it; in SweepAllocationRecords()
/art/openjdkjvmti/
Dti_field.cc78 for (auto it : env->access_watched_fields) { in VisitReflectiveTargets() local
80 visitor->VisitField(it, JvmtiFieldReflectionSource(/*is_access=*/true, it)); in VisitReflectiveTargets()
81 if (af != it) { in VisitReflectiveTargets()
82 updated_access_fields.push_back({ af, it }); in VisitReflectiveTargets()
85 for (auto it : updated_access_fields) { in VisitReflectiveTargets() local
86 DCHECK(env->access_watched_fields.find(it.second) != env->access_watched_fields.end()); in VisitReflectiveTargets()
87 env->access_watched_fields.erase(it.second); in VisitReflectiveTargets()
88 env->access_watched_fields.insert(it.first); in VisitReflectiveTargets()
91 for (auto it : env->modify_watched_fields) { in VisitReflectiveTargets() local
93 visitor->VisitField(it, JvmtiFieldReflectionSource(/*is_access=*/false, it)); in VisitReflectiveTargets()
[all …]
Dti_breakpoint.cc82 for (auto it : env->breakpoints) { in VisitReflectiveTargets() local
83 art::ArtMethod* orig_method = it.GetMethod(); in VisitReflectiveTargets()
85 orig_method, JvmtiBreakpointReflectionSource(it.GetLocation(), orig_method)); in VisitReflectiveTargets()
87 updated_breakpoints.push_back({ Breakpoint { am, it.GetLocation() }, it }); in VisitReflectiveTargets()
90 for (auto it : updated_breakpoints) { in VisitReflectiveTargets() local
91 DCHECK(env->breakpoints.find(it.second) != env->breakpoints.end()); in VisitReflectiveTargets()
92 env->breakpoints.erase(it.second); in VisitReflectiveTargets()
93 env->breakpoints.insert(it.first); in VisitReflectiveTargets()
139 auto it = env->breakpoints.find(b); in RemoveBreakpointsInClass() local
140 DCHECK(it != env->breakpoints.end()); in RemoveBreakpointsInClass()
[all …]
/art/libdexfile/external/
Ddex_file_ext.cc103 for (auto it = std::next(cache.begin()); it != cache.end(); it++) { in CreateClassCache() local
104 if (std::prev(it)->second == it->second) { in CreateClassCache()
105 std::prev(it)->first = 0; // Clear entry with lower end_dex_offset (mark to remove). in CreateClassCache()
113 auto pred = [](auto it) { return it.first != 0; }; // Entries to copy (not cleared above). in CreateClassCache() argument
123 auto comp = [](uint32_t value, const auto& it) { return value < it.first; }; in GetClassDefIndex() argument
124 auto it = std::upper_bound(class_cache_.begin(), class_cache_.end(), dex_offset, comp); in GetClassDefIndex() local
125 if (it != class_cache_.end()) { in GetClassDefIndex()
126 *class_def_index = it->second; in GetClassDefIndex()

12345678910>>...15