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::ExecutableCompilationUnit Class Referencefinal
module nullptr

#include <qv4executablecompilationunit_p.h>

+ Inheritance diagram for QV4::ExecutableCompilationUnit:
+ Collaboration diagram for QV4::ExecutableCompilationUnit:

Classes

struct  TranslationDataIndex
 

Public Types

using CompiledObject = CompiledData::CompilationUnit::CompiledObject
 
using CompiledFunction = CompiledData::CompilationUnit::CompiledFunction
 
using CompiledBinding = CompiledData::CompilationUnit::CompiledBinding
 
using IdToObjectMap = CompiledData::CompilationUnit::IdToObjectMap
 

Public Member Functions

QString finalUrlString () const
 
QString fileName () const
 
QUrl url () const
 
QUrl finalUrl () const
 
QQmlRefPointer< QQmlTypeNameCachetypeNameCache () const
 
QQmlPropertyCacheVectorpropertyCachesPtr ()
 
QQmlPropertyCache::ConstPtr rootPropertyCache () const
 
IdentifierHash namedObjectsPerComponent (int componentObjectIndex)
 
int totalBindingsCount () const
 
int totalParserStatusCount () const
 
int totalObjectCount () const
 
ResolvedTypeReferenceresolvedType (int id) const
 
QQmlType qmlTypeForComponent (const QString &inlineComponentName=QString()) const
 
QMetaType metaType () const
 
int inlineComponentId (const QString &inlineComponentName) const
 
bool nativeMethodsAcceptThisObjects () const
 
bool ignoresFunctionSignature () const
 
bool valueTypesAreCopied () const
 
bool valueTypesAreAddressable () const
 
bool componentsAreBound () const
 
bool isESModule () const
 
int objectCount () const
 
const CompiledObjectobjectAt (int index) const
 
Heap::Object * templateObjectAt (int index) const
 
Heap::Module * instantiate ()
 
const ValueresolveExport (QV4::String *exportName)
 
QStringList exportedNames () const
 
void evaluate ()
 
void evaluateModuleRequests ()
 
void mark (MarkStack *markStack) const
 
void markObjects (MarkStack *markStack) const
 
QString bindingValueAsString (const CompiledData::Binding *binding) const
 
double bindingValueAsNumber (const CompiledData::Binding *binding) const
 
QString bindingValueAsScriptString (const CompiledData::Binding *binding) const
 
QString translateFrom (TranslationDataIndex index) const
 
Heap::Module * module () const
 
void setModule (Heap::Module *module)
 
const CompiledData::UnitunitData () const
 
QString stringAt (uint index) const
 
const QVector< QQmlRefPointer< QQmlScriptData > > * dependentScriptsPtr () const
 
const CompiledData::BindingPropertyDatabindingPropertyDataPerObjectAt (qsizetype objectIndex) const
 
const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & baseCompilationUnit () const
 
QV4::FunctionrootFunction ()
 
void populate ()
 
void clear ()
 
- Public Member Functions inherited from QQmlRefCounted< ExecutableCompilationUnit >
void release () const
 
- Public Member Functions inherited from QQmlRefCount
 QQmlRefCount ()
 
void addref () const
 
int count () const
 

Public Attributes

ExecutionEngineengine = nullptr
 
QHash< int, IdentifierHashnamedObjectsPerComponentCache
 
- Public Attributes inherited from QV4::CompilationUnitRuntimeData
Heap::String ** runtimeStrings = nullptr
 
const StaticValueconstants = nullptr
 
QV4::StaticValueruntimeRegularExpressions = nullptr
 
Heap::InternalClass ** runtimeClasses = nullptr
 
const StaticValue ** imports = nullptr
 
QV4::LookupruntimeLookups = nullptr
 
QVector< QV4::Function * > runtimeFunctions
 
QVector< QV4::Heap::InternalClass * > runtimeBlocks
 
QVector< QV4::Heap::Object * > templateObjects
 

Protected Member Functions

quint32 totalStringCount () const
 
- Protected Member Functions inherited from QQmlRefCounted< ExecutableCompilationUnit >
 ~QQmlRefCounted ()
 

Friends

class QQmlRefCounted< ExecutableCompilationUnit >
 
class QQmlRefPointer< ExecutableCompilationUnit >
 
struct ExecutionEngine
 

Detailed Description

Definition at line 64 of file qv4executablecompilationunit_p.h.

Member Typedef Documentation

◆ CompiledBinding

◆ CompiledFunction

◆ CompiledObject

◆ IdToObjectMap

Member Function Documentation

◆ baseCompilationUnit()

const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & QV4::ExecutableCompilationUnit::baseCompilationUnit ( ) const
inline

Definition at line 208 of file qv4executablecompilationunit_p.h.

Referenced by QV4::Function::Function(), QQmlPrivate::compositeListMetaType(), and QQmlPrivate::compositeMetaType().

+ Here is the caller graph for this function:

◆ bindingPropertyDataPerObjectAt()

const CompiledData::BindingPropertyData * QV4::ExecutableCompilationUnit::bindingPropertyDataPerObjectAt ( qsizetype objectIndex) const
inline

Definition at line 202 of file qv4executablecompilationunit_p.h.

Referenced by QQmlData::deferData().

+ Here is the caller graph for this function:

◆ bindingValueAsNumber()

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

Definition at line 173 of file qv4executablecompilationunit_p.h.

Referenced by QQuickPropertyChangesPrivate::decodeBinding().

+ Here is the caller graph for this function:

◆ bindingValueAsScriptString()

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

Definition at line 177 of file qv4executablecompilationunit_p.h.

◆ bindingValueAsString()

QString QV4::ExecutableCompilationUnit::bindingValueAsString ( const CompiledData::Binding * binding) const

Definition at line 649 of file qv4executablecompilationunit.cpp.

References Q_FALLTHROUGH, QV4::CompiledData::Binding::type(), and QV4::CompiledData::Binding::value.

Referenced by QQuickPropertyChangesPrivate::decodeBinding(), and StringOrTranslation::toString().

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

◆ clear()

void QV4::ExecutableCompilationUnit::clear ( )

Definition at line 242 of file qv4executablecompilationunit.cpp.

References i.

◆ componentsAreBound()

bool QV4::ExecutableCompilationUnit::componentsAreBound ( ) const
inline

Definition at line 137 of file qv4executablecompilationunit_p.h.

◆ dependentScriptsPtr()

const QVector< QQmlRefPointer< QQmlScriptData > > * QV4::ExecutableCompilationUnit::dependentScriptsPtr ( ) const
inline

Definition at line 197 of file qv4executablecompilationunit_p.h.

◆ evaluate()

void QV4::ExecutableCompilationUnit::evaluate ( )

Definition at line 620 of file qv4executablecompilationunit.cpp.

References engine, and Q_ASSERT.

◆ evaluateModuleRequests()

void QV4::ExecutableCompilationUnit::evaluateModuleRequests ( )

Definition at line 629 of file qv4executablecompilationunit.cpp.

References engine, Q_ASSERT, and request.

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

+ Here is the caller graph for this function:

◆ exportedNames()

QStringList QV4::ExecutableCompilationUnit::exportedNames ( ) const
inline

Definition at line 155 of file qv4executablecompilationunit_p.h.

◆ fileName()

QString QV4::ExecutableCompilationUnit::fileName ( ) const
inline

Definition at line 77 of file qv4executablecompilationunit_p.h.

◆ finalUrl()

QUrl QV4::ExecutableCompilationUnit::finalUrl ( ) const
inline

Definition at line 80 of file qv4executablecompilationunit_p.h.

Referenced by QQmlContextData::url().

+ Here is the caller graph for this function:

◆ finalUrlString()

QString QV4::ExecutableCompilationUnit::finalUrlString ( ) const
inline

Definition at line 76 of file qv4executablecompilationunit_p.h.

Referenced by QQmlContextData::urlString().

+ Here is the caller graph for this function:

◆ ignoresFunctionSignature()

bool QV4::ExecutableCompilationUnit::ignoresFunctionSignature ( ) const
inline

Definition at line 134 of file qv4executablecompilationunit_p.h.

Referenced by QV4::Function::Function().

+ Here is the caller graph for this function:

◆ inlineComponentId()

int QV4::ExecutableCompilationUnit::inlineComponentId ( const QString & inlineComponentName) const
inline

Definition at line 118 of file qv4executablecompilationunit_p.h.

Referenced by QQmlComponentPrivate::beginCreate(), QQmlComponentPrivate::completeLoadFromModule(), and QQmlComponentPrivate::incubateObject().

+ Here is the caller graph for this function:

◆ instantiate()

Heap::Module * QV4::ExecutableCompilationUnit::instantiate ( )

Definition at line 329 of file qv4executablecompilationunit.cpp.

References QV4::IdentifierTable::asPropertyKey(), engine, QV4::Scope::engine, errorMessage(), fileName, i, QV4::EngineBase::identifierTable, o, Q_ASSERT, QStringLiteral, QUrl::RemoveFragment, request, QUrl::setFragment(), QJSEngine::throwError(), QUrl::toString(), and url.

+ Here is the call graph for this function:

◆ isESModule()

bool QV4::ExecutableCompilationUnit::isESModule ( ) const
inline

Definition at line 138 of file qv4executablecompilationunit_p.h.

◆ mark()

void QV4::ExecutableCompilationUnit::mark ( MarkStack * markStack) const
inline

Definition at line 169 of file qv4executablecompilationunit_p.h.

◆ markObjects()

void QV4::ExecutableCompilationUnit::markObjects ( QV4::MarkStack * markStack) const

Definition at line 268 of file qv4executablecompilationunit.cpp.

References i, and o.

◆ metaType()

QMetaType QV4::ExecutableCompilationUnit::metaType ( ) const
inline

Definition at line 116 of file qv4executablecompilationunit_p.h.

◆ module()

Heap::Module * QV4::ExecutableCompilationUnit::module ( ) const
inline

Definition at line 190 of file qv4executablecompilationunit_p.h.

◆ namedObjectsPerComponent()

IdentifierHash QV4::ExecutableCompilationUnit::namedObjectsPerComponent ( int componentObjectIndex)
inline

Definition at line 269 of file qv4executablecompilationunit_p.h.

References QSet< T >::isEmpty(), it, namedObjectsPerComponentCache, Q_ASSERT, and Q_UNLIKELY.

+ Here is the call graph for this function:

◆ nativeMethodsAcceptThisObjects()

bool QV4::ExecutableCompilationUnit::nativeMethodsAcceptThisObjects ( ) const
inline

Definition at line 129 of file qv4executablecompilationunit_p.h.

◆ objectAt()

const CompiledObject * QV4::ExecutableCompilationUnit::objectAt ( int index) const
inline

Definition at line 141 of file qv4executablecompilationunit_p.h.

Referenced by QQmlVMEMetaObject::QQmlVMEMetaObject(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlData::deferData(), and QQmlContextData::initFromTypeCompilationUnit().

+ Here is the caller graph for this function:

◆ objectCount()

int QV4::ExecutableCompilationUnit::objectCount ( ) const
inline

Definition at line 140 of file qv4executablecompilationunit_p.h.

◆ populate()

◆ propertyCachesPtr()

QQmlPropertyCacheVector * QV4::ExecutableCompilationUnit::propertyCachesPtr ( )
inline

Definition at line 87 of file qv4executablecompilationunit_p.h.

◆ qmlTypeForComponent()

QQmlType QV4::ExecutableCompilationUnit::qmlTypeForComponent ( const QString & inlineComponentName = QString()) const
inline

Definition at line 111 of file qv4executablecompilationunit_p.h.

◆ resolvedType()

ResolvedTypeReference * QV4::ExecutableCompilationUnit::resolvedType ( int id) const
inline

Definition at line 106 of file qv4executablecompilationunit_p.h.

◆ resolveExport()

const Value * QV4::ExecutableCompilationUnit::resolveExport ( QV4::String * exportName)
inline

Definition at line 149 of file qv4executablecompilationunit_p.h.

◆ rootFunction()

QV4::Function * QV4::ExecutableCompilationUnit::rootFunction ( )
inline

Definition at line 213 of file qv4executablecompilationunit_p.h.

◆ rootPropertyCache()

QQmlPropertyCache::ConstPtr QV4::ExecutableCompilationUnit::rootPropertyCache ( ) const
inline

Definition at line 92 of file qv4executablecompilationunit_p.h.

◆ setModule()

void QV4::ExecutableCompilationUnit::setModule ( Heap::Module * module)
inline

Definition at line 191 of file qv4executablecompilationunit_p.h.

◆ stringAt()

QString QV4::ExecutableCompilationUnit::stringAt ( uint index) const
inline

Definition at line 195 of file qv4executablecompilationunit_p.h.

Referenced by QQuickPropertyChangesPrivate::decodeBinding().

+ Here is the caller graph for this function:

◆ templateObjectAt()

Heap::Object * QV4::ExecutableCompilationUnit::templateObjectAt ( int index) const

Definition at line 208 of file qv4executablecompilationunit.cpp.

References engine, i, o, Q_ASSERT, and QStringLiteral.

◆ totalBindingsCount()

int QV4::ExecutableCompilationUnit::totalBindingsCount ( ) const
inline

Definition at line 102 of file qv4executablecompilationunit_p.h.

◆ totalObjectCount()

int QV4::ExecutableCompilationUnit::totalObjectCount ( ) const
inline

Definition at line 104 of file qv4executablecompilationunit_p.h.

◆ totalParserStatusCount()

int QV4::ExecutableCompilationUnit::totalParserStatusCount ( ) const
inline

Definition at line 103 of file qv4executablecompilationunit_p.h.

◆ totalStringCount()

quint32 QV4::ExecutableCompilationUnit::totalStringCount ( ) const
inlineprotected

Definition at line 228 of file qv4executablecompilationunit_p.h.

◆ translateFrom()

QString QV4::ExecutableCompilationUnit::translateFrom ( TranslationDataIndex index) const

◆ typeNameCache()

QQmlRefPointer< QQmlTypeNameCache > QV4::ExecutableCompilationUnit::typeNameCache ( ) const
inline

Definition at line 82 of file qv4executablecompilationunit_p.h.

◆ unitData()

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

Definition at line 193 of file qv4executablecompilationunit_p.h.

Referenced by QV4::Runtime::CreateClass::call(), and QV4::Module::evaluate().

+ Here is the caller graph for this function:

◆ url()

QUrl QV4::ExecutableCompilationUnit::url ( ) const
inline

Definition at line 79 of file qv4executablecompilationunit_p.h.

References QUrl::url().

Referenced by QQmlIncubatorPrivate::incubate().

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

◆ valueTypesAreAddressable()

bool QV4::ExecutableCompilationUnit::valueTypesAreAddressable ( ) const
inline

Definition at line 136 of file qv4executablecompilationunit_p.h.

◆ valueTypesAreCopied()

bool QV4::ExecutableCompilationUnit::valueTypesAreCopied ( ) const
inline

Definition at line 135 of file qv4executablecompilationunit_p.h.

Friends And Related Symbol Documentation

◆ ExecutionEngine

Definition at line 72 of file qv4executablecompilationunit_p.h.

◆ QQmlRefCounted< ExecutableCompilationUnit >

friend class QQmlRefCounted< ExecutableCompilationUnit >
friend

Definition at line 54 of file qv4executablecompilationunit_p.h.

◆ QQmlRefPointer< ExecutableCompilationUnit >

friend class QQmlRefPointer< ExecutableCompilationUnit >
friend

Definition at line 54 of file qv4executablecompilationunit_p.h.

Member Data Documentation

◆ engine

◆ namedObjectsPerComponentCache

QHash<int, IdentifierHash> QV4::ExecutableCompilationUnit::namedObjectsPerComponentCache

Definition at line 99 of file qv4executablecompilationunit_p.h.

Referenced by namedObjectsPerComponent().


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