diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-10-27 22:32:19 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-29 14:06:06 +0100 |
commit | 9880e64efa25c1924b95068693ff8664e2f2e121 (patch) | |
tree | d9b577e90e1383645bc796d298d6781be204fe2d /src/qml/compiler/qv4compiler_p.h | |
parent | 9b18946f22b8fc15a1223378112a53b2089380cf (diff) |
Add a constant table to the compiled data
This will help simplifying and speeding up the moth generated
code.
Change-Id: I1b87c4b25dbfa6ce2e8a0b77e526f7fc063b0de2
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r-- | src/qml/compiler/qv4compiler_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h index b875833463..42ef3242ea 100644 --- a/src/qml/compiler/qv4compiler_p.h +++ b/src/qml/compiler/qv4compiler_p.h @@ -71,6 +71,8 @@ struct Q_QML_EXPORT JSUnitGenerator { int registerRegExp(QQmlJS::V4IR::RegExp *regexp); + int registerConstant(ReturnedValue v); + void registerLineNumberMapping(QQmlJS::V4IR::Function *function, const QVector<uint> &mappings); int registerJSClass(QQmlJS::V4IR::ExprList *args); @@ -85,6 +87,7 @@ struct Q_QML_EXPORT JSUnitGenerator { QHash<QQmlJS::V4IR::Function *, uint> functionOffsets; QList<CompiledData::Lookup> lookups; QVector<CompiledData::RegExp> regexps; + QVector<ReturnedValue> constants; QHash<QQmlJS::V4IR::Function *, QVector<uint> > lineNumberMappingsPerFunction; QList<QList<CompiledData::JSClassMember> > jsClasses; uint jsClassDataSize; |