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

#include <algorithm>

#include "src/base/logging.h"
#include "src/base/platform/mutex.h"
#include "src/heap/cppgc/heap-page.h"
#include "src/heap/cppgc/object-start-bitmap.h"

namespace cppgc {
namespace internal {

BaseSpace::BaseSpace(RawHeap* heap, size_t index, PageType type,
                     bool is_compactable)
    :{}

BaseSpace::~BaseSpace() = default;

void BaseSpace::AddPage(BasePage* page) {}

void BaseSpace::RemovePage(BasePage* page) {}

BaseSpace::Pages BaseSpace::RemoveAllPages() {}

NormalPageSpace::NormalPageSpace(RawHeap* heap, size_t index,
                                 bool is_compactable)
    :{}

LargePageSpace::LargePageSpace(RawHeap* heap, size_t index)
    :{}

}  // namespace internal
}  // namespace cppgc