Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 157 of file qv4mm_p.h.

Constructor & Destructor Documentation

◆ HugeItemAllocator()

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

Definition at line 158 of file qv4mm_p.h.

References chunkAllocator, and engine.

Member Function Documentation

◆ allocate()

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

Definition at line 599 of file qv4mm.cpp.

References chunkAllocator, engine, and QV4::MemorySegment::SegmentSize.

◆ freeAll()

void QV4::HugeItemAllocator::freeAll ( )

Definition at line 668 of file qv4mm.cpp.

◆ resetBlackBits()

void QV4::HugeItemAllocator::resetBlackBits ( )

Definition at line 662 of file qv4mm.cpp.

◆ sweep()

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

Definition at line 646 of file qv4mm.cpp.

References chunkAllocator, and engine.

◆ usedMem()

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

Definition at line 167 of file qv4mm_p.h.

Member Data Documentation

◆ chunkAllocator

ChunkAllocator* QV4::HugeItemAllocator::chunkAllocator

Definition at line 174 of file qv4mm_p.h.

Referenced by HugeItemAllocator(), allocate(), and sweep().

◆ chunks

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

Definition at line 182 of file qv4mm_p.h.

◆ engine

ExecutionEngine* QV4::HugeItemAllocator::engine

Definition at line 175 of file qv4mm_p.h.

Referenced by HugeItemAllocator(), allocate(), and sweep().


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