diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-08 21:02:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-11 13:02:12 +0200 |
commit | a808e4fc15dfe2aca08786f4b747dde45e455929 (patch) | |
tree | 9e3241f34f942329bfb37025a7eea5ae6c4ce611 /src/qml/jsruntime/qv4value_def_p.h | |
parent | 45b34c0ecfea8192ea09909b7c83440ca4c6a60f (diff) |
Add ValueRef classe and use it to make things GC safe
The ValueRef class holds a reference to a Value that
is already known to the GC. ValueRef's should be
used to pass Value arguments to methods.
As a first step us the class to make unary
operations GC safe
Change-Id: Ie13e332ed95b2908df9a201a3f757db864c05ca9
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4value_def_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4value_def_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4value_def_p.h b/src/qml/jsruntime/qv4value_def_p.h index 7d037f3d49..66cd32fbe0 100644 --- a/src/qml/jsruntime/qv4value_def_p.h +++ b/src/qml/jsruntime/qv4value_def_p.h @@ -277,6 +277,8 @@ struct Q_QML_EXPORT Value inline void mark() const; }; +typedef void (*BinOp)(QV4::Value *result, const QV4::Value &left, const QV4::Value &right); + } QT_END_NAMESPACE |