/art/runtime/mirror/ |
D | class-refvisitor-inl.h | 32 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, kVisitProxyMethod>(visitor, pointer_size); in VisitNativeRoots() 69 ext->VisitNativeRoots<kReadBarrierOption, kVisitProxyMethod>(visitor, pointer_size); in VisitNativeRoots() 74 void Class::VisitObsoleteDexCaches(DexCacheVisitor& visitor) { in VisitObsoleteDexCaches() argument 77 ext->VisitDexCaches<kDefaultVerifyFlags, kReadBarrierOption>(visitor); in VisitObsoleteDexCaches() [all …]
|
D | object-refvisitor-inl.h | 68 inline void Object::VisitReferences(const Visitor& visitor, in VisitReferences() argument 70 visitor(this, ClassOffset(), /* is_static= */ false); in VisitReferences() 75 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitReferences() 88 as_klass->VisitReferences<kVisitNativeRoots, kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitReferences() 94 AsObjectArray<mirror::Object, kVerifyNone>()->VisitReferences(visitor); in VisitReferences() 99 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitReferences() 109 kReadBarrierOption>(klass, visitor); in VisitReferences() 119 kReadBarrierOption>(klass, visitor); in VisitReferences() 134 inline size_t Object::VisitRefsForCompaction(const Visitor& visitor, in VisitRefsForCompaction() argument 145 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitRefsForCompaction() [all …]
|
D | class_loader-inl.h | 36 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()
|
D | dex_cache-inl.h | 265 const Visitor& visitor) in VisitDexCachePairs() argument 277 visitor.VisitRootIfNonNull(source.object.AddressWithoutBarrier()); in VisitDexCachePairs() 285 void DexCache::VisitDexCachePairRoots(Visitor& visitor, in VisitDexCachePairRoots() argument 289 visitor.VisitRootIfNonNull(pairs_begin->object.AddressWithoutBarrier()); in VisitDexCachePairRoots() 297 inline void DexCache::VisitReferences(ObjPtr<Class> klass, const Visitor& visitor) { in VisitReferences() argument 299 VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor); in VisitReferences() 302 VisitNativeRoots<kVerifyFlags, kReadBarrierOption>(visitor); in VisitReferences() 309 inline void DexCache::VisitNativeRoots(const Visitor& visitor) { in VisitNativeRoots() argument 311 GetStrings<kVerifyFlags>(), NumStrings<kVerifyFlags>(), visitor); in VisitNativeRoots() 314 GetResolvedTypes<kVerifyFlags>(), NumResolvedTypes<kVerifyFlags>(), visitor); in VisitNativeRoots() [all …]
|
/art/runtime/gc/ |
D | heap-visit-objects-inl.h | 38 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 …]
|
D | allocation_record.cc | 61 void AllocRecordObjectMap::VisitRoots(RootVisitor* visitor) { in VisitRoots() argument 68 BufferedRootVisitor<kDefaultBufferedRootCount> buffered_visitor(visitor, RootInfo(kRootDebugger)); in VisitRoots() 88 static inline void SweepClassObject(AllocRecord* record, IsMarkedVisitor* visitor) in SweepClassObject() argument 97 mirror::Object* new_object = visitor->IsMarked(old_object); in SweepClassObject() 108 void AllocRecordObjectMap::SweepAllocationRecords(IsMarkedVisitor* visitor) { in SweepAllocationRecords() argument 118 mirror::Object* new_object = old_object == nullptr ? nullptr : visitor->IsMarked(old_object); in SweepAllocationRecords() 122 SweepClassObject(&record, visitor); in SweepAllocationRecords() 133 SweepClassObject(&record, visitor); in SweepAllocationRecords()
|
/art/runtime/ |
D | class_table-inl.h | 70 void ClassTable::VisitRoots(Visitor& visitor, bool skip_classes) { in VisitRoots() argument 75 table_slot.VisitRoot(visitor); in VisitRoots() 80 visitor.VisitRoot(root.AddressWithoutBarrier()); in VisitRoots() 84 visitor.VisitRootIfNonNull(root.AddressWithoutBarrier()); in VisitRoots() 90 void ClassTable::VisitRoots(const Visitor& visitor, bool skip_classes) { in VisitRoots() argument 95 table_slot.VisitRoot(visitor); in VisitRoots() 100 visitor.VisitRoot(root.AddressWithoutBarrier()); in VisitRoots() 104 visitor.VisitRootIfNonNull(root.AddressWithoutBarrier()); in VisitRoots() 110 void ClassTable::VisitClassesIfConditionMet(Condition& cond, Visitor& visitor) { in VisitClassesIfConditionMet() argument 115 table_slot.VisitRoot(visitor); in VisitClassesIfConditionMet() [all …]
|
D | java_frame_root_info.cc | 24 const StackVisitor* visitor = stack_visitor_; in Describe() local 25 CHECK(visitor != nullptr); in Describe() 27 visitor->DescribeLocation() << " vreg="; in Describe()
|
D | handle_scope-inl.h | 130 inline void HandleScope::VisitRoots(Visitor& visitor) { in VisitRoots() argument 134 visitor.VisitRootIfNonNull(GetHandle<mirror::Object>(i).GetReference()); in VisitRoots() 139 inline void HandleScope::VisitHandles(Visitor& visitor) { in VisitHandles() argument 142 visitor.Visit(GetHandle<mirror::Object>(i)); in VisitHandles() 168 inline void BaseHandleScope::VisitRoots(Visitor& visitor) { in VisitRoots() argument 170 AsHandleScope()->VisitRoots(visitor); in VisitRoots() 172 AsVariableSized()->VisitRoots(visitor); in VisitRoots() 177 inline void BaseHandleScope::VisitHandles(Visitor& visitor) { in VisitHandles() argument 179 AsHandleScope()->VisitHandles(visitor); in VisitHandles() 181 AsVariableSized()->VisitHandles(visitor); in VisitHandles() [all …]
|
D | transaction.cc | 403 void Transaction::VisitRoots(RootVisitor* visitor) { in VisitRoots() argument 410 visitor->VisitRoot(reinterpret_cast<mirror::Object**>(&root_), RootInfo(kRootUnknown)); in VisitRoots() 411 visitor->VisitRoot(&last_allocated_object_, RootInfo(kRootUnknown)); in VisitRoots() 415 VisitObjectLogs(visitor, &arena_stack); in VisitRoots() 416 VisitArrayLogs(visitor, &arena_stack); in VisitRoots() 418 VisitInternStringLogs(visitor); in VisitRoots() 419 VisitResolveStringLogs(visitor); in VisitRoots() 420 VisitResolveMethodTypeLogs(visitor); in VisitRoots() 436 void Transaction::VisitObjectLogs(RootVisitor* visitor, ArenaStack* arena_stack) { in VisitObjectLogs() argument 444 it.second.VisitRoots(visitor); in VisitObjectLogs() [all …]
|
D | handle_scope_test.cc | 122 CollectVisitor visitor; in TEST_F() local 124 base->VisitRoots(visitor); in TEST_F() 125 EXPECT_EQ(visitor.visited.size() + /* null handle */ 1u, base->Size()); in TEST_F() 126 EXPECT_EQ(visitor.total_visited, base->Size()); in TEST_F() 127 for (StackReference<mirror::Object>* ref : visitor.visited) { in TEST_F()
|
D | intern_table-inl.h | 93 const Visitor& visitor) { in AddImageStringsToTable() argument 99 AddTableFromMemory(image_space->Begin() + section.Offset(), visitor, !header.IsAppImage()); in AddImageStringsToTable() 105 const Visitor& visitor, in AddTableFromMemory() argument 114 visitor(set); in AddTableFromMemory() 145 inline void InternTable::VisitInterns(const Visitor& visitor, in VisitInterns() argument 155 visitor(intern); in VisitInterns()
|
/art/runtime/oat/ |
D | image-inl.h | 53 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() [all …]
|
/art/runtime/native/ |
D | dalvik_system_VMStack.cc | 93 NthCallerVisitor visitor(soa.Self(), 2); in VMStack_getCallingClassLoader() local 94 visitor.WalkStack(); in VMStack_getCallingClassLoader() 95 if (UNLIKELY(visitor.caller == nullptr)) { in VMStack_getCallingClassLoader() 99 return soa.AddLocalReference<jobject>(visitor.caller->GetDeclaringClass()->GetClassLoader()); in VMStack_getCallingClassLoader() 125 ClosestUserClassLoaderVisitor visitor(soa.Self()); in VMStack_getClosestUserClassLoader() local 126 visitor.WalkStack(); in VMStack_getClosestUserClassLoader() 127 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader() 133 NthCallerVisitor visitor(soa.Self(), 3); in VMStack_getStackClass2() local 134 visitor.WalkStack(); in VMStack_getStackClass2() 135 if (UNLIKELY(visitor.caller == nullptr)) { in VMStack_getStackClass2() [all …]
|
/art/runtime/gc/accounting/ |
D | heap_bitmap-inl.h | 29 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()
|
D | mod_union_table.cc | 93 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 …]
|
D | card_table-inl.h | 58 const Visitor& visitor, in Scan() argument 74 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan() 107 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan() 121 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan() 138 const Visitor& visitor, in ModifyCardsAtomic() argument 144 DCHECK(visitor(kCardClean) == kCardClean); in ModifyCardsAtomic() 151 new_value = visitor(expected); in ModifyCardsAtomic() 165 new_value = visitor(expected); in ModifyCardsAtomic() 194 new_bytes[i] = visitor(expected_bytes[i]); in ModifyCardsAtomic()
|
D | space_bitmap.h | 132 void VisitRange(uintptr_t visit_begin, uintptr_t visit_end, const Visitor& visitor) const { in VisitRange() argument 134 visitor(reinterpret_cast<mirror::Object*>(visit_begin)); in VisitRange() 147 void VisitMarkedRange(uintptr_t visit_begin, uintptr_t visit_end, Visitor&& visitor) const 152 void VisitAllMarked(Visitor&& visitor) const { in VisitAllMarked() argument 153 VisitMarkedRange(HeapBegin(), HeapLimit(), visitor); in VisitAllMarked() 159 void Walk(Visitor&& visitor)
|
D | card_table.h | 80 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,
|
D | bitmap-inl.h | 57 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()
|
/art/runtime/entrypoints/quick/ |
D | quick_throw_entrypoints.cc | 120 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/test/457-regs/ |
D | regs_jni.cc | 133 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/compiler/optimizing/ |
D | instruction_simplifier_x86_64.cc | 74 InstructionSimplifierX86_64Visitor visitor(graph_, codegen_, stats_); in Run() local 75 if (visitor.HasAVX2()) { in Run() 76 visitor.VisitReversePostOrder(); in Run()
|
D | instruction_simplifier_x86.cc | 78 InstructionSimplifierX86Visitor visitor(graph_, codegen_, stats_); in Run() local 79 if (visitor.HasAVX2()) { in Run() 80 visitor.VisitReversePostOrder(); in Run()
|
/art/test/616-cha-unloading/ |
D | cha_unload.cc | 71 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()
|