diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-15 12:48:05 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-08-15 15:28:37 +0200 |
commit | 7b2c9178b93fc31779c05553dcc48930d66342e2 (patch) | |
tree | 939b3247eeac5a1c480c80ce7bffda23980940bf /src/qml/compiler/qv4compiler_p.h | |
parent | ab44ecae18bba8aa09c6c12c37aca8f6df454cdc (diff) |
Ported lookups to use the compiled data infrastructure
Change-Id: Idf75cd51087ea825f22aabda59661be461fd3b86
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r-- | src/qml/compiler/qv4compiler_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h index 661bcd1093..e7385a0174 100644 --- a/src/qml/compiler/qv4compiler_p.h +++ b/src/qml/compiler/qv4compiler_p.h @@ -50,6 +50,7 @@ namespace QV4 { namespace CompiledData { struct Unit; +struct Lookup; } namespace Compiler { @@ -62,13 +63,18 @@ struct JSUnitGenerator { int registerString(const QString &str); int getStringId(const QString &string) const; + uint registerGetterLookup(const QString &name); + uint registerSetterLookup(const QString &name); + uint registerGlobalGetterLookup(const QString &name); + QV4::CompiledData::Unit *generateUnit(); void writeFunction(char *f, int index, QQmlJS::V4IR::Function *irFunction); QHash<QString, int> stringToId; QStringList strings; - QHash<QQmlJS::V4IR::Function *, uint> functionOffsets; int stringDataSize; + QHash<QQmlJS::V4IR::Function *, uint> functionOffsets; + QList<CompiledData::Lookup> lookups; }; } |