5#ifndef INCLUDE_V8_CPPGC_H_
6#define INCLUDE_V8_CPPGC_H_
21class AllocationHandle;
37 std::vector<std::unique_ptr<cppgc::CustomSpaceBase>>
custom_spaces)
90 V8_DEPRECATED(
"Terminate gets automatically called in the CppHeap destructor")
109 std::vector<
cppgc::CustomSpaceIndex> custom_spaces,
132 cppgc::EmbedderStackState stack_state);
183 return {
nullptr,
Trace};
@ kIncrementalAndConcurrent
@ kIncrementalAndConcurrent
virtual void Visit(const void *self, TraceDescriptor)
virtual ~CppHeap()=default
cppgc::HeapHandle & GetHeapHandle()
void EnableDetachedGarbageCollectionsForTesting()
cppgc::HeapStatistics CollectStatistics(cppgc::HeapStatistics::DetailLevel detail_level)
void CollectGarbageInYoungGenerationForTesting(cppgc::EmbedderStackState stack_state)
void CollectGarbageForTesting(cppgc::EmbedderStackState stack_state)
void CollectCustomSpaceStatisticsAtLastGC(std::vector< cppgc::CustomSpaceIndex > custom_spaces, std::unique_ptr< CustomSpaceStatisticsReceiver > receiver)
friend class internal::CppHeap
cppgc::AllocationHandle & GetAllocationHandle()
static std::unique_ptr< CppHeap > Create(v8::Platform *platform, const CppHeapCreateParams ¶ms)
virtual void AllocatedBytes(cppgc::CustomSpaceIndex space_index, size_t bytes)=0
virtual ~CustomSpaceStatisticsReceiver()=default
void Trace(const TracedReferenceBase &ref)
~JSVisitor() override=default
virtual void Visit(const TracedReferenceBase &ref)
JSVisitor(cppgc::Visitor::Key key)
bool IsEmptyThreadSafe() const
static void Trace(Visitor *visitor, const void *self)
static cppgc::TraceDescriptor GetTraceDescriptor(const void *self)
CppHeapCreateParams(const CppHeapCreateParams &)=delete
cppgc::Heap::SweepingType sweeping_support
CppHeapCreateParams & operator=(const CppHeapCreateParams &)=delete
cppgc::Heap::MarkingType marking_support
CppHeapCreateParams(std::vector< std::unique_ptr< cppgc::CustomSpaceBase > > custom_spaces)
std::vector< std::unique_ptr< cppgc::CustomSpaceBase > > custom_spaces
#define V8_DEPRECATED(message)