|
v8
9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
|
Go to the documentation of this file.
5 #ifndef INCLUDE_CPPGC_HEAP_H_
6 #define INCLUDE_CPPGC_HEAP_H_
11 #include "cppgc/common.h"
12 #include "cppgc/custom-space.h"
13 #include "cppgc/platform.h"
21 class AllocationHandle;
164 virtual ~
Heap() =
default;
176 const char* source,
const char* reason,
std::vector< std::unique_ptr< CustomSpaceBase > > custom_spaces
size_t initial_heap_size_bytes
@ kIncrementalAndConcurrent
@ kIncrementalAndConcurrent
@ kNoConservativeStackScan
static HeapOptions Default()
ResourceConstraints resource_constraints
@ kSupportsConservativeStackScan
void ForceGarbageCollectionSlow(const char *source, const char *reason, StackState stack_state=StackState::kMayContainHeapPointers)
@ kMayContainHeapPointers
StackSupport stack_support
MarkingType marking_support
AllocationHandle & GetAllocationHandle()
HeapHandle & GetHeapHandle()
static std::unique_ptr< Heap > Create(std::shared_ptr< Platform > platform, HeapOptions options=HeapOptions::Default())
SweepingType sweeping_support