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::HugeItemAllocator Struct Reference

#include <qv4mm_p.h>

+ Collaboration diagram for QV4::HugeItemAllocator:

Classes

struct  HugeChunk
 

Public Member Functions

 HugeItemAllocator (ChunkAllocator *chunkAllocator, ExecutionEngine *engine)
 
HeapItemallocate (size_t size)
 
void sweep (ClassDestroyStatsCallback classCountPtr)
 
void freeAll ()
 
void resetBlackBits ()
 
size_t usedMem () const
 

Public Attributes

ChunkAllocatorchunkAllocator
 
ExecutionEngineengine
 
std::vector< HugeChunkchunks
 

Detailed Description

Definition at line 145 of file qv4mm_p.h.

Constructor & Destructor Documentation

◆ HugeItemAllocator()

QV4::HugeItemAllocator::HugeItemAllocator ( ChunkAllocator * chunkAllocator,
ExecutionEngine * engine )
inline

Definition at line 146 of file qv4mm_p.h.

Member Function Documentation

◆ allocate()

HeapItem * QV4::HugeItemAllocator::allocate ( size_t size)

Definition at line 599 of file qv4mm.cpp.

References engine, Q_ASSERT, and Q_V4_PROFILE_ALLOC.

Referenced by QV4::MemoryManager::allocObjectWithMemberData().

+ Here is the caller graph for this function:

◆ freeAll()

void QV4::HugeItemAllocator::freeAll ( )

Definition at line 668 of file qv4mm.cpp.

References engine, QV4::freeHugeChunk(), and Q_V4_PROFILE_DEALLOC.

Referenced by QV4::MemoryManager::~MemoryManager().

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

◆ resetBlackBits()

void QV4::HugeItemAllocator::resetBlackBits ( )

Definition at line 662 of file qv4mm.cpp.

Referenced by QV4::MemoryManager::~MemoryManager(), and QV4::MemoryManager::sweep().

+ Here is the caller graph for this function:

◆ sweep()

void QV4::HugeItemAllocator::sweep ( ClassDestroyStatsCallback classCountPtr)

Definition at line 646 of file qv4mm.cpp.

References engine, QV4::freeHugeChunk(), and Q_V4_PROFILE_DEALLOC.

Referenced by QV4::MemoryManager::sweep().

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

◆ usedMem()

size_t QV4::HugeItemAllocator::usedMem ( ) const
inline

Definition at line 155 of file qv4mm_p.h.

References chunks.

Referenced by QV4::MemoryManager::getAllocatedMem(), and QV4::MemoryManager::getLargeItemsMem().

+ Here is the caller graph for this function:

Member Data Documentation

◆ chunkAllocator

ChunkAllocator* QV4::HugeItemAllocator::chunkAllocator

Definition at line 162 of file qv4mm_p.h.

◆ chunks

std::vector<HugeChunk> QV4::HugeItemAllocator::chunks

Definition at line 170 of file qv4mm_p.h.

Referenced by usedMem().

◆ engine

ExecutionEngine* QV4::HugeItemAllocator::engine

Definition at line 163 of file qv4mm_p.h.


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