diff options
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r-- | src/qml/compiler/qv4compiler_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h index 82afb7cf3a..bf2f5c8167 100644 --- a/src/qml/compiler/qv4compiler_p.h +++ b/src/qml/compiler/qv4compiler_p.h @@ -42,7 +42,7 @@ struct Module; struct Class; struct TemplateObject; -struct Q_QML_COMPILER_PRIVATE_EXPORT StringTableGenerator { +struct Q_QML_COMPILER_EXPORT StringTableGenerator { StringTableGenerator(); int registerString(const QString &str); @@ -69,7 +69,7 @@ private: bool frozen = false; }; -struct Q_QML_COMPILER_PRIVATE_EXPORT JSUnitGenerator { +struct Q_QML_COMPILER_EXPORT JSUnitGenerator { enum LookupMode { LookupForStorage, LookupForCall }; static void generateUnitChecksum(CompiledData::Unit *unit); @@ -100,6 +100,8 @@ struct Q_QML_COMPILER_PRIVATE_EXPORT JSUnitGenerator { ReturnedValue constant(int idx) const; int registerJSClass(const QStringList &members); + int jsClassSize(int jsClassId) const; + QString jsClassMember(int jsClassId, int member) const; int registerTranslation(const CompiledData::TranslationData &translation); @@ -116,6 +118,7 @@ struct Q_QML_COMPILER_PRIVATE_EXPORT JSUnitGenerator { StringTableGenerator stringTable; QString codeGeneratorName; + private: CompiledData::Unit generateHeader(GeneratorOption option, quint32_le *functionOffsets, uint *jsClassDataOffset); |