Home
last modified time | relevance | path

Searched refs:visitor (Results 1 – 25 of 180) sorted by relevance

12345678

/art/runtime/mirror/
Dclass-refvisitor-inl.h32 inline void Class::VisitReferences(ObjPtr<Class> klass, const Visitor& visitor) { in VisitReferences() argument
33 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass.Ptr(), visitor); in VisitReferences()
45 VisitStaticFieldsReferences<kVerifyFlags, kReadBarrierOption>(this, visitor); in VisitReferences()
50 visitor, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); in VisitReferences()
55 void Class::VisitNativeRoots(Visitor& visitor, PointerSize pointer_size) { in VisitNativeRoots() argument
57 field->VisitRoots(visitor); in VisitNativeRoots()
65 method.VisitRoots<kReadBarrierOption>(visitor, pointer_size); in VisitNativeRoots()
69 ext->VisitNativeRoots<kReadBarrierOption, Visitor>(visitor, pointer_size); in VisitNativeRoots()
74 void Class::VisitMethods(Visitor visitor, PointerSize pointer_size) { in VisitMethods() argument
76 visitor(&method); in VisitMethods()
[all …]
Dobject-refvisitor-inl.h34 inline void Object::VisitReferences(const Visitor& visitor, in VisitReferences() argument
36 visitor(this, ClassOffset(), /* is_static= */ false); in VisitReferences()
41 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitReferences()
53 visitor); in VisitReferences()
56 AsObjectArray<mirror::Object, kVerifyNone>()->VisitReferences(visitor); in VisitReferences()
58 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitReferences()
64 kReadBarrierOption>(klass, visitor); in VisitReferences()
70 kReadBarrierOption>(klass, visitor); in VisitReferences()
Dclass_loader-inl.h36 inline void ClassLoader::VisitReferences(ObjPtr<mirror::Class> klass, const Visitor& visitor) { in VisitReferences() argument
38 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitReferences()
43 class_table->VisitRoots(visitor); in VisitReferences()
/art/runtime/gc/
Dheap-visit-objects-inl.h38 inline void Heap::VisitObjects(Visitor&& visitor) { in VisitObjects() argument
55 VisitObjectsInternalRegionSpace(visitor); in VisitObjects()
56 VisitObjectsInternal(visitor); in VisitObjects()
66 VisitObjectsInternal(visitor); in VisitObjects()
72 inline void Heap::VisitObjectsPaused(Visitor&& visitor) { in VisitObjectsPaused() argument
75 VisitObjectsInternalRegionSpace(visitor); in VisitObjectsPaused()
76 VisitObjectsInternal(visitor); in VisitObjectsPaused()
81 inline void Heap::VisitObjectsInternalRegionSpace(Visitor&& visitor) { in VisitObjectsInternalRegionSpace() argument
100 region_space_->Walk(visitor); in VisitObjectsInternalRegionSpace()
106 inline void Heap::VisitObjectsInternal(Visitor&& visitor) { in VisitObjectsInternal() argument
[all …]
Dallocation_record.cc53 void AllocRecordObjectMap::VisitRoots(RootVisitor* visitor) { in VisitRoots() argument
55 BufferedRootVisitor<kDefaultBufferedRootCount> buffered_visitor(visitor, RootInfo(kRootDebugger)); in VisitRoots()
75 static inline void SweepClassObject(AllocRecord* record, IsMarkedVisitor* visitor) in SweepClassObject() argument
84 mirror::Object* new_object = visitor->IsMarked(old_object); in SweepClassObject()
92 void AllocRecordObjectMap::SweepAllocationRecords(IsMarkedVisitor* visitor) { in SweepAllocationRecords() argument
102 mirror::Object* new_object = old_object == nullptr ? nullptr : visitor->IsMarked(old_object); in SweepAllocationRecords()
106 SweepClassObject(&record, visitor); in SweepAllocationRecords()
117 SweepClassObject(&record, visitor); in SweepAllocationRecords()
/art/runtime/
Dclass_table-inl.h31 void ClassTable::VisitRoots(Visitor& visitor) { in VisitRoots() argument
35 table_slot.VisitRoot(visitor); in VisitRoots()
39 visitor.VisitRoot(root.AddressWithoutBarrier()); in VisitRoots()
43 visitor.VisitRootIfNonNull(root.AddressWithoutBarrier()); in VisitRoots()
49 void ClassTable::VisitRoots(const Visitor& visitor) { in VisitRoots() argument
53 table_slot.VisitRoot(visitor); in VisitRoots()
57 visitor.VisitRoot(root.AddressWithoutBarrier()); in VisitRoots()
61 visitor.VisitRootIfNonNull(root.AddressWithoutBarrier()); in VisitRoots()
67 bool ClassTable::Visit(Visitor& visitor) { in Visit() argument
71 if (!visitor(table_slot.Read<kReadBarrierOption>())) { in Visit()
[all …]
Dimage-inl.h53 inline void ImageHeader::VisitPackedArtFields(const Visitor& visitor, uint8_t* base) const { in VisitPackedArtFields() argument
58 visitor(array->At(i, sizeof(ArtField))); in VisitPackedArtFields()
65 inline void ImageHeader::VisitPackedArtMethods(const Visitor& visitor, in VisitPackedArtMethods() argument
74 visitor(array->At(i, method_size, method_alignment)); in VisitPackedArtMethods()
81 visitor(*method); in VisitPackedArtMethods()
87 inline void ImageHeader::VisitPackedImTables(const Visitor& visitor, in VisitPackedImTables() argument
95 ArtMethod* updated = visitor(orig); in VisitPackedImTables()
105 inline void ImageHeader::VisitPackedImtConflictTables(const Visitor& visitor, in VisitPackedImtConflictTables() argument
111 table->Visit([&visitor](const std::pair<ArtMethod*, ArtMethod*>& methods) { in VisitPackedImtConflictTables()
112 return std::make_pair(visitor(methods.first), visitor(methods.second)); in VisitPackedImtConflictTables()
Djava_frame_root_info.cc24 const StackVisitor* visitor = stack_visitor_; in Describe() local
25 CHECK(visitor != nullptr); in Describe()
27 visitor->DescribeLocation() << " vreg="; in Describe()
Dintern_table-inl.h30 const Visitor& visitor) { in AddImageStringsToTable() argument
36 AddTableFromMemory(image_space->Begin() + section.Offset(), visitor, !header.IsAppImage()); in AddImageStringsToTable()
42 const Visitor& visitor, in AddTableFromMemory() argument
51 visitor(set); in AddTableFromMemory()
77 inline void InternTable::VisitInterns(const Visitor& visitor, in VisitInterns() argument
89 visitor(intern); in VisitInterns()
Dhandle_scope_test.cc113 CollectVisitor visitor; in TEST_F() local
115 base->VisitRoots(visitor); in TEST_F()
116 EXPECT_LE(visitor.visited.size(), base->NumberOfReferences()); in TEST_F()
117 EXPECT_EQ(visitor.total_visited, base->NumberOfReferences()); in TEST_F()
118 for (StackReference<mirror::Object>* ref : visitor.visited) { in TEST_F()
Dtransaction.cc346 void Transaction::VisitRoots(RootVisitor* visitor) { in VisitRoots() argument
348 visitor->VisitRoot(reinterpret_cast<mirror::Object**>(&root_), RootInfo(kRootUnknown)); in VisitRoots()
349 VisitObjectLogs(visitor); in VisitRoots()
350 VisitArrayLogs(visitor); in VisitRoots()
351 VisitInternStringLogs(visitor); in VisitRoots()
352 VisitResolveStringLogs(visitor); in VisitRoots()
355 void Transaction::VisitObjectLogs(RootVisitor* visitor) { in VisitObjectLogs() argument
362 it.second.VisitRoots(visitor); in VisitObjectLogs()
365 visitor->VisitRoot(&new_root, RootInfo(kRootUnknown)); in VisitObjectLogs()
383 void Transaction::VisitArrayLogs(RootVisitor* visitor) { in VisitArrayLogs() argument
[all …]
/art/runtime/native/
Ddalvik_system_VMStack.cc101 NthCallerVisitor visitor(soa.Self(), 2); in VMStack_getCallingClassLoader() local
102 visitor.WalkStack(); in VMStack_getCallingClassLoader()
103 if (UNLIKELY(visitor.caller == nullptr)) { in VMStack_getCallingClassLoader()
107 return soa.AddLocalReference<jobject>(visitor.caller->GetDeclaringClass()->GetClassLoader()); in VMStack_getCallingClassLoader()
133 ClosestUserClassLoaderVisitor visitor(soa.Self()); in VMStack_getClosestUserClassLoader() local
134 visitor.WalkStack(); in VMStack_getClosestUserClassLoader()
135 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader()
141 NthCallerVisitor visitor(soa.Self(), 3); in VMStack_getStackClass2() local
142 visitor.WalkStack(); in VMStack_getStackClass2()
143 if (UNLIKELY(visitor.caller == nullptr)) { in VMStack_getStackClass2()
[all …]
/art/runtime/gc/accounting/
Dheap_bitmap-inl.h29 inline void HeapBitmap::Visit(Visitor&& visitor) { in Visit() argument
31 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); in Visit()
34 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); in Visit()
67 inline bool HeapBitmap::Set(const mirror::Object* obj, const LargeObjectSetVisitor& visitor) { in Set() argument
72 visitor(obj); in Set()
84 const LargeObjectSetVisitor& visitor) { in AtomicTestAndSet() argument
89 visitor(obj); in AtomicTestAndSet()
Dmod_union_table.cc93 ModUnionUpdateObjectReferencesVisitor(MarkObjectVisitor* visitor, in ModUnionUpdateObjectReferencesVisitor() argument
97 : visitor_(visitor), in ModUnionUpdateObjectReferencesVisitor()
145 ModUnionScanImageRootVisitor(MarkObjectVisitor* visitor, in ModUnionScanImageRootVisitor() argument
149 : visitor_(visitor), in ModUnionScanImageRootVisitor()
176 ModUnionAddToCardSetVisitor visitor(&cleared_cards_); in ProcessCards() local
178 card_table->ModifyCardsAtomic(space_->Begin(), space_->End(), AgeCardVisitor(), visitor); in ProcessCards()
189 MarkObjectVisitor* visitor, in AddToReferenceArrayVisitor() argument
193 visitor_(visitor), in AddToReferenceArrayVisitor()
239 MarkObjectVisitor* visitor, in ModUnionReferenceVisitor() argument
243 visitor_(visitor), in ModUnionReferenceVisitor()
[all …]
Dcard_table-inl.h58 const Visitor& visitor, in Scan() argument
74 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan()
103 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan()
117 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan()
133 const Visitor& visitor, in ModifyCardsAtomic() argument
139 DCHECK(visitor(kCardClean) == kCardClean); in ModifyCardsAtomic()
146 new_value = visitor(expected); in ModifyCardsAtomic()
160 new_value = visitor(expected); in ModifyCardsAtomic()
189 new_bytes[i] = visitor(expected_bytes[i]); in ModifyCardsAtomic()
Dspace_bitmap.h128 void VisitRange(uintptr_t visit_begin, uintptr_t visit_end, const Visitor& visitor) const { in VisitRange() argument
130 visitor(reinterpret_cast<mirror::Object*>(visit_begin)); in VisitRange()
138 void VisitMarkedRange(uintptr_t visit_begin, uintptr_t visit_end, Visitor&& visitor) const
143 void VisitAllMarked(Visitor&& visitor) const { in VisitAllMarked() argument
144 VisitMarkedRange(HeapBegin(), HeapLimit(), visitor); in VisitAllMarked()
150 void Walk(Visitor&& visitor)
Dbitmap-inl.h57 inline void Bitmap::VisitSetBits(uintptr_t bit_start, uintptr_t bit_end, const Visitor& visitor) in VisitSetBits() argument
90 visitor(ptr_base + shift); in VisitSetBits()
102 visitor(ptr_base + shift); in VisitSetBits()
126 visitor(ptr_base + shift); in VisitSetBits()
Dcard_table.h80 void VisitClear(const void* start, const void* end, const Visitor& visitor) { in VisitClear() argument
86 visitor(it); in VisitClear()
114 const Visitor& visitor,
123 const Visitor& visitor,
Dheap_bitmap.h43 bool Set(const mirror::Object* obj, const LargeObjectSetVisitor& visitor)
47 bool AtomicTestAndSet(const mirror::Object* obj, const LargeObjectSetVisitor& visitor)
54 ALWAYS_INLINE void Visit(Visitor&& visitor)
/art/runtime/entrypoints/quick/
Dquick_throw_entrypoints.cc120 NthCallerVisitor visitor(self, 0u); in artThrowClassCastException() local
121 visitor.WalkStack(); in artThrowClassCastException()
122 DCHECK(visitor.caller != nullptr); in artThrowClassCastException()
123 uint32_t dex_pc = visitor.GetDexPc(); in artThrowClassCastException()
124 CodeItemDataAccessor accessor(*visitor.caller->GetDexFile(), visitor.caller->GetCodeItem()); in artThrowClassCastException()
129 dest_type = linker->LookupResolvedType(type_index, visitor.caller).Ptr(); in artThrowClassCastException()
131 << visitor.caller->GetDexFile()->PrettyType(type_index); in artThrowClassCastException()
/art/compiler/optimizing/
Dinstruction_simplifier_x86_64.cc74 InstructionSimplifierX86_64Visitor visitor(graph_, codegen_, stats_); in Run() local
75 if (visitor.HasAVX2()) { in Run()
76 visitor.VisitReversePostOrder(); in Run()
Dinstruction_simplifier_x86.cc78 InstructionSimplifierX86Visitor visitor(graph_, codegen_, stats_); in Run() local
79 if (visitor.HasAVX2()) { in Run()
80 visitor.VisitReversePostOrder(); in Run()
/art/test/457-regs/
Dregs_jni.cc133 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCall() local
134 visitor.WalkStack(); in Java_PhiLiveness_regsNativeCall()
135 CHECK(visitor.did_check_); in Java_PhiLiveness_regsNativeCall()
146 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCallWithParameters() local
147 visitor.WalkStack(); in Java_PhiLiveness_regsNativeCallWithParameters()
148 CHECK(visitor.did_check_); in Java_PhiLiveness_regsNativeCallWithParameters()
/art/test/616-cha-unloading/
Dcha_unload.cc71 FindPointerAllocatorVisitor visitor(ptr); in Java_Main_reuseArenaOfMethod() local
72 Runtime::Current()->GetClassLinker()->VisitAllocators(&visitor); in Java_Main_reuseArenaOfMethod()
73 if (visitor.is_found) { in Java_Main_reuseArenaOfMethod()
/art/test/466-get-live-vreg/
Dget_live_vreg_jni.cc83 TestVisitor visitor(soa.Self(), context.get()); in Java_Main_doStaticNativeCallLiveVreg() local
84 visitor.WalkStack(); in Java_Main_doStaticNativeCallLiveVreg()
85 CHECK(visitor.found_method_); in Java_Main_doStaticNativeCallLiveVreg()

12345678