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>.
Loading...
Searching...
No Matches
QQmlPrivate::AOTCompiledContext Struct Reference

#include <qqmlprivate.h>

+ Collaboration diagram for QQmlPrivate::AOTCompiledContext:

Public Types

enum  : uint { InvalidStringId = (std::numeric_limits<uint>::max)() }
 

Public Member Functions

QObjectthisObject () const
 
QQmlEngineqmlEngine () const
 
QJSValue jsMetaType (int index) const
 
void setInstructionPointer (int offset) const
 
void setReturnValueUndefined () const
 
bool captureLookup (uint index, QObject *object) const
 
bool captureQmlContextPropertyLookup (uint index) const
 
void captureTranslation () const
 
QString translationContext () const
 
QMetaType lookupResultMetaType (uint index) const
 
void storeNameSloppy (uint nameIndex, void *value, QMetaType type) const
 
QJSValue javaScriptGlobalProperty (uint nameIndex) const
 
const QLoggingCategoryresolveLoggingCategory (QObject *wrapper, bool *ok) const
 
void writeToConsole (QtMsgType type, const QString &message, const QLoggingCategory *loggingCategory) const
 
QVariant constructValueType (QMetaType resultMetaType, const QMetaObject *resultMetaObject, int ctorIndex, void *ctorArg) const
 
QDateTime constructDateTime (double timestamp) const
 
QDateTime constructDateTime (const QString &string) const
 
QDateTime constructDateTime (const QJSPrimitiveValue &arg) const
 
QDateTime constructDateTime (double year, double month, double day=1, double hours=0, double minutes=0, double seconds=0, double msecs=0) const
 
bool callQmlContextPropertyLookup (uint index, void **args, const QMetaType *types, int argc) const
 
void initCallQmlContextPropertyLookup (uint index) const
 
bool loadContextIdLookup (uint index, void *target) const
 
void initLoadContextIdLookup (uint index) const
 
bool callObjectPropertyLookup (uint index, QObject *object, void **args, const QMetaType *types, int argc) const
 
void initCallObjectPropertyLookup (uint index) const
 
bool callGlobalLookup (uint index, void **args, const QMetaType *types, int argc) const
 
void initCallGlobalLookup (uint index) const
 
bool loadGlobalLookup (uint index, void *target, QMetaType type) const
 
void initLoadGlobalLookup (uint index) const
 
bool loadScopeObjectPropertyLookup (uint index, void *target) const
 
bool writeBackScopeObjectPropertyLookup (uint index, void *source) const
 
void initLoadScopeObjectPropertyLookup (uint index, QMetaType type) const
 
bool loadSingletonLookup (uint index, void *target) const
 
void initLoadSingletonLookup (uint index, uint importNamespace) const
 
bool loadAttachedLookup (uint index, QObject *object, void *target) const
 
void initLoadAttachedLookup (uint index, uint importNamespace, QObject *object) const
 
bool loadTypeLookup (uint index, void *target) const
 
void initLoadTypeLookup (uint index, uint importNamespace) const
 
bool getObjectLookup (uint index, QObject *object, void *target) const
 
bool writeBackObjectLookup (uint index, QObject *object, void *source) const
 
void initGetObjectLookup (uint index, QObject *object, QMetaType type) const
 
bool getValueLookup (uint index, void *value, void *target) const
 
bool writeBackValueLookup (uint index, void *value, void *source) const
 
void initGetValueLookup (uint index, const QMetaObject *metaObject, QMetaType type) const
 
bool getEnumLookup (uint index, void *target) const
 
void initGetEnumLookup (uint index, const QMetaObject *metaObject, const char *enumerator, const char *enumValue) const
 
bool setObjectLookup (uint index, QObject *object, void *value) const
 
void initSetObjectLookup (uint index, QObject *object, QMetaType type) const
 
bool setValueLookup (uint index, void *target, void *value) const
 
void initSetValueLookup (uint index, const QMetaObject *metaObject, QMetaType type) const
 

Public Attributes

QQmlContextDataqmlContext
 
QObjectqmlScopeObject
 
QJSEngineengine
 
union { 
 
   QV4::ExecutableCompilationUnit *   compilationUnit 
 
   qintptr   extraData 
 
};  
 

Detailed Description

Definition at line 620 of file qqmlprivate.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint
Enumerator
InvalidStringId 

Definition at line 1 of file qqmlprivate.h.

Member Function Documentation

◆ callGlobalLookup()

bool QQmlPrivate::AOTCompiledContext::callGlobalLookup ( uint index,
void ** args,
const QMetaType * types,
int argc ) const

Definition at line 1862 of file qqml.cpp.

References arg, args, engine, QV4::Scope::engine, function, QV4::Lookup::globalGetter, QJSEngine::handle(), QV4::Lookup::nameIndex, QStringLiteral, and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ callObjectPropertyLookup()

bool QQmlPrivate::AOTCompiledContext::callObjectPropertyLookup ( uint index,
QObject * object,
void ** args,
const QMetaType * types,
int argc ) const

Definition at line 1837 of file qqml.cpp.

References arg, args, engine, QV4::Scope::engine, function, QV4::Lookup::getter, QJSEngine::handle(), QV4::Scope::hasException(), QV4::Lookup::nameIndex, QStringLiteral, QV4::ExecutionEngine::throwTypeError(), and QV4::QObjectWrapper::wrap().

+ Here is the call graph for this function:

◆ callQmlContextPropertyLookup()

bool QQmlPrivate::AOTCompiledContext::callQmlContextPropertyLookup ( uint index,
void ** args,
const QMetaType * types,
int argc ) const

Definition at line 1754 of file qqml.cpp.

References arg, args, engine, QV4::Scope::engine, function, QJSEngine::handle(), QV4::Scope::hasException(), QV4::Lookup::nameIndex, QV4::Lookup::qmlContextPropertyGetter, QStringLiteral, and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ captureLookup()

bool QQmlPrivate::AOTCompiledContext::captureLookup ( uint index,
QObject * object ) const

◆ captureQmlContextPropertyLookup()

bool QQmlPrivate::AOTCompiledContext::captureQmlContextPropertyLookup ( uint index) const

◆ captureTranslation()

void QQmlPrivate::AOTCompiledContext::captureTranslation ( ) const

Definition at line 1541 of file qqml.cpp.

References QQmlPrivate::propertyCapture().

+ Here is the call graph for this function:

◆ constructDateTime() [1/4]

QDateTime QQmlPrivate::AOTCompiledContext::constructDateTime ( const QJSPrimitiveValue & arg) const
inline

Definition at line 660 of file qqmlprivate.h.

References arg, and QJSPrimitiveValue::String.

◆ constructDateTime() [2/4]

QDateTime QQmlPrivate::AOTCompiledContext::constructDateTime ( const QString & string) const

Definition at line 1741 of file qqml.cpp.

References engine, QJSEngine::handle(), and QV4::DateObject::stringToDateTime().

+ Here is the call graph for this function:

◆ constructDateTime() [3/4]

QDateTime QQmlPrivate::AOTCompiledContext::constructDateTime ( double timestamp) const

Definition at line 1736 of file qqml.cpp.

References QV4::DateObject::timestampToDateTime().

+ Here is the call graph for this function:

◆ constructDateTime() [4/4]

QDateTime QQmlPrivate::AOTCompiledContext::constructDateTime ( double year,
double month,
double day = 1,
double hours = 0,
double minutes = 0,
double seconds = 0,
double msecs = 0 ) const

Definition at line 1746 of file qqml.cpp.

References QV4::DateObject::componentsToTimestamp(), engine, and QJSEngine::handle().

+ Here is the call graph for this function:

◆ constructValueType()

QVariant QQmlPrivate::AOTCompiledContext::constructValueType ( QMetaType resultMetaType,
const QMetaObject * resultMetaObject,
int ctorIndex,
void * ctorArg ) const

Definition at line 1728 of file qqml.cpp.

References QQmlValueTypeProvider::constructValueType().

+ Here is the call graph for this function:

◆ getEnumLookup()

bool QQmlPrivate::AOTCompiledContext::getEnumLookup ( uint index,
void * target ) const

Definition at line 2264 of file qqml.cpp.

References encoded, QV4::Lookup::getter, QMetaType::IsUnsignedEnumeration, QV4::QQmlTypeWrapper::lookupEnumValue(), qint8, and QV4::Lookup::qmlEnumValueLookup.

+ Here is the call graph for this function:

◆ getObjectLookup()

bool QQmlPrivate::AOTCompiledContext::getObjectLookup ( uint index,
QObject * object,
void * target ) const

◆ getValueLookup()

bool QQmlPrivate::AOTCompiledContext::getValueLookup ( uint index,
void * value,
void * target ) const

Definition at line 2215 of file qqml.cpp.

References args, QV4::Lookup::getter, QV4::QQmlValueTypeWrapper::lookupGetter(), metaObject(), Q_ASSERT, QV4::Lookup::qgadgetLookup, and QMetaObject::ReadProperty.

+ Here is the call graph for this function:

◆ initCallGlobalLookup()

void QQmlPrivate::AOTCompiledContext::initCallGlobalLookup ( uint index) const

Definition at line 1879 of file qqml.cpp.

References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.

+ Here is the call graph for this function:

◆ initCallObjectPropertyLookup()

void QQmlPrivate::AOTCompiledContext::initCallObjectPropertyLookup ( uint index) const

Definition at line 1855 of file qqml.cpp.

References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.

+ Here is the call graph for this function:

◆ initCallQmlContextPropertyLookup()

void QQmlPrivate::AOTCompiledContext::initCallQmlContextPropertyLookup ( uint index) const

Definition at line 1773 of file qqml.cpp.

References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.

+ Here is the call graph for this function:

◆ initGetEnumLookup()

void QQmlPrivate::AOTCompiledContext::initGetEnumLookup ( uint index,
const QMetaObject * metaObject,
const char * enumerator,
const char * enumValue ) const

Definition at line 2304 of file qqml.cpp.

References arg, engine, QString::fromUtf8(), QV4::Lookup::getter, QJSEngine::handle(), QJSEngine::hasError(), QV4::QQmlTypeWrapper::lookupEnumValue(), metaObject(), Q_ASSERT, QV4::Lookup::qmlEnumValueLookup, QStringLiteral, and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ initGetObjectLookup()

void QQmlPrivate::AOTCompiledContext::initGetObjectLookup ( uint index,
QObject * object,
QMetaType type ) const

◆ initGetValueLookup()

void QQmlPrivate::AOTCompiledContext::initGetValueLookup ( uint index,
const QMetaObject * metaObject,
QMetaType type ) const

Definition at line 2253 of file qqml.cpp.

References engine, QV4::Lookup::getter, QJSEngine::handle(), QJSEngine::hasError(), QQmlPrivate::initValueLookup(), QV4::QQmlValueTypeWrapper::lookupGetter(), metaObject(), Q_ASSERT, and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ initLoadAttachedLookup()

void QQmlPrivate::AOTCompiledContext::initLoadAttachedLookup ( uint index,
uint importNamespace,
QObject * object ) const

◆ initLoadContextIdLookup()

void QQmlPrivate::AOTCompiledContext::initLoadContextIdLookup ( uint index) const

Definition at line 1812 of file qqml.cpp.

References context, engine, QJSEngine::handle(), QJSEngine::hasError(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupIdObjectInParentContext(), QV4::Lookup::nameIndex, Q_ASSERT, qmlContext(), QV4::Lookup::qmlContextIdObjectLookup, and QV4::Lookup::qmlContextPropertyGetter.

+ Here is the call graph for this function:

◆ initLoadGlobalLookup()

void QQmlPrivate::AOTCompiledContext::initLoadGlobalLookup ( uint index) const

Definition at line 1896 of file qqml.cpp.

References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.

+ Here is the call graph for this function:

◆ initLoadScopeObjectPropertyLookup()

void QQmlPrivate::AOTCompiledContext::initLoadScopeObjectPropertyLookup ( uint index,
QMetaType type ) const

Definition at line 1959 of file qqml.cpp.

References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QV4::EngineBase::hasException, QQmlPrivate::initObjectLookup(), QV4::QQmlContextWrapper::lookupScopeFallbackProperty(), QV4::QQmlContextWrapper::lookupScopeObjectProperty(), QV4::Lookup::qmlContextPropertyGetter, and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ initLoadSingletonLookup()

void QQmlPrivate::AOTCompiledContext::initLoadSingletonLookup ( uint index,
uint importNamespace ) const

Definition at line 2047 of file qqml.cpp.

◆ initLoadTypeLookup()

void QQmlPrivate::AOTCompiledContext::initLoadTypeLookup ( uint index,
uint importNamespace ) const

Definition at line 2116 of file qqml.cpp.

◆ initSetObjectLookup()

void QQmlPrivate::AOTCompiledContext::initSetObjectLookup ( uint index,
QObject * object,
QMetaType type ) const

◆ initSetValueLookup()

void QQmlPrivate::AOTCompiledContext::initSetValueLookup ( uint index,
const QMetaObject * metaObject,
QMetaType type ) const

Definition at line 2403 of file qqml.cpp.

References engine, QJSEngine::handle(), QJSEngine::hasError(), QQmlPrivate::initValueLookup(), QV4::QQmlValueTypeWrapper::lookupSetter(), metaObject(), Q_ASSERT, QV4::Lookup::setter, and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ javaScriptGlobalProperty()

QJSValue QQmlPrivate::AOTCompiledContext::javaScriptGlobalProperty ( uint nameIndex) const

Definition at line 1668 of file qqml.cpp.

References engine, QV4::Scope::engine, QJSValuePrivate::fromReturnedValue(), global, QV4::EngineBase::globalObject, and QJSEngine::handle().

+ Here is the call graph for this function:

◆ jsMetaType()

QJSValue QQmlPrivate::AOTCompiledContext::jsMetaType ( int index) const

Definition at line 980 of file qqml.cpp.

References QV4::Heap::Base::asReturnedValue(), compilationUnit, QJSValuePrivate::fromReturnedValue(), and QV4::CompilationUnitRuntimeData::runtimeClasses.

+ Here is the call graph for this function:

◆ loadAttachedLookup()

bool QQmlPrivate::AOTCompiledContext::loadAttachedLookup ( uint index,
QObject * object,
void * target ) const

Definition at line 2053 of file qqml.cpp.

References engine, QQmlEnginePrivate::get(), QV4::Lookup::getter, QJSEngine::handle(), QV4::QObjectWrapper::lookupAttached(), Q_ASSERT, qmlAttachedPropertiesObject(), qmlEngine(), QV4::Lookup::qmlTypeLookup, and wrapper().

+ Here is the call graph for this function:

◆ loadContextIdLookup()

bool QQmlPrivate::AOTCompiledContext::loadContextIdLookup ( uint index,
void * target ) const

Definition at line 1780 of file qqml.cpp.

References context, engine, QQmlEnginePrivate::get(), QJSEngine::handle(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupIdObjectInParentContext(), QV4::Lookup::nameIndex, Q_ASSERT, qmlContext(), QV4::Lookup::qmlContextIdObjectLookup, QV4::Lookup::qmlContextPropertyGetter, and qmlEngine().

+ Here is the call graph for this function:

◆ loadGlobalLookup()

bool QQmlPrivate::AOTCompiledContext::loadGlobalLookup ( uint index,
void * target,
QMetaType type ) const

Definition at line 1886 of file qqml.cpp.

References engine, QV4::Lookup::globalGetter, QJSEngine::handle(), QV4::ExecutionEngine::metaTypeFromJS(), and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ loadScopeObjectPropertyLookup()

bool QQmlPrivate::AOTCompiledContext::loadScopeObjectPropertyLookup ( uint index,
void * target ) const

◆ loadSingletonLookup()

bool QQmlPrivate::AOTCompiledContext::loadSingletonLookup ( uint index,
void * target ) const

Definition at line 1984 of file qqml.cpp.

References engine, QJSEngine::handle(), QV4::QQmlContextWrapper::lookupSingleton(), Q_ASSERT, QV4::Lookup::qmlContextPropertyGetter, QV4::Lookup::qmlContextSingletonLookup, and wrapper().

+ Here is the call graph for this function:

◆ loadTypeLookup()

bool QQmlPrivate::AOTCompiledContext::loadTypeLookup ( uint index,
void * target ) const

Definition at line 2101 of file qqml.cpp.

References QV4::QQmlContextWrapper::lookupType(), QQmlMetaType::metaObjectForType(), QV4::Lookup::qmlContextPropertyGetter, and QV4::Lookup::qmlTypeLookup.

+ Here is the call graph for this function:

◆ lookupResultMetaType()

◆ qmlEngine()

QQmlEngine * QQmlPrivate::AOTCompiledContext::qmlEngine ( ) const

Definition at line 969 of file qqml.cpp.

References engine, QJSEngine::handle(), and QV4::ExecutionEngine::qmlEngine().

+ Here is the call graph for this function:

◆ resolveLoggingCategory()

const QLoggingCategory * QQmlPrivate::AOTCompiledContext::resolveLoggingCategory ( QObject * wrapper,
bool * ok ) const

Definition at line 1676 of file qqml.cpp.

References engine, QJSEngine::handle(), ok, qmlEngine(), QStringLiteral, QV4::ExecutionEngine::throwError(), and wrapper().

+ Here is the call graph for this function:

◆ setInstructionPointer()

void QQmlPrivate::AOTCompiledContext::setInstructionPointer ( int offset) const

Definition at line 986 of file qqml.cpp.

References QV4::EngineBase::currentStackFrame, engine, frame, and QJSEngine::handle().

+ Here is the call graph for this function:

◆ setObjectLookup()

bool QQmlPrivate::AOTCompiledContext::setObjectLookup ( uint index,
QObject * object,
void * value ) const

◆ setReturnValueUndefined()

void QQmlPrivate::AOTCompiledContext::setReturnValueUndefined ( ) const

Definition at line 992 of file qqml.cpp.

References QV4::EngineBase::currentStackFrame, engine, frame, QJSEngine::handle(), Q_ASSERT, and setReturnValueUndefined().

Referenced by setReturnValueUndefined().

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

◆ setValueLookup()

bool QQmlPrivate::AOTCompiledContext::setValueLookup ( uint index,
void * target,
void * value ) const

Definition at line 2386 of file qqml.cpp.

References args, QV4::QQmlValueTypeWrapper::lookupSetter(), metaObject(), QV4::Lookup::qgadgetLookup, QV4::Lookup::setter, and QMetaObject::WriteProperty.

+ Here is the call graph for this function:

◆ storeNameSloppy()

◆ thisObject()

QObject * QQmlPrivate::AOTCompiledContext::thisObject ( ) const

Definition at line 963 of file qqml.cpp.

References QV4::EngineBase::currentStackFrame, engine, QJSEngine::handle(), and thisObject().

Referenced by thisObject().

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

◆ translationContext()

QString QQmlPrivate::AOTCompiledContext::translationContext ( ) const

Definition at line 1547 of file qqml.cpp.

References engine, and QJSEngine::handle().

+ Here is the call graph for this function:

◆ writeBackObjectLookup()

bool QQmlPrivate::AOTCompiledContext::writeBackObjectLookup ( uint index,
QObject * object,
void * source ) const

◆ writeBackScopeObjectPropertyLookup()

bool QQmlPrivate::AOTCompiledContext::writeBackScopeObjectPropertyLookup ( uint index,
void * source ) const

Definition at line 1936 of file qqml.cpp.

References QV4::QQmlContextWrapper::lookupScopeFallbackProperty(), QV4::QQmlContextWrapper::lookupScopeObjectProperty(), QV4::Lookup::qmlContextPropertyGetter, QQmlPrivate::writeBackFallbackProperty(), and QQmlPrivate::writeBackObjectProperty().

+ Here is the call graph for this function:

◆ writeBackValueLookup()

bool QQmlPrivate::AOTCompiledContext::writeBackValueLookup ( uint index,
void * value,
void * source ) const

Definition at line 2234 of file qqml.cpp.

References args, QV4::Lookup::getter, QV4::QQmlValueTypeWrapper::lookupGetter(), metaObject(), Q_ASSERT, QV4::Lookup::qgadgetLookup, and QMetaObject::WriteProperty.

+ Here is the call graph for this function:

◆ writeToConsole()

void QQmlPrivate::AOTCompiledContext::writeToConsole ( QtMsgType type,
const QString & message,
const QLoggingCategory * loggingCategory ) const

Definition at line 1697 of file qqml.cpp.

References QMessageLogger::critical(), QV4::EngineBase::currentStackFrame, QMessageLogger::debug(), engine, frame, function, QJSEngine::handle(), QMessageLogger::info(), Q_ASSERT, QtCriticalMsg, QtDebugMsg, QtInfoMsg, QtWarningMsg, qUtf8Printable, and QMessageLogger::warning().

+ Here is the call graph for this function:

Member Data Documentation

◆ [union]

◆ compilationUnit

QV4::ExecutableCompilationUnit* QQmlPrivate::AOTCompiledContext::compilationUnit

Definition at line 627 of file qqmlprivate.h.

Referenced by jsMetaType().

◆ engine

QJSEngine* QQmlPrivate::AOTCompiledContext::engine

◆ extraData

qintptr QQmlPrivate::AOTCompiledContext::extraData

Definition at line 628 of file qqmlprivate.h.

◆ qmlContext

QQmlContextData* QQmlPrivate::AOTCompiledContext::qmlContext

Definition at line 623 of file qqmlprivate.h.

◆ qmlScopeObject

QObject* QQmlPrivate::AOTCompiledContext::qmlScopeObject

Definition at line 624 of file qqmlprivate.h.


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