Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::CompiledData::Unit Struct Reference

#include <qv4compileddata_p.h>

+ Collaboration diagram for QV4::CompiledData::Unit:

Public Types

enum  : unsigned int {
  IsJavascript = 0x1 , StaticData = 0x2 , IsSingleton = 0x4 , IsSharedLibrary = 0x8 ,
  IsESModule = 0x10 , PendingTypeCompilation = 0x20 , IsStrict = 0x40 , ListPropertyAssignReplaceIfDefault = 0x80 ,
  ListPropertyAssignReplaceIfNotDefault = 0x100 , ListPropertyAssignReplace = ListPropertyAssignReplaceIfDefault | ListPropertyAssignReplaceIfNotDefault , ComponentsBound = 0x200 , FunctionSignaturesIgnored = 0x400 ,
  NativeMethodsAcceptThisObject = 0x800 , ValueTypesCopied = 0x1000 , ValueTypesAddressable = 0x2000
}
 

Public Member Functions

const QmlUnitqmlUnit () const
 
QmlUnitqmlUnit ()
 
bool isSingleton () const
 
QString stringAtInternal (uint idx) const
 
const quint32_lefunctionOffsetTable () const
 
const quint32_leclassOffsetTable () const
 
const quint32_letemplateObjectOffsetTable () const
 
const quint32_leblockOffsetTable () const
 
const FunctionfunctionAt (int idx) const
 
const ClassclassAt (int idx) const
 
const TemplateObjecttemplateObjectAt (int idx) const
 
const BlockblockAt (int idx) const
 
const LookuplookupTable () const
 
const RegExpregexpAt (int index) const
 
const quint64_leconstants () const
 
const JSClassMemberjsClassAt (int idx, int *nMembers) const
 
const TranslationDatatranslations () const
 
const quint32_letranslationContextIndex () const
 
quint32_letranslationContextIndex ()
 
const ImportEntryimportEntryTable () const
 
const ExportEntrylocalExportEntryTable () const
 
const ExportEntryindirectExportEntryTable () const
 
const ExportEntrystarExportEntryTable () const
 
const quint32_lemoduleRequestTable () const
 
bool verifyHeader (QDateTime expectedSourceTimeStamp, QString *errorString) const
 

Public Attributes

char magic [8]
 
quint32_le version
 
quint32_le qtVersion
 
qint64_le sourceTimeStamp
 
quint32_le unitSize
 
char libraryVersionHash [QmlCompileHashSpace]
 
char md5Checksum [16]
 
char dependencyMD5Checksum [16]
 
quint32_le flags
 
quint32_le stringTableSize
 
quint32_le offsetToStringTable
 
quint32_le functionTableSize
 
quint32_le offsetToFunctionTable
 
quint32_le classTableSize
 
quint32_le offsetToClassTable
 
quint32_le templateObjectTableSize
 
quint32_le offsetToTemplateObjectTable
 
quint32_le blockTableSize
 
quint32_le offsetToBlockTable
 
quint32_le lookupTableSize
 
quint32_le offsetToLookupTable
 
quint32_le regexpTableSize
 
quint32_le offsetToRegexpTable
 
quint32_le constantTableSize
 
quint32_le offsetToConstantTable
 
quint32_le jsClassTableSize
 
quint32_le offsetToJSClassTable
 
quint32_le translationTableSize
 
quint32_le offsetToTranslationTable
 
quint32_le localExportEntryTableSize
 
quint32_le offsetToLocalExportEntryTable
 
quint32_le indirectExportEntryTableSize
 
quint32_le offsetToIndirectExportEntryTable
 
quint32_le starExportEntryTableSize
 
quint32_le offsetToStarExportEntryTable
 
quint32_le importEntryTableSize
 
quint32_le offsetToImportEntryTable
 
quint32_le moduleRequestTableSize
 
quint32_le offsetToModuleRequestTable
 
qint32_le indexOfRootFunction
 
quint32_le sourceFileIndex
 
quint32_le finalUrlIndex
 
quint32_le offsetToQmlUnit
 

Detailed Description

Definition at line 1198 of file qv4compileddata_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : unsigned int
Enumerator
IsJavascript 
StaticData 
IsSingleton 
IsSharedLibrary 
IsESModule 
PendingTypeCompilation 
IsStrict 
ListPropertyAssignReplaceIfDefault 
ListPropertyAssignReplaceIfNotDefault 
ListPropertyAssignReplace 
ComponentsBound 
FunctionSignaturesIgnored 
NativeMethodsAcceptThisObject 
ValueTypesCopied 
ValueTypesAddressable 

Definition at line 1213 of file qv4compileddata_p.h.

Member Function Documentation

◆ blockAt()

const Block * QV4::CompiledData::Unit::blockAt ( int idx) const
inline

Definition at line 1329 of file qv4compileddata_p.h.

References blockOffsetTable().

+ Here is the call graph for this function:

◆ blockOffsetTable()

const quint32_le * QV4::CompiledData::Unit::blockOffsetTable ( ) const
inline

Definition at line 1309 of file qv4compileddata_p.h.

References offsetToBlockTable.

Referenced by blockAt().

+ Here is the caller graph for this function:

◆ classAt()

const Class * QV4::CompiledData::Unit::classAt ( int idx) const
inline

Definition at line 1317 of file qv4compileddata_p.h.

References classOffsetTable().

Referenced by QV4::Runtime::CreateClass::call().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ classOffsetTable()

const quint32_le * QV4::CompiledData::Unit::classOffsetTable ( ) const
inline

Definition at line 1307 of file qv4compileddata_p.h.

References offsetToClassTable.

Referenced by classAt().

+ Here is the caller graph for this function:

◆ constants()

const quint64_le * QV4::CompiledData::Unit::constants ( ) const
inline

Definition at line 1339 of file qv4compileddata_p.h.

References offsetToConstantTable.

◆ functionAt()

const Function * QV4::CompiledData::Unit::functionAt ( int idx) const
inline

Definition at line 1311 of file qv4compileddata_p.h.

References functionOffsetTable().

Referenced by QV4::CompiledData::CompilationUnit::FunctionIterator::operator->().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ functionOffsetTable()

const quint32_le * QV4::CompiledData::Unit::functionOffsetTable ( ) const
inline

Definition at line 1306 of file qv4compileddata_p.h.

References offsetToFunctionTable.

Referenced by functionAt().

+ Here is the caller graph for this function:

◆ importEntryTable()

const ImportEntry * QV4::CompiledData::Unit::importEntryTable ( ) const
inline

Definition at line 1370 of file qv4compileddata_p.h.

References offsetToImportEntryTable.

◆ indirectExportEntryTable()

const ExportEntry * QV4::CompiledData::Unit::indirectExportEntryTable ( ) const
inline

Definition at line 1372 of file qv4compileddata_p.h.

References offsetToIndirectExportEntryTable.

◆ isSingleton()

bool QV4::CompiledData::Unit::isSingleton ( ) const
inline

Definition at line 1278 of file qv4compileddata_p.h.

References IsSingleton.

◆ jsClassAt()

const JSClassMember * QV4::CompiledData::Unit::jsClassAt ( int idx,
int * nMembers ) const
inline

Definition at line 1343 of file qv4compileddata_p.h.

References QV4::CompiledData::JSClass::nMembers, offsetToJSClassTable, and ptr().

+ Here is the call graph for this function:

◆ localExportEntryTable()

const ExportEntry * QV4::CompiledData::Unit::localExportEntryTable ( ) const
inline

Definition at line 1371 of file qv4compileddata_p.h.

References offsetToLocalExportEntryTable.

◆ lookupTable()

const Lookup * QV4::CompiledData::Unit::lookupTable ( ) const
inline

Definition at line 1335 of file qv4compileddata_p.h.

References offsetToLookupTable.

◆ moduleRequestTable()

const quint32_le * QV4::CompiledData::Unit::moduleRequestTable ( ) const
inline

Definition at line 1375 of file qv4compileddata_p.h.

References offsetToModuleRequestTable.

◆ qmlUnit() [1/2]

QmlUnit * QV4::CompiledData::Unit::qmlUnit ( )
inline

Definition at line 1274 of file qv4compileddata_p.h.

References offsetToQmlUnit.

◆ qmlUnit() [2/2]

const QmlUnit * QV4::CompiledData::Unit::qmlUnit ( ) const
inline

Definition at line 1270 of file qv4compileddata_p.h.

References offsetToQmlUnit.

Referenced by QQmlIRLoader::load().

+ Here is the caller graph for this function:

◆ regexpAt()

const RegExp * QV4::CompiledData::Unit::regexpAt ( int index) const
inline

Definition at line 1336 of file qv4compileddata_p.h.

References offsetToRegexpTable.

◆ starExportEntryTable()

const ExportEntry * QV4::CompiledData::Unit::starExportEntryTable ( ) const
inline

Definition at line 1373 of file qv4compileddata_p.h.

References offsetToStarExportEntryTable.

◆ stringAtInternal()

QString QV4::CompiledData::Unit::stringAtInternal ( uint idx) const
inline

Definition at line 1283 of file qv4compileddata_p.h.

References ch, characters, QString::fromRawData(), i, offsetToStringTable, Q_ASSERT, QString::size(), StaticData, str, stringTableSize, and Qt::Uninitialized.

Referenced by QV4::Compiler::StringTableGenerator::initializeFromBackingUnit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ templateObjectAt()

const TemplateObject * QV4::CompiledData::Unit::templateObjectAt ( int idx) const
inline

Definition at line 1323 of file qv4compileddata_p.h.

References templateObjectOffsetTable().

+ Here is the call graph for this function:

◆ templateObjectOffsetTable()

const quint32_le * QV4::CompiledData::Unit::templateObjectOffsetTable ( ) const
inline

Definition at line 1308 of file qv4compileddata_p.h.

References offsetToTemplateObjectTable.

Referenced by templateObjectAt().

+ Here is the caller graph for this function:

◆ translationContextIndex() [1/2]

quint32_le * QV4::CompiledData::Unit::translationContextIndex ( )
inline

Definition at line 1363 of file qv4compileddata_p.h.

References offsetToTranslationTable, and translationTableSize.

◆ translationContextIndex() [2/2]

const quint32_le * QV4::CompiledData::Unit::translationContextIndex ( ) const
inline

Definition at line 1356 of file qv4compileddata_p.h.

References offsetToTranslationTable, and translationTableSize.

◆ translations()

const TranslationData * QV4::CompiledData::Unit::translations ( ) const
inline

Definition at line 1352 of file qv4compileddata_p.h.

References offsetToTranslationTable.

◆ verifyHeader()

bool QV4::CompiledData::Unit::verifyHeader ( QDateTime expectedSourceTimeStamp,
QString * errorString ) const

Definition at line 39 of file qv4compileddata.cpp.

References QCoreApplication::applicationFilePath(), QString::fromLatin1(), QString::fromUtf8(), QFileInfo::lastModified(), libraryVersionHash, magic, QV4::CompiledData::magic_str, QByteArray(), QStringLiteral, qstrncmp(), QT_VERSION, qtVersion, QV4_DATA_STRUCTURE_VERSION, sourceTimeStamp, and version.

+ Here is the call graph for this function:

Member Data Documentation

◆ blockTableSize

quint32_le QV4::CompiledData::Unit::blockTableSize

Definition at line 1240 of file qv4compileddata_p.h.

◆ classTableSize

quint32_le QV4::CompiledData::Unit::classTableSize

Definition at line 1236 of file qv4compileddata_p.h.

◆ constantTableSize

quint32_le QV4::CompiledData::Unit::constantTableSize

Definition at line 1246 of file qv4compileddata_p.h.

◆ dependencyMD5Checksum

char QV4::CompiledData::Unit::dependencyMD5Checksum[16]

Definition at line 1211 of file qv4compileddata_p.h.

◆ finalUrlIndex

quint32_le QV4::CompiledData::Unit::finalUrlIndex

Definition at line 1264 of file qv4compileddata_p.h.

◆ flags

◆ functionTableSize

quint32_le QV4::CompiledData::Unit::functionTableSize

Definition at line 1234 of file qv4compileddata_p.h.

Referenced by isFullyTyped().

◆ importEntryTableSize

quint32_le QV4::CompiledData::Unit::importEntryTableSize

Definition at line 1258 of file qv4compileddata_p.h.

◆ indexOfRootFunction

qint32_le QV4::CompiledData::Unit::indexOfRootFunction

Definition at line 1262 of file qv4compileddata_p.h.

Referenced by QV4::Module::evaluate().

◆ indirectExportEntryTableSize

quint32_le QV4::CompiledData::Unit::indirectExportEntryTableSize

Definition at line 1254 of file qv4compileddata_p.h.

◆ jsClassTableSize

quint32_le QV4::CompiledData::Unit::jsClassTableSize

Definition at line 1248 of file qv4compileddata_p.h.

◆ libraryVersionHash

char QV4::CompiledData::Unit::libraryVersionHash[QmlCompileHashSpace]

Definition at line 1208 of file qv4compileddata_p.h.

Referenced by verifyHeader().

◆ localExportEntryTableSize

quint32_le QV4::CompiledData::Unit::localExportEntryTableSize

Definition at line 1252 of file qv4compileddata_p.h.

◆ lookupTableSize

quint32_le QV4::CompiledData::Unit::lookupTableSize

Definition at line 1242 of file qv4compileddata_p.h.

◆ magic

char QV4::CompiledData::Unit::magic[8]

Definition at line 1201 of file qv4compileddata_p.h.

Referenced by verifyHeader().

◆ md5Checksum

char QV4::CompiledData::Unit::md5Checksum[16]

◆ moduleRequestTableSize

quint32_le QV4::CompiledData::Unit::moduleRequestTableSize

Definition at line 1260 of file qv4compileddata_p.h.

◆ offsetToBlockTable

quint32_le QV4::CompiledData::Unit::offsetToBlockTable

Definition at line 1241 of file qv4compileddata_p.h.

Referenced by blockOffsetTable().

◆ offsetToClassTable

quint32_le QV4::CompiledData::Unit::offsetToClassTable

Definition at line 1237 of file qv4compileddata_p.h.

Referenced by classOffsetTable().

◆ offsetToConstantTable

quint32_le QV4::CompiledData::Unit::offsetToConstantTable

Definition at line 1247 of file qv4compileddata_p.h.

Referenced by constants().

◆ offsetToFunctionTable

quint32_le QV4::CompiledData::Unit::offsetToFunctionTable

Definition at line 1235 of file qv4compileddata_p.h.

Referenced by functionOffsetTable().

◆ offsetToImportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToImportEntryTable

Definition at line 1259 of file qv4compileddata_p.h.

Referenced by importEntryTable().

◆ offsetToIndirectExportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToIndirectExportEntryTable

Definition at line 1255 of file qv4compileddata_p.h.

Referenced by indirectExportEntryTable().

◆ offsetToJSClassTable

quint32_le QV4::CompiledData::Unit::offsetToJSClassTable

Definition at line 1249 of file qv4compileddata_p.h.

Referenced by jsClassAt().

◆ offsetToLocalExportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToLocalExportEntryTable

Definition at line 1253 of file qv4compileddata_p.h.

Referenced by localExportEntryTable().

◆ offsetToLookupTable

quint32_le QV4::CompiledData::Unit::offsetToLookupTable

Definition at line 1243 of file qv4compileddata_p.h.

Referenced by lookupTable().

◆ offsetToModuleRequestTable

quint32_le QV4::CompiledData::Unit::offsetToModuleRequestTable

Definition at line 1261 of file qv4compileddata_p.h.

Referenced by moduleRequestTable().

◆ offsetToQmlUnit

quint32_le QV4::CompiledData::Unit::offsetToQmlUnit

Definition at line 1266 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate(), qmlUnit(), and qmlUnit().

◆ offsetToRegexpTable

quint32_le QV4::CompiledData::Unit::offsetToRegexpTable

Definition at line 1245 of file qv4compileddata_p.h.

Referenced by regexpAt().

◆ offsetToStarExportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToStarExportEntryTable

Definition at line 1257 of file qv4compileddata_p.h.

Referenced by starExportEntryTable().

◆ offsetToStringTable

quint32_le QV4::CompiledData::Unit::offsetToStringTable

◆ offsetToTemplateObjectTable

quint32_le QV4::CompiledData::Unit::offsetToTemplateObjectTable

Definition at line 1239 of file qv4compileddata_p.h.

Referenced by templateObjectOffsetTable().

◆ offsetToTranslationTable

quint32_le QV4::CompiledData::Unit::offsetToTranslationTable

◆ qtVersion

quint32_le QV4::CompiledData::Unit::qtVersion

Definition at line 1203 of file qv4compileddata_p.h.

Referenced by verifyHeader().

◆ regexpTableSize

quint32_le QV4::CompiledData::Unit::regexpTableSize

Definition at line 1244 of file qv4compileddata_p.h.

◆ sourceFileIndex

quint32_le QV4::CompiledData::Unit::sourceFileIndex

Definition at line 1263 of file qv4compileddata_p.h.

◆ sourceTimeStamp

qint64_le QV4::CompiledData::Unit::sourceTimeStamp

Definition at line 1204 of file qv4compileddata_p.h.

Referenced by verifyHeader().

◆ starExportEntryTableSize

quint32_le QV4::CompiledData::Unit::starExportEntryTableSize

Definition at line 1256 of file qv4compileddata_p.h.

◆ stringTableSize

◆ templateObjectTableSize

quint32_le QV4::CompiledData::Unit::templateObjectTableSize

Definition at line 1238 of file qv4compileddata_p.h.

◆ translationTableSize

quint32_le QV4::CompiledData::Unit::translationTableSize

Definition at line 1250 of file qv4compileddata_p.h.

Referenced by translationContextIndex(), and translationContextIndex().

◆ unitSize

quint32_le QV4::CompiledData::Unit::unitSize

◆ version

quint32_le QV4::CompiledData::Unit::version

Definition at line 1202 of file qv4compileddata_p.h.

Referenced by verifyHeader().


The documentation for this struct was generated from the following files: