Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4 Namespace Reference

\qmltype Particle \inqmlmodule QtQuick.Particles More...

Namespaces

namespace  CompiledData
 
namespace  Compiler
 
namespace  Debugging
 
namespace  Heap
 
namespace  JIT
 
namespace  Moth
 
namespace  Profiling
 
namespace  Promise
 
namespace  WriteBarrier
 

Classes

struct  ArgumentsObject
 
struct  ArrayBuffer
 
struct  ArrayBufferCtor
 
struct  ArrayBufferPrototype
 
struct  ArrayCtor
 
struct  ArrayData
 
class  ArrayElementLessThan
 
struct  ArrayIteratorObject
 
struct  ArrayIteratorPrototype
 
struct  ArrayObject
 
struct  ArrayPrototype
 
struct  ArrayVTable
 
struct  ArrowFunction
 
struct  Atomics
 
class  Attr
 
class  BitVector
 
struct  BlockAllocator
 
struct  BooleanCtor
 
struct  BooleanObject
 
struct  BooleanPrototype
 
struct  BoundFunction
 
struct  CallArgs
 
struct  CallContext
 
struct  CallData
 
struct  CapabilitiesExecutorWrapper
 
class  CDATA
 
class  CharacterData
 
struct  Chunk
 
struct  ChunkAllocator
 
class  CompilationUnitMapper
 
struct  ComplexString
 
struct  ConsoleObject
 
struct  ConstructorFunction
 
struct  CppStackFrame
 
struct  CppStackFrameBase
 
struct  DataView
 
struct  DataViewCtor
 
struct  DataViewPrototype
 
struct  Date
 
struct  DateCtor
 
struct  DateObject
 
struct  DatePrototype
 
struct  DefaultClassConstructorFunction
 
struct  DelegateModelGroupFunction
 
class  Document
 
class  DocumentImpl
 
class  Element
 
struct  Encode
 
struct  EngineBase
 
struct  ErrorCtor
 
struct  ErrorObject
 
struct  ErrorPrototype
 
class  ESTable
 
struct  EvalErrorCtor
 
struct  EvalErrorObject
 
struct  EvalErrorPrototype
 
struct  EvalFunction
 
struct  ExceptionHandlerRecord
 
class  ExecutableAllocator
 
class  ExecutableCompilationUnit
 
struct  ExecutionContext
 
struct  ExecutionEngine
 
struct  ExecutionEngineCallDepthRecorder
 
struct  ForInIteratorObject
 
struct  ForInIteratorPrototype
 
struct  Function
 
struct  FunctionCtor
 
struct  FunctionData
 
struct  FunctionObject
 
struct  FunctionPrototype
 
struct  GeneratorFunction
 
struct  GeneratorFunctionCtor
 
struct  GeneratorObject
 
struct  GeneratorPrototype
 
struct  GlobalExtensions
 
struct  GlobalFunctions
 
struct  HeapItem
 
struct  HeapValue
 
struct  HugeItemAllocator
 
struct  IdentifierHash
 
struct  IdentifierHashData
 
struct  IdentifierHashEntry
 
struct  IdentifierTable
 
struct  IndexedBuiltinFunction
 
struct  InternalClass
 
struct  InternalClassEntry
 
struct  InternalClassTransition
 
struct  IntrinsicTypedArrayCtor
 
struct  IntrinsicTypedArrayPrototype
 
struct  IteratorPrototype
 
struct  JSCallArguments
 
struct  JSCallData
 
struct  JsonObject
 
class  JsonParser
 
struct  JSTypesStackFrame
 
struct  LazyScope
 
struct  Lookup
 
struct  Managed
 
struct  MapCtor
 
struct  MapIteratorObject
 
struct  MapIteratorPrototype
 
struct  MapObject
 
struct  MapPrototype
 
struct  MarkStack
 
struct  MathObject
 
struct  MemberData
 
struct  MemberFunction
 
struct  MemberGeneratorFunction
 
class  MemoryManager
 
struct  MemorySegment
 
struct  MetaTypesStackFrame
 
struct  ModelObject
 
struct  ModelObjectOwnPropertyKeyIterator
 
struct  Module
 
class  MultiplyWrappedQObjectMap
 
class  NamedNodeMap
 
struct  Node
 
class  NodeImpl
 
class  NodeList
 
class  NodePrototype
 
struct  NumberCtor
 
class  NumberLocale
 
struct  NumberObject
 
struct  NumberPrototype
 
struct  Object
 
struct  ObjectCtor
 
struct  ObjectItem
 
struct  ObjectIterator
 
struct  ObjectOwnPropertyKeyIterator
 
struct  ObjectPrototype
 
class  OptionalReturnedValue
 
struct  OwnPropertyKeyIterator
 
class  PersistentValue
 
struct  PersistentValueStorage
 
struct  PromiseCapability
 
struct  PromiseCtor
 
struct  PromiseExecutionState
 
struct  PromiseObject
 
struct  PromisePrototype
 
struct  PromiseReaction
 
struct  Property
 
struct  PropertyAttributes
 
struct  PropertyHash
 
struct  PropertyHashData
 
struct  PropertyIndex
 
struct  PropertyKey
 
struct  PropertyListPrototype
 
struct  Proxy
 
struct  ProxyFunctionObject
 
struct  ProxyObject
 
struct  QMetaObjectWrapper
 
struct  QmlContext
 
struct  QmlIncubatorObject
 
struct  QmlListWrapper
 
struct  QmlSignalHandler
 
struct  QObjectMethod
 
struct  QObjectSlotDispatcher
 
struct  QObjectWrapper
 
struct  QObjectWrapperOwnPropertyKeyIterator
 
struct  QQmlBindingFunction
 
struct  QQmlContextWrapper
 
struct  QQmlLocaleData
 
struct  QQmlScopedEnumWrapper
 
class  QQmlSqlDatabaseWrapper
 
struct  QQmlTypeWrapper
 
struct  QQmlValueTypeWrapper
 
struct  QQmlValueTypeWrapperOwnPropertyKeyIterator
 
struct  QQmlXMLHttpRequestCtor
 
struct  QQmlXMLHttpRequestWrapper
 
struct  QV4QPointer
 
struct  RangeErrorCtor
 
struct  RangeErrorObject
 
struct  RangeErrorPrototype
 
struct  ReferenceErrorCtor
 
struct  ReferenceErrorObject
 
struct  ReferenceErrorPrototype
 
struct  ReferenceObject
 
struct  Reflect
 
struct  RegExp
 
class  RegExpCache
 
struct  RegExpCacheKey
 
struct  RegExpCtor
 
struct  RegExpObject
 
struct  RegExpPrototype
 
struct  RejectWrapper
 
class  ResolvedTypeReference
 
struct  ResolvedTypeReferenceMap
 
struct  ResolveElementWrapper
 
struct  ResolveWrapper
 
struct  Runtime
 
class  RuntimeCodegen
 
struct  RuntimeHelpers
 
struct  Scope
 
struct  Scoped
 
struct  ScopedProperty
 
struct  ScopedPropertyKey
 
struct  ScopedStackFrame
 
struct  ScopedValue
 
struct  Script
 
struct  ScriptFunction
 
struct  Sequence
 
struct  SequenceCompareFunctor
 
struct  SequenceDefaultCompareFunctor
 
struct  SequenceOwnPropertyKeyIterator
 
struct  SequencePrototype
 
class  Serialize
 
struct  SetCtor
 
struct  SetIteratorObject
 
struct  SetIteratorPrototype
 
struct  SetObject
 
struct  SetPrototype
 
struct  SharedArrayBuffer
 
struct  SharedArrayBufferCtor
 
struct  SharedArrayBufferPrototype
 
struct  SharedInternalClassData
 
struct  SharedInternalClassDataPrivate
 
struct  SharedInternalClassDataPrivate< PropertyAttributes >
 
struct  SharedInternalClassDataPrivate< PropertyKey >
 
struct  SimpleArrayData
 
struct  SparseArray
 
struct  SparseArrayData
 
struct  SparseArrayNode
 
struct  StackFrame
 
struct  StackProperties
 
struct  StaticValue
 
struct  StrictArgumentsObject
 
struct  String
 
struct  StringCtor
 
struct  StringIteratorObject
 
struct  StringIteratorPrototype
 
struct  StringObject
 
struct  StringOrSymbol
 
struct  StringPrototype
 
struct  Symbol
 
struct  SymbolCtor
 
struct  SymbolObject
 
struct  SymbolPrototype
 
struct  SyntaxErrorCtor
 
struct  SyntaxErrorObject
 
struct  SyntaxErrorPrototype
 
class  Text
 
struct  TypedArray
 
struct  TypedArrayCtor
 
struct  TypedArrayOperations
 
struct  TypedArrayPrototype
 
struct  TypeErrorCtor
 
struct  TypeErrorObject
 
struct  TypeErrorPrototype
 
struct  UnwindCode
 
struct  UnwindInfo
 
struct  URIErrorCtor
 
struct  URIErrorObject
 
struct  URIErrorPrototype
 
struct  UrlCtor
 
struct  UrlObject
 
struct  UrlPrototype
 
struct  UrlSearchParamsCtor
 
struct  UrlSearchParamsObject
 
struct  UrlSearchParamsPrototype
 
struct  Value
 
struct  ValueArray
 
struct  VariantObject
 
struct  VariantPrototype
 
struct  VTable
 
struct  VTableBase
 
struct  VTableCallWithMetaTypesWrapper
 
struct  VTableCallWrapper
 
struct  WeakMapCtor
 
struct  WeakMapPrototype
 
struct  WeakSetCtor
 
struct  WeakSetPrototype
 
class  WeakValue
 

Typedefs

typedef quint64 ReturnedValue
 
typedef QVector< const QQmlPropertyData * > BindingPropertyData
 
typedef Scoped< StringScopedString
 
typedef Scoped< StringOrSymbolScopedStringOrSymbol
 
typedef Scoped< ObjectScopedObject
 
typedef Scoped< ArrayObjectScopedArrayObject
 
typedef Scoped< FunctionObjectScopedFunctionObject
 
typedef Scoped< ExecutionContextScopedContext
 
typedef QVector< StackFrameStackTrace
 
using QObjectBiPointer = QBiPointer< QObject, const QObject >
 
typedef uint Bool
 
using Primitive = Value
 
typedef QHash< const char *, int > MMStatsHash
 
typedef void(* ClassDestroyStatsCallback) (const char *)
 

Enumerations

enum class  ObjectLiteralArgument { Value , Method , Getter , Setter }
 
enum  UnwindOpcode : UINT8 {
  UWOP_PUSH_NONVOL = 0 , UWOP_ALLOC_LARGE , UWOP_ALLOC_SMALL , UWOP_SET_FPREG ,
  UWOP_SAVE_NONVOL , UWOP_SAVE_NONVOL_FAR , UWOP_SAVE_XMM128 = 8 , UWOP_SAVE_XMM128_FAR ,
  UWOP_PUSH_MACHFRAME
}
 
enum  Register : UINT8 {
  RAX = 0 , RCX , RDX , RBX ,
  RSP , RBP , RSI , RDI ,
  NONE = 15
}
 
enum class  GeneratorState {
  Undefined , SuspendedStart , SuspendedYield , Executing ,
  Completed
}
 
enum  PropertyFlag {
  Attr_Data = 0 , Attr_Accessor = 0x1 , Attr_NotWritable = 0x2 , Attr_NotEnumerable = 0x4 ,
  Attr_NotConfigurable = 0x8 , Attr_ReadOnly = Attr_NotWritable|Attr_NotEnumerable|Attr_NotConfigurable , Attr_ReadOnly_ButConfigurable = Attr_NotWritable|Attr_NotEnumerable , Attr_Invalid = 0xff
}
 
enum  IteratorKind { KeyIteratorKind , ValueIteratorKind , KeyValueIteratorKind }
 
enum  CoercionProblem { InsufficientAnnotation , InvalidListType }
 
enum  TypeHint { PREFERREDTYPE_HINT , NUMBER_HINT , STRING_HINT }
 
enum  TypedArrayType {
  Int8Array , UInt8Array , Int16Array , UInt16Array ,
  Int32Array , UInt32Array , UInt8ClampedArray , Float32Array ,
  Float64Array , NTypedArrayTypes
}
 
enum  AtomicModifyOps {
  AtomicAdd , AtomicAnd , AtomicExchange , AtomicOr ,
  AtomicSub , AtomicXor , NAtomicModifyOps
}
 
enum  { MinSlotsGCLimit = QV4::Chunk::AvailableSlots*16 , GCOverallocation = 200 }
 
enum  StackDefaults : qsizetype { DefaultSafetyMargin = 128 * 1024 , PlatformStackSize = 512 * 1024 , PlatformSafetyMargin = DefaultSafetyMargin }
 

Functions

 Q_STATIC_ASSERT (std::is_standard_layout< CallData >::value)
 
 Q_STATIC_ASSERT (offsetof(CallData, function)==CallData::Function *sizeof(StaticValue))
 
 Q_STATIC_ASSERT (offsetof(CallData, context)==CallData::Context *sizeof(StaticValue))
 
 Q_STATIC_ASSERT (offsetof(CallData, accumulator)==CallData::Accumulator *sizeof(StaticValue))
 
 Q_STATIC_ASSERT (offsetof(CallData, thisObject)==CallData::This *sizeof(StaticValue))
 
 Q_STATIC_ASSERT (offsetof(CallData, newTarget)==CallData::NewTarget *sizeof(StaticValue))
 
 Q_STATIC_ASSERT (offsetof(CallData, _argc)==CallData::Argc *sizeof(StaticValue))
 
 Q_STATIC_ASSERT (offsetof(CallData, args)==6 *sizeof(StaticValue))
 
 Q_STATIC_ASSERT (std::is_trivial_v< StaticValue >)
 
uint charToUInt (const QChar *ch)
 
uint charToUInt (const char *ch)
 
template<typename T >
uint stringToArrayIndex (const T *ch, const T *end)
 
uint stringToArrayIndex (const QString &str)
 
template<typename RandomAccessIterator , typename LessThan >
void sortHelper (RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
 
 Q_DECLARE_OPERATORS_FOR_FLAGS (ExecutionEngine::DiskCacheOptions)
 
 Q_STATIC_ASSERT (std::is_standard_layout< EngineBase >::value)
 
 Q_STATIC_ASSERT (offsetof(EngineBase, currentStackFrame)==0)
 
 Q_STATIC_ASSERT (offsetof(EngineBase, jsStackTop)==offsetof(EngineBase, currentStackFrame)+QT_POINTER_SIZE)
 
 Q_STATIC_ASSERT (offsetof(EngineBase, hasException)==offsetof(EngineBase, jsStackTop)+QT_POINTER_SIZE)
 
 Q_STATIC_ASSERT (offsetof(EngineBase, memoryManager)==offsetof(EngineBase, hasException)+8)
 
 Q_STATIC_ASSERT (offsetof(EngineBase, isInterrupted)+sizeof(EngineBase::isInterrupted)<=offsetof(EngineBase, hasException)+4)
 
 Q_STATIC_ASSERT (offsetof(EngineBase, globalObject) % QT_POINTER_SIZE==0)
 
static QString toString (QV4::ReturnedValue v)
 
static void dumpConstantTable (const StaticValue *constants, uint count)
 
template<typename F >
void processInlinComponentType (const QQmlType &type, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, F &&populateIcData)
 
static ReturnedValue doCall (QV4::Function *self, const QV4::Value *thisObject, const QV4::Value *argv, int argc, QV4::ExecutionContext *context)
 
static bool isSpecificType (const CompiledData::ParameterType &type)
 
 Q_STATIC_ASSERT (std::is_standard_layout< FunctionData >::value)
 
ReturnedValue checkedResult (QV4::ExecutionEngine *v4, ReturnedValue result)
 
void generateFunctionTable (Function *function, JSC::MacroAssemblerCodeRef *codeRef)
 
void destroyFunctionTable (Function *function, JSC::MacroAssemblerCodeRef *codeRef)
 
size_t exceptionHandlerSize ()
 
template<typename Args >
CallDatacallDatafromJS (const Scope &scope, const Args *args, const FunctionObject *f=nullptr)
 
void populateJSCallArguments (ExecutionEngine *v4, JSCallArguments &jsCall, int argc, void **args, const QMetaType *types)
 
template<typename Callable >
ReturnedValue convertAndCall (ExecutionEngine *engine, const QQmlPrivate::AOTCompiledFunction *aotFunction, const Value *thisObject, const Value *argv, int argc, Callable call)
 
template<typename Callable >
bool convertAndCall (ExecutionEngine *engine, QObject *thisObject, void **a, const QMetaType *types, int argc, Callable call)
 
ReturnedValue coerce (ExecutionEngine *engine, const Value &value, const QQmlType &qmlType, bool isList)
 
QObjectcoerceQObject (const Value &value, const QQmlType &qmlType)
 
Q_QML_PRIVATE_EXPORT void warnAboutCoercionToVoid (ExecutionEngine *engine, const Value &value, CoercionProblem problem)
 
ReturnedValue coerceListType (ExecutionEngine *engine, const Value &value, const QQmlType &qmlType)
 
template<typename Callable >
ReturnedValue coerceAndCall (ExecutionEngine *engine, const Function::JSTypedFunction *typedFunction, const CompiledData::Function *compiledFunction, const Value *thisObject, const Value *argv, int argc, Callable call)
 
bool operator== (const ObjectItem &a, const ObjectItem &b)
 
size_t qHash (const ObjectItem &i, size_t seed=0)
 
 Q_STATIC_ASSERT (std::is_standard_layout< Lookup >::value)
 
 Q_STATIC_ASSERT (offsetof(Lookup, getter)==0)
 
void setupQObjectLookup (Lookup *lookup, const QQmlData *ddata, const QQmlPropertyData *propertyData)
 
void setupQObjectLookup (Lookup *lookup, const QQmlData *ddata, const QQmlPropertyData *propertyData, const Object *self)
 
void setupQObjectLookup (Lookup *lookup, const QQmlData *ddata, const QQmlPropertyData *propertyData, const Object *self, const Object *qmlType)
 
void setupQObjectMethodLookup (Lookup *lookup, const QQmlData *ddata, const QQmlPropertyData *propertyData, const Object *self, Heap::QObjectMethod *method)
 
bool qualifiesForMethodLookup (const QQmlPropertyData *propertyData)
 
template<typename T >
int qYouForgotTheQ_MANAGED_Macro (T, T)
 
template<typename T1 , typename T2 >
void qYouForgotTheQ_MANAGED_Macro (T1, T2)
 
static QMLJS_READONLY ReturnedValue add_int32 (int a, int b)
 
static QMLJS_READONLY ReturnedValue sub_int32 (int a, int b)
 
static QMLJS_READONLY ReturnedValue mul_int32 (int a, int b)
 
template<>
ReturnedValue value_convert< Object > (ExecutionEngine *e, const Value &v)
 
static QPair< QObject *, int > extractQtSignal (const Value &value)
 
static Heap::ReferenceObject::Flags referenceFlags (ExecutionEngine *v4, const QQmlPropertyData &property)
 
static ReturnedValue loadProperty (ExecutionEngine *v4, Heap::Object *wrapper, QObject *object, const QQmlPropertyData &property)
 
static OptionalReturnedValue getDestroyOrToStringMethod (ExecutionEngine *v4, String *name, Heap::Object *qobj, bool *hasProperty=nullptr)
 
static OptionalReturnedValue getPropertyFromImports (ExecutionEngine *v4, String *name, const QQmlRefPointer< QQmlContextData > &qmlContext, QObject *qobj, bool *hasProperty=nullptr)
 
static void markChildQObjectsRecursively (QObject *parent, MarkStack *markStack)
 
 DEFINE_OBJECT_VTABLE (QObjectWrapper)
 
static ReturnedValue CallMethod (const QQmlObjectOrGadget &object, int index, QMetaType returnType, int argCount, const QMetaType *argTypes, ExecutionEngine *engine, CallData *callArgs, QMetaObject::Call callType=QMetaObject::InvokeMetaMethod)
 
template<typename Retrieve >
int MatchVariant (QMetaType conversionMetaType, Retrieve &&retrieve)
 
static int MatchScore (const Value &actual, QMetaType conversionMetaType)
 
static int numDefinedArguments (CallData *callArgs)
 
static ReturnedValue CallPrecise (const QQmlObjectOrGadget &object, const QQmlPropertyData &data, ExecutionEngine *engine, CallData *callArgs, QMetaObject::Call callType=QMetaObject::InvokeMetaMethod)
 
static const QQmlPropertyDataResolveOverloaded (const QQmlObjectOrGadget &object, const QQmlPropertyData *methods, int methodCount, ExecutionEngine *engine, CallData *callArgs)
 
 DEFINE_OBJECT_VTABLE (QObjectMethod)
 
 DEFINE_OBJECT_VTABLE (QMetaObjectWrapper)
 
 DEFINE_OBJECT_VTABLE (QmlSignalHandler)
 
bool canConvert (const QQmlPropertyCache *fromMo, const QQmlPropertyCache *toMo)
 
size_t qHash (const RegExpCacheKey &key, size_t seed=0) noexcept
 
template<typename T >
bool qtTypeInherits (const QMetaObject *mo)
 
static QV4::LookupruntimeLookup (Function *f, uint i)
 
static QV4::ReturnedValue doInstanceof (ExecutionEngine *engine, const Value &lval, const Value &rval)
 
static Heap::Stringconvert_to_string_add (ExecutionEngine *engine, Value value)
 
static Q_NEVER_INLINE ReturnedValue getElementIntFallback (ExecutionEngine *engine, const Value &object, uint idx)
 
static Q_NEVER_INLINE ReturnedValue getElementFallback (ExecutionEngine *engine, const Value &object, const Value &index)
 
static Q_NEVER_INLINE bool setElementFallback (ExecutionEngine *engine, const Value &object, const Value &index, const Value &value)
 
static ObjectgetSuperBase (Scope &scope)
 
static ReturnedValue throwPropertyIsNotAFunctionTypeError (ExecutionEngine *engine, Value *thisObject, const QString &propertyName)
 
static CallArgs createSpreadArguments (Scope &scope, Value *argv, int argc)
 
template<typename Operation >
static const voidsymbol ()
 
bool hasExceptionOrIsInterrupted (ExecutionEngine *engine)
 
 DEFINE_OBJECT_VTABLE (Sequence)
 
static ReturnedValue doGetIndexed (const Sequence *s, qsizetype index)
 
template<typename Compare >
void sortSequence (Sequence *sequence, const Compare &compare)
 
static void generateWarning (QV4::ExecutionEngine *v4, const QString &description)
 
template<typename Action >
void convertAndDo (const QVariant &item, const QMetaType v, Action action)
 
SequenceOwnPropertyKeyIteratorcontainerOwnPropertyKeys (const Object *m, Value *target)
 
static QV4::ReturnedValue method_get_length (const FunctionObject *b, const Value *thisObject, const Value *, int)
 
static QV4::ReturnedValue method_set_length (const FunctionObject *f, const Value *thisObject, const Value *argv, int argc)
 
 Q_STATIC_ASSERT (sizeof(CppStackFrame)==sizeof(JSTypesStackFrame))
 
 Q_STATIC_ASSERT (std::is_standard_layout_v< CppStackFrame >)
 
 Q_STATIC_ASSERT (std::is_standard_layout_v< JSTypesStackFrame >)
 
 Q_STATIC_ASSERT (std::is_standard_layout_v< MetaTypesStackFrame >)
 
template<>
ReturnedValue value_convert< String > (ExecutionEngine *e, const Value &v)
 
 Q_STATIC_ASSERT (std::is_trivial_v< Value >)
 
 Q_STATIC_ASSERT (sizeof(Value)==sizeof(StaticValue))
 
template<typename T >
ReturnedValue value_convert (ExecutionEngine *e, const Value &v)
 
 Q_STATIC_ASSERT (offsetof(ValueArray< 0 >, values)==8)
 
template<class Class >
constexpr VTable::CallWithMetaTypes vtableMetaTypesCallEntry ()
 
template<class Class >
constexpr VTable::Call vtableJsTypesCallEntry ()
 
 Q_STATIC_ASSERT (std::is_trivial_v< QV4QPointer< QObject > >)
 
QString binary (quintptr)
 
static void increaseFreedCountForClass (const char *className)
 
static void freeHugeChunk (ChunkAllocator *chunkAllocator, const HugeItemAllocator::HugeChunk &c, ClassDestroyStatsCallback classCountPtr)
 
static size_t dumpBins (BlockAllocator *b, const char *title)
 
 Q_STATIC_ASSERT (sizeof(Chunk)==Chunk::ChunkSize)
 
 Q_STATIC_ASSERT ((1<< Chunk::ChunkShift)==Chunk::ChunkSize)
 
 Q_STATIC_ASSERT (1<< Chunk::SlotSizeShift==Chunk::SlotSize)
 
 Q_STATIC_ASSERT (sizeof(HeapItem)==Chunk::SlotSize)
 
 Q_STATIC_ASSERT (QT_POINTER_SIZE *8==Chunk::Bits)
 
 Q_STATIC_ASSERT ((1<< Chunk::BitShift)==Chunk::Bits)
 
template<typename Size >
static voidincrementStackPointer (void *base, Size amount)
 
template<typename Size >
static voiddecrementStackPointer (void *base, Size amount)
 
static StackProperties createStackProperties (void *base, qsizetype size=PlatformStackSize)
 
StackProperties stackPropertiesGeneric (qsizetype stackSize=0)
 
StackProperties stackProperties ()
 
const voidcurrentStackPointer ()
 
static Heap::ReferenceObject::Flags referenceFlags (const QMetaObject *metaObject, int index)
 
static void doStaticReadCall (const QMetaObject *metaObject, Heap::QQmlValueTypeWrapper *valueTypeWrapper, int index, void **args)
 
static ReturnedValue getGadgetProperty (ExecutionEngine *engine, Heap::QQmlValueTypeWrapper *valueTypeWrapper, QMetaType metaType, quint16 coreIndex, bool isFunction, bool isEnum)
 
 DEFINE_OBJECT_VTABLE (NamedNodeMap)
 
 DEFINE_OBJECT_VTABLE (NodeList)
 
 DEFINE_OBJECT_VTABLE (NodePrototype)
 
 DEFINE_OBJECT_VTABLE (Node)
 
 DEFINE_OBJECT_VTABLE (ModelObject)
 

Variables

static uint markStackSize = 0
 

Detailed Description

\qmltype Particle \inqmlmodule QtQuick.Particles

Represents particles manipulated by emitters and affectors.

Particle elements are always managed internally by the ParticleSystem and cannot be created in QML. However, sometimes they are exposed via signals so as to allow arbitrary changes to the particle state

\qmlproperty real QtQuick.Particles::Particle::initialX The x coordinate of the particle at the beginning of its lifetime.

The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.

\qmlproperty real QtQuick.Particles::Particle::initialVX The x velocity of the particle at the beginning of its lifetime.

The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.

\qmlproperty real QtQuick.Particles::Particle::initialAX The x acceleration of the particle at the beginning of its lifetime.

The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.

\qmlproperty real QtQuick.Particles::Particle::initialY The y coordinate of the particle at the beginning of its lifetime.

The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.

\qmlproperty real QtQuick.Particles::Particle::initialVY The y velocity of the particle at the beginning of its lifetime.

The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.

\qmlproperty real QtQuick.Particles::Particle::initialAY The y acceleration of the particle at the beginning of its lifetime.

The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.

\qmlproperty real QtQuick.Particles::Particle::x The current x coordinate of the particle.

\qmlproperty real QtQuick.Particles::Particle::vx The current x velocity of the particle.

\qmlproperty real QtQuick.Particles::Particle::ax The current x acceleration of the particle.

\qmlproperty real QtQuick.Particles::Particle::y The current y coordinate of the particle.

\qmlproperty real QtQuick.Particles::Particle::vy The current y velocity of the particle.

\qmlproperty real QtQuick.Particles::Particle::ay The current y acceleration of the particle.

\qmlproperty real QtQuick.Particles::Particle::t The time, in seconds since the beginning of the simulation, that the particle was born.

\qmlproperty real QtQuick.Particles::Particle::startSize The size in pixels that the particle image is at the start of its life.

\qmlproperty real QtQuick.Particles::Particle::endSize The size in pixels that the particle image is at the end of its life. If this value is less than 0, then it is disregarded and the particle will have its startSize for the entire lifetime.

\qmlproperty real QtQuick.Particles::Particle::lifeSpan The time in seconds that the particle will live for.

\qmlproperty real QtQuick.Particles::Particle::rotation Degrees clockwise that the particle image is rotated at the beginning of its life.

\qmlproperty real QtQuick.Particles::Particle::rotationVelocity Degrees clockwise per second that the particle image is rotated at while alive.

\qmlproperty bool QtQuick.Particles::Particle::autoRotate If autoRotate is true, then the particle's rotation will be set so that it faces the direction of travel, plus any rotation from the rotation or rotationVelocity properties.

\qmlproperty bool QtQuick.Particles::Particle::update

Inside an Affector, the changes made to the particle will only be applied if update is set to true.

\qmlproperty real QtQuick.Particles::Particle::xDeformationVectorX

The x component of the deformation vector along the X axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.

\qmlproperty real QtQuick.Particles::Particle::yDeformationVectorX

The y component of the deformation vector along the X axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.

\qmlproperty real QtQuick.Particles::Particle::xDeformationVectorY

The x component of the deformation vector along the X axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.

\qmlproperty real QtQuick.Particles::Particle::yDeformationVectorY

The y component of the deformation vector along the Y axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.

\qmlproperty real QtQuick.Particles::Particle::red

ImageParticle can draw colorized particles. When it does so, red is used as the red channel of the color applied to the source image.

Values are from 0.0 to 1.0.

\qmlproperty real QtQuick.Particles::Particle::green

ImageParticle can draw colorized particles. When it does so, green is used as the green channel of the color applied to the source image.

Values are from 0.0 to 1.0.

\qmlproperty real QtQuick.Particles::Particle::blue

ImageParticle can draw colorized particles. When it does so, blue is used as the blue channel of the color applied to the source image.

Values are from 0.0 to 1.0.

\qmlproperty real QtQuick.Particles::Particle::alpha

ImageParticle can draw colorized particles. When it does so, alpha is used as the alpha channel of the color applied to the source image.

Values are from 0.0 to 1.0.

\qmlproperty real QtQuick.Particles::Particle::lifeLeft The time in seconds that the particle has left to live at the current point in time.

\qmlproperty real QtQuick.Particles::Particle::currentSize The currentSize of the particle, interpolating between startSize and endSize based on the currentTime.

Typedef Documentation

◆ BindingPropertyData

◆ Bool

typedef uint QV4::Bool

Definition at line 24 of file qv4runtimeapi_p.h.

◆ ClassDestroyStatsCallback

typedef void(* QV4::ClassDestroyStatsCallback) (const char *)

Definition at line 28 of file qv4mmdefs_p.h.

◆ MMStatsHash

typedef QHash<const char*, int> QV4::MMStatsHash

Definition at line 256 of file qv4mm.cpp.

◆ Primitive

using QV4::Primitive = typedef Value

Definition at line 345 of file qv4value_p.h.

◆ QObjectBiPointer

Definition at line 407 of file qv4qobjectwrapper_p.h.

◆ ReturnedValue

Definition at line 38 of file qv4staticvalue_p.h.

◆ ScopedArrayObject

Definition at line 165 of file qv4global_p.h.

◆ ScopedContext

Definition at line 167 of file qv4global_p.h.

◆ ScopedFunctionObject

Definition at line 166 of file qv4global_p.h.

◆ ScopedObject

Definition at line 164 of file qv4global_p.h.

◆ ScopedString

Definition at line 162 of file qv4global_p.h.

◆ ScopedStringOrSymbol

Definition at line 163 of file qv4global_p.h.

◆ StackTrace

Definition at line 284 of file qv4global_p.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MinSlotsGCLimit 
GCOverallocation 

Definition at line 68 of file qv4mm.cpp.

◆ AtomicModifyOps

Enumerator
AtomicAdd 
AtomicAnd 
AtomicExchange 
AtomicOr 
AtomicSub 
AtomicXor 
NAtomicModifyOps 

Definition at line 40 of file qv4typedarray_p.h.

◆ CoercionProblem

Enumerator
InsufficientAnnotation 
InvalidListType 

Definition at line 223 of file qv4jscall_p.h.

◆ GeneratorState

enum class QV4::GeneratorState
strong
Enumerator
Undefined 
SuspendedStart 
SuspendedYield 
Executing 
Completed 

Definition at line 25 of file qv4generatorobject_p.h.

◆ IteratorKind

Enumerator
KeyIteratorKind 
ValueIteratorKind 
KeyValueIteratorKind 

Definition at line 25 of file qv4iterator_p.h.

◆ ObjectLiteralArgument

enum class QV4::ObjectLiteralArgument
strong
Enumerator
Value 
Method 
Getter 
Setter 

Definition at line 27 of file qv4compilerglobal_p.h.

◆ PropertyFlag

Enumerator
Attr_Data 
Attr_Accessor 
Attr_NotWritable 
Attr_NotEnumerable 
Attr_NotConfigurable 
Attr_ReadOnly 
Attr_ReadOnly_ButConfigurable 
Attr_Invalid 

Definition at line 178 of file qv4global_p.h.

◆ Register

enum QV4::Register : UINT8
Enumerator
RAX 
RCX 
RDX 
RBX 
RSP 
RBP 
RSI 
RDI 
NONE 

Definition at line 29 of file qv4functiontable_win64.cpp.

◆ StackDefaults

Enumerator
DefaultSafetyMargin 
PlatformStackSize 
PlatformSafetyMargin 

Definition at line 42 of file qv4stacklimits.cpp.

◆ TypedArrayType

Enumerator
Int8Array 
UInt8Array 
Int16Array 
UInt16Array 
Int32Array 
UInt32Array 
UInt8ClampedArray 
Float32Array 
Float64Array 
NTypedArrayTypes 

Definition at line 27 of file qv4typedarray_p.h.

◆ TypeHint

Enumerator
PREFERREDTYPE_HINT 
NUMBER_HINT 
STRING_HINT 

Definition at line 55 of file qv4runtime_p.h.

◆ UnwindOpcode

enum QV4::UnwindOpcode : UINT8
Enumerator
UWOP_PUSH_NONVOL 
UWOP_ALLOC_LARGE 
UWOP_ALLOC_SMALL 
UWOP_SET_FPREG 
UWOP_SAVE_NONVOL 
UWOP_SAVE_NONVOL_FAR 
UWOP_SAVE_XMM128 
UWOP_SAVE_XMM128_FAR 
UWOP_PUSH_MACHFRAME 

Definition at line 16 of file qv4functiontable_win64.cpp.

Function Documentation

◆ add_int32()

static QMLJS_READONLY ReturnedValue QV4::add_int32 ( int  a,
int  b 
)
inlinestatic

Definition at line 34 of file qv4math_p.h.

References QV4::StaticValue::asReturnedValue(), QV4::StaticValue::fromDouble(), QV4::StaticValue::fromInt32(), Q_UNLIKELY, and qAddOverflow().

Referenced by QV4::Moth::VME::interpret().

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

◆ binary()

QString QV4::binary ( quintptr  )

Definition at line 251 of file qv4mm.cpp.

◆ callDatafromJS()

template<typename Args >
CallData * QV4::callDatafromJS ( const Scope scope,
const Args *  args,
const FunctionObject f = nullptr 
)

Definition at line 43 of file qv4jscall_p.h.

References QV4::Scope::alloc(), args, ptr(), QV4::Encode::undefined(), and QV4::Scope::Uninitialized.

Referenced by QV4::JSCallArguments::callData(), and QV4::JSCallData::callData().

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

◆ CallMethod()

static ReturnedValue QV4::CallMethod ( const QQmlObjectOrGadget object,
int  index,
QMetaType  returnType,
int  argCount,
const QMetaType argTypes,
ExecutionEngine engine,
CallData callArgs,
QMetaObject::Call  callType = QMetaObject::InvokeMetaMethod 
)
static

Definition at line 1459 of file qv4qobjectwrapper.cpp.

References QString::arg(), arg, QV4::CallData::args, args, QV4::StaticValue::asValue(), CallMethod(), QVarLengthArray< T, Prealloc >::data(), engine, frame, QString::fromLatin1(), QString::number(), qWarning, QMetaMethod::Signal, and QList< T >::size().

Referenced by CallMethod(), and CallPrecise().

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

◆ CallPrecise()

static ReturnedValue QV4::CallPrecise ( const QQmlObjectOrGadget object,
const QQmlPropertyData data,
ExecutionEngine engine,
CallData callArgs,
QMetaObject::Call  callType = QMetaObject::InvokeMetaMethod 
)
static

Definition at line 1732 of file qv4qobjectwrapper.cpp.

References QV4::CallData::argc(), CallMethod(), CallPrecise(), engine, error, frame, QString::fromUtf8(), QMetaType::isValid(), metaObject(), QString::number(), numDefinedArguments(), ok, QStringLiteral, qWarning, storage, and QJSEngine::throwError().

Referenced by QV4::QObjectMethod::callInternal(), and CallPrecise().

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

◆ canConvert()

bool QV4::canConvert ( const QQmlPropertyCache fromMo,
const QQmlPropertyCache toMo 
)
inline

Definition at line 254 of file qv4qobjectwrapper_p.h.

References QQmlRefPointer< T >::data(), and QQmlPropertyCache::parent().

Referenced by QV4::QObjectWrapper::lookupMethodGetterImpl(), and QV4::QObjectWrapper::lookupPropertyGetterImpl().

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

◆ charToUInt() [1/2]

uint QV4::charToUInt ( const char *  ch)
inline

Definition at line 27 of file qv4stringtoarrayindex_p.h.

◆ charToUInt() [2/2]

uint QV4::charToUInt ( const QChar ch)
inline

Definition at line 26 of file qv4stringtoarrayindex_p.h.

References ch.

Referenced by QV4::String::calculateHashValue(), and stringToArrayIndex().

+ Here is the caller graph for this function:

◆ checkedResult()

ReturnedValue QV4::checkedResult ( QV4::ExecutionEngine v4,
ReturnedValue  result 
)
inline

◆ coerce()

ReturnedValue QV4::coerce ( ExecutionEngine engine,
const Value value,
const QQmlType qmlType,
bool  isList 
)
inline

Definition at line 292 of file qv4jscall_p.h.

References QV4::Value::as(), coerceListType(), coerceQObject(), QVariant::d, QVariant::Private::data, engine, QMetaType::flags(), QQmlValueTypeProvider::heapCreateValueType(), QMetaType::id(), InsufficientAnnotation, QMetaType::isValid(), QQmlMetaType::metaObjectForValueType(), QVariant::metaType(), QV4::Encode::null(), QMetaType::PointerToQObject, Q_ASSERT, QMetaType::QVariant, QV4::Value::stringValue(), QQmlType::typeId(), QV4::Encode::undefined(), QVariant::value(), var, warnAboutCoercionToVoid(), and wrapper().

Referenced by QV4::Runtime::As::call(), and coerceAndCall().

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

◆ coerceAndCall()

template<typename Callable >
ReturnedValue QV4::coerceAndCall ( ExecutionEngine engine,
const Function::JSTypedFunction typedFunction,
const CompiledData::Function compiledFunction,
const Value thisObject,
const Value argv,
int  argc,
Callable  call 
)

Definition at line 390 of file qv4jscall_p.h.

References QV4::JSCallArguments::argc, QV4::JSCallArguments::args, QV4::Function::JSTypedFunction::argumentTypes, coerce(), engine, QV4::CompiledData::Function::formalsTable(), i, QV4::CompiledData::ParameterType::isList(), QV4::CompiledData::Function::returnType, QV4::Function::JSTypedFunction::returnType, QList< T >::size(), QV4::CompiledData::Parameter::type, and QV4::Encode::undefined().

Referenced by QV4::Function::call(), and QV4::ArrowFunction::virtualCall().

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

◆ coerceListType()

ReturnedValue QV4::coerceListType ( ExecutionEngine engine,
const Value value,
const QQmlType qmlType 
)
inline

Definition at line 232 of file qv4jscall_p.h.

References QQmlListProperty< T >::append, QV4::Value::as(), QV4::Scoped< T >::asReturnedValue(), coerceQObject(), QV4::QmlListWrapper::create(), engine, QMetaType::flags(), QV4::SequencePrototype::fromData(), i, InvalidListType, QQmlType::isSequentialContainer(), QMetaType::isValid(), list, QQmlType::listMetaSequence(), QMetaType::PointerToQObject, QQmlType::qListTypeId(), QQmlMetaType::qmlListType(), QQmlType::typeId(), and warnAboutCoercionToVoid().

Referenced by coerce().

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

◆ coerceQObject()

QObject * QV4::coerceQObject ( const Value value,
const QQmlType qmlType 
)
inline

Definition at line 210 of file qv4jscall_p.h.

References o, qmlobject_can_qml_cast(), and wrapper().

Referenced by coerce(), and coerceListType().

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

◆ containerOwnPropertyKeys()

SequenceOwnPropertyKeyIterator * QV4::containerOwnPropertyKeys ( const Object m,
Value target 
)

Definition at line 366 of file qv4sequenceobject.cpp.

Referenced by QV4::Sequence::virtualOwnPropertyKeys().

+ Here is the caller graph for this function:

◆ convert_to_string_add()

static Heap::String * QV4::convert_to_string_add ( ExecutionEngine engine,
Value  value 
)
static

Definition at line 595 of file qv4runtime.cpp.

References convert_to_string_add(), engine, and PREFERREDTYPE_HINT.

Referenced by QV4::RuntimeHelpers::addHelper(), and convert_to_string_add().

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

◆ convertAndCall() [1/2]

template<typename Callable >
ReturnedValue QV4::convertAndCall ( ExecutionEngine engine,
const QQmlPrivate::AOTCompiledFunction aotFunction,
const Value thisObject,
const Value argv,
int  argc,
Callable  call 
)

Definition at line 115 of file qv4jscall_p.h.

References argument, QQmlPrivate::AOTCompiledFunction::argumentTypes, QV4::Value::as(), QMetaType::construct(), engine, i, QV4::ExecutionEngine::metaTypeFromJS(), Q_ALLOCA_ASSIGN, Q_ALLOCA_DECLARE, Q_ALLOCA_VAR, QQmlPrivate::AOTCompiledFunction::returnType, QList< T >::size(), QMetaType::sizeOf(), and QV4::Encode::undefined().

Referenced by QV4::Function::call(), QV4::FunctionObject::call(), QV4::Function::call(), QV4::ArrowFunction::virtualCall(), and QV4::ArrowFunction::virtualCallWithMetaTypes().

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

◆ convertAndCall() [2/2]

template<typename Callable >
bool QV4::convertAndCall ( ExecutionEngine engine,
QObject thisObject,
void **  a,
const QMetaType types,
int  argc,
Callable  call 
)

Definition at line 166 of file qv4jscall_p.h.

References QV4::JSCallArguments::args, QMetaType::construct(), engine, QJSEngine::globalObject(), QV4::Scope::hasException(), QV4::StaticValue::isUndefined(), QV4::ExecutionEngine::metaTypeFromJS(), QV4::ExecutionEngine::toVariant(), and QV4::QObjectWrapper::wrap().

+ Here is the call graph for this function:

◆ convertAndDo()

template<typename Action >
void QV4::convertAndDo ( const QVariant item,
const QMetaType  v,
Action  action 
)

Definition at line 255 of file qv4sequenceobject.cpp.

References QVariant::constData(), QVariant::convert(), and item.

Referenced by QV4::Sequence::append(), QV4::Sequence::append(), and QV4::Sequence::replace().

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

◆ createSpreadArguments()

static CallArgs QV4::createSpreadArguments ( Scope scope,
Value argv,
int  argc 
)
static

Definition at line 1533 of file qv4runtime.cpp.

References QV4::Scope::alloc(), arguments, createSpreadArguments(), done, QV4::Scope::engine, QV4::Scope::hasException(), i, it, QV4::EngineBase::jsStackLimit, QV4::EngineBase::jsStackTop, Q_ASSERT, and QV4::ExecutionEngine::throwRangeError().

Referenced by QV4::Runtime::CallWithSpread::call(), QV4::Runtime::ConstructWithSpread::call(), and createSpreadArguments().

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

◆ createStackProperties()

static StackProperties QV4::createStackProperties ( void base,
qsizetype  size = PlatformStackSize 
)
static

Definition at line 95 of file qv4stacklimits.cpp.

References base, incrementStackPointer(), and PlatformSafetyMargin.

Referenced by stackPropertiesGeneric().

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

◆ currentStackPointer()

const void * QV4::currentStackPointer ( )
inline

Definition at line 36 of file qv4stacklimits_p.h.

◆ decrementStackPointer()

template<typename Size >
static void * QV4::decrementStackPointer ( void base,
Size  amount 
)
static

Definition at line 86 of file qv4stacklimits.cpp.

References base.

Referenced by stackPropertiesGeneric().

+ Here is the caller graph for this function:

◆ DEFINE_OBJECT_VTABLE() [1/10]

QV4::DEFINE_OBJECT_VTABLE ( ModelObject  )

◆ DEFINE_OBJECT_VTABLE() [2/10]

QV4::DEFINE_OBJECT_VTABLE ( NamedNodeMap  )

◆ DEFINE_OBJECT_VTABLE() [3/10]

QV4::DEFINE_OBJECT_VTABLE ( Node  )

◆ DEFINE_OBJECT_VTABLE() [4/10]

QV4::DEFINE_OBJECT_VTABLE ( NodeList  )

◆ DEFINE_OBJECT_VTABLE() [5/10]

QV4::DEFINE_OBJECT_VTABLE ( NodePrototype  )

◆ DEFINE_OBJECT_VTABLE() [6/10]

QV4::DEFINE_OBJECT_VTABLE ( QMetaObjectWrapper  )

◆ DEFINE_OBJECT_VTABLE() [7/10]

QV4::DEFINE_OBJECT_VTABLE ( QmlSignalHandler  )

◆ DEFINE_OBJECT_VTABLE() [8/10]

QV4::DEFINE_OBJECT_VTABLE ( QObjectMethod  )

◆ DEFINE_OBJECT_VTABLE() [9/10]

QV4::DEFINE_OBJECT_VTABLE ( QObjectWrapper  )

◆ DEFINE_OBJECT_VTABLE() [10/10]

QV4::DEFINE_OBJECT_VTABLE ( Sequence  )

◆ destroyFunctionTable()

void QV4::destroyFunctionTable ( Function function,
JSC::MacroAssemblerCodeRef *  codeRef 
)

Definition at line 16 of file qv4functiontable_noop.cpp.

References function, and Q_UNUSED.

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

+ Here is the caller graph for this function:

◆ doCall()

static ReturnedValue QV4::doCall ( QV4::Function self,
const QV4::Value thisObject,
const QV4::Value argv,
int  argc,
QV4::ExecutionContext context 
)
static

Definition at line 43 of file qv4function.cpp.

References context, engine, QV4::Moth::VME::exec(), frame, and QV4::Value::undefinedValue().

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

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

◆ doGetIndexed()

static ReturnedValue QV4::doGetIndexed ( const Sequence s,
qsizetype  index 
)
static

Definition at line 25 of file qv4sequenceobject.cpp.

References QV4::Value::as(), QV4::EngineBase::currentStackFrame, QV4::Scope::engine, frame, and QV4::ExecutionEngine::fromVariant().

Referenced by QV4::Sequence::containerGetIndexed(), and QV4::SequenceOwnPropertyKeyIterator::next().

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

◆ doInstanceof()

static QV4::ReturnedValue QV4::doInstanceof ( ExecutionEngine engine,
const Value lval,
const Value rval 
)
static

Definition at line 334 of file qv4runtime.cpp.

References QV4::Value::as(), QV4::FunctionObject::call(), doInstanceof(), engine, QV4::Object::get(), QV4::Object::instanceOf(), and QV4::StaticValue::isUndefined().

Referenced by QV4::Runtime::Instanceof::call(), QV4::Runtime::As::call(), and doInstanceof().

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

◆ doStaticReadCall()

static void QV4::doStaticReadCall ( const QMetaObject metaObject,
Heap::QQmlValueTypeWrapper *  valueTypeWrapper,
int  index,
void **  args 
)
static

Definition at line 292 of file qqmlvaluetypewrapper.cpp.

References args, doStaticReadCall(), metaObject(), and QMetaObject::ReadProperty.

Referenced by doStaticReadCall(), and getGadgetProperty().

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

◆ dumpBins()

static size_t QV4::dumpBins ( BlockAllocator b,
const char *  title 
)
static

Definition at line 936 of file qv4mm.cpp.

References QV4::HeapItem::availableSlots, QV4::HeapItem::freeData, Qt::hex(), i, QV4::BlockAllocator::NumBins, qDebug, SDUMP, QV4::Chunk::SlotSize, and title.

Referenced by QV4::MemoryManager::runGC().

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

◆ dumpConstantTable()

static void QV4::dumpConstantTable ( const StaticValue constants,
uint  count 
)
static

Definition at line 97 of file qv4executablecompilationunit.cpp.

References d, dumpConstantTable(), i, qDebug, qSetFieldWidth(), Qt::right(), and toString().

Referenced by dumpConstantTable(), and QV4::ExecutableCompilationUnit::linkToEngine().

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

◆ exceptionHandlerSize()

size_t QV4::exceptionHandlerSize ( )

Definition at line 22 of file qv4functiontable_noop.cpp.

Referenced by QV4::ExecutableAllocator::allocate(), QV4::ExecutableAllocator::Allocation::codeStart(), and QV4::ExecutableAllocator::Allocation::exceptionHandlerSize().

+ Here is the caller graph for this function:

◆ extractQtSignal()

static QPair< QObject *, int > QV4::extractQtSignal ( const Value value)
static

Definition at line 80 of file qv4qobjectwrapper.cpp.

References engine, extractQtSignal(), function, and qMakePair().

Referenced by extractQtSignal(), QV4::QObjectWrapper::method_connect(), and QV4::QObjectWrapper::method_disconnect().

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

◆ freeHugeChunk()

static void QV4::freeHugeChunk ( ChunkAllocator chunkAllocator,
const HugeItemAllocator::HugeChunk c,
ClassDestroyStatsCallback  classCountPtr 
)
static

Definition at line 620 of file qv4mm.cpp.

References QV4::HeapItem::chunk(), QV4::Chunk::first(), QV4::ChunkAllocator::free(), freeHugeChunk(), and Q_UNLIKELY.

Referenced by QV4::HugeItemAllocator::freeAll(), freeHugeChunk(), and QV4::HugeItemAllocator::sweep().

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

◆ generateFunctionTable()

void QV4::generateFunctionTable ( Function function,
JSC::MacroAssemblerCodeRef *  codeRef 
)

Definition at line 10 of file qv4functiontable_noop.cpp.

References function, and Q_UNUSED.

◆ generateWarning()

static void QV4::generateWarning ( QV4::ExecutionEngine v4,
const QString description 
)
static

Definition at line 65 of file qv4sequenceobject.cpp.

References QV4::EngineBase::currentStackFrame, engine, QV4::CppStackFrame::lineNumber(), QV4::ExecutionEngine::qmlEngine(), QQmlError::setDescription(), QQmlError::setLine(), QQmlError::setUrl(), QV4::CppStackFrame::source(), and QQmlEnginePrivate::warning().

Referenced by method_set_length(), QV4::Sequence::virtualDeleteProperty(), QV4::Sequence::virtualGet(), and QV4::Sequence::virtualPut().

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

◆ getDestroyOrToStringMethod()

static OptionalReturnedValue QV4::getDestroyOrToStringMethod ( ExecutionEngine v4,
String name,
Heap::Object *  qobj,
bool *  hasProperty = nullptr 
)
static

Definition at line 293 of file qv4qobjectwrapper.cpp.

References getDestroyOrToStringMethod(), global, QV4::ExecutionEngine::id_destroy(), QV4::ExecutionEngine::id_toString(), and QV4::ExecutionEngine::rootContext().

Referenced by getDestroyOrToStringMethod(), and QV4::QObjectWrapper::virtualResolveLookupGetter().

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

◆ getElementFallback()

static Q_NEVER_INLINE ReturnedValue QV4::getElementFallback ( ExecutionEngine engine,
const Value object,
const Value index 
)
static

Definition at line 686 of file qv4runtime.cpp.

References engine, QV4::Scope::engine, getElementFallback(), QV4::Scope::hasException(), o, Q_ASSERT, and QStringLiteral.

Referenced by QV4::Runtime::LoadElement::call(), and getElementFallback().

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

◆ getElementIntFallback()

static Q_NEVER_INLINE ReturnedValue QV4::getElementIntFallback ( ExecutionEngine engine,
const Value object,
uint  idx 
)
static

Definition at line 653 of file qv4runtime.cpp.

References QV4::Heap::Base::asReturnedValue(), engine, QV4::Scope::engine, getElementIntFallback(), QString::mid(), QV4::ExecutionEngine::newString(), o, Q_ASSERT, QStringLiteral, QString::size(), and str.

Referenced by QV4::Runtime::LoadElement::call(), and getElementIntFallback().

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

◆ getGadgetProperty()

static ReturnedValue QV4::getGadgetProperty ( ExecutionEngine engine,
Heap::QQmlValueTypeWrapper *  valueTypeWrapper,
QMetaType  metaType,
quint16  coreIndex,
bool  isFunction,
bool  isEnum 
)
static

◆ getPropertyFromImports()

static OptionalReturnedValue QV4::getPropertyFromImports ( ExecutionEngine v4,
String name,
const QQmlRefPointer< QQmlContextData > &  qmlContext,
QObject qobj,
bool *  hasProperty = nullptr 
)
static

Definition at line 310 of file qv4qobjectwrapper.cpp.

References getPropertyFromImports(), and qmlContext().

Referenced by getPropertyFromImports(), and QV4::QObjectWrapper::virtualResolveLookupGetter().

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

◆ getSuperBase()

static Object * QV4::getSuperBase ( Scope scope)
static

Definition at line 1028 of file qv4runtime.cpp.

References QV4::ExecutionContext::asCallContext(), QV4::ExecutionEngine::currentContext(), QV4::EngineBase::currentStackFrame, QV4::Scope::engine, frame, getSuperBase(), QV4::Function::isArrowFunction(), QV4::CppStackFrame::isJSTypesFrame(), QV4::CppStackFrame::isMetaTypesFrame(), QV4::Function::kind, Q_ASSERT, QStringLiteral, QV4::ExecutionEngine::throwReferenceError(), and QV4::ExecutionEngine::throwTypeError().

Referenced by QV4::Runtime::LoadSuperProperty::call(), QV4::Runtime::StoreSuperProperty::call(), and getSuperBase().

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

◆ hasExceptionOrIsInterrupted()

bool QV4::hasExceptionOrIsInterrupted ( ExecutionEngine engine)
inline

Definition at line 35 of file qv4scopedvalue_p.h.

References engine, and QJSEngine::isInterrupted().

Referenced by QV4::PropertyListPrototype::method_indexOf(), and QV4::PropertyListPrototype::method_lastIndexOf().

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

◆ increaseFreedCountForClass()

static void QV4::increaseFreedCountForClass ( const char *  className)
static

Definition at line 261 of file qv4mm.cpp.

References className.

Referenced by QV4::MemoryManager::runGC().

+ Here is the caller graph for this function:

◆ incrementStackPointer()

template<typename Size >
static void * QV4::incrementStackPointer ( void base,
Size  amount 
)
static

Definition at line 76 of file qv4stacklimits.cpp.

References base.

Referenced by createStackProperties().

+ Here is the caller graph for this function:

◆ isSpecificType()

static bool QV4::isSpecificType ( const CompiledData::ParameterType type)
static

Definition at line 94 of file qv4function.cpp.

References QV4::CompiledData::Invalid.

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

+ Here is the caller graph for this function:

◆ loadProperty()

static ReturnedValue QV4::loadProperty ( ExecutionEngine v4,
Heap::Object *  wrapper,
QObject object,
const QQmlPropertyData property 
)
static

◆ markChildQObjectsRecursively()

static void QV4::markChildQObjectsRecursively ( QObject parent,
MarkStack markStack 
)
static

Definition at line 1312 of file qv4qobjectwrapper.cpp.

References child, markChildQObjectsRecursively(), parent, and queue.

Referenced by markChildQObjectsRecursively(), and QV4::Heap::QObjectWrapper::markObjects().

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

◆ MatchScore()

static int QV4::MatchScore ( const Value actual,
QMetaType  conversionMetaType 
)
static

Definition at line 1545 of file qv4qobjectwrapper.cpp.

References QV4::Value::as(), QMetaType::flags(), QMetaType::id(), QV4::StaticValue::isBoolean(), QV4::StaticValue::isNull(), QV4::StaticValue::isNumber(), QMetaType::IsPointer, QV4::Value::isString(), MatchScore(), MatchVariant(), QMetaType::metaObject(), QMetaType::PointerToQObject, qmlobject_can_cpp_cast(), and wrapper().

Referenced by MatchScore(), and ResolveOverloaded().

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

◆ MatchVariant()

template<typename Retrieve >
int QV4::MatchVariant ( QMetaType  conversionMetaType,
Retrieve &&  retrieve 
)

Definition at line 1520 of file qv4qobjectwrapper.cpp.

References QMetaType::canConvert(), MatchVariant(), QMetaType::metaObject(), and mo.

Referenced by MatchScore(), and MatchVariant().

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

◆ method_get_length()

static QV4::ReturnedValue QV4::method_get_length ( const FunctionObject b,
const Value thisObject,
const Value ,
int   
)
static

Definition at line 535 of file qv4sequenceobject.cpp.

References QV4::Value::as(), QV4::Scope::engine, qIsAtMostUintLimit(), RETURN_RESULT, THROW_TYPE_ERROR, QV4::ExecutionEngine::throwRangeError(), and QV4::Encode::undefined().

Referenced by QV4::SequencePrototype::init(), QV4::PropertyListPrototype::init(), and QV4::IntrinsicTypedArrayPrototype::init().

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

◆ method_set_length()

static QV4::ReturnedValue QV4::method_set_length ( const FunctionObject f,
const Value thisObject,
const Value argv,
int  argc 
)
static

Definition at line 552 of file qv4sequenceobject.cpp.

References QV4::Value::as(), QV4::Value::asArrayLength(), QV4::Scope::engine, generateWarning(), ok, Q_ASSERT, qIsAtMostSizetypeLimit(), RETURN_UNDEFINED, and THROW_TYPE_ERROR.

Referenced by QV4::SequencePrototype::init(), and QV4::PropertyListPrototype::init().

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

◆ mul_int32()

static QMLJS_READONLY ReturnedValue QV4::mul_int32 ( int  a,
int  b 
)
inlinestatic

Definition at line 50 of file qv4math_p.h.

References QV4::StaticValue::asReturnedValue(), QV4::StaticValue::fromDouble(), QV4::StaticValue::fromInt32(), Q_UNLIKELY, and qMulOverflow().

Referenced by QV4::Moth::VME::interpret().

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

◆ numDefinedArguments()

static int QV4::numDefinedArguments ( CallData callArgs)
static

Definition at line 1722 of file qv4qobjectwrapper.cpp.

References QV4::CallData::argc(), QV4::CallData::args, numDefinedArguments(), and QV4::StaticValue::type().

Referenced by CallPrecise(), numDefinedArguments(), and ResolveOverloaded().

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

◆ operator==()

bool QV4::operator== ( const ObjectItem a,
const ObjectItem b 
)
inline

Definition at line 41 of file qv4jsonobject_p.h.

◆ populateJSCallArguments()

QT_BEGIN_NAMESPACE void QV4::populateJSCallArguments ( ExecutionEngine v4,
JSCallArguments jsCall,
int  argc,
void **  args,
const QMetaType types 
)

Sets the arguments of JSCallData from type erased args based on type information provided by types

Definition at line 18 of file qv4jscall.cpp.

References args, QV4::JSCallArguments::args, and QV4::ExecutionEngine::metaTypeToJS().

+ Here is the call graph for this function:

◆ processInlinComponentType()

template<typename F >
void QV4::processInlinComponentType ( const QQmlType type,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > &  compilationUnit,
F &&  populateIcData 
)

Definition at line 360 of file qv4executablecompilationunit.cpp.

References QString::isEmpty(), processInlinComponentType(), and QQmlRefPointer< T >::reset().

Referenced by QV4::ExecutableCompilationUnit::finalizeCompositeType(), and processInlinComponentType().

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

◆ Q_DECLARE_OPERATORS_FOR_FLAGS()

QV4::Q_DECLARE_OPERATORS_FOR_FLAGS ( ExecutionEngine::DiskCacheOptions  )

◆ Q_STATIC_ASSERT() [1/33]

QV4::Q_STATIC_ASSERT ( (1<< Chunk::BitShift = =Chunk::Bits)

◆ Q_STATIC_ASSERT() [2/33]

QV4::Q_STATIC_ASSERT ( (1<< Chunk::ChunkShift = =Chunk::ChunkSize)

◆ Q_STATIC_ASSERT() [3/33]

QV4::Q_STATIC_ASSERT ( 1<< Chunk::SlotSizeShift  = =Chunk::SlotSize)

◆ Q_STATIC_ASSERT() [4/33]

QV4::Q_STATIC_ASSERT ( offsetof(CallData, _argc)  = =CallData::Argc *sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [5/33]

QV4::Q_STATIC_ASSERT ( offsetof(CallData, accumulator)  = =CallData::Accumulator *sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [6/33]

QV4::Q_STATIC_ASSERT ( offsetof(CallData, args = =6 *sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [7/33]

QV4::Q_STATIC_ASSERT ( offsetof(CallData, context = =CallData::Context *sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [8/33]

QV4::Q_STATIC_ASSERT ( offsetof(CallData, function)  = =CallData::Function *sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [9/33]

QV4::Q_STATIC_ASSERT ( offsetof(CallData, newTarget)  = =CallData::NewTarget *sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [10/33]

QV4::Q_STATIC_ASSERT ( offsetof(CallData, thisObject)  = =CallData::This *sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [11/33]

QV4::Q_STATIC_ASSERT ( offsetof(EngineBase, currentStackFrame)  = =0)

◆ Q_STATIC_ASSERT() [12/33]

QV4::Q_STATIC_ASSERT ( offsetof(EngineBase, globalObject) %  QT_POINTER_SIZE = =0)

◆ Q_STATIC_ASSERT() [13/33]

QV4::Q_STATIC_ASSERT ( offsetof(EngineBase, hasException)  = =offsetof(EngineBase, jsStackTop)+QT_POINTER_SIZE)

◆ Q_STATIC_ASSERT() [14/33]

QV4::Q_STATIC_ASSERT ( offsetof(EngineBase, isInterrupted)+sizeof(EngineBase::isInterrupted)<=offsetof(EngineBase, hasException)+  4)

◆ Q_STATIC_ASSERT() [15/33]

QV4::Q_STATIC_ASSERT ( offsetof(EngineBase, jsStackTop)  = =offsetof(EngineBase, currentStackFrame)+QT_POINTER_SIZE)

◆ Q_STATIC_ASSERT() [16/33]

QV4::Q_STATIC_ASSERT ( offsetof(EngineBase, memoryManager)  = =offsetof(EngineBase, hasException)+8)

◆ Q_STATIC_ASSERT() [17/33]

QV4::Q_STATIC_ASSERT ( offsetof(Lookup, getter)  = =0)

◆ Q_STATIC_ASSERT() [18/33]

QV4::Q_STATIC_ASSERT ( offsetof(ValueArray< 0 >, values = =8)

◆ Q_STATIC_ASSERT() [19/33]

QV4::Q_STATIC_ASSERT ( QT_POINTER_SIZE 8 = =Chunk::Bits)

◆ Q_STATIC_ASSERT() [20/33]

QV4::Q_STATIC_ASSERT ( sizeof(Chunk = =Chunk::ChunkSize)

◆ Q_STATIC_ASSERT() [21/33]

QV4::Q_STATIC_ASSERT ( sizeof(CppStackFrame = =sizeof(JSTypesStackFrame))

◆ Q_STATIC_ASSERT() [22/33]

QV4::Q_STATIC_ASSERT ( sizeof(HeapItem = =Chunk::SlotSize)

◆ Q_STATIC_ASSERT() [23/33]

QV4::Q_STATIC_ASSERT ( sizeof(Value = =sizeof(StaticValue))

◆ Q_STATIC_ASSERT() [24/33]

QV4::Q_STATIC_ASSERT ( std::is_standard_layout< CallData >::value  )

◆ Q_STATIC_ASSERT() [25/33]

QV4::Q_STATIC_ASSERT ( std::is_standard_layout< EngineBase >::value  )

◆ Q_STATIC_ASSERT() [26/33]

QV4::Q_STATIC_ASSERT ( std::is_standard_layout< FunctionData >::value  )

◆ Q_STATIC_ASSERT() [27/33]

QV4::Q_STATIC_ASSERT ( std::is_standard_layout< Lookup >::value  )

◆ Q_STATIC_ASSERT() [28/33]

QV4::Q_STATIC_ASSERT ( std::is_standard_layout_v< CppStackFrame )

◆ Q_STATIC_ASSERT() [29/33]

QV4::Q_STATIC_ASSERT ( std::is_standard_layout_v< JSTypesStackFrame )

◆ Q_STATIC_ASSERT() [30/33]

QV4::Q_STATIC_ASSERT ( std::is_standard_layout_v< MetaTypesStackFrame )

◆ Q_STATIC_ASSERT() [31/33]

QV4::Q_STATIC_ASSERT ( std::is_trivial_v< QV4QPointer< QObject > >  )

◆ Q_STATIC_ASSERT() [32/33]

QV4::Q_STATIC_ASSERT ( std::is_trivial_v< StaticValue )

◆ Q_STATIC_ASSERT() [33/33]

QV4::Q_STATIC_ASSERT ( std::is_trivial_v< Value )

◆ qHash() [1/2]

size_t QV4::qHash ( const ObjectItem i,
size_t  seed = 0 
)
inline

Definition at line 44 of file qv4jsonobject_p.h.

References i, and seed.

Referenced by qHash().

+ Here is the caller graph for this function:

◆ qHash() [2/2]

size_t QV4::qHash ( const RegExpCacheKey key,
size_t  seed = 0 
)
inlinenoexcept

Definition at line 131 of file qv4regexp_p.h.

References qHash(), and seed.

+ Here is the call graph for this function:

◆ qtTypeInherits()

template<typename T >
bool QV4::qtTypeInherits ( const QMetaObject mo)

Definition at line 15 of file qv4resolvedtypereference.cpp.

References mo.

◆ qualifiesForMethodLookup()

bool QV4::qualifiesForMethodLookup ( const QQmlPropertyData propertyData)
inline

Definition at line 283 of file qv4lookup_p.h.

References QQmlPropertyData::isFunction(), QQmlPropertyData::isSignalHandler(), QQmlPropertyData::isVarProperty(), and QQmlPropertyData::isVMEFunction().

Referenced by QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

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

◆ qYouForgotTheQ_MANAGED_Macro() [1/2]

template<typename T >
int QV4::qYouForgotTheQ_MANAGED_Macro ( ,
 
)
inline

Definition at line 32 of file qv4managed_p.h.

◆ qYouForgotTheQ_MANAGED_Macro() [2/2]

template<typename T1 , typename T2 >
void QV4::qYouForgotTheQ_MANAGED_Macro ( T1  ,
T2   
)
inline

Definition at line 35 of file qv4managed_p.h.

◆ referenceFlags() [1/2]

static Heap::ReferenceObject::Flags QV4::referenceFlags ( const QMetaObject metaObject,
int  index 
)
static

Definition at line 285 of file qqmlvaluetypewrapper.cpp.

References metaObject(), and referenceFlags().

Referenced by getGadgetProperty(), and referenceFlags().

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

◆ referenceFlags() [2/2]

static Heap::ReferenceObject::Flags QV4::referenceFlags ( ExecutionEngine v4,
const QQmlPropertyData property 
)
static

Definition at line 97 of file qv4qobjectwrapper.cpp.

References QV4::EngineBase::currentStackFrame, property, and referenceFlags().

Referenced by loadProperty(), and referenceFlags().

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

◆ ResolveOverloaded()

static const QQmlPropertyData * QV4::ResolveOverloaded ( const QQmlObjectOrGadget object,
const QQmlPropertyData methods,
int  methodCount,
ExecutionEngine engine,
CallData callArgs 
)
static

Definition at line 1823 of file qv4qobjectwrapper.cpp.

References QV4::CallData::argc(), QV4::CallData::args, QQmlPropertyData::coreIndex(), engine, error, QString::fromUtf8(), QQmlPropertyData::hasArguments(), i, QQmlPropertyData::isConstructor(), QQmlPropertyData::isV4Function(), QQmlPropertyData::isValid(), MatchScore(), methods, numDefinedArguments(), qCDebug, qMax(), ResolveOverloaded(), storage, and QJSEngine::throwError().

Referenced by QV4::QObjectMethod::callInternal(), and ResolveOverloaded().

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

◆ runtimeLookup()

static QV4::Lookup * QV4::runtimeLookup ( Function f,
uint  i 
)
static

Definition at line 187 of file qv4runtime.cpp.

References i, and runtimeLookup().

Referenced by QV4::Runtime::CallPropertyLookup::call(), QV4::Runtime::GetLookup::call(), QV4::Runtime::LoadGlobalLookup::call(), QV4::Runtime::LoadQmlContextPropertyLookup::call(), QV4::Runtime::CallGlobalLookup::call(), QV4::Runtime::CallQmlContextPropertyLookup::call(), QV4::Runtime::SetLookupStrict::call(), QV4::Runtime::SetLookupSloppy::call(), and runtimeLookup().

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

◆ setElementFallback()

static Q_NEVER_INLINE bool QV4::setElementFallback ( ExecutionEngine engine,
const Value object,
const Value index,
const Value value 
)
static

Definition at line 730 of file qv4runtime.cpp.

References engine, o, QV4::Heap::SimpleArrayData::setData(), and setElementFallback().

Referenced by QV4::Runtime::StoreElement::call(), and setElementFallback().

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

◆ setupQObjectLookup() [1/3]

void QV4::setupQObjectLookup ( Lookup lookup,
const QQmlData ddata,
const QQmlPropertyData propertyData 
)
inline

Definition at line 243 of file qv4lookup_p.h.

References QQmlRefCount::addref(), QQmlRefPointer< T >::data(), QQmlRefPointer< T >::isNull(), QV4::Lookup::propertyCache, QQmlData::propertyCache, QV4::Lookup::propertyData, Q_ASSERT, QV4::Lookup::qobjectLookup, and QV4::Lookup::releasePropertyCache().

Referenced by QV4::QQmlContextWrapper::getPropertyAndBase(), QQmlPrivate::initObjectLookup(), setupQObjectLookup(), setupQObjectLookup(), QV4::QObjectWrapper::virtualResolveLookupGetter(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

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

◆ setupQObjectLookup() [2/3]

void QV4::setupQObjectLookup ( Lookup lookup,
const QQmlData ddata,
const QQmlPropertyData propertyData,
const Object self 
)
inline

Definition at line 253 of file qv4lookup_p.h.

References QV4::Lookup::ic, QV4::Lookup::qobjectLookup, and setupQObjectLookup().

+ Here is the call graph for this function:

◆ setupQObjectLookup() [3/3]

void QV4::setupQObjectLookup ( Lookup lookup,
const QQmlData ddata,
const QQmlPropertyData propertyData,
const Object self,
const Object qmlType 
)
inline

Definition at line 262 of file qv4lookup_p.h.

References QV4::Managed::internalClass(), QV4::Lookup::qmlTypeIc, QV4::Lookup::qobjectLookup, and setupQObjectLookup().

+ Here is the call graph for this function:

◆ setupQObjectMethodLookup()

void QV4::setupQObjectMethodLookup ( Lookup lookup,
const QQmlData ddata,
const QQmlPropertyData propertyData,
const Object self,
Heap::QObjectMethod *  method 
)
inline

Definition at line 270 of file qv4lookup_p.h.

References QQmlRefCount::addref(), QQmlRefPointer< T >::data(), QV4::Lookup::ic, QQmlRefPointer< T >::isNull(), method, QV4::Lookup::method, QV4::Lookup::propertyCache, QQmlData::propertyCache, QV4::Lookup::propertyData, Q_ASSERT, QV4::Lookup::qobjectMethodLookup, and QV4::Lookup::releasePropertyCache().

Referenced by QV4::QQmlContextWrapper::getPropertyAndBase(), QV4::QObjectWrapper::virtualResolveLookupGetter(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

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

◆ sortHelper()

template<typename RandomAccessIterator , typename LessThan >
void QV4::sortHelper ( RandomAccessIterator  start,
RandomAccessIterator  end,
LessThan  lessThan 
)

Definition at line 248 of file qv4arraydata_p.h.

References lessThan(), sortHelper(), and swap().

Referenced by QV4::PropertyListPrototype::method_sort(), QV4::ArrayData::sort(), and sortHelper().

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

◆ sortSequence()

template<typename Compare >
void QV4::sortSequence ( Sequence sequence,
const Compare compare 
)

Definition at line 46 of file qv4sequenceobject.cpp.

References QIterable< Container >::canRandomAccessIterate(), QIterable< Container >::canReverseIterate(), compare(), QSequentialIterable::mutableBegin(), QSequentialIterable::mutableEnd(), and qWarning.

Referenced by QV4::Sequence::sort().

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

◆ stackProperties()

StackProperties QV4::stackProperties ( )

Definition at line 357 of file qv4stacklimits.cpp.

References stackPropertiesGeneric().

Referenced by QV4::ExecutionEngine::ExecutionEngine().

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

◆ stackPropertiesGeneric()

StackProperties QV4::stackPropertiesGeneric ( qsizetype  stackSize = 0)

Definition at line 231 of file qv4stacklimits.cpp.

References createStackProperties(), decrementStackPointer(), and qFatal.

Referenced by stackProperties().

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

◆ stringToArrayIndex() [1/2]

uint QV4::stringToArrayIndex ( const QString str)
inline

Definition at line 53 of file qv4stringtoarrayindex_p.h.

References QString::constData(), QString::size(), str, and stringToArrayIndex().

+ Here is the call graph for this function:

◆ stringToArrayIndex() [2/2]

template<typename T >
uint QV4::stringToArrayIndex ( const T *  ch,
const T *  end 
)

Definition at line 30 of file qv4stringtoarrayindex_p.h.

References ch, charToUInt(), i, qAddOverflow(), and qMulOverflow().

Referenced by QV4::String::calculateHashValue(), stringToArrayIndex(), QV4::Compiler::Codegen::visit(), and QV4::Compiler::Codegen::visit().

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

◆ sub_int32()

static QMLJS_READONLY ReturnedValue QV4::sub_int32 ( int  a,
int  b 
)
inlinestatic

Definition at line 42 of file qv4math_p.h.

References QV4::StaticValue::asReturnedValue(), QV4::StaticValue::fromDouble(), QV4::StaticValue::fromInt32(), Q_UNLIKELY, and qSubOverflow().

Referenced by QV4::Moth::VME::interpret().

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

◆ symbol()

template<typename Operation >
static const void * QV4::symbol ( )
inlinestatic

Definition at line 2391 of file qv4runtime.cpp.

References symbol().

Referenced by QV4::ExecutionEngine::newSymbolObject(), symbol(), and toVariant().

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

◆ throwPropertyIsNotAFunctionTypeError()

static ReturnedValue QV4::throwPropertyIsNotAFunctionTypeError ( ExecutionEngine engine,
Value thisObject,
const QString propertyName 
)
static

Definition at line 1377 of file qv4runtime.cpp.

References engine, QV4::StaticValue::isUndefined(), QStringLiteral, throwPropertyIsNotAFunctionTypeError(), and QV4::Value::toQStringNoThrow().

Referenced by QV4::Runtime::CallName::call(), QV4::Runtime::CallGlobalLookup::call(), QV4::Runtime::CallQmlContextPropertyLookup::call(), QV4::Runtime::CallPossiblyDirectEval::call(), and throwPropertyIsNotAFunctionTypeError().

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

◆ toString()

static QString QV4::toString ( QV4::ReturnedValue  v)
static

Definition at line 82 of file qv4executablecompilationunit.cpp.

Referenced by QV4::PropertyKey::isCanonicalNumericIndexString(), QV4::RegExpPrototype::method_match(), QV4::RegExpPrototype::method_replace(), QV4::RegExpPrototype::method_search(), QV4::RegExpPrototype::method_split(), QV4::NumberPrototype::method_toString(), and QV4::SymbolCtor::virtualCall().

+ Here is the caller graph for this function:

◆ value_convert()

template<typename T >
ReturnedValue QV4::value_convert ( ExecutionEngine e,
const Value v 
)

◆ value_convert< Object >()

template<>
ReturnedValue QV4::value_convert< Object > ( ExecutionEngine e,
const Value v 
)
inline

Definition at line 519 of file qv4object_p.h.

References e.

◆ value_convert< String >()

template<>
ReturnedValue QV4::value_convert< String > ( ExecutionEngine e,
const Value v 
)
inline

Definition at line 267 of file qv4string_p.h.

References e.

◆ vtableJsTypesCallEntry()

template<class Class >
constexpr VTable::Call QV4::vtableJsTypesCallEntry ( )
constexpr

Definition at line 133 of file qv4vtable_p.h.

◆ vtableMetaTypesCallEntry()

template<class Class >
constexpr VTable::CallWithMetaTypes QV4::vtableMetaTypesCallEntry ( )
constexpr

Definition at line 110 of file qv4vtable_p.h.

◆ warnAboutCoercionToVoid()

void QV4::warnAboutCoercionToVoid ( ExecutionEngine engine,
const Value value,
CoercionProblem  problem 
)

Definition at line 25 of file qv4jscall.cpp.

References engine, frame, InsufficientAnnotation, InvalidListType, and qCritical.

Referenced by coerce(), and coerceListType().

+ Here is the caller graph for this function:

Variable Documentation

◆ markStackSize

uint QV4::markStackSize = 0
static

Definition at line 779 of file qv4mm.cpp.

Referenced by QV4::MemoryManager::runGC().