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

#include <qv4persistent_p.h>

Collaboration diagram for QV4::PersistentValueStorage:

Classes

struct  Iterator

Public Member Functions

 PersistentValueStorage (ExecutionEngine *engine)
 ~PersistentValueStorage ()
Value * allocate ()
void mark (MarkStack *markStack)
Iterator begin ()
Iterator end ()
void deallocateEmptyPages ()

Static Public Member Functions

static void free (Value *vv)
static ExecutionEngine * getEngine (const Value *vv)

Public Attributes

ExecutionEngine * engine
Page * firstPage = nullptr
Page * firstPartialPage = nullptr

Detailed Description

Definition at line 27 of file qv4persistent_p.h.

Constructor & Destructor Documentation

◆ PersistentValueStorage()

QV4::PersistentValueStorage::PersistentValueStorage ( ExecutionEngine * engine)

Definition at line 146 of file qv4persistent.cpp.

◆ ~PersistentValueStorage()

QV4::PersistentValueStorage::~PersistentValueStorage ( )

Definition at line 152 of file qv4persistent.cpp.

Member Function Documentation

◆ allocate()

Value * QV4::PersistentValueStorage::allocate ( )

Definition at line 171 of file qv4persistent.cpp.

◆ begin()

Iterator QV4::PersistentValueStorage::begin ( )
inline

Definition at line 54 of file qv4persistent_p.h.

◆ deallocateEmptyPages()

void QV4::PersistentValueStorage::deallocateEmptyPages ( )

Unmaps pages that hold neither values nor iterators. Pages that become empty are not unmapped right away, so that allocating and freeing a value in a loop doesn't map and unmap a page each time. Instead, the garbage collector calls this at the end of each cycle.

Definition at line 225 of file qv4persistent.cpp.

◆ end()

Iterator QV4::PersistentValueStorage::end ( )
inline

Definition at line 55 of file qv4persistent_p.h.

References QV4::PersistentValueStorage::Iterator::Iterator().

Here is the call graph for this function:

◆ free()

void QV4::PersistentValueStorage::free ( Value * v)
inlinestatic

Definition at line 33 of file qv4persistent_p.h.

◆ getEngine()

ExecutionEngine * QV4::PersistentValueStorage::getEngine ( const Value * v)
static

Definition at line 243 of file qv4persistent.cpp.

◆ mark()

void QV4::PersistentValueStorage::mark ( MarkStack * markStack)

Definition at line 208 of file qv4persistent.cpp.

Member Data Documentation

◆ engine

ExecutionEngine* QV4::PersistentValueStorage::engine

Definition at line 61 of file qv4persistent_p.h.

◆ firstPage

Page* QV4::PersistentValueStorage::firstPage = nullptr

Definition at line 62 of file qv4persistent_p.h.

◆ firstPartialPage

Page* QV4::PersistentValueStorage::firstPartialPage = nullptr

Definition at line 63 of file qv4persistent_p.h.


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