#include "include/cppgc/platform.h"
#include "src/base/lazy-instance.h"
#include "src/base/logging.h"
#include "src/base/macros.h"
#include "src/base/page-allocator.h"
#include "src/base/platform/platform.h"
#include "src/base/sanitizer/asan.h"
#include "src/base/sanitizer/lsan-page-allocator.h"
#include "src/heap/cppgc/gc-info-table.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/platform.h"
#if defined(CPPGC_CAGED_HEAP)
#include "src/heap/cppgc/caged-heap.h"
#endif
namespace cppgc {
namespace internal {
namespace {
PageAllocator* g_page_allocator = …;
PageAllocator& CreateAllocatorIfNeeded(PageAllocator* page_allocator) { … }
}
void Fatal(const std::string& reason, const SourceLocation& loc) { … }
void FatalOutOfMemoryHandler::operator()(const std::string& reason,
const SourceLocation& loc) const { … }
void FatalOutOfMemoryHandler::SetCustomHandler(Callback* callback) { … }
FatalOutOfMemoryHandler& GetGlobalOOMHandler() { … }
PageAllocator& GetGlobalPageAllocator() { … }
}
TracingController* Platform::GetTracingController() { … }
void InitializeProcess(PageAllocator* page_allocator,
size_t desired_heap_size) { … }
void ShutdownProcess() { … }
}