From 7b2c9178b93fc31779c05553dcc48930d66342e2 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 15 Aug 2013 12:48:05 +0200 Subject: Ported lookups to use the compiled data infrastructure Change-Id: Idf75cd51087ea825f22aabda59661be461fd3b86 Reviewed-by: Lars Knoll --- src/qml/compiler/qv4compiler_p.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/qml/compiler/qv4compiler_p.h') 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 stringToId; QStringList strings; - QHash functionOffsets; int stringDataSize; + QHash functionOffsets; + QList lookups; }; } -- cgit v1.2.3