diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2012-02-14 10:47:03 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-20 08:34:28 +0100 |
commit | 330152354aed8496ac78d145e14b25ee2d7bf8fb (patch) | |
tree | d1aacb6ef10d695651a66138050c45cc34249e83 /src/declarative/qml/v8/qv8engine_p.h | |
parent | de431c5e6cc8d439ed039e24f050ad8020792ab8 (diff) |
Use Utf8 for javascript source code
This saves a surprising amount of memory.
Change-Id: I16f7bde8d11fe11703d4e441060fd52e9632248c
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qv8engine_p.h')
-rw-r--r-- | src/declarative/qml/v8/qv8engine_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/v8/qv8engine_p.h b/src/declarative/qml/v8/qv8engine_p.h index a39f673adc..4bfb991eae 100644 --- a/src/declarative/qml/v8/qv8engine_p.h +++ b/src/declarative/qml/v8/qv8engine_p.h @@ -330,6 +330,9 @@ public: v8::Local<v8::Script> qmlModeCompile(const QString &source, const QString &fileName = QString(), int lineNumber = 1); + v8::Local<v8::Script> qmlModeCompile(const char *source, int sourceLength = -1, + const QString &fileName = QString(), + int lineNumber = 1); // Return the QML global "scope" object for the \a ctxt context and \a scope object. inline v8::Local<v8::Object> qmlScope(QDeclarativeContextData *ctxt, QObject *scope); |