Qt 6.x
The Qt SDK
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
 
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
 
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
 
void initGetObjectLookup (uint index, QObject *object, QMetaType type) const
 
bool getValueLookup (uint index, void *value, void *target) 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 615 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 1612 of file qqml.cpp.

References arg, args, compilationUnit, QV4::Scope::engine, engine, function, QV4::Lookup::globalGetter, QJSEngine::handle(), QV4::Lookup::nameIndex, QStringLiteral, QV4::ExecutableCompilationUnit::runtimeLookups, QV4::CompiledData::CompilationUnitBase::runtimeStrings, QV4::ExecutionEngine::throwTypeError(), and QV4::Heap::String::toQString().

+ 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

◆ callQmlContextPropertyLookup()

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

◆ captureLookup()

◆ captureQmlContextPropertyLookup()

◆ captureTranslation()

void QQmlPrivate::AOTCompiledContext::captureTranslation ( ) const

Definition at line 1311 of file qqml.cpp.

References QQmlPrivate::propertyCapture(), and qmlContext.

+ 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 1496 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

◆ getObjectLookup()

◆ getValueLookup()

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

Definition at line 1907 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ initCallGlobalLookup()

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

Definition at line 1629 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 1605 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 1523 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

◆ initGetObjectLookup()

◆ initGetValueLookup()

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

Definition at line 1926 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ initLoadAttachedLookup()

◆ initLoadContextIdLookup()

◆ initLoadGlobalLookup()

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

Definition at line 1646 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()

◆ initLoadSingletonLookup()

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

Definition at line 1765 of file qqml.cpp.

References compilationUnit, and QV4::ExecutableCompilationUnit::runtimeLookups.

◆ initLoadTypeLookup()

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

Definition at line 1836 of file qqml.cpp.

References compilationUnit, and QV4::ExecutableCompilationUnit::runtimeLookups.

◆ initSetObjectLookup()

◆ initSetValueLookup()

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

Definition at line 2076 of file qqml.cpp.

References compilationUnit, engine, QJSEngine::handle(), QJSEngine::hasError(), QQmlPrivate::initValueLookup(), QV4::QQmlValueTypeWrapper::lookupSetter(), metaObject(), Q_ASSERT, QV4::ExecutableCompilationUnit::runtimeLookups, 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 1438 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ jsMetaType()

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

Definition at line 820 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ loadAttachedLookup()

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

Definition at line 1771 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ loadContextIdLookup()

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

◆ loadGlobalLookup()

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

Definition at line 1636 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ loadScopeObjectPropertyLookup()

◆ loadSingletonLookup()

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

Definition at line 1705 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ loadTypeLookup()

◆ lookupResultMetaType()

◆ qmlEngine()

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

Definition at line 815 of file qqml.cpp.

References QQmlContextData::engine(), and qmlContext.

Referenced by loadAttachedLookup(), loadContextIdLookup(), loadTypeLookup(), and resolveLoggingCategory().

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

◆ resolveLoggingCategory()

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

Definition at line 1446 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 826 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ setObjectLookup()

◆ setReturnValueUndefined()

void QQmlPrivate::AOTCompiledContext::setReturnValueUndefined ( ) const

Definition at line 832 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 2059 of file qqml.cpp.

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

+ Here is the call graph for this function:

◆ storeNameSloppy()

◆ thisObject()

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

Definition at line 809 of file qqml.cpp.

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

Referenced by callObjectPropertyLookup(), callQmlContextPropertyLookup(), and 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 1317 of file qqml.cpp.

References engine, and QJSEngine::handle().

+ 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 1467 of file qqml.cpp.

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

+ Here is the call graph for this function:

Member Data Documentation

◆ [union]

◆ compilationUnit

◆ engine

◆ extraData

qintptr QQmlPrivate::AOTCompiledContext::extraData

Definition at line 623 of file qqmlprivate.h.

◆ qmlContext

◆ qmlScopeObject


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