#include "src/heap/cppgc/free-list.h"
#include <algorithm>
#include "include/cppgc/internal/logging.h"
#include "src/base/bits.h"
#include "src/base/sanitizer/asan.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/heap-object-header.h"
namespace cppgc {
namespace internal {
namespace {
uint32_t BucketIndexForSize(uint32_t size) { … }
}
class FreeList::Entry : public HeapObjectHeader { … };
FreeList::FreeList() { … }
FreeList::FreeList(FreeList&& other) V8_NOEXCEPT
: … { … }
FreeList& FreeList::operator=(FreeList&& other) V8_NOEXCEPT { … }
void FreeList::Add(FreeList::Block block) { … }
std::pair<Address, Address> FreeList::AddReturningUnusedBounds(Block block) { … }
void FreeList::Append(FreeList&& other) { … }
FreeList::Block FreeList::Allocate(size_t allocation_size) { … }
void FreeList::Clear() { … }
size_t FreeList::Size() const { … }
bool FreeList::IsEmpty() const { … }
bool FreeList::ContainsForTesting(Block block) const { … }
bool FreeList::IsConsistent(size_t index) const { … }
void FreeList::CollectStatistics(
HeapStatistics::FreeListStatistics& free_list_stats) { … }
}
}