Qt 6.x
The Qt SDK
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 ()
 
Valueallocate ()
 
void mark (MarkStack *markStack)
 
Iterator begin ()
 
Iterator end ()
 

Static Public Member Functions

static void free (Value *v)
 
static ExecutionEnginegetEngine (const Value *v)
 

Public Attributes

ExecutionEngineengine
 
voidfirstPage
 

Detailed Description

Definition at line 24 of file qv4persistent_p.h.

Constructor & Destructor Documentation

◆ PersistentValueStorage()

PersistentValueStorage::PersistentValueStorage ( ExecutionEngine engine)

Definition at line 137 of file qv4persistent.cpp.

◆ ~PersistentValueStorage()

PersistentValueStorage::~PersistentValueStorage ( )

Definition at line 143 of file qv4persistent.cpp.

References firstPage, i, Page, Q_ASSERT, and QV4::Encode::undefined().

+ Here is the call graph for this function:

Member Function Documentation

◆ allocate()

Value * PersistentValueStorage::allocate ( )

Definition at line 160 of file qv4persistent.cpp.

References firstPage, QV4::StaticValue::int_32(), Page, and QV4::Encode::undefined().

Referenced by QV4::PersistentValue::PersistentValue(), QV4::PersistentValue::PersistentValue(), QV4::PersistentValue::PersistentValue(), QJSManagedValue::QJSManagedValue(), QV4::ExecutionEngine::registerNativeModule(), QV4::PersistentValue::set(), QV4::PersistentValue::set(), and QV4::PersistentValue::set().

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

◆ begin()

Iterator QV4::PersistentValueStorage::begin ( )
inline

Definition at line 51 of file qv4persistent_p.h.

◆ end()

Iterator QV4::PersistentValueStorage::end ( )
inline

Definition at line 52 of file qv4persistent_p.h.

◆ free()

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

Definition at line 30 of file qv4persistent_p.h.

Referenced by QJSManagedValue::QJSManagedValue(), QJSValue::QJSValue(), QV4::ExecutionEngine::~ExecutionEngine(), QJSManagedValue::~QJSManagedValue(), QJSValuePrivate::free(), QV4::PersistentValue::operator=(), and QJSManagedValue::operator=().

+ Here is the caller graph for this function:

◆ getEngine()

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

Definition at line 210 of file qv4persistent.cpp.

Referenced by QJSValuePrivate::convertToReturnedValue(), QJSManagedValue::engine(), QJSValuePrivate::engine(), QJSValuePrivate::free(), and v4Engine().

+ Here is the caller graph for this function:

◆ mark()

void PersistentValueStorage::mark ( MarkStack markStack)

Definition at line 197 of file qv4persistent.cpp.

References QV4::Value::as(), firstPage, i, and Page.

+ Here is the call graph for this function:

Member Data Documentation

◆ engine

ExecutionEngine* QV4::PersistentValueStorage::engine

Definition at line 56 of file qv4persistent_p.h.

◆ firstPage

void* QV4::PersistentValueStorage::firstPage

Definition at line 57 of file qv4persistent_p.h.

Referenced by ~PersistentValueStorage(), allocate(), and mark().


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