aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-07-04 14:17:00 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-07-04 12:20:09 +0000
commit372298e8f38846769276c8c4d70e6732c4878249 (patch)
tree5ad16a40e695126e28629a8d1c80dd556f375523 /src/qml/compiler/qv4codegen_p.h
parentf3561037c9892c9c467f618ce3000567a4924363 (diff)
Bring back captureRequired on scope/contest property loading
This is needed to properly register permanent/temporary dependencies This patch also removes related interpreter instructions that should have changed, but were not used. Change-Id: Ie53c4611766680734c02e328b7f2c752cae150e0 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r--src/qml/compiler/qv4codegen_p.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h
index 4cf543088e..52a6a9704c 100644
--- a/src/qml/compiler/qv4codegen_p.h
+++ b/src/qml/compiler/qv4codegen_p.h
@@ -184,18 +184,20 @@ public:
r.closureId = functionId;
return r;
}
- static Reference fromQmlScopeObject(const Reference &base, qint16 coreIndex, qint16 notifyIndex) {
+ static Reference fromQmlScopeObject(const Reference &base, qint16 coreIndex, qint16 notifyIndex, bool captureRequired) {
Reference r(base.codegen, QmlScopeObject);
r.base = base.asRValue();
r.qmlCoreIndex = coreIndex;
r.qmlNotifyIndex = notifyIndex;
+ r.captureRequired = captureRequired;
return r;
}
- static Reference fromQmlContextObject(const Reference &base, qint16 coreIndex, qint16 notifyIndex) {
+ static Reference fromQmlContextObject(const Reference &base, qint16 coreIndex, qint16 notifyIndex, bool captureRequired) {
Reference r(base.codegen, QmlContextObject);
r.base = base.asRValue();
r.qmlCoreIndex = coreIndex;
r.qmlNotifyIndex = notifyIndex;
+ r.captureRequired = captureRequired;
return r;
}
static Reference fromThis(Codegen *cg) {
@@ -234,6 +236,7 @@ public:
struct { // QML scope/context object case
qint16 qmlCoreIndex;
qint16 qmlNotifyIndex;
+ bool captureRequired;
};
};
mutable int tempIndex = -1;