Qt 6.x
The Qt SDK
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 ImportEntryimportEntryTable () const
 
const ExportEntrylocalExportEntryTable () const
 
const ExportEntryindirectExportEntryTable () const
 
const ExportEntrystarExportEntryTable () const
 
const quint32_lemoduleRequestTable () 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 1175 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 1190 of file qv4compileddata_p.h.

Member Function Documentation

◆ blockAt()

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

Definition at line 1306 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 1286 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 1294 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 1284 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 1316 of file qv4compileddata_p.h.

References offsetToConstantTable.

◆ functionAt()

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

Definition at line 1288 of file qv4compileddata_p.h.

References functionOffsetTable().

Referenced by QmlIR::QmlUnitGenerator::generate(), and QV4::ExecutableCompilationUnit::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 1283 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 1333 of file qv4compileddata_p.h.

References offsetToImportEntryTable.

◆ indirectExportEntryTable()

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

Definition at line 1335 of file qv4compileddata_p.h.

References offsetToIndirectExportEntryTable.

◆ isSingleton()

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

Definition at line 1255 of file qv4compileddata_p.h.

References IsSingleton.

◆ jsClassAt()

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

Definition at line 1320 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 1334 of file qv4compileddata_p.h.

References offsetToLocalExportEntryTable.

◆ lookupTable()

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

Definition at line 1312 of file qv4compileddata_p.h.

References offsetToLookupTable.

◆ moduleRequestTable()

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

Definition at line 1338 of file qv4compileddata_p.h.

References offsetToModuleRequestTable.

◆ qmlUnit() [1/2]

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

Definition at line 1251 of file qv4compileddata_p.h.

References offsetToQmlUnit.

◆ qmlUnit() [2/2]

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

Definition at line 1247 of file qv4compileddata_p.h.

References offsetToQmlUnit.

Referenced by QmlIR::QmlUnitGenerator::generate(), and QQmlIRLoader::load().

+ Here is the caller graph for this function:

◆ regexpAt()

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

Definition at line 1313 of file qv4compileddata_p.h.

References offsetToRegexpTable.

◆ starExportEntryTable()

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

Definition at line 1336 of file qv4compileddata_p.h.

References offsetToStarExportEntryTable.

◆ stringAtInternal()

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

Definition at line 1260 of file qv4compileddata_p.h.

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

Referenced by QmlIR::QmlUnitGenerator::generate(), and 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 1300 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 1285 of file qv4compileddata_p.h.

References offsetToTemplateObjectTable.

Referenced by templateObjectAt().

+ Here is the caller graph for this function:

◆ translations()

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

Definition at line 1329 of file qv4compileddata_p.h.

References offsetToTranslationTable.

Member Data Documentation

◆ blockTableSize

quint32_le QV4::CompiledData::Unit::blockTableSize

Definition at line 1217 of file qv4compileddata_p.h.

Referenced by QV4::Compiler::JSUnitGenerator::generateUnit().

◆ classTableSize

quint32_le QV4::CompiledData::Unit::classTableSize

Definition at line 1213 of file qv4compileddata_p.h.

Referenced by QV4::Compiler::JSUnitGenerator::generateUnit().

◆ constantTableSize

quint32_le QV4::CompiledData::Unit::constantTableSize

Definition at line 1223 of file qv4compileddata_p.h.

◆ dependencyMD5Checksum

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

Definition at line 1188 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ finalUrlIndex

quint32_le QV4::CompiledData::Unit::finalUrlIndex

Definition at line 1241 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ flags

quint32_le QV4::CompiledData::Unit::flags

◆ functionTableSize

quint32_le QV4::CompiledData::Unit::functionTableSize

◆ importEntryTableSize

quint32_le QV4::CompiledData::Unit::importEntryTableSize

Definition at line 1235 of file qv4compileddata_p.h.

◆ indexOfRootFunction

qint32_le QV4::CompiledData::Unit::indexOfRootFunction

◆ indirectExportEntryTableSize

quint32_le QV4::CompiledData::Unit::indirectExportEntryTableSize

Definition at line 1231 of file qv4compileddata_p.h.

◆ jsClassTableSize

quint32_le QV4::CompiledData::Unit::jsClassTableSize

Definition at line 1225 of file qv4compileddata_p.h.

◆ libraryVersionHash

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

Definition at line 1185 of file qv4compileddata_p.h.

Referenced by QV4::ExecutableCompilationUnit::verifyHeader().

◆ localExportEntryTableSize

quint32_le QV4::CompiledData::Unit::localExportEntryTableSize

Definition at line 1229 of file qv4compileddata_p.h.

◆ lookupTableSize

quint32_le QV4::CompiledData::Unit::lookupTableSize

Definition at line 1219 of file qv4compileddata_p.h.

◆ magic

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

Definition at line 1178 of file qv4compileddata_p.h.

Referenced by QV4::ExecutableCompilationUnit::verifyHeader().

◆ md5Checksum

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

◆ moduleRequestTableSize

quint32_le QV4::CompiledData::Unit::moduleRequestTableSize

Definition at line 1237 of file qv4compileddata_p.h.

◆ offsetToBlockTable

quint32_le QV4::CompiledData::Unit::offsetToBlockTable

◆ offsetToClassTable

quint32_le QV4::CompiledData::Unit::offsetToClassTable

◆ offsetToConstantTable

quint32_le QV4::CompiledData::Unit::offsetToConstantTable

◆ offsetToFunctionTable

quint32_le QV4::CompiledData::Unit::offsetToFunctionTable

◆ offsetToImportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToImportEntryTable

◆ offsetToIndirectExportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToIndirectExportEntryTable

◆ offsetToJSClassTable

quint32_le QV4::CompiledData::Unit::offsetToJSClassTable

◆ offsetToLocalExportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToLocalExportEntryTable

◆ offsetToLookupTable

quint32_le QV4::CompiledData::Unit::offsetToLookupTable

◆ offsetToModuleRequestTable

quint32_le QV4::CompiledData::Unit::offsetToModuleRequestTable

◆ offsetToQmlUnit

quint32_le QV4::CompiledData::Unit::offsetToQmlUnit

Definition at line 1243 of file qv4compileddata_p.h.

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

◆ offsetToRegexpTable

quint32_le QV4::CompiledData::Unit::offsetToRegexpTable

Definition at line 1222 of file qv4compileddata_p.h.

Referenced by QV4::Compiler::JSUnitGenerator::generateUnit(), and regexpAt().

◆ offsetToStarExportEntryTable

quint32_le QV4::CompiledData::Unit::offsetToStarExportEntryTable

◆ offsetToStringTable

quint32_le QV4::CompiledData::Unit::offsetToStringTable

◆ offsetToTemplateObjectTable

quint32_le QV4::CompiledData::Unit::offsetToTemplateObjectTable

◆ offsetToTranslationTable

quint32_le QV4::CompiledData::Unit::offsetToTranslationTable

◆ qtVersion

quint32_le QV4::CompiledData::Unit::qtVersion

Definition at line 1180 of file qv4compileddata_p.h.

Referenced by QV4::ExecutableCompilationUnit::verifyHeader().

◆ regexpTableSize

quint32_le QV4::CompiledData::Unit::regexpTableSize

Definition at line 1221 of file qv4compileddata_p.h.

◆ sourceFileIndex

quint32_le QV4::CompiledData::Unit::sourceFileIndex

Definition at line 1240 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ sourceTimeStamp

qint64_le QV4::CompiledData::Unit::sourceTimeStamp

Definition at line 1181 of file qv4compileddata_p.h.

Referenced by QV4::ExecutableCompilationUnit::verifyHeader().

◆ starExportEntryTableSize

quint32_le QV4::CompiledData::Unit::starExportEntryTableSize

Definition at line 1233 of file qv4compileddata_p.h.

◆ stringTableSize

◆ templateObjectTableSize

quint32_le QV4::CompiledData::Unit::templateObjectTableSize

Definition at line 1215 of file qv4compileddata_p.h.

Referenced by QV4::Compiler::JSUnitGenerator::generateUnit().

◆ translationTableSize

quint32_le QV4::CompiledData::Unit::translationTableSize

Definition at line 1227 of file qv4compileddata_p.h.

◆ unitSize

◆ version

quint32_le QV4::CompiledData::Unit::version

Definition at line 1179 of file qv4compileddata_p.h.

Referenced by QV4::ExecutableCompilationUnit::verifyHeader().


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