/external/v8/src/heap/cppgc/ |
D | heap.cc | 33 std::unique_ptr<Heap> Heap::Create(std::shared_ptr<cppgc::Platform> platform, in Create() 34 cppgc::Heap::HeapOptions options) { in Create() 37 return std::make_unique<internal::Heap>(std::move(platform), in Create() 41 void Heap::ForceGarbageCollectionSlow(const char* source, const char* reason, in ForceGarbageCollectionSlow() 42 Heap::StackState stack_state) { in ForceGarbageCollectionSlow() 43 internal::Heap::From(this)->CollectGarbage( in ForceGarbageCollectionSlow() 49 AllocationHandle& Heap::GetAllocationHandle() { in GetAllocationHandle() 50 return internal::Heap::From(this)->object_allocator(); in GetAllocationHandle() 70 void CheckConfig(Heap::Config config) { in CheckConfig() 72 (config.collection_type != Heap::Config::CollectionType::kMinor) || in CheckConfig() [all …]
|
D | heap.h | 19 class V8_EXPORT_PRIVATE Heap final : public HeapBase, 20 public cppgc::Heap, 23 static Heap* From(cppgc::Heap* heap) { return static_cast<Heap*>(heap); } in From() 24 static const Heap* From(const cppgc::Heap* heap) { in From() 25 return static_cast<const Heap*>(heap); in From() 28 Heap(std::shared_ptr<cppgc::Platform> platform, 29 cppgc::Heap::HeapOptions options); 30 ~Heap() final;
|
D | gc-invoker.cc | 18 GCInvokerImpl(GarbageCollector*, cppgc::Platform*, cppgc::Heap::StackSupport); 63 cppgc::Heap::StackSupport stack_support_; 69 cppgc::Heap::StackSupport stack_support) in GCInvokerImpl() 84 cppgc::Heap::StackSupport::kSupportsConservativeStackScan)) { in CollectGarbage() 97 cppgc::Heap::StackSupport::kSupportsConservativeStackScan) && in StartIncrementalGarbageCollection() 113 cppgc::Heap::StackSupport stack_support) in GCInvoker()
|
/external/v8/src/heap/ |
D | heap-inl.h | 75 Isolate* Heap::isolate() { in isolate() 81 int64_t Heap::external_memory() { return external_memory_.total(); } in external_memory() 83 int64_t Heap::update_external_memory(int64_t delta) { in update_external_memory() 87 RootsTable& Heap::roots_table() { return isolate()->roots_table(); } in roots_table() 90 Type Heap::name() { \ 97 void Heap::set_##name(type value) { \ 109 void Heap::SetRootMaterializedObjects(FixedArray objects) { in ROOT_LIST() 113 void Heap::SetRootScriptList(Object value) { in SetRootScriptList() 117 void Heap::SetMessageListeners(TemplateList value) { in SetMessageListeners() 121 void Heap::SetPendingOptimizeForTestBytecode(Object hash_table) { in SetPendingOptimizeForTestBytecode() [all …]
|
D | heap.cc | 106 Isolate* Heap::GetIsolateFromWritableObject(HeapObject object) { in GetIsolateFromWritableObject() 108 third_party_heap::Heap::GetIsolate(object.address())); in GetIsolateFromWritableObject() 115 return Heap::PageFlagsAreConsistent(object); in Heap_PageFlagsAreConsistent() 120 Heap::GenerationalBarrierSlow(object, slot, value); in Heap_GenerationalBarrierSlow() 124 Heap::WriteBarrierForCodeSlow(host); in Heap_WriteBarrierForCodeSlow() 129 Heap::GenerationalBarrierForCodeSlow(host, rinfo, object); in Heap_GenerationalBarrierForCodeSlow() 132 void Heap_GenerationalEphemeronKeyBarrierSlow(Heap* heap, in Heap_GenerationalEphemeronKeyBarrierSlow() 138 void Heap::SetArgumentsAdaptorDeoptPCOffset(int pc_offset) { in SetArgumentsAdaptorDeoptPCOffset() 143 void Heap::SetConstructStubCreateDeoptPCOffset(int pc_offset) { in SetConstructStubCreateDeoptPCOffset() 148 void Heap::SetConstructStubInvokeDeoptPCOffset(int pc_offset) { in SetConstructStubInvokeDeoptPCOffset() [all …]
|
D | objects-visiting.cc | 18 static bool MustRecordSlots(Heap* heap) { in MustRecordSlots() 19 return heap->gc_state() == Heap::MARK_COMPACT && in MustRecordSlots() 28 Object VisitWeakList(Heap* heap, Object list, WeakObjectRetainer* retainer) { in VisitWeakList() 78 static void ClearWeakList(Heap* heap, Object list) { in ClearWeakList() 104 static void VisitLiveObject(Heap*, Code, WeakObjectRetainer*) {} in VisitLiveObject() 106 static void VisitPhantomObject(Heap* heap, Code code) { in VisitPhantomObject() 130 static void VisitLiveObject(Heap* heap, Context context, in VisitLiveObject() 132 if (heap->gc_state() == Heap::MARK_COMPACT) { in VisitLiveObject() 148 static void DoWeakList(Heap* heap, Context context, in DoWeakList() 164 static void VisitPhantomObject(Heap* heap, Context context) { in VisitPhantomObject() [all …]
|
D | heap-controller.h | 17 static constexpr size_t kMinSize = 128u * Heap::kHeapLimitMultiplier * MB; 18 static constexpr size_t kMaxSize = 1024u * Heap::kHeapLimitMultiplier * MB; 39 Heap::HeapGrowingMode growing_mode); 41 static double GrowingFactor(Heap* heap, size_t max_heap_size, double gc_speed, 44 static size_t CalculateAllocationLimit(Heap* heap, size_t current_size, 48 Heap::HeapGrowingMode growing_mode);
|
D | heap-controller.cc | 14 double MemoryController<Trait>::GrowingFactor(Heap* heap, size_t max_heap_size, in GrowingFactor() 118 Heap::HeapGrowingMode growing_mode) { in MinimumAllocationLimitGrowingStep() 122 return limit * (growing_mode == Heap::HeapGrowingMode::kConservative in MinimumAllocationLimitGrowingStep() 129 Heap* heap, size_t current_size, size_t min_size, size_t max_size, in CalculateAllocationLimit() 131 Heap::HeapGrowingMode growing_mode) { in CalculateAllocationLimit() 133 case Heap::HeapGrowingMode::kConservative: in CalculateAllocationLimit() 134 case Heap::HeapGrowingMode::kSlow: in CalculateAllocationLimit() 137 case Heap::HeapGrowingMode::kMinimal: in CalculateAllocationLimit() 140 case Heap::HeapGrowingMode::kDefault: in CalculateAllocationLimit()
|
D | marking-barrier.h | 15 class Heap; variable 23 explicit MarkingBarrier(Heap*); 31 static void ActivateAll(Heap* heap, bool is_compacting); 32 static void DeactivateAll(Heap* heap); 33 static void PublishAll(Heap* heap); 56 Heap* heap_;
|
D | heap-write-barrier.h | 20 class Heap; variable 62 static void MarkingSlow(Heap* heap, HeapObject host, HeapObjectSlot, 64 static void MarkingSlow(Heap* heap, Code host, RelocInfo*, HeapObject value); 65 static void MarkingSlow(Heap* heap, JSArrayBuffer host, 67 static void MarkingSlow(Heap* heap, DescriptorArray, 69 static inline base::Optional<Heap*> GetHeapIfMarking(HeapObject object);
|
D | scavenge-job.h | 13 class Heap; variable 22 void ScheduleTaskIfNeeded(Heap* heap); 24 static size_t YoungGenerationTaskTriggerSize(Heap* heap); 29 static bool YoungGenerationSizeTaskTriggerReached(Heap* heap);
|
D | paged-spaces.h | 24 class Heap; variable 42 PagedSpaceObjectIterator(Heap* heap, PagedSpace* space); 43 PagedSpaceObjectIterator(Heap* heap, PagedSpace* space, Page* page); 74 PagedSpace(Heap* heap, AllocationSpace id, Executability executable, in NON_EXPORTED_BASE() 241 void VerifyCountersAfterSweeping(Heap* heap); in NON_EXPORTED_BASE() 299 std::unique_ptr<ObjectIterator> GetObjectIterator(Heap* heap) override; in NON_EXPORTED_BASE() 416 LocalSpace(Heap* heap, AllocationSpace id, Executability executable, in LocalSpace() 439 CompactionSpace(Heap* heap, AllocationSpace id, Executability executable, in CompactionSpace() 453 explicit CompactionSpaceCollection(Heap* heap, in CompactionSpaceCollection() 484 explicit OldSpace(Heap* heap) in OldSpace() [all …]
|
D | incremental-marking-job.cc | 23 static StepResult Step(Heap* heap); 45 void IncrementalMarkingJob::Start(Heap* heap) { in Start() 50 void IncrementalMarkingJob::ScheduleTask(Heap* heap, TaskType task_type) { in ScheduleTask() 83 StepResult IncrementalMarkingJob::Task::Step(Heap* heap) { in Step() 99 Heap* heap = isolate()->heap(); in RunInternal() 110 Heap::IncrementalMarkingLimit::kNoLimit) { in RunInternal() 140 double IncrementalMarkingJob::CurrentTimeToTask(Heap* heap) const { in CurrentTimeToTask()
|
D | incremental-marking-job.h | 13 class Heap; variable 25 void Start(Heap* heap); 27 void ScheduleTask(Heap* heap, TaskType task_type = TaskType::kNormal); 29 double CurrentTimeToTask(Heap* heap) const;
|
D | scavenger-inl.h | 164 DCHECK(!Heap::InFromPage(*slot)); in SemiSpaceCopyObject() 165 return Heap::InToPage(*slot) in SemiSpaceCopyObject() 200 DCHECK(!Heap::InFromPage(*slot)); in PromoteObject() 201 return Heap::InToPage(*slot) in PromoteObject() 302 DCHECK(!Heap::InYoungGeneration(actual)); in EvacuateThinString() 328 if (!Heap::InYoungGeneration(first)) { in EvacuateShortcutCandidate() 339 return Heap::InYoungGeneration(target) ? KEEP_SLOT : REMOVE_SLOT; in EvacuateShortcutCandidate() 361 SLOW_DCHECK(Heap::InFromPage(source)); in EvacuateObject() 390 DCHECK(Heap::InFromPage(object)); in ScavengeObject() 400 DCHECK_IMPLIES(Heap::InYoungGeneration(dest), in ScavengeObject() [all …]
|
D | large-spaces.h | 49 static LargePage* Initialize(Heap* heap, MemoryChunk* chunk, 103 std::unique_ptr<ObjectIterator> GetObjectIterator(Heap* heap) override; 116 LargeObjectSpace(Heap* heap, AllocationSpace id); 133 explicit OldLargeObjectSpace(Heap* heap); 147 explicit OldLargeObjectSpace(Heap* heap, AllocationSpace id); 154 NewLargeObjectSpace(Heap* heap, size_t capacity); 183 explicit CodeLargeObjectSpace(Heap* heap);
|
D | base-space.h | 18 class Heap; variable 24 Heap* heap() const { in heap() 62 BaseSpace(Heap* heap, AllocationSpace id) in BaseSpace() 68 Heap* heap_;
|
D | local-heap-inl.h | 25 Heap::HeapState state = heap()->gc_state(); in AllocateRaw() 26 DCHECK(state == Heap::TEAR_DOWN || state == Heap::NOT_IN_GC); in AllocateRaw() 29 bool large_object = size_in_bytes > Heap::MaxRegularHeapObjectSize(type); in AllocateRaw()
|
D | heap-write-barrier.cc | 31 void WriteBarrier::MarkingSlow(Heap* heap, HeapObject host, HeapObjectSlot slot, in MarkingSlow() 39 void WriteBarrier::MarkingSlow(Heap* heap, Code host, RelocInfo* reloc_info, in MarkingSlow() 47 void WriteBarrier::MarkingSlow(Heap* heap, JSArrayBuffer host, in MarkingSlow() 55 void WriteBarrier::MarkingSlow(Heap* heap, DescriptorArray descriptor_array, in MarkingSlow()
|
D | object-stats.h | 90 class Heap; variable 97 explicit ObjectStats(Heap* heap) : heap_(heap) { ClearObjectStats(true); } in ObjectStats() 135 Heap* heap() { return heap_; } in heap() 155 Heap* heap_; 180 ObjectStatsCollector(Heap* heap, ObjectStats* live, ObjectStats* dead) in ObjectStatsCollector() 192 Heap* const heap_;
|
D | heap.h | 54 class Heap; variable 191 friend class Heap; variable 251 class Heap { 272 DevToolsTraceEventScope(Heap* heap, const char* event_name, 277 Heap* heap_; 1153 Heap* heap, FullObjectSlot pointer); 1186 static inline Heap* FromWritableHeapObject(HeapObject obj); 1542 using ExternalStringTableUpdaterCallback = String (*)(Heap* heap, 1550 explicit ExternalStringTable(Heap* heap) : heap_(heap) {} in ExternalStringTable() 1569 Heap::ExternalStringTableUpdaterCallback updater_func); [all …]
|
D | memory-reducer.h | 20 class Heap; variable 117 explicit MemoryReducer(Heap* heap); 139 Heap* heap() { return heap_; } in heap() 161 Heap* heap_;
|
/external/v8/src/heap/third-party/ |
D | heap-api-stub.cc | 12 Isolate* Heap::GetIsolateFromWritableObject(HeapObject object) { in GetIsolateFromWritableObject() 24 std::unique_ptr<Heap> Heap::New(v8::internal::Isolate*) { return nullptr; } in New() 27 v8::internal::Isolate* Heap::GetIsolate(Address) { return nullptr; } in GetIsolate() 29 AllocationResult Heap::Allocate(size_t, AllocationType, AllocationAlignment) { in Allocate() 33 Address Heap::GetObjectFromInnerPointer(Address) { return 0; } in GetObjectFromInnerPointer() 35 const base::AddressRegion& Heap::GetCodeRange() { in GetCodeRange() 41 bool Heap::InCodeSpace(Address) { return false; } in InCodeSpace() 44 bool Heap::InReadOnlySpace(Address) { return false; } in InReadOnlySpace() 47 bool Heap::IsValidHeapObject(HeapObject) { return false; } in IsValidHeapObject() 49 bool Heap::CollectGarbage() { return false; } in CollectGarbage()
|
/external/v8/include/cppgc/ |
D | heap.h | 29 class Heap; variable 32 class V8_EXPORT Heap { 110 static std::unique_ptr<Heap> Create( 114 virtual ~Heap() = default; 136 Heap() = default; 138 friend class internal::Heap;
|
/external/v8/src/execution/ |
D | isolate-utils-inl.h | 29 V8_INLINE Heap* GetHeapFromWritableObject(HeapObject object) { in GetHeapFromWritableObject() 34 return Heap::GetIsolateFromWritableObject(object)->heap(); in GetHeapFromWritableObject() 49 return Heap::GetIsolateFromWritableObject(object); in GetIsolateFromWritableObject() 62 *isolate = Heap::GetIsolateFromWritableObject(object); in GetIsolateFromHeapObject()
|