5#ifndef V8_HEAP_PRETENURING_HANDLER_H_
6#define V8_HEAP_PRETENURING_HANDLER_H_
36 template <FindMementoMode mode>
39 template <FindMementoMode mode>
93 std::unique_ptr<GlobalHandleVector<AllocationSite>>
void ProcessPretenuringFeedback(size_t new_space_capacity_before_gc)
static constexpr int kInitialFeedbackCapacity
std::unordered_map< Tagged< AllocationSite >, size_t, Object::Hasher > PretenuringFeedbackMap
static Tagged< AllocationMemento > FindAllocationMemento(Heap *heap, Tagged< Map > map, Tagged< HeapObject > object)
std::unique_ptr< GlobalHandleVector< AllocationSite > > allocation_sites_to_pretenure_
void RemoveAllocationSitePretenuringFeedback(Tagged< AllocationSite > site)
PretenuringHandler(Heap *heap)
void MergeAllocationSitePretenuringFeedback(const PretenuringFeedbackMap &local_pretenuring_feedback)
V8_EXPORT_PRIVATE void PretenureAllocationSiteOnNextCollection(Tagged< AllocationSite > site)
PretenuringFeedbackMap global_pretenuring_feedback_
static V8_EXPORT_PRIVATE int GetMinMementoCountForTesting()
bool HasPretenuringFeedback() const
static void UpdateAllocationSite(Heap *heap, Tagged< Map > map, Tagged< HeapObject > object, int object_size, PretenuringFeedbackMap *pretenuring_feedback)
#define V8_EXPORT_PRIVATE