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 <qqmlprivate.h>
Public Types | |
enum | : uint { InvalidStringId = (std::numeric_limits<uint>::max)() } |
Public Attributes | ||
QQmlContextData * | qmlContext | |
QObject * | qmlScopeObject | |
QJSEngine * | engine | |
union { | ||
QV4::ExecutableCompilationUnit * compilationUnit | ||
qintptr extraData | ||
}; | ||
Definition at line 620 of file qqmlprivate.h.
anonymous enum : uint |
Enumerator | |
---|---|
InvalidStringId |
Definition at line 1 of file qqmlprivate.h.
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().
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().
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().
Definition at line 1491 of file qqml.cpp.
References QQmlPrivate::captureFallbackProperty(), QQmlPrivate::captureObjectProperty(), QQmlData::flushPendingBinding(), QV4::Lookup::getter, QV4::Lookup::getterFallback(), QV4::Lookup::getterFallbackAsVariant(), QV4::Lookup::getterQObject(), QV4::Lookup::getterQObjectAsVariant(), QV4::QQmlTypeWrapper::lookupSingletonProperty(), property, QV4::Lookup::qobjectFallbackLookup, and QV4::Lookup::qobjectLookup.
bool QQmlPrivate::AOTCompiledContext::captureQmlContextPropertyLookup | ( | uint | index | ) | const |
Definition at line 1519 of file qqml.cpp.
References QQmlPrivate::captureFallbackProperty(), QQmlPrivate::captureObjectProperty(), QQmlData::flushPendingBinding(), QV4::QQmlContextWrapper::lookupContextObjectProperty(), QV4::QQmlContextWrapper::lookupScopeFallbackProperty(), QV4::QQmlContextWrapper::lookupScopeObjectProperty(), property, QV4::Lookup::qmlContextPropertyGetter, QV4::Lookup::qobjectFallbackLookup, and QV4::Lookup::qobjectLookup.
void QQmlPrivate::AOTCompiledContext::captureTranslation | ( | ) | const |
Definition at line 1541 of file qqml.cpp.
References QQmlPrivate::propertyCapture().
|
inline |
Definition at line 660 of file qqmlprivate.h.
References arg, and QJSPrimitiveValue::String.
Definition at line 1741 of file qqml.cpp.
References engine, QJSEngine::handle(), and QV4::DateObject::stringToDateTime().
QDateTime QQmlPrivate::AOTCompiledContext::constructDateTime | ( | double | timestamp | ) | const |
Definition at line 1736 of file qqml.cpp.
References QV4::DateObject::timestampToDateTime().
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().
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().
Definition at line 2264 of file qqml.cpp.
References encoded, QV4::Lookup::getter, QMetaType::IsUnsignedEnumeration, QV4::QQmlTypeWrapper::lookupEnumValue(), qint8, and QV4::Lookup::qmlEnumValueLookup.
bool QQmlPrivate::AOTCompiledContext::getObjectLookup | ( | uint | index, |
QObject * | object, | ||
void * | target ) const |
Definition at line 2122 of file qqml.cpp.
References engine, QV4::Lookup::getter, QV4::Lookup::getterFallback(), QV4::Lookup::getterFallbackAsVariant(), QV4::Lookup::getterQObject(), QV4::Lookup::getterQObjectAsVariant(), QJSEngine::handle(), QQmlPrivate::loadFallbackAsVariant(), QQmlPrivate::loadFallbackProperty(), QQmlPrivate::loadObjectAsVariant(), QQmlPrivate::loadObjectProperty(), QV4::Lookup::nameIndex, QStringLiteral, and QV4::ExecutionEngine::throwTypeError().
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.
Definition at line 1879 of file qqml.cpp.
References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.
Definition at line 1855 of file qqml.cpp.
References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.
Definition at line 1773 of file qqml.cpp.
References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.
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().
void QQmlPrivate::AOTCompiledContext::initGetObjectLookup | ( | uint | index, |
QObject * | object, | ||
QMetaType | type ) const |
Definition at line 2188 of file qqml.cpp.
References QQmlPrivate::amendException(), engine, QV4::Lookup::getter, QV4::Lookup::getterFallback(), QV4::Lookup::getterFallbackAsVariant(), QV4::Lookup::getterQObject(), QV4::Lookup::getterQObjectAsVariant(), QJSEngine::handle(), QV4::EngineBase::hasException, QQmlPrivate::initObjectLookup(), and QV4::ExecutionEngine::throwTypeError().
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().
void QQmlPrivate::AOTCompiledContext::initLoadAttachedLookup | ( | uint | index, |
uint | importNamespace, | ||
QObject * | object ) const |
Definition at line 2068 of file qqml.cpp.
References QQmlImport::AllowRecursion, QV4::QQmlTypeWrapper::create(), engine, QV4::Scope::engine, QV4::Heap::QQmlTypeWrapper::ExcludeEnums, QV4::Lookup::getter, QJSEngine::handle(), QV4::QObjectWrapper::lookupAttached(), QV4::Lookup::nameIndex, Q_ASSERT, qmlContext(), QV4::Lookup::qmlTypeLookup, QV4::ExecutionEngine::throwTypeError(), QV4::ExecutionEngine::typeLoader(), and wrapper().
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.
Definition at line 1896 of file qqml.cpp.
References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QJSEngine::hasError(), Q_ASSERT, and Q_UNUSED.
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().
void QQmlPrivate::AOTCompiledContext::initSetObjectLookup | ( | uint | index, |
QObject * | object, | ||
QMetaType | type ) const |
Definition at line 2359 of file qqml.cpp.
References QQmlPrivate::amendException(), engine, QJSEngine::handle(), QV4::EngineBase::hasException, QQmlPrivate::initObjectLookup(), QV4::Lookup::setter, QV4::Lookup::setterFallback(), QV4::Lookup::setterFallbackAsVariant(), QV4::Lookup::setterQObject(), QV4::Lookup::setterQObjectAsVariant(), and QV4::ExecutionEngine::throwTypeError().
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().
Definition at line 1668 of file qqml.cpp.
References engine, QV4::Scope::engine, QJSValuePrivate::fromReturnedValue(), global, QV4::EngineBase::globalObject, and QJSEngine::handle().
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.
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().
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().
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().
bool QQmlPrivate::AOTCompiledContext::loadScopeObjectPropertyLookup | ( | uint | index, |
void * | target ) const |
Definition at line 1903 of file qqml.cpp.
References arg, engine, QJSEngine::handle(), QQmlPrivate::loadFallbackProperty(), QQmlPrivate::loadObjectProperty(), QV4::QQmlContextWrapper::lookupScopeFallbackProperty(), QV4::QQmlContextWrapper::lookupScopeObjectProperty(), QV4::Lookup::nameIndex, QV4::Lookup::qmlContextPropertyGetter, QStringLiteral, QV4::ExecutionEngine::throwReferenceError(), and QV4::ExecutionEngine::throwTypeError().
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().
Definition at line 2101 of file qqml.cpp.
References QV4::QQmlContextWrapper::lookupType(), QQmlMetaType::metaObjectForType(), QV4::Lookup::qmlContextPropertyGetter, and QV4::Lookup::qmlTypeLookup.
Definition at line 1556 of file qqml.cpp.
References QV4::Lookup::getter, QV4::Lookup::getterFallback(), QV4::Lookup::getterFallbackAsVariant(), QV4::Lookup::getterQObject(), QV4::Lookup::getterQObjectAsVariant(), QV4::QObjectWrapper::lookupAttached(), QV4::QQmlContextWrapper::lookupContextObjectProperty(), QV4::QQmlTypeWrapper::lookupEnumValue(), QV4::QQmlValueTypeWrapper::lookupGetter(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupScopeFallbackProperty(), QV4::QQmlContextWrapper::lookupScopeObjectProperty(), QV4::QQmlContextWrapper::lookupSingleton(), QV4::QQmlTypeWrapper::lookupSingletonProperty(), QV4::QQmlContextWrapper::lookupType(), metaObject(), QV4::Lookup::qgadgetLookup, QV4::Lookup::qmlContextPropertyGetter, QV4::Lookup::qobjectFallbackLookup, QV4::Lookup::qobjectLookup, QV4::Lookup::setter, QV4::Lookup::setterFallback(), QV4::Lookup::setterFallbackAsVariant(), QV4::Lookup::setterQObject(), and QV4::Lookup::setterQObjectAsVariant().
QQmlEngine * QQmlPrivate::AOTCompiledContext::qmlEngine | ( | ) | const |
Definition at line 969 of file qqml.cpp.
References engine, QJSEngine::handle(), and QV4::ExecutionEngine::qmlEngine().
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().
void QQmlPrivate::AOTCompiledContext::setInstructionPointer | ( | int | offset | ) | const |
Definition at line 986 of file qqml.cpp.
References QV4::EngineBase::currentStackFrame, engine, frame, and QJSEngine::handle().
bool QQmlPrivate::AOTCompiledContext::setObjectLookup | ( | uint | index, |
QObject * | object, | ||
void * | value ) const |
Definition at line 2323 of file qqml.cpp.
References engine, QJSEngine::handle(), QStringLiteral, QV4::Lookup::setter, QV4::Lookup::setterFallback(), QV4::Lookup::setterFallbackAsVariant(), QV4::Lookup::setterQObject(), QV4::Lookup::setterQObjectAsVariant(), QQmlPrivate::storeFallbackAsVariant(), QQmlPrivate::storeFallbackProperty(), QQmlPrivate::storeObjectAsVariant(), QQmlPrivate::storeObjectProperty(), and QV4::ExecutionEngine::throwTypeError().
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().
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.
void QQmlPrivate::AOTCompiledContext::storeNameSloppy | ( | uint | nameIndex, |
void * | value, | ||
QMetaType | type ) const |
Definition at line 1603 of file qqml.cpp.
References QVariant::data(), engine, QV4::Lookup::forCall, QJSEngine::handle(), QQmlPrivate::initObjectLookup(), QQmlPrivate::isTypeCompatible(), QQmlPrivate::isUndefined(), metaObject(), QV4::ExecutionEngine::metaTypeFromJS(), QV4::ExecutionEngine::metaTypeToJS(), QV4::Lookup::nameIndex, property, QV4::Lookup::qobjectFallbackLookup, QV4::Lookup::qobjectLookup, QStringLiteral, QQmlPrivate::resetFallbackProperty(), QQmlPrivate::resetObjectProperty(), QQmlPrivate::storeFallbackProperty(), QQmlPrivate::storeObjectProperty(), QV4::ExecutionEngine::throwTypeError(), and var.
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().
QString QQmlPrivate::AOTCompiledContext::translationContext | ( | ) | const |
Definition at line 1547 of file qqml.cpp.
References engine, and QJSEngine::handle().
bool QQmlPrivate::AOTCompiledContext::writeBackObjectLookup | ( | uint | index, |
QObject * | object, | ||
void * | source ) const |
Definition at line 2159 of file qqml.cpp.
References QV4::Lookup::getter, QV4::Lookup::getterFallback(), QV4::Lookup::getterFallbackAsVariant(), QV4::Lookup::getterQObject(), QV4::Lookup::getterQObjectAsVariant(), QQmlPrivate::writeBackFallbackAsVariant(), QQmlPrivate::writeBackFallbackProperty(), QQmlPrivate::writeBackObjectAsVariant(), and QQmlPrivate::writeBackObjectProperty().
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().
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.
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().
union { ... } QQmlPrivate::AOTCompiledContext |
QV4::ExecutableCompilationUnit* QQmlPrivate::AOTCompiledContext::compilationUnit |
Definition at line 627 of file qqmlprivate.h.
Referenced by jsMetaType().
QJSEngine* QQmlPrivate::AOTCompiledContext::engine |
Definition at line 625 of file qqmlprivate.h.
Referenced by qmlEngine(), setInstructionPointer(), setReturnValueUndefined(), and thisObject().
qintptr QQmlPrivate::AOTCompiledContext::extraData |
Definition at line 628 of file qqmlprivate.h.
QQmlContextData* QQmlPrivate::AOTCompiledContext::qmlContext |
Definition at line 623 of file qqmlprivate.h.
QObject* QQmlPrivate::AOTCompiledContext::qmlScopeObject |
Definition at line 624 of file qqmlprivate.h.