From 6aeff1b5429ca97af052a7a172369585382096e8 Mon Sep 17 00:00:00 2001 From: Matthew Vogt Date: Thu, 9 Aug 2012 13:26:32 +1000 Subject: Reduce memory consumption of source coordinates Reduce memory consumption by storing source location coordinates as 16-bit variables (in run-time structures). Also modify qmlmin to restrict line lengths so that the column bound is not normally exceeded. Change-Id: I08605626ffbdf081b6da2aea1116bdfe24998572 Reviewed-by: Yann Bodson --- src/qml/qml/qqmlexpression_p.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/qml/qml/qqmlexpression_p.h') diff --git a/src/qml/qml/qqmlexpression_p.h b/src/qml/qml/qqmlexpression_p.h index 372d72c655..3108be26d8 100644 --- a/src/qml/qml/qqmlexpression_p.h +++ b/src/qml/qml/qqmlexpression_p.h @@ -79,8 +79,8 @@ public: ~QQmlExpressionPrivate(); void init(QQmlContextData *, const QString &, QObject *); - void init(QQmlContextData *, const QString &, bool, QObject *, const QString &, int, int); - void init(QQmlContextData *, const QByteArray &, bool, QObject *, const QString &, int, int); + void init(QQmlContextData *, const QString &, bool, QObject *, const QString &, quint16, quint16); + void init(QQmlContextData *, const QByteArray &, bool, QObject *, const QString &, quint16, quint16); QVariant value(bool *isUndefined = 0); @@ -92,7 +92,7 @@ public: void _q_notify(); static QQmlExpression *create(QQmlContextData *, QObject *, const QString &, bool, - const QString &, int, int); + const QString &, quint16, quint16); bool expressionFunctionValid:1; bool expressionFunctionRewritten:1; @@ -109,8 +109,8 @@ public: v8::Persistent v8function; QString url; // This is a QString for a reason. QUrls are slooooooow... - int line; - int column; + quint16 line; + quint16 column; QString name; //function name, hint for the debugger }; -- cgit v1.2.3