aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-01-08 11:29:11 +0100
committerLars Knoll <lars.knoll@qt.io>2018-04-12 13:58:41 +0000
commitf3ae6799e1089321c2cd959b086f66b9bb9143b3 (patch)
tree8a7087bf1033cbd2a08defc717b388fa1710d074 /src/qml/jsruntime/qv4context_p.h
parentbed3baba0c36f52f640bd2afbe7689a5e7892ee2 (diff)
Optimize MM::allocManaged()
We can manage without calls to changeVTable() here, as the set of classes allocated with this is rather limited. Change-Id: I804e4850b91c61ebbca8a04edbe51deac911928d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4context_p.h')
-rw-r--r--src/qml/jsruntime/qv4context_p.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h
index 512bfa06d8..aa3c07b668 100644
--- a/src/qml/jsruntime/qv4context_p.h
+++ b/src/qml/jsruntime/qv4context_p.h
@@ -55,23 +55,8 @@
QT_BEGIN_NAMESPACE
-class QObject;
-class QQmlContextData;
-
namespace QV4 {
-namespace CompiledData {
-struct CompilationUnitBase;
-struct Function;
-}
-
-struct Function;
-struct Identifier;
-struct CallContext;
-struct CatchContext;
-struct QmlContext;
-struct QQmlContextWrapper;
-
struct CallData
{
enum Offsets {
@@ -113,8 +98,6 @@ Q_STATIC_ASSERT(offsetof(CallData, args) == 5*sizeof(Value));
namespace Heap {
-struct QmlContext;
-
#define ExecutionContextMembers(class, Member) \
Member(class, Pointer, ExecutionContext *, outer) \
Member(class, Pointer, Object *, activation)
@@ -242,6 +225,7 @@ struct Q_QML_EXPORT CallContext : public ExecutionContext
struct CatchContext : public ExecutionContext
{
V4_MANAGED(CatchContext, ExecutionContext)
+ V4_INTERNALCLASS(CatchContext)
};
inline CallContext *ExecutionContext::asCallContext()