chromium/v8/src/heap/cppgc/caged-heap.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/internal/caged-heap.h"

#include <map>

#include "src/heap/cppgc/platform.h"
#include "v8config.h"  // NOLINT(build/include_directory)

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

}  // namespace

// static
void CagedHeap::InitializeIfNeeded(PageAllocator& platform_allocator,
                                   size_t desired_heap_size) {}

// static
CagedHeap& CagedHeap::Instance() {}

CagedHeap::CagedHeap(PageAllocator& platform_allocator,
                     size_t desired_heap_size)
    :{}

void CagedHeap::CommitAgeTable(PageAllocator& platform_allocator) {}

}  // namespace internal
}  // namespace cppgc