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/qv4context_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/qv4context_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4context_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h index fed166cb52..0a06cf3048 100644 --- a/src/qml/jsruntime/qv4context_p.h +++ b/src/qml/jsruntime/qv4context_p.h @@ -42,7 +42,8 @@ #define QMLJS_ENVIRONMENT_H #include "qv4global_p.h" -#include "qv4runtime_p.h" +#include "qv4value_def_p.h" +#include "qv4managed_p.h" QT_BEGIN_NAMESPACE @@ -52,6 +53,7 @@ struct Object; struct ExecutionEngine; struct DeclarativeEnvironment; struct Lookup; +struct Function; namespace CompiledData { struct CompilationUnit; |