![]() |
Qt 6.x
The Qt SDK
|
#include <qv4executableallocator_p.h>
Classes | |
struct | Allocation |
struct | ChunkOfPages |
Public Member Functions | |
ExecutableAllocator () | |
~ExecutableAllocator () | |
Allocation * | allocate (size_t size) |
void | free (Allocation *allocation) |
int | freeAllocationCount () const |
int | chunkCount () const |
ChunkOfPages * | chunkForAllocation (Allocation *allocation) const |
Definition at line 34 of file qv4executableallocator_p.h.
|
default |
ExecutableAllocator::~ExecutableAllocator | ( | ) |
Definition at line 126 of file qv4executableallocator.cpp.
References allocation, and qDeleteAll().
ExecutableAllocator::Allocation * ExecutableAllocator::allocate | ( | size_t | size | ) |
Definition at line 137 of file qv4executableallocator.cpp.
References allocation, QV4::exceptionHandlerSize(), QV4::ExecutableAllocator::ChunkOfPages::firstAllocation, it, QV4::ExecutableAllocator::ChunkOfPages::pages, and Q_ASSERT.
|
inline |
Definition at line 83 of file qv4executableallocator_p.h.
ExecutableAllocator::ChunkOfPages * ExecutableAllocator::chunkForAllocation | ( | Allocation * | allocation | ) | const |
Definition at line 208 of file qv4executableallocator.cpp.
References allocation, and it.
void ExecutableAllocator::free | ( | Allocation * | allocation | ) |
Definition at line 178 of file qv4executableallocator.cpp.
References allocation, QV4::ExecutableAllocator::ChunkOfPages::contains(), QV4::ExecutableAllocator::ChunkOfPages::firstAllocation, it, and Q_ASSERT.
Referenced by QV4::ExecutableAllocator::Allocation::deallocate().
|
inline |
Definition at line 82 of file qv4executableallocator_p.h.