#include "include/cppgc/internal/caged-heap.h"
#include <map>
#include "src/heap/cppgc/platform.h"
#include "v8config.h"
#if !defined(CPPGC_CAGED_HEAP)
#error "Must be compiled with caged heap enabled"
#endif
#include "include/cppgc/internal/api-constants.h"
#include "include/cppgc/internal/caged-heap-local-data.h"
#include "include/cppgc/member.h"
#include "include/cppgc/platform.h"
#include "src/base/bounded-page-allocator.h"
#include "src/base/lazy-instance.h"
#include "src/base/logging.h"
#include "src/base/platform/platform.h"
#include "src/heap/cppgc/caged-heap.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/heap-base.h"
#include "src/heap/cppgc/heap-page.h"
#include "src/heap/cppgc/member-storage.h"
namespace cppgc {
namespace internal {
uintptr_t CagedHeapBase::g_heap_base_ = …;
size_t CagedHeapBase::g_age_table_size_ = …;
CagedHeap* CagedHeap::instance_ = …;
namespace {
VirtualMemory ReserveCagedHeap(PageAllocator& platform_allocator) { … }
}
void CagedHeap::InitializeIfNeeded(PageAllocator& platform_allocator,
size_t desired_heap_size) { … }
CagedHeap& CagedHeap::Instance() { … }
CagedHeap::CagedHeap(PageAllocator& platform_allocator,
size_t desired_heap_size)
: … { … }
void CagedHeap::CommitAgeTable(PageAllocator& platform_allocator) { … }
}
}