Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::ExecutableAllocator Class Reference

#include <qv4executableallocator_p.h>

+ Collaboration diagram for QV4::ExecutableAllocator:

Classes

struct  Allocation
 
struct  ChunkOfPages
 

Public Member Functions

 ExecutableAllocator ()
 
 ~ExecutableAllocator ()
 
Allocationallocate (size_t size)
 
void free (Allocation *allocation)
 
int freeAllocationCount () const
 
int chunkCount () const
 
ChunkOfPageschunkForAllocation (Allocation *allocation) const
 

Detailed Description

Definition at line 34 of file qv4executableallocator_p.h.

Constructor & Destructor Documentation

◆ ExecutableAllocator()

ExecutableAllocator::ExecutableAllocator ( )
default

◆ ~ExecutableAllocator()

ExecutableAllocator::~ExecutableAllocator ( )

Definition at line 126 of file qv4executableallocator.cpp.

References allocation, and qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ allocate()

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.

+ Here is the call graph for this function:

◆ chunkCount()

int QV4::ExecutableAllocator::chunkCount ( ) const
inline

Definition at line 83 of file qv4executableallocator_p.h.

◆ chunkForAllocation()

ExecutableAllocator::ChunkOfPages * ExecutableAllocator::chunkForAllocation ( Allocation * allocation) const

Definition at line 208 of file qv4executableallocator.cpp.

References allocation, and it.

◆ free()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ freeAllocationCount()

int QV4::ExecutableAllocator::freeAllocationCount ( ) const
inline

Definition at line 82 of file qv4executableallocator_p.h.


The documentation for this class was generated from the following files: