aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlprivate.h')
-rw-r--r--src/qml/qml/qqmlprivate.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h
index a2cd9452ac..ce83b33eaa 100644
--- a/src/qml/qml/qqmlprivate.h
+++ b/src/qml/qml/qqmlprivate.h
@@ -589,12 +589,20 @@ namespace QQmlPrivate
QVector<int> *qmlTypeIds;
};
+ struct AOTCompiledContext {
+ QQmlContext *qmlContext;
+ QObject *qmlScopeObject;
+ QJSEngine *engine;
+ QV4::CompiledData::CompilationUnit *compilationUnit;
+
+ QJSValue Q_QML_EXPORT jsMetaType(int index) const;
+ };
+
struct AOTCompiledFunction {
int index;
QMetaType returnType;
QList<QMetaType> argumentTypes;
- void (*functionPtr)(QQmlContext *context, QObject *scopeObject, void *resultPtr,
- void **arguments);
+ void (*functionPtr)(const AOTCompiledContext *context, void *resultPtr, void **arguments);
};
struct CachedQmlUnit {