Qt 6.x
The Qt SDK
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 78 of file qv4mm_p.h.

Constructor & Destructor Documentation

◆ HugeItemAllocator()

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

Definition at line 79 of file qv4mm_p.h.

Member Function Documentation

◆ allocate()

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

Definition at line 597 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 666 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 660 of file qv4mm.cpp.

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

+ Here is the caller graph for this function:

◆ sweep()

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

Definition at line 644 of file qv4mm.cpp.

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

+ Here is the call graph for this function:

◆ usedMem()

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

Definition at line 88 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 95 of file qv4mm_p.h.

◆ chunks

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

Definition at line 103 of file qv4mm_p.h.

Referenced by usedMem().

◆ engine

ExecutionEngine* QV4::HugeItemAllocator::engine

Definition at line 96 of file qv4mm_p.h.


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