From 774963f52f569e637f45d6c6079121253e54b61b Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 9 Oct 2013 00:24:55 +0200 Subject: Compile JS functions as part of the QQmlCompiler run in the loader thread ...instead of extracting the function body as a string and compiling it in the GUI thread. Change-Id: I3c3108f6e35464b5581a2d8b5799e7285858ce4d Reviewed-by: Lars Knoll --- src/qml/qml/qqmlvme.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qml/qml/qqmlvme.cpp') diff --git a/src/qml/qml/qqmlvme.cpp b/src/qml/qml/qqmlvme.cpp index c5dfeb2956..21f7ce4cab 100644 --- a/src/qml/qml/qqmlvme.cpp +++ b/src/qml/qml/qqmlvme.cpp @@ -714,7 +714,8 @@ QObject *QQmlVME::run(QList *errors, const QQmlVMEMetaData *data = (const QQmlVMEMetaData *)DATAS.at(instr.aliasData).constData(); - (void)new QQmlVMEMetaObject(target, propertyCache, data); + QV4::ExecutionContext *qmlContext = qmlBindingContext(engine, QV8Engine::getV4(engine), qmlBindingWrappers, CTXT, target, objects.count() - 1); + (void)new QQmlVMEMetaObject(target, propertyCache, data, qmlContext, COMP); QQmlData *ddata = QQmlData::get(target, true); if (ddata->propertyCache) ddata->propertyCache->release(); -- cgit v1.2.3