Home | History | Annotate | Download | only in space

Lines Matching defs:AllocationInfo

254 // allocation. Each allocation has an AllocationInfo which contains the size of the previous free
257 class AllocationInfo {
259 AllocationInfo() : prev_free_(0), alloc_size_(0) {
289 AllocationInfo* GetNextInfo() {
292 const AllocationInfo* GetNextInfo() const {
298 AllocationInfo* GetPrevFreeInfo() {
332 size_t FreeListSpace::GetSlotIndexForAllocationInfo(const AllocationInfo* info) const {
334 DCHECK_LT(info, reinterpret_cast<AllocationInfo*>(allocation_info_map_.End()));
338 AllocationInfo* FreeListSpace::GetAllocationInfoForAddress(uintptr_t address) {
342 const AllocationInfo* FreeListSpace::GetAllocationInfoForAddress(uintptr_t address) const {
346 inline bool FreeListSpace::SortByPrevFree::operator()(const AllocationInfo* a,
347 const AllocationInfo* b) const {
376 const size_t alloc_info_size = sizeof(AllocationInfo) * (space_capacity / kAlignment);
385 allocation_info_ = reinterpret_cast<AllocationInfo*>(allocation_info_map_.Begin());
393 AllocationInfo* cur_info = &allocation_info_[0];
394 const AllocationInfo* end_info = GetAllocationInfoForAddress(free_end_start);
414 void FreeListSpace::RemoveFreePrev(AllocationInfo* info) {
427 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj));
434 AllocationInfo* next_info = info->GetNextInfo();
453 AllocationInfo* new_free_info;
455 AllocationInfo* next_next_info = next_info->GetNextInfo();
483 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj));
496 AllocationInfo temp_info;
499 AllocationInfo* new_info;
503 AllocationInfo* info = *it;
510 AllocationInfo* new_free = info - info->GetPrevFree();
555 const AllocationInfo* cur_info =
557 const AllocationInfo* end_info = GetAllocationInfoForAddress(free_end_start);
577 const AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj));
585 for (AllocationInfo* cur_info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(Begin())),