diff options
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/qml/qqml.cpp | 5 | ||||
-rw-r--r-- | src/qml/qml/qqmlprivate.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp index 77c5226a97..d4eeff90a2 100644 --- a/src/qml/qml/qqml.cpp +++ b/src/qml/qml/qqml.cpp @@ -601,4 +601,9 @@ QJSValue QQmlPrivate::AOTCompiledContext::jsMetaType(int index) const compilationUnit->runtimeClasses[index]->asReturnedValue()); } +void QQmlPrivate::AOTCompiledContext::setInstructionPointer(int offset) const +{ + engine->handle()->currentStackFrame->instructionPointer = offset; +} + QT_END_NAMESPACE diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h index 608a0f0188..fb2d80b3df 100644 --- a/src/qml/qml/qqmlprivate.h +++ b/src/qml/qml/qqmlprivate.h @@ -602,13 +602,14 @@ namespace QQmlPrivate QVector<int> *qmlTypeIds; }; - struct AOTCompiledContext { + struct Q_QML_EXPORT AOTCompiledContext { QQmlContext *qmlContext; QObject *qmlScopeObject; QJSEngine *engine; QV4::CompiledData::CompilationUnit *compilationUnit; - QJSValue Q_QML_EXPORT jsMetaType(int index) const; + QJSValue jsMetaType(int index) const; + void setInstructionPointer(int offset) const; }; struct AOTCompiledFunction { |