aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-08-21 15:00:09 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-02 17:27:36 +0200
commitda2f24d8e5c32fe4ed45dcb89aa357465f85fc1e (patch)
tree490d63078e83280990fc8c1b416d2d17600ea7d2 /src/qml/jsruntime/qv4context_p.h
parent29f946cdad013d759aad05cbd22f40d0c152d6f3 (diff)
move methods to create a new context into the ExecutionContext class
This avoids one indirection when calling the methods and cleans up the engine a bit. Change-Id: I426f41e23f6a7262af95b9807b00920530fef642 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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h
index dc2370f38d..0c1dfb1d71 100644
--- a/src/qml/jsruntime/qv4context_p.h
+++ b/src/qml/jsruntime/qv4context_p.h
@@ -59,6 +59,8 @@ struct Function;
};
struct CallContext;
+struct CatchContext;
+struct WithContext;
struct Q_QML_EXPORT ExecutionContext
{
@@ -114,7 +116,9 @@ struct Q_QML_EXPORT ExecutionContext
CallContext *newCallContext(void *stackSpace, FunctionObject *f, const QV4::Value &thisObject, QV4::Value *args, int argc);
CallContext *newCallContext(FunctionObject *f, const QV4::Value &thisObject, QV4::Value *args, int argc);
-
+ WithContext *newWithContext(Object *with);
+ CatchContext *newCatchContext(String* exceptionVarName, const QV4::Value &exceptionValue);
+ CallContext *newQmlContext(FunctionObject *f, Object *qml);
String * const *formals() const;
unsigned int formalCount() const;