chromium/v8/src/heap/cppgc/platform.cc

// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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  // defined(CPPGC_CAGED_HEAP)

namespace cppgc {
namespace internal {

namespace {

PageAllocator* g_page_allocator =;

PageAllocator& CreateAllocatorIfNeeded(PageAllocator* page_allocator) {}

}  // namespace

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() {}

}  // namespace internal

TracingController* Platform::GetTracingController() {}

void InitializeProcess(PageAllocator* page_allocator,
                       size_t desired_heap_size) {}

void ShutdownProcess() {}

}  // namespace cppgc