aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-03-05 16:24:56 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-07 16:55:12 +0100
commitb287d58b3937160b30388f29410df0f14bb0d778 (patch)
treea9ade90f36a77b8839ec69f4d7ad3881a5da6c97 /src/qml/jsruntime/qv4context_p.h
parentb8ca4132433c2d1eef0a6cda8be8a1754786702b (diff)
Move some methods from ExecutionContext to CallContext
This is where they really belong. Slightly simplifies and cleans up the code. Change-Id: Ib5782c1f57c761c46f4bc52c3d496220299f8ac9 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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h
index 952582ac00..ddced40714 100644
--- a/src/qml/jsruntime/qv4context_p.h
+++ b/src/qml/jsruntime/qv4context_p.h
@@ -124,12 +124,6 @@ struct Q_QML_EXPORT ExecutionContext : public Managed
CatchContext *newCatchContext(const StringRef exceptionVarName, const ValueRef exceptionValue);
CallContext *newQmlContext(FunctionObject *f, ObjectRef qml);
- // formals are in reverse order
- String * const *formals() const;
- unsigned int formalCount() const;
- String * const *variables() const;
- unsigned int variableCount() const;
-
void createMutableBinding(const StringRef name, bool deletable);
ReturnedValue throwError(const QV4::ValueRef value);
@@ -175,6 +169,12 @@ struct CallContext : public ExecutionContext
Value *locals;
Object *activation;
+ // formals are in reverse order
+ String * const *formals() const;
+ unsigned int formalCount() const;
+ String * const *variables() const;
+ unsigned int variableCount() const;
+
inline ReturnedValue argument(int i);
bool needsOwnArguments() const;
};