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/qqmljavascriptexpression_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qml/qml/qqmljavascriptexpression_p.h') diff --git a/src/qml/qml/qqmljavascriptexpression_p.h b/src/qml/qml/qqmljavascriptexpression_p.h index 4c89a086a3..dc9b4b63c6 100644 --- a/src/qml/qml/qqmljavascriptexpression_p.h +++ b/src/qml/qml/qqmljavascriptexpression_p.h @@ -82,7 +82,7 @@ public: inline void clearError() { qPersistentDispose(m_message); m_error = QQmlError(); } void setMessage(v8::Handle message); - void setErrorLocation(const QUrl &url, int line, int column); + void setErrorLocation(const QUrl &url, quint16 line, quint16 column); void setErrorDescription(const QString &description); private: @@ -146,11 +146,11 @@ public: static void exceptionToError(v8::Handle, QQmlError &); static v8::Persistent evalFunction(QQmlContextData *ctxt, QObject *scope, const QString &code, const QString &filename, - int line, + quint16 line, v8::Persistent *qmlscope = 0); static v8::Persistent evalFunction(QQmlContextData *ctxt, QObject *scope, const char *code, int codeLength, - const QString &filename, int line, + const QString &filename, quint16 line, v8::Persistent *qmlscope = 0); protected: ~QQmlJavaScriptExpression(); -- cgit v1.2.3