diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-06-30 08:44:09 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-06-30 11:35:29 +0000 |
commit | 3a9f4d3ae701c7119016a0bf8b4e65ceb17864b0 (patch) | |
tree | 760bd51b4775ecc3f48c3ca649699c952b841fbf /src/qml/compiler/qv4compiler_p.h | |
parent | 12ff47eb52fdaf01589b61a3f879d2f5edf7962f (diff) |
Get rid of IR::Module and IR::Function
Fold the stuff from IR::Function into QQmlJS::Context, and
add a QQmlJS::Module class to replace the last pieces of the old
IR.
Change-Id: Ic02a6738a4f1db67a0ddf97b6c93ca32be81789d
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r-- | src/qml/compiler/qv4compiler_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h index 222b97ceb6..0ed03a4c2c 100644 --- a/src/qml/compiler/qv4compiler_p.h +++ b/src/qml/compiler/qv4compiler_p.h @@ -95,7 +95,7 @@ struct Q_QML_PRIVATE_EXPORT JSUnitGenerator { bool isAccessor; }; - JSUnitGenerator(IR::Module *module); + JSUnitGenerator(QQmlJS::Module *module); int registerString(const QString &str) { return stringTable.registerString(str); } int getStringId(const QString &string) const { return stringTable.getStringId(string); } @@ -126,14 +126,14 @@ struct Q_QML_PRIVATE_EXPORT JSUnitGenerator { QV4::CompiledData::Unit *generateUnit(GeneratorOption option = GenerateWithStringTable); // Returns bytes written - void writeFunction(char *f, IR::Function *irFunction) const; + void writeFunction(char *f, QQmlJS::Context *irFunction) const; StringTableGenerator stringTable; QString codeGeneratorName; private: CompiledData::Unit generateHeader(GeneratorOption option, QJsonPrivate::q_littleendian<quint32> *functionOffsets, uint *jsClassDataOffset); - IR::Module *irModule; + QQmlJS::Module *module; QList<CompiledData::Lookup> lookups; QVector<CompiledData::RegExp> regexps; |