![]() |
Qt 6.x
The Qt SDK
|
\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 |
Typedefs | |
typedef quint64 | ReturnedValue |
typedef QVector< const QQmlPropertyData * > | BindingPropertyData |
typedef Scoped< String > | ScopedString |
typedef Scoped< StringOrSymbol > | ScopedStringOrSymbol |
typedef Scoped< Object > | ScopedObject |
typedef Scoped< ArrayObject > | ScopedArrayObject |
typedef Scoped< FunctionObject > | ScopedFunctionObject |
typedef Scoped< ExecutionContext > | ScopedContext |
typedef QVector< StackFrame > | StackTrace |
using | QObjectBiPointer = QBiPointer< QObject, const QObject > |
typedef uint | Bool |
using | Primitive = Value |
typedef QHash< const char *, int > | MMStatsHash |
typedef void(* | ClassDestroyStatsCallback) (const char *) |
Variables | |
static uint | markStackSize = 0 |
\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 QVector<const QQmlPropertyData *> QV4::BindingPropertyData |
Definition at line 58 of file qv4executablecompilationunit_p.h.
Definition at line 24 of file qv4runtimeapi_p.h.
typedef void(* QV4::ClassDestroyStatsCallback) (const char *) |
Definition at line 28 of file qv4mmdefs_p.h.
typedef QHash<const char*, int> QV4::MMStatsHash |
using QV4::Primitive = typedef Value |
Definition at line 345 of file qv4value_p.h.
using QV4::QObjectBiPointer = typedef QBiPointer<QObject, const QObject> |
Definition at line 407 of file qv4qobjectwrapper_p.h.
typedef quint64 QV4::ReturnedValue |
Definition at line 38 of file qv4staticvalue_p.h.
typedef Scoped<ArrayObject> QV4::ScopedArrayObject |
Definition at line 165 of file qv4global_p.h.
typedef Scoped<ExecutionContext> QV4::ScopedContext |
Definition at line 167 of file qv4global_p.h.
Definition at line 166 of file qv4global_p.h.
typedef Scoped<Object> QV4::ScopedObject |
Definition at line 164 of file qv4global_p.h.
typedef Scoped<String> QV4::ScopedString |
Definition at line 162 of file qv4global_p.h.
Definition at line 163 of file qv4global_p.h.
typedef QVector<StackFrame> QV4::StackTrace |
Definition at line 284 of file qv4global_p.h.
enum QV4::AtomicModifyOps |
Enumerator | |
---|---|
AtomicAdd | |
AtomicAnd | |
AtomicExchange | |
AtomicOr | |
AtomicSub | |
AtomicXor | |
NAtomicModifyOps |
Definition at line 40 of file qv4typedarray_p.h.
enum QV4::CoercionProblem |
Enumerator | |
---|---|
InsufficientAnnotation | |
InvalidListType |
Definition at line 223 of file qv4jscall_p.h.
|
strong |
Enumerator | |
---|---|
Undefined | |
SuspendedStart | |
SuspendedYield | |
Executing | |
Completed |
Definition at line 25 of file qv4generatorobject_p.h.
enum QV4::IteratorKind |
Enumerator | |
---|---|
KeyIteratorKind | |
ValueIteratorKind | |
KeyValueIteratorKind |
Definition at line 25 of file qv4iterator_p.h.
|
strong |
Enumerator | |
---|---|
Value | |
Method | |
Getter | |
Setter |
Definition at line 27 of file qv4compilerglobal_p.h.
enum QV4::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.
enum QV4::Register : UINT8 |
Enumerator | |
---|---|
RAX | |
RCX | |
RDX | |
RBX | |
RSP | |
RBP | |
RSI | |
RDI | |
NONE |
Definition at line 29 of file qv4functiontable_win64.cpp.
enum QV4::StackDefaults : qsizetype |
Enumerator | |
---|---|
DefaultSafetyMargin | |
PlatformStackSize | |
PlatformSafetyMargin |
Definition at line 42 of file qv4stacklimits.cpp.
enum QV4::TypedArrayType |
Enumerator | |
---|---|
Int8Array | |
UInt8Array | |
Int16Array | |
UInt16Array | |
Int32Array | |
UInt32Array | |
UInt8ClampedArray | |
Float32Array | |
Float64Array | |
NTypedArrayTypes |
Definition at line 27 of file qv4typedarray_p.h.
enum QV4::TypeHint |
Enumerator | |
---|---|
PREFERREDTYPE_HINT | |
NUMBER_HINT | |
STRING_HINT |
Definition at line 55 of file qv4runtime_p.h.
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.
|
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().
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().
|
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().
|
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().
|
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().
|
inline |
Definition at line 27 of file qv4stringtoarrayindex_p.h.
Definition at line 26 of file qv4stringtoarrayindex_p.h.
References ch.
Referenced by QV4::String::calculateHashValue(), and stringToArrayIndex().
|
inline |
Definition at line 307 of file qv4functionobject_p.h.
References QV4::EngineBase::hasException, and QV4::Encode::undefined().
Referenced by QV4::Runtime::CallWithReceiver::call(), QV4::Runtime::CallWithSpread::call(), QV4::Runtime::CallProperty::call(), QV4::Runtime::CallPropertyLookup::call(), QV4::Runtime::CallValue::call(), QV4::Runtime::CallName::call(), QV4::Runtime::CallGlobalLookup::call(), QV4::Runtime::CallQmlContextPropertyLookup::call(), QV4::Runtime::CallPossiblyDirectEval::call(), QV4::Runtime::TailCall::call(), QV4::EvalFunction::evalCall(), QV4::Lookup::getterAccessor(), QV4::Lookup::getterProtoAccessor(), QV4::Lookup::getterProtoAccessorTwoClasses(), QV4::Object::getValueAccessor(), QV4::Lookup::globalGetterProtoAccessor(), QV4::FunctionPrototype::method_apply(), QV4::Reflect::method_apply(), QV4::FunctionPrototype::method_call(), QV4::StringPrototype::method_match(), QV4::DatePrototype::method_toJSON(), QV4::ObjectPrototype::method_toLocaleString(), QV4::ArrayPrototype::method_toString(), QV4::Lookup::primitiveGetterAccessor(), QV4::BoundFunction::virtualCall(), and QV4::ProxyFunctionObject::virtualCall().
|
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().
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().
|
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().
Definition at line 210 of file qv4jscall_p.h.
References o, qmlobject_can_qml_cast(), and wrapper().
Referenced by coerce(), and coerceListType().
SequenceOwnPropertyKeyIterator * QV4::containerOwnPropertyKeys | ( | const Object * | m, |
Value * | target | ||
) |
Definition at line 366 of file qv4sequenceobject.cpp.
Referenced by QV4::Sequence::virtualOwnPropertyKeys().
|
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().
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().
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().
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().
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().
|
static |
Definition at line 95 of file qv4stacklimits.cpp.
References base, incrementStackPointer(), and PlatformSafetyMargin.
Referenced by stackPropertiesGeneric().
|
inline |
Definition at line 36 of file qv4stacklimits_p.h.
|
static |
Definition at line 86 of file qv4stacklimits.cpp.
References base.
Referenced by stackPropertiesGeneric().
QV4::DEFINE_OBJECT_VTABLE | ( | ModelObject | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | NamedNodeMap | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | Node | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | NodeList | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | NodePrototype | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | QMetaObjectWrapper | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | QmlSignalHandler | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | QObjectMethod | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | QObjectWrapper | ) |
QV4::DEFINE_OBJECT_VTABLE | ( | Sequence | ) |
Definition at line 16 of file qv4functiontable_noop.cpp.
References function, and Q_UNUSED.
Referenced by QV4::Function::~Function().
|
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().
|
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().
|
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().
|
static |
Definition at line 292 of file qqmlvaluetypewrapper.cpp.
References args, doStaticReadCall(), metaObject(), and QMetaObject::ReadProperty.
Referenced by doStaticReadCall(), and getGadgetProperty().
|
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().
|
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().
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().
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().
|
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().
Definition at line 10 of file qv4functiontable_noop.cpp.
|
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().
|
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().
|
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().
|
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().
|
static |
Definition at line 301 of file qqmlvaluetypewrapper.cpp.
References args, QV4::QObjectMethod::create(), QList< T >::data(), date, dateTime, doStaticReadCall(), engine, QMetaType::flags(), QJSEngine::fromVariant(), getGadgetProperty(), QMetaType::id(), metaObject(), QMetaType::PointerToQObject, QMetaType::QVariant, QMetaObject::ReadProperty, referenceFlags(), QQmlMetaObject::resolveGadgetMethodOrPropertyIndex(), time, QMetaType::underlyingType(), QMetaType::UnknownType, VALUE_TYPE_LOAD, and QQmlLocale::wrap().
Referenced by getGadgetProperty(), QV4::QQmlValueTypeWrapper::lookupGetter(), QV4::QQmlValueTypeWrapperOwnPropertyKeyIterator::next(), QV4::QQmlValueTypeWrapper::virtualGet(), and QV4::QQmlValueTypeWrapper::virtualGetOwnProperty().
|
static |
Definition at line 310 of file qv4qobjectwrapper.cpp.
References getPropertyFromImports(), and qmlContext().
Referenced by getPropertyFromImports(), and QV4::QObjectWrapper::virtualResolveLookupGetter().
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().
|
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().
|
static |
Definition at line 261 of file qv4mm.cpp.
References className.
Referenced by QV4::MemoryManager::runGC().
|
static |
Definition at line 76 of file qv4stacklimits.cpp.
References base.
Referenced by createStackProperties().
|
static |
Definition at line 94 of file qv4function.cpp.
References QV4::CompiledData::Invalid.
Referenced by QV4::Function::Function().
|
static |
Definition at line 113 of file qv4qobjectwrapper.cpp.
References QV4::Heap::Base::asReturnedValue(), QJSValuePrivate::convertToReturnedValue(), QV4::Scope::engine, QMetaType::flags(), QV4::ExecutionEngine::fromVariant(), QMetaType::id(), QMetaType::IsConst, QMetaType::IsQmlList, QQmlType::isSequentialContainer(), QMetaType::isValid(), QQmlMetaType::isValueType(), QQmlType::listMetaSequence(), loadProperty(), QQmlMetaType::metaObjectForValueType(), QV4::SequencePrototype::newSequence(), QV4::ExecutionEngine::newString(), property, Q_ASSERT, QQmlMetaType::qmlListType(), qWarning, referenceFlags(), QMetaType::underlyingType(), and wrapper().
Referenced by QV4::QObjectWrapper::getProperty(), and loadProperty().
Definition at line 1312 of file qv4qobjectwrapper.cpp.
References child, markChildQObjectsRecursively(), parent, and queue.
Referenced by markChildQObjectsRecursively(), and QV4::Heap::QObjectWrapper::markObjects().
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().
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().
|
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().
|
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().
|
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().
|
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().
|
inline |
Definition at line 41 of file qv4jsonobject_p.h.
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().
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().
QV4::Q_DECLARE_OPERATORS_FOR_FLAGS | ( | ExecutionEngine::DiskCacheOptions | ) |
QV4::Q_STATIC_ASSERT | ( | (1<< Chunk::BitShift) | = =Chunk::Bits | ) |
QV4::Q_STATIC_ASSERT | ( | (1<< Chunk::ChunkShift) | = =Chunk::ChunkSize | ) |
QV4::Q_STATIC_ASSERT | ( | 1<< Chunk::SlotSizeShift | = =Chunk::SlotSize | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(CallData, _argc) | = =CallData::Argc *sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(CallData, accumulator) | = =CallData::Accumulator *sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(CallData, args) | = =6 *sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(CallData, context) | = =CallData::Context *sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(CallData, function) | = =CallData::Function *sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(CallData, newTarget) | = =CallData::NewTarget *sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(CallData, thisObject) | = =CallData::This *sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(EngineBase, currentStackFrame) | = =0 | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(EngineBase, globalObject) % | QT_POINTER_SIZE = =0 | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(EngineBase, hasException) | = =offsetof(EngineBase, jsStackTop)+QT_POINTER_SIZE | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(EngineBase, isInterrupted)+sizeof(EngineBase::isInterrupted)<=offsetof(EngineBase, hasException)+ | 4 | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(EngineBase, jsStackTop) | = =offsetof(EngineBase, currentStackFrame)+QT_POINTER_SIZE | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(EngineBase, memoryManager) | = =offsetof(EngineBase, hasException)+8 | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(Lookup, getter) | = =0 | ) |
QV4::Q_STATIC_ASSERT | ( | offsetof(ValueArray< 0 >, values) | = =8 | ) |
QV4::Q_STATIC_ASSERT | ( | QT_POINTER_SIZE * | 8 = =Chunk::Bits | ) |
QV4::Q_STATIC_ASSERT | ( | sizeof(Chunk) | = =Chunk::ChunkSize | ) |
QV4::Q_STATIC_ASSERT | ( | sizeof(CppStackFrame) | = =sizeof(JSTypesStackFrame) | ) |
QV4::Q_STATIC_ASSERT | ( | sizeof(HeapItem) | = =Chunk::SlotSize | ) |
QV4::Q_STATIC_ASSERT | ( | sizeof(Value) | = =sizeof(StaticValue) | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_standard_layout< EngineBase >::value | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_standard_layout< FunctionData >::value | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_standard_layout_v< CppStackFrame > | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_standard_layout_v< JSTypesStackFrame > | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_standard_layout_v< MetaTypesStackFrame > | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_trivial_v< QV4QPointer< QObject > > | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_trivial_v< StaticValue > | ) |
QV4::Q_STATIC_ASSERT | ( | std::is_trivial_v< Value > | ) |
|
inline |
Definition at line 44 of file qv4jsonobject_p.h.
Referenced by qHash().
|
inlinenoexcept |
bool QV4::qtTypeInherits | ( | const QMetaObject * | mo | ) |
Definition at line 15 of file qv4resolvedtypereference.cpp.
References mo.
|
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().
|
inline |
Definition at line 32 of file qv4managed_p.h.
|
inline |
Definition at line 35 of file qv4managed_p.h.
|
static |
Definition at line 285 of file qqmlvaluetypewrapper.cpp.
References metaObject(), and referenceFlags().
Referenced by getGadgetProperty(), and referenceFlags().
|
static |
Definition at line 97 of file qv4qobjectwrapper.cpp.
References QV4::EngineBase::currentStackFrame, property, and referenceFlags().
Referenced by loadProperty(), and referenceFlags().
|
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().
|
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().
|
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().
|
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().
|
inline |
Definition at line 253 of file qv4lookup_p.h.
References QV4::Lookup::ic, QV4::Lookup::qobjectLookup, and setupQObjectLookup().
|
inline |
Definition at line 262 of file qv4lookup_p.h.
References QV4::Managed::internalClass(), QV4::Lookup::qmlTypeIc, QV4::Lookup::qobjectLookup, and setupQObjectLookup().
|
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().
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().
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().
StackProperties QV4::stackProperties | ( | ) |
Definition at line 357 of file qv4stacklimits.cpp.
References stackPropertiesGeneric().
Referenced by QV4::ExecutionEngine::ExecutionEngine().
StackProperties QV4::stackPropertiesGeneric | ( | qsizetype | stackSize = 0 | ) |
Definition at line 231 of file qv4stacklimits.cpp.
References createStackProperties(), decrementStackPointer(), and qFatal.
Referenced by stackProperties().
Definition at line 53 of file qv4stringtoarrayindex_p.h.
References QString::constData(), QString::size(), str, and stringToArrayIndex().
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().
|
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().
Definition at line 2391 of file qv4runtime.cpp.
References symbol().
Referenced by QV4::ExecutionEngine::newSymbolObject(), symbol(), and toVariant().
|
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().
|
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().
ReturnedValue QV4::value_convert | ( | ExecutionEngine * | e, |
const Value & | v | ||
) |
|
inline |
Definition at line 519 of file qv4object_p.h.
References e.
|
inline |
Definition at line 267 of file qv4string_p.h.
References e.
|
constexpr |
Definition at line 133 of file qv4vtable_p.h.
|
constexpr |
Definition at line 110 of file qv4vtable_p.h.
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().
|
static |
Definition at line 779 of file qv4mm.cpp.
Referenced by QV4::MemoryManager::runGC().