aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compiler_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r--src/qml/compiler/qv4compiler_p.h8
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;
};
}