#include "src/heap/cppgc/heap.h"
#include "include/cppgc/heap-consistency.h"
#include "src/heap/base/stack.h"
#include "src/heap/cppgc/garbage-collector.h"
#include "src/heap/cppgc/gc-invoker.h"
#include "src/heap/cppgc/heap-config.h"
#include "src/heap/cppgc/heap-object-header.h"
#include "src/heap/cppgc/heap-visitor.h"
#include "src/heap/cppgc/marker.h"
#include "src/heap/cppgc/marking-verifier.h"
#include "src/heap/cppgc/prefinalizer-handler.h"
#include "src/heap/cppgc/stats-collector.h"
#include "src/heap/cppgc/sweeper.h"
#include "src/heap/cppgc/unmarker.h"
namespace cppgc {
namespace {
void VerifyCustomSpaces(
const std::vector<std::unique_ptr<CustomSpaceBase>>& custom_spaces) { … }
}
std::unique_ptr<Heap> Heap::Create(std::shared_ptr<cppgc::Platform> platform,
cppgc::Heap::HeapOptions options) { … }
void Heap::ForceGarbageCollectionSlow(const char* source, const char* reason,
Heap::StackState stack_state) { … }
AllocationHandle& Heap::GetAllocationHandle() { … }
HeapHandle& Heap::GetHeapHandle() { … }
namespace internal {
namespace {
void CheckConfig(GCConfig config, HeapBase::MarkingType marking_support,
HeapBase::SweepingType sweeping_support) { … }
}
Heap::Heap(std::shared_ptr<cppgc::Platform> platform,
cppgc::Heap::HeapOptions options)
: … { … }
Heap::~Heap() { … }
void Heap::CollectGarbage(GCConfig config) { … }
void Heap::StartIncrementalGarbageCollection(GCConfig config) { … }
void Heap::FinalizeIncrementalGarbageCollectionIfRunning(GCConfig config) { … }
void Heap::StartGarbageCollection(GCConfig config) { … }
void Heap::FinalizeGarbageCollection(StackState stack_state) { … }
void Heap::FinalizeGarbageCollectionImpl(StackState stack_state) { … }
void Heap::EnableGenerationalGC() { … }
void Heap::DisableHeapGrowingForTesting() { … }
void Heap::FinalizeIncrementalGarbageCollectionIfNeeded(
StackState stack_state) { … }
void Heap::StartIncrementalGarbageCollectionForTesting() { … }
void Heap::FinalizeIncrementalGarbageCollectionForTesting(
EmbedderStackState stack_state) { … }
}
}