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>.
|
#include <qv4persistent_p.h>
Classes | |
struct | Iterator |
Public Member Functions | |
PersistentValueStorage (ExecutionEngine *engine) | |
~PersistentValueStorage () | |
Value * | allocate () |
void | mark (MarkStack *markStack) |
Iterator | begin () |
Iterator | end () |
void | clearFreePageHint () |
Static Public Member Functions | |
static void | free (Value *v) |
static ExecutionEngine * | getEngine (const Value *v) |
Public Attributes | |
ExecutionEngine * | engine |
void * | firstPage |
void * | freePageHint = nullptr |
Definition at line 24 of file qv4persistent_p.h.
PersistentValueStorage::PersistentValueStorage | ( | ExecutionEngine * | engine | ) |
Definition at line 137 of file qv4persistent.cpp.
PersistentValueStorage::~PersistentValueStorage | ( | ) |
Definition at line 143 of file qv4persistent.cpp.
References clearFreePageHint(), firstPage, i, Q_ASSERT, and QV4::Encode::undefined().
Value * PersistentValueStorage::allocate | ( | ) |
Definition at line 161 of file qv4persistent.cpp.
References firstPage, freePageHint, QV4::StaticValue::int_32(), Q_ASSERT, and QV4::Encode::undefined().
Referenced by QJSManagedValue::QJSManagedValue(), QV4::ExecutionEngine::registerNativeModule(), QV4::PersistentValue::set(), QV4::PersistentValue::set(), and QV4::PersistentValue::set().
|
inline |
Definition at line 51 of file qv4persistent_p.h.
Referenced by QV4::MemoryManager::cleanupDeletedQObjectWrappersInSweep(), and QV4::MemoryManager::sweep().
void PersistentValueStorage::clearFreePageHint | ( | ) |
Definition at line 219 of file qv4persistent.cpp.
References freePageHint, and page.
Referenced by ~PersistentValueStorage().
|
inline |
Definition at line 52 of file qv4persistent_p.h.
Referenced by QV4::MemoryManager::cleanupDeletedQObjectWrappersInSweep(), and QV4::MemoryManager::sweep().
Definition at line 30 of file qv4persistent_p.h.
Referenced by QJSManagedValue::QJSManagedValue(), QJSValue::QJSValue(), QV4::ExecutionEngine::~ExecutionEngine(), QJSManagedValue::~QJSManagedValue(), QV4::MemoryManager::cleanupDeletedQObjectWrappersInSweep(), QJSValuePrivate::free(), QV4::PersistentValue::operator=(), and QJSManagedValue::operator=().
|
static |
Definition at line 230 of file qv4persistent.cpp.
Referenced by QJSValuePrivate::convertToReturnedValue(), QJSManagedValue::engine(), QJSValuePrivate::engine(), QJSValuePrivate::free(), and v4Engine().
Definition at line 206 of file qv4persistent.cpp.
References QV4::Value::as(), firstPage, and i.
ExecutionEngine* QV4::PersistentValueStorage::engine |
Definition at line 58 of file qv4persistent_p.h.
void* QV4::PersistentValueStorage::firstPage |
Definition at line 59 of file qv4persistent_p.h.
Referenced by ~PersistentValueStorage(), allocate(), and mark().
Definition at line 60 of file qv4persistent_p.h.
Referenced by allocate(), and clearFreePageHint().