![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qv4mm_p.h>
Public Types | |
| enum | { NumBins = 8 } |
Public Member Functions | |
| BlockAllocator (ChunkAllocator *chunkAllocator, ExecutionEngine *engine) | |
| HeapItem * | allocate (size_t sizesize, bool forceAllocation=false) |
| size_t | totalSlots () const |
| size_t | allocatedMem () const |
| size_t | usedMem () const |
| void | sweep () |
| void | freeAll () |
| void | resetBlackBits () |
Static Public Member Functions | |
| static size_t | binForSlots (size_t nSlots) |
Public Attributes | |
| HeapItem * | nextFree = nullptr |
| size_t | nFree = 0 |
| size_t | usedSlotsAfterLastSweep = 0 |
| HeapItem * | freeBins [NumBins] |
| ChunkAllocator * | chunkAllocator |
| ExecutionEngine * | engine |
| std::vector< Chunk * > | chunks |
| uint * | allocationStats = nullptr |
|
inline |
Definition at line 175 of file qv4mm_p.h.
References chunkAllocator, and engine.
| HeapItem * QV4::BlockAllocator::allocate | ( | size_t | size, |
| bool | forceAllocation = false ) |
|
inlinestatic |
| ChunkAllocator* QV4::BlockAllocator::chunkAllocator |
Definition at line 212 of file qv4mm_p.h.
Referenced by BlockAllocator().
| ExecutionEngine* QV4::BlockAllocator::engine |
Definition at line 213 of file qv4mm_p.h.
Referenced by BlockAllocator().