Home
last modified time | relevance | path

Searched refs:PartitionFreelistEntry (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_freelist_entry.h21 struct PartitionFreelistEntry { struct
24 PartitionFreelistEntry() = delete;
25 ~PartitionFreelistEntry() = delete;
28 PartitionFreelistEntry* ptr) { in Encode()
53 char scrambled[sizeof(PartitionFreelistEntry*)]; argument
58 ALWAYS_INLINE static PartitionFreelistEntry* Decode( in Decode()
60 return reinterpret_cast<PartitionFreelistEntry*>( in Decode()
61 PartitionFreelistEntry::Transform(ptr)); in Decode()
65 static_assert(sizeof(PartitionFreelistEntry) ==
Dpartition_bucket.cc79 page->freelist_head = reinterpret_cast<PartitionFreelistEntry*>(slot); in PartitionDirectMap()
80 PartitionFreelistEntry* next_entry = in PartitionDirectMap()
81 reinterpret_cast<PartitionFreelistEntry*>(slot); in PartitionDirectMap()
82 next_entry->next = PartitionFreelistEntry::Encode(nullptr); in PartitionDirectMap()
357 first_freelist_pointer + sizeof(PartitionFreelistEntry*); in AllocAndFillFreelist()
390 PartitionFreelistEntry* entry = in AllocAndFillFreelist()
391 reinterpret_cast<PartitionFreelistEntry*>(freelist_pointer); in AllocAndFillFreelist()
395 PartitionFreelistEntry* next_entry = in AllocAndFillFreelist()
396 reinterpret_cast<PartitionFreelistEntry*>(freelist_pointer); in AllocAndFillFreelist()
397 entry->next = PartitionFreelistEntry::Encode(next_entry); in AllocAndFillFreelist()
[all …]
Dpartition_page.h53 PartitionFreelistEntry* freelist_head;
226 internal::PartitionFreelistEntry* entry = in Free()
227 static_cast<internal::PartitionFreelistEntry*>(ptr); in Free()
228 entry->next = internal::PartitionFreelistEntry::Encode(freelist_head); in Free()
Dpartition_alloc.cc492 for (internal::PartitionFreelistEntry* entry = page->freelist_head; entry; in PartitionPurgePage()
504 if (!internal::PartitionFreelistEntry::Encode(entry)) in PartitionPurgePage()
540 internal::PartitionFreelistEntry* head = nullptr; in PartitionPurgePage()
541 internal::PartitionFreelistEntry* back = head; in PartitionPurgePage()
546 auto* entry = reinterpret_cast<internal::PartitionFreelistEntry*>( in PartitionPurgePage()
552 back->next = internal::PartitionFreelistEntry::Encode(entry); in PartitionPurgePage()
563 back->next = internal::PartitionFreelistEntry::Encode(nullptr); in PartitionPurgePage()
584 begin_ptr += sizeof(internal::PartitionFreelistEntry); in PartitionPurgePage()
586 begin_ptr += sizeof(internal::PartitionFreelistEntry); in PartitionPurgePage()
Dpartition_root_base.h109 internal::PartitionFreelistEntry* new_head = in AllocFromBucket()