Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QV4::CompiledData::CompilationUnit Struct Referencefinal

#include <qv4compileddata_p.h>

Inheritance diagram for QV4::CompiledData::CompilationUnit:
Collaboration diagram for QV4::CompiledData::CompilationUnit:

Classes

struct  FunctionIterator

Public Types

enum class  ListPropertyAssignBehavior { Append , Replace , ReplaceIfNotDefault }
using CompiledObject = const CompiledData::Object
using CompiledFunction = const CompiledData::Function
using CompiledBinding = const CompiledData::Binding
using IdToObjectMap = QMap<int, int>

Public Member Functions

 CompilationUnit (const Unit *unitData, const QQmlPrivate::AOTCompiledFunction *aotCompiledFunctions, LookupValidationFn validateLookupSignatures, const QString &fileName=QString(), const QString &finalUrlString=QString())
Q_QML_EXPORT CompilationUnit (const Unit *unitData=nullptr, const QString &fileName=QString(), const QString &finalUrlString=QString())
Q_QML_EXPORT ~CompilationUnit ()
const Unit * unitData () const
void setUnitData (const Unit *unitData, const QmlUnit *qmlUnit=nullptr, const QString &fileName=QString(), const QString &finalUrlString=QString())
QString stringAt (uint indexindex) const
QString fileName () const
QString finalUrlString () const
QString bindingValueAsString (const CompiledData::Binding *binding) const
QString bindingValueAsScriptString (const CompiledData::Binding *binding) const
double bindingValueAsNumber (const CompiledData::Binding *binding) const
Q_QML_EXPORT bool loadFromDisk (const QUrl &url, const QDateTime &sourceTimeStamp, qxp::function_ref< QByteArray() const > sourceChecksum, QString *errorString)
Q_QML_EXPORT bool saveToDisk (const QUrl &unitUrl, qxp::function_ref< QByteArray() const > sourceChecksum, QString *errorString) const
bool persistRuntimeData (const QUrl &unitUrl, QString *errorString)
bool writeWithRuntimeData (const QUrl &unitUrl, Unit *header, QString *errorString) const
int importCount () const
const CompiledData::Import * importAt (int indexindex) const
Q_QML_EXPORT QStringList moduleRequests () const
QUrl url () const
QUrl finalUrl () const
ResolvedTypeReference * resolvedType (int idid) const
ResolvedTypeReference * resolvedType (QMetaType typetype) const
QQmlPropertyCache::ConstPtr rootPropertyCache () const
int objectCount () const
int resolvedIndex (int indexindex) const
const CompiledObject * objectAt (int indexindex) const
const RuntimeObject * runtimeObjectAt (int indexindex) const
bool objectHasDeferredBindings (int objectIndex) const
bool objectHasCustomParserBindings (int objectIndex) const
bool objectIsPopulatedByDeferredBinding (int objectIndex) const
bool objectIsComponent (int objectIndex) const
int objectId (int objectIndex) const
quint32 namedObjectCountInComponent (int objectIndex) const
bool bindingIsDeferred (int objectIndex, int bindingIndexbindingIndex) const
bool bindingIsCustomParser (int objectIndex, int bindingIndexbindingIndex) const
bool bindingIsSignalHandlerExpression (int objectIndex, int bindingIndexbindingIndex) const
bool bindingIsSignalHandlerObject (int objectIndex, int bindingIndexbindingIndex) const
bool bindingIsPropertyObserver (int objectIndex, int bindingIndexbindingIndex) const
bool bindingIsSignalHandler (int objectIndex, int bindingIndexbindingIndex) const
std::optional< int > bindingFoldedEnum (int objectIndex, int bindingIndexbindingIndex) const
const RuntimeBindingIndex * bindingApplicationOrder (int objectIndex) const
void allocateRuntimeData ()
quint32_le * allocateNamedObjectsInComponent (int objectIndex, quint32 countcount)
void clearRuntimeData ()
bool hasImmutableRuntimeData () const
RuntimeDataBlock * runtimeDataForWrite ()
int implicitComponentForObject (int indexindex) const
int inlineComponentId (const QString &inlineComponentName) const
void finalizeCompositeType (const QQmlType &typetype)
ListPropertyAssignBehavior listPropertyAssignBehavior () const
bool ignoresFunctionSignature () const
bool nativeMethodsAcceptThisObjects () const
bool valueTypesAreCopied () const
bool valueTypesAreAddressable () const
bool valueTypesAreAssertable () const
bool componentsAreBound () const
bool isESModule () const
bool isSharedLibrary () const
FunctionIterator objectFunctionsBegin (const CompiledObject *objectobject) const
FunctionIterator objectFunctionsEnd (const CompiledObject *objectobject) const
QQmlType qmlTypeForComponent (const QString &inlineComponentName=QString()) const
QMetaType metaType () const
Public Member Functions inherited from QQmlRefCounted< CompilationUnit >
void release () const
Public Member Functions inherited from QQmlRefCount
 QQmlRefCount ()
void addref () const
int count () const

Static Public Member Functions

static Q_QML_EXPORT QString localCacheFilePath (const QUrl &url)

Public Attributes

const Unit * data = nullptr
const QmlUnit * qmlData = nullptr
const RuntimeDataBlock * runtimeData = nullptr
QByteArray runtimeDataStorage
QStringList dynamicStrings
const QQmlPrivate::AOTCompiledFunction * aotCompiledFunctions = nullptr
LookupValidationFn validateLookupSignatures = nullptr
const StaticValue * constants = nullptr
std::unique_ptr< CompilationUnitMapper > backingFile
QHash< QString, InlineComponentData > inlineComponentData
QList< BindingPropertyData > bindingPropertyDataPerObject
ResolvedTypeReferenceMap resolvedTypes
QQmlRefPointer< QQmlTypeNameCache > typeNameCache
QQmlPropertyCacheVector propertyCaches
QQmlType qmlType
QList< QQmlRefPointer< QQmlScriptData > > dependentScripts

Additional Inherited Members

Protected Member Functions inherited from QQmlRefCounted< CompilationUnit >
 ~QQmlRefCounted ()

Detailed Description

Definition at line 1515 of file qv4compileddata_p.h.

Member Typedef Documentation

◆ CompiledBinding

◆ CompiledFunction

◆ CompiledObject

◆ IdToObjectMap

Definition at line 1555 of file qv4compileddata_p.h.

Member Enumeration Documentation

◆ ListPropertyAssignBehavior

Enumerator
Append 
Replace 
ReplaceIfNotDefault 

Definition at line 1859 of file qv4compileddata_p.h.

Constructor & Destructor Documentation

◆ CompilationUnit() [1/2]

QV4::CompiledData::CompilationUnit::CompilationUnit ( const Unit * unitData,
const QQmlPrivate::AOTCompiledFunction * aotCompiledFunctions,
LookupValidationFn validateLookupSignatures,
const QString & fileName = QString(),
const QString & finalUrlString = QString() )
inlineexplicit

Definition at line 1557 of file qv4compileddata_p.h.

References aotCompiledFunctions.

◆ CompilationUnit() [2/2]

QV4::CompiledData::CompilationUnit::CompilationUnit ( const Unit * unitData = nullptr,
const QString & fileName = QString(),
const QString & finalUrlString = QString() )

Definition at line 93 of file qv4compileddata.cpp.

◆ ~CompilationUnit()

QV4::CompiledData::CompilationUnit::~CompilationUnit ( )

Definition at line 99 of file qv4compileddata.cpp.

References data, qmlData, QV4::CompiledData::Unit::qmlUnit(), resolvedTypes, and QV4::CompiledData::Unit::StaticData.

Here is the call graph for this function:

Member Function Documentation

◆ allocateNamedObjectsInComponent()

quint32_le * QV4::CompiledData::CompilationUnit::allocateNamedObjectsInComponent ( int objectIndex,
quint32 count )

Allocate a table of count named objects in object objectIndex.

We only know how many objects are named in each component once we have resolved the components. Therefore, the tables are appended to the runtime data as we go.

Definition at line 400 of file qv4compileddata.cpp.

References QV4::CompiledData::RuntimeDataBlock::objectAt(), resolvedIndex(), and runtimeData.

Here is the call graph for this function:

◆ allocateRuntimeData()

void QV4::CompiledData::CompilationUnit::allocateRuntimeData ( )

Definition at line 351 of file qv4compileddata.cpp.

References QV4::CompiledData::RuntimeDataBlock::dependencyMD5Checksum, QV4::CompiledData::QmlUnit::objectAt(), qmlData, and runtimeData.

Here is the call graph for this function:

◆ bindingApplicationOrder()

const RuntimeBindingIndex * QV4::CompiledData::CompilationUnit::bindingApplicationOrder ( int objectIndex) const
inline

Definition at line 1808 of file qv4compileddata_p.h.

References runtimeObjectAt().

Here is the call graph for this function:

◆ bindingFoldedEnum()

std::optional< int > QV4::CompiledData::CompilationUnit::bindingFoldedEnum ( int objectIndex,
int bindingIndex ) const
inline

Definition at line 1800 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::bindingTable(), QV4::CompiledData::RuntimeBinding::IsFoldedEnum, and runtimeObjectAt().

Here is the call graph for this function:

◆ bindingIsCustomParser()

bool QV4::CompiledData::CompilationUnit::bindingIsCustomParser ( int objectIndex,
int bindingIndex ) const
inline

Definition at line 1769 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::bindingTable(), QV4::CompiledData::RuntimeBinding::IsCustomParserBinding, and runtimeObjectAt().

Here is the call graph for this function:

◆ bindingIsDeferred()

bool QV4::CompiledData::CompilationUnit::bindingIsDeferred ( int objectIndex,
int bindingIndex ) const
inline

Definition at line 1763 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::bindingTable(), QV4::CompiledData::RuntimeBinding::IsDeferredBinding, and runtimeObjectAt().

Here is the call graph for this function:

◆ bindingIsPropertyObserver()

bool QV4::CompiledData::CompilationUnit::bindingIsPropertyObserver ( int objectIndex,
int bindingIndex ) const
inline

Definition at line 1787 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::bindingTable(), QV4::CompiledData::RuntimeBinding::IsPropertyObserver, and runtimeObjectAt().

Here is the call graph for this function:

◆ bindingIsSignalHandler()

bool QV4::CompiledData::CompilationUnit::bindingIsSignalHandler ( int objectIndex,
int bindingIndex ) const
inline

Definition at line 1793 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::bindingTable(), QV4::CompiledData::RuntimeBinding::IsPropertyObserver, QV4::CompiledData::RuntimeBinding::IsSignalHandlerExpression, QV4::CompiledData::RuntimeBinding::IsSignalHandlerObject, and runtimeObjectAt().

Here is the call graph for this function:

◆ bindingIsSignalHandlerExpression()

bool QV4::CompiledData::CompilationUnit::bindingIsSignalHandlerExpression ( int objectIndex,
int bindingIndex ) const
inline

Definition at line 1775 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::bindingTable(), QV4::CompiledData::RuntimeBinding::IsSignalHandlerExpression, and runtimeObjectAt().

Here is the call graph for this function:

◆ bindingIsSignalHandlerObject()

bool QV4::CompiledData::CompilationUnit::bindingIsSignalHandlerObject ( int objectIndex,
int bindingIndex ) const
inline

Definition at line 1781 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::bindingTable(), QV4::CompiledData::RuntimeBinding::IsSignalHandlerObject, and runtimeObjectAt().

Here is the call graph for this function:

◆ bindingValueAsNumber()

double QV4::CompiledData::CompilationUnit::bindingValueAsNumber ( const CompiledData::Binding * binding) const
inline

Definition at line 1650 of file qv4compileddata_p.h.

References QV4::CompiledData::Binding::type(), and QV4::CompiledData::Binding::Type_Number.

Here is the call graph for this function:

◆ bindingValueAsScriptString()

QString QV4::CompiledData::CompilationUnit::bindingValueAsScriptString ( const CompiledData::Binding * binding) const
inline

Definition at line 1643 of file qv4compileddata_p.h.

References QV4::CompiledData::Binding::type(), and QV4::CompiledData::Binding::Type_String.

Here is the call graph for this function:

◆ bindingValueAsString()

QString QV4::CompiledData::CompilationUnit::bindingValueAsString ( const CompiledData::Binding * binding) const
inline

Definition at line 1619 of file qv4compileddata_p.h.

References QV4::CompiledData::Binding::type(), QV4::CompiledData::Binding::Type_Boolean, QV4::CompiledData::Binding::Type_Invalid, and QV4::CompiledData::Binding::Type_Null.

Here is the call graph for this function:

◆ clearRuntimeData()

void QV4::CompiledData::CompilationUnit::clearRuntimeData ( )
inline

Definition at line 1816 of file qv4compileddata_p.h.

References runtimeData.

◆ componentsAreBound()

bool QV4::CompiledData::CompilationUnit::componentsAreBound ( ) const
inline

Definition at line 1895 of file qv4compileddata_p.h.

References QV4::CompiledData::Unit::ComponentsBound, and unitData().

Here is the call graph for this function:

◆ fileName()

QString QV4::CompiledData::CompilationUnit::fileName ( ) const
inline

Definition at line 1616 of file qv4compileddata_p.h.

◆ finalizeCompositeType()

void QV4::CompiledData::CompiledData::CompilationUnit::finalizeCompositeType ( const QQmlType & type)

Definition at line 306 of file qv4compileddata.cpp.

References objectAt(), and resolvedTypes.

Here is the call graph for this function:

◆ finalUrl()

QUrl QV4::CompiledData::CompilationUnit::finalUrl ( ) const
inline

Definition at line 1695 of file qv4compileddata_p.h.

◆ finalUrlString()

QString QV4::CompiledData::CompilationUnit::finalUrlString ( ) const
inline

Definition at line 1617 of file qv4compileddata_p.h.

◆ hasImmutableRuntimeData()

bool QV4::CompiledData::CompilationUnit::hasImmutableRuntimeData ( ) const
inline

Definition at line 1822 of file qv4compileddata_p.h.

References runtimeData.

◆ ignoresFunctionSignature()

bool QV4::CompiledData::CompilationUnit::ignoresFunctionSignature ( ) const
inline

Definition at line 1870 of file qv4compileddata_p.h.

References QV4::CompiledData::Unit::FunctionSignaturesIgnored, and unitData().

Here is the call graph for this function:

◆ implicitComponentForObject()

int QV4::CompiledData::CompilationUnit::implicitComponentForObject ( int index) const
inline

Definition at line 1833 of file qv4compileddata_p.h.

References objectCount().

Here is the call graph for this function:

◆ importAt()

const CompiledData::Import * QV4::CompiledData::CompilationUnit::importAt ( int index) const
inline

Definition at line 1677 of file qv4compileddata_p.h.

References QV4::CompiledData::QmlUnit::importAt(), and qmlData.

Here is the call graph for this function:

◆ importCount()

int QV4::CompiledData::CompilationUnit::importCount ( ) const
inline

Definition at line 1676 of file qv4compileddata_p.h.

References qmlData.

◆ inlineComponentId()

int QV4::CompiledData::CompilationUnit::inlineComponentId ( const QString & inlineComponentName) const
inline

Definition at line 1844 of file qv4compileddata_p.h.

References QV4::CompiledData::QmlUnit::objectAt(), and qmlData.

Here is the call graph for this function:

◆ isESModule()

bool QV4::CompiledData::CompilationUnit::isESModule ( ) const
inline

Definition at line 1900 of file qv4compileddata_p.h.

References QV4::CompiledData::Unit::IsESModule, and unitData().

Here is the call graph for this function:

◆ isSharedLibrary()

bool QV4::CompiledData::CompilationUnit::isSharedLibrary ( ) const
inline

Definition at line 1905 of file qv4compileddata_p.h.

References QV4::CompiledData::Unit::IsSharedLibrary, and unitData().

Here is the call graph for this function:

◆ listPropertyAssignBehavior()

ListPropertyAssignBehavior QV4::CompiledData::CompilationUnit::listPropertyAssignBehavior ( ) const
inline

Definition at line 1860 of file qv4compileddata_p.h.

References Append, QV4::CompiledData::Unit::isListPropertyAssignReplace(), QV4::CompiledData::Unit::isListPropertyAssignReplaceIfNotDefault(), Replace, ReplaceIfNotDefault, and unitData().

Here is the call graph for this function:

◆ loadFromDisk()

bool QV4::CompiledData::CompilationUnit::loadFromDisk ( const QUrl & url,
const QDateTime & sourceTimeStamp,
qxp::function_ref< QByteArray() const > sourceChecksum,
QString * errorString )

Definition at line 143 of file qv4compileddata.cpp.

◆ localCacheFilePath()

QString QV4::CompiledData::CompilationUnit::localCacheFilePath ( const QUrl & url)
static

Definition at line 118 of file qv4compileddata.cpp.

◆ metaType()

QMetaType QV4::CompiledData::CompilationUnit::metaType ( ) const
inline

Definition at line 1939 of file qv4compileddata_p.h.

◆ moduleRequests()

QStringList QV4::CompiledData::CompilationUnit::moduleRequests ( ) const

Definition at line 287 of file qv4compileddata.cpp.

◆ namedObjectCountInComponent()

quint32 QV4::CompiledData::CompilationUnit::namedObjectCountInComponent ( int objectIndex) const
inline

Definition at line 1758 of file qv4compileddata_p.h.

References runtimeObjectAt().

Here is the call graph for this function:

◆ nativeMethodsAcceptThisObjects()

bool QV4::CompiledData::CompilationUnit::nativeMethodsAcceptThisObjects ( ) const
inline

Definition at line 1875 of file qv4compileddata_p.h.

References QV4::CompiledData::Unit::NativeMethodsAcceptThisObject, and unitData().

Here is the call graph for this function:

◆ objectAt()

const CompiledObject * QV4::CompiledData::CompilationUnit::objectAt ( int index) const
inline

Definition at line 1725 of file qv4compileddata_p.h.

References QV4::CompiledData::QmlUnit::objectAt(), qmlData, and resolvedIndex().

Referenced by finalizeCompositeType().

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

◆ objectCount()

int QV4::CompiledData::CompilationUnit::objectCount ( ) const
inline

Definition at line 1712 of file qv4compileddata_p.h.

References qmlData.

Referenced by implicitComponentForObject(), and resolvedIndex().

Here is the caller graph for this function:

◆ objectFunctionsBegin()

FunctionIterator QV4::CompiledData::CompilationUnit::objectFunctionsBegin ( const CompiledObject * object) const
inline

Definition at line 1928 of file qv4compileddata_p.h.

References QV4::CompiledData::CompilationUnit::FunctionIterator::FunctionIterator(), and unitData().

Here is the call graph for this function:

◆ objectFunctionsEnd()

FunctionIterator QV4::CompiledData::CompilationUnit::objectFunctionsEnd ( const CompiledObject * object) const
inline

Definition at line 1933 of file qv4compileddata_p.h.

References unitData().

Here is the call graph for this function:

◆ objectHasCustomParserBindings()

bool QV4::CompiledData::CompilationUnit::objectHasCustomParserBindings ( int objectIndex) const
inline

Definition at line 1741 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::HasCustomParserBindings, and runtimeObjectAt().

Here is the call graph for this function:

◆ objectHasDeferredBindings()

bool QV4::CompiledData::CompilationUnit::objectHasDeferredBindings ( int objectIndex) const
inline

Definition at line 1736 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::HasDeferredBindings, and runtimeObjectAt().

Here is the call graph for this function:

◆ objectId()

int QV4::CompiledData::CompilationUnit::objectId ( int objectIndex) const
inline

Definition at line 1756 of file qv4compileddata_p.h.

References runtimeObjectAt().

Here is the call graph for this function:

◆ objectIsComponent()

bool QV4::CompiledData::CompilationUnit::objectIsComponent ( int objectIndex) const
inline

Definition at line 1751 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::IsComponent, and runtimeObjectAt().

Here is the call graph for this function:

◆ objectIsPopulatedByDeferredBinding()

bool QV4::CompiledData::CompilationUnit::objectIsPopulatedByDeferredBinding ( int objectIndex) const
inline

Definition at line 1746 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeObject::PopulatedByDeferredBinding, and runtimeObjectAt().

Here is the call graph for this function:

◆ persistRuntimeData()

bool QV4::CompiledData::CompilationUnit::persistRuntimeData ( const QUrl & unitUrl,
QString * errorString )

Definition at line 237 of file qv4compileddata.cpp.

References unitData().

Here is the call graph for this function:

◆ qmlTypeForComponent()

QQmlType QV4::CompiledData::CompilationUnit::qmlTypeForComponent ( const QString & inlineComponentName = QString()) const

Definition at line 344 of file qv4compileddata.cpp.

◆ resolvedIndex()

int QV4::CompiledData::CompilationUnit::resolvedIndex ( int index) const
inline

Definition at line 1716 of file qv4compileddata_p.h.

References objectCount().

Referenced by allocateNamedObjectsInComponent(), objectAt(), and runtimeObjectAt().

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

◆ resolvedType() [1/2]

ResolvedTypeReference * QV4::CompiledData::CompilationUnit::resolvedType ( int id) const
inline

Definition at line 1702 of file qv4compileddata_p.h.

References resolvedTypes.

◆ resolvedType() [2/2]

ResolvedTypeReference * QV4::CompiledData::CompilationUnit::resolvedType ( QMetaType type) const

Definition at line 296 of file qv4compileddata.cpp.

◆ rootPropertyCache()

QQmlPropertyCache::ConstPtr QV4::CompiledData::CompilationUnit::rootPropertyCache ( ) const
inline

Definition at line 1705 of file qv4compileddata_p.h.

◆ runtimeDataForWrite()

RuntimeDataBlock * QV4::CompiledData::CompilationUnit::runtimeDataForWrite ( )
inline

Definition at line 1824 of file qv4compileddata_p.h.

◆ runtimeObjectAt()

const RuntimeObject * QV4::CompiledData::CompilationUnit::runtimeObjectAt ( int index) const
inline

Definition at line 1730 of file qv4compileddata_p.h.

References QV4::CompiledData::RuntimeDataBlock::objectAt(), resolvedIndex(), and runtimeData.

Referenced by bindingApplicationOrder(), bindingFoldedEnum(), bindingIsCustomParser(), bindingIsDeferred(), bindingIsPropertyObserver(), bindingIsSignalHandler(), bindingIsSignalHandlerExpression(), bindingIsSignalHandlerObject(), namedObjectCountInComponent(), objectHasCustomParserBindings(), objectHasDeferredBindings(), objectId(), objectIsComponent(), and objectIsPopulatedByDeferredBinding().

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

◆ saveToDisk()

bool QV4::CompiledData::CompilationUnit::saveToDisk ( const QUrl & unitUrl,
qxp::function_ref< QByteArray() const > sourceChecksum,
QString * errorString ) const

Definition at line 209 of file qv4compileddata.cpp.

References QV4::CompiledData::Unit::sourceChecksum, and unitData().

Here is the call graph for this function:

◆ setUnitData()

void QV4::CompiledData::CompilationUnit::setUnitData ( const Unit * unitData,
const QmlUnit * qmlUnit = nullptr,
const QString & fileName = QString(),
const QString & finalUrlString = QString() )
inline

Definition at line 1576 of file qv4compileddata_p.h.

References data, qmlData, and QV4::CompiledData::Unit::qmlUnit().

Here is the call graph for this function:

◆ stringAt()

QString QV4::CompiledData::CompilationUnit::stringAt ( uint index) const
inline

Definition at line 1606 of file qv4compileddata_p.h.

References data.

◆ unitData()

const Unit * QV4::CompiledData::CompilationUnit::unitData ( ) const
inline

Definition at line 1574 of file qv4compileddata_p.h.

References data.

Referenced by componentsAreBound(), ignoresFunctionSignature(), isESModule(), isSharedLibrary(), listPropertyAssignBehavior(), nativeMethodsAcceptThisObjects(), objectFunctionsBegin(), objectFunctionsEnd(), persistRuntimeData(), saveToDisk(), valueTypesAreAddressable(), valueTypesAreAssertable(), valueTypesAreCopied(), and writeWithRuntimeData().

Here is the caller graph for this function:

◆ url()

QUrl QV4::CompiledData::CompilationUnit::url ( ) const
inline

Definition at line 1688 of file qv4compileddata_p.h.

◆ valueTypesAreAddressable()

bool QV4::CompiledData::CompilationUnit::valueTypesAreAddressable ( ) const
inline

Definition at line 1885 of file qv4compileddata_p.h.

References unitData(), and QV4::CompiledData::Unit::ValueTypesAddressable.

Here is the call graph for this function:

◆ valueTypesAreAssertable()

bool QV4::CompiledData::CompilationUnit::valueTypesAreAssertable ( ) const
inline

Definition at line 1890 of file qv4compileddata_p.h.

References unitData(), and QV4::CompiledData::Unit::ValueTypesAssertable.

Here is the call graph for this function:

◆ valueTypesAreCopied()

bool QV4::CompiledData::CompilationUnit::valueTypesAreCopied ( ) const
inline

Definition at line 1880 of file qv4compileddata_p.h.

References unitData(), and QV4::CompiledData::Unit::ValueTypesCopied.

Here is the call graph for this function:

◆ writeWithRuntimeData()

bool QV4::CompiledData::CompilationUnit::writeWithRuntimeData ( const QUrl & unitUrl,
Unit * header,
QString * errorString ) const

Writes the base unit with the given header, followed by the runtime data. The base unit may already carry (older) runtime data. We drop that and append our current runtime data. We keep the md5Checksum: It identifies the base unit and other units depend on it.

Definition at line 260 of file qv4compileddata.cpp.

References QV4::CompiledData::Unit::StaticData, and unitData().

Here is the call graph for this function:

Member Data Documentation

◆ aotCompiledFunctions

const QQmlPrivate::AOTCompiledFunction* QV4::CompiledData::CompilationUnit::aotCompiledFunctions = nullptr

Definition at line 1525 of file qv4compileddata_p.h.

Referenced by CompilationUnit().

◆ backingFile

std::unique_ptr<CompilationUnitMapper> QV4::CompiledData::CompilationUnit::backingFile

Definition at line 1531 of file qv4compileddata_p.h.

◆ bindingPropertyDataPerObject

QList<BindingPropertyData> QV4::CompiledData::CompilationUnit::bindingPropertyDataPerObject

Definition at line 1538 of file qv4compileddata_p.h.

◆ constants

const StaticValue* QV4::CompiledData::CompilationUnit::constants = nullptr

Definition at line 1529 of file qv4compileddata_p.h.

◆ data

const Unit* QV4::CompiledData::CompilationUnit::data = nullptr

Definition at line 1519 of file qv4compileddata_p.h.

Referenced by ~CompilationUnit(), setUnitData(), stringAt(), and unitData().

◆ dependentScripts

QList<QQmlRefPointer<QQmlScriptData> > QV4::CompiledData::CompilationUnit::dependentScripts

Definition at line 1547 of file qv4compileddata_p.h.

◆ dynamicStrings

QStringList QV4::CompiledData::CompilationUnit::dynamicStrings

Definition at line 1524 of file qv4compileddata_p.h.

◆ inlineComponentData

QHash<QString, InlineComponentData> QV4::CompiledData::CompilationUnit::inlineComponentData

Definition at line 1533 of file qv4compileddata_p.h.

◆ propertyCaches

QQmlPropertyCacheVector QV4::CompiledData::CompilationUnit::propertyCaches

Definition at line 1543 of file qv4compileddata_p.h.

◆ qmlData

const QmlUnit* QV4::CompiledData::CompilationUnit::qmlData = nullptr

◆ qmlType

QQmlType QV4::CompiledData::CompilationUnit::qmlType

Definition at line 1545 of file qv4compileddata_p.h.

◆ resolvedTypes

ResolvedTypeReferenceMap QV4::CompiledData::CompilationUnit::resolvedTypes

Definition at line 1540 of file qv4compileddata_p.h.

Referenced by ~CompilationUnit(), finalizeCompositeType(), and resolvedType().

◆ runtimeData

const RuntimeDataBlock* QV4::CompiledData::CompilationUnit::runtimeData = nullptr

◆ runtimeDataStorage

QByteArray QV4::CompiledData::CompilationUnit::runtimeDataStorage

Definition at line 1522 of file qv4compileddata_p.h.

◆ typeNameCache

QQmlRefPointer<QQmlTypeNameCache> QV4::CompiledData::CompilationUnit::typeNameCache

Definition at line 1541 of file qv4compileddata_p.h.

◆ validateLookupSignatures

LookupValidationFn QV4::CompiledData::CompilationUnit::validateLookupSignatures = nullptr

Definition at line 1526 of file qv4compileddata_p.h.


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