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