diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-01-25 15:24:27 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-03-09 08:58:09 +0000 |
commit | 4de7e48ab160dacc7a09360e80264eac4945a8f4 (patch) | |
tree | a77cd8e6386a01a978f8ee0ebfdacf350b793198 /src/qml/jsruntime/qv4qmlcontext_p.h | |
parent | 6b4b2f5f1bbd706742cbab8764a1d07cbd912600 (diff) |
Move most of the ExecutionContext's over to the new mark handling
CallContext still requires further work, as the handling of locals
is different between a CallContext and a SimpleCallContext.
Change-Id: I74945ef701f60907aab0fb1a9939da1331235f6e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4qmlcontext_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4qmlcontext_p.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4qmlcontext_p.h b/src/qml/jsruntime/qv4qmlcontext_p.h index 6e5e743609..73100807ae 100644 --- a/src/qml/jsruntime/qv4qmlcontext_p.h +++ b/src/qml/jsruntime/qv4qmlcontext_p.h @@ -77,10 +77,13 @@ struct QmlContextWrapper : Object { QQmlQPointer<QObject> scopeObject; }; -struct QmlContext : ExecutionContext { - void init(QV4::ExecutionContext *outerContext, QV4::QmlContextWrapper *qml); +#define QmlContextMembers(class, Member) \ + Member(class, Pointer<QmlContextWrapper>, qml) + +DECLARE_HEAP_OBJECT(QmlContext, ExecutionContext) { + DECLARE_MARK_TABLE(QmlContext); - Pointer<QmlContextWrapper> qml; + void init(QV4::ExecutionContext *outerContext, QV4::QmlContextWrapper *qml); }; } |