5#ifndef INCLUDE_V8_CPPGC_H_
6#define INCLUDE_V8_CPPGC_H_
21class AllocationHandle;
37 std::vector<std::unique_ptr<cppgc::CustomSpaceBase>> custom_spaces)
38 : custom_spaces(std::move(custom_spaces)) {}
108 std::vector<cppgc::CustomSpaceIndex> custom_spaces,
109 std::unique_ptr<CustomSpaceStatisticsReceiver> receiver);
136 friend class internal::CppHeap;
182 return {
nullptr,
Trace};
Definition: heap-handle.h:21
MarkingType
Definition: heap.h:60
@ kIncrementalAndConcurrent
SweepingType
Definition: heap.h:80
@ kIncrementalAndConcurrent
virtual void Visit(const void *self, TraceDescriptor)
Definition: visitor.h:354
Visitor(Key)
Definition: visitor.h:64
Definition: v8-cppgc.h:65
void CollectCustomSpaceStatisticsAtLastGC(std::vector< cppgc::CustomSpaceIndex > custom_spaces, std::unique_ptr< CustomSpaceStatisticsReceiver > receiver)
void CollectGarbageForTesting(cppgc::EmbedderStackState stack_state)
void CollectGarbageInYoungGenerationForTesting(cppgc::EmbedderStackState stack_state)
virtual ~CppHeap()=default
static std::unique_ptr< CppHeap > Create(v8::Platform *platform, const CppHeapCreateParams ¶ms)
void EnableDetachedGarbageCollectionsForTesting()
cppgc::HeapStatistics CollectStatistics(cppgc::HeapStatistics::DetailLevel detail_level)
cppgc::HeapHandle & GetHeapHandle()
cppgc::AllocationHandle & GetAllocationHandle()
Definition: v8-cppgc.h:160
virtual void AllocatedBytes(cppgc::CustomSpaceIndex space_index, size_t bytes)=0
virtual ~CustomSpaceStatisticsReceiver()=default
Definition: v8-cppgc.h:139
JSVisitor(cppgc::Visitor::Key key)
Definition: v8-cppgc.h:141
~JSVisitor() override=default
virtual void Visit(const TracedReferenceBase &ref)
Definition: v8-cppgc.h:152
void Trace(const TracedReferenceBase &ref)
Definition: v8-cppgc.h:144
Definition: v8-traced-handle.h:54
bool IsEmptyThreadSafe() const
Definition: v8-traced-handle.h:77
Definition: v8-traced-handle.h:165
Definition: allocation.h:38
EmbedderStackState
Definition: common.h:15
Definition: libplatform.h:15
Definition: custom-space.h:15
Definition: heap-statistics.h:19
DetailLevel
Definition: heap-statistics.h:28
Definition: trace-trait.h:44
static cppgc::TraceDescriptor GetTraceDescriptor(const void *self)
Definition: v8-cppgc.h:181
static void Trace(Visitor *visitor, const void *self)
Definition: v8-cppgc.h:185
Definition: trace-trait.h:105
static void Trace(Visitor *visitor, const void *self)
Definition: trace-trait.h:97
Definition: v8-cppgc.h:35
std::vector< std::unique_ptr< cppgc::CustomSpaceBase > > custom_spaces
Definition: v8-cppgc.h:43
CppHeapCreateParams(const CppHeapCreateParams &)=delete
CppHeapCreateParams(std::vector< std::unique_ptr< cppgc::CustomSpaceBase > > custom_spaces)
Definition: v8-cppgc.h:36
CppHeapCreateParams & operator=(const CppHeapCreateParams &)=delete
#define V8_EXPORT
Definition: v8config.h:793