Searched refs:IndexLinkNode (Results 1 – 2 of 2) sorted by relevance
/third_party/skia/third_party/externals/dawn/src/common/ |
D | SlabAllocator.cpp | 27 SlabAllocatorImpl::IndexLinkNode::IndexLinkNode(Index index, Index nextIndex) in IndexLinkNode() function in SlabAllocatorImpl::IndexLinkNode 33 SlabAllocatorImpl::Slab::Slab(char allocation[], IndexLinkNode* head) in Slab() 65 mIndexLinkNodeOffset(Align(objectSize, alignof(IndexLinkNode))), in SlabAllocatorImpl() 66 mBlockStride(Align(mIndexLinkNodeOffset + sizeof(IndexLinkNode), objectAlignment)), in SlabAllocatorImpl() 91 SlabAllocatorImpl::IndexLinkNode* SlabAllocatorImpl::OffsetFrom( in OffsetFrom() 92 IndexLinkNode* node, in OffsetFrom() 94 return reinterpret_cast<IndexLinkNode*>(reinterpret_cast<char*>(node) + in OffsetFrom() 98 SlabAllocatorImpl::IndexLinkNode* SlabAllocatorImpl::NodeFromObject(void* object) const { in NodeFromObject() 99 return reinterpret_cast<SlabAllocatorImpl::IndexLinkNode*>(static_cast<char*>(object) + in NodeFromObject() 103 void* SlabAllocatorImpl::ObjectFromNode(IndexLinkNode* node) const { in ObjectFromNode() [all …]
|
D | SlabAllocator.h | 68 struct IndexLinkNode : PlacementAllocated { struct 69 IndexLinkNode(Index index, Index nextIndex); 80 Slab(char allocation[], IndexLinkNode* head); argument 86 IndexLinkNode* freeList; 106 IndexLinkNode* OffsetFrom(IndexLinkNode* node, std::make_signed_t<Index> offset) const; 109 IndexLinkNode* NodeFromObject(void* object) const; 112 void* ObjectFromNode(IndexLinkNode* node) const; 114 bool IsNodeInSlab(Slab* slab, IndexLinkNode* node) const; 118 void PushFront(Slab* slab, IndexLinkNode* node) const; 119 IndexLinkNode* PopFront(Slab* slab) const;
|