![]() |
Qt 6.x
The Qt SDK
|
#include <qjsvalue_p.h>
Public Types | |
enum class | Kind { Undefined = 0x0 , Null = 0x2 , IntValue = 0x4 , BoolValue = 0x6 , DoublePtr = 0x0 | s_pointerBit , QV4ValuePtr = 0x2 | s_pointerBit , QStringPtr = 0x4 | s_pointerBit } |
Static Public Attributes | |
static constexpr quint64 | s_minAlignment = 1 << s_tagBits |
Definition at line 30 of file qjsvalue_p.h.
|
strong |
Enumerator | |
---|---|
Undefined | |
Null | |
IntValue | |
BoolValue | |
DoublePtr | |
QV4ValuePtr | |
QStringPtr |
Definition at line 38 of file qjsvalue_p.h.
|
inlinestatic |
Definition at line 277 of file qjsvalue_p.h.
References encodePointer(), and QV4ValuePtr.
Referenced by QJSValue::QJSValue().
|
inlinestatic |
Definition at line 197 of file qjsvalue_p.h.
References QV4ValuePtr, qv4ValuePtr(), and tag.
|
inlinestatic |
Definition at line 218 of file qjsvalue_p.h.
References BoolValue, boolValue(), DoublePtr, doublePtr(), IntValue, intValue(), QV4::Encode::null(), Null, QStringPtr, QV4ValuePtr, tag, QV4::Encode::undefined(), and Undefined.
Referenced by convertToReturnedValue().
Definition at line 240 of file qjsvalue_p.h.
References QStringPtr, qStringPtr(), and tag.
Referenced by QJSManagedValue::QJSManagedValue(), convertToReturnedValue(), QJSValue::equals(), QV4::QQmlContextWrapper::getPropertyAndBase(), manageStringOnV4Heap(), QJSValue::operator=(), QJSValue::strictlyEquals(), QJSValue::toBool(), QJSValue::toInt(), QJSValue::toNumber(), QJSValue::toPrimitive(), QJSValue::toString(), QJSValue::toUInt(), and QJSValue::toVariant().
|
inlinestatic |
Definition at line 249 of file qjsvalue_p.h.
References QV4::StaticValue::asReturnedValue(), BoolValue, boolValue(), DoublePtr, doublePtr(), IntValue, intValue(), QV4::Encode::null(), Null, QStringPtr, QV4ValuePtr, qv4ValuePtr(), tag, QV4::Encode::undefined(), and Undefined.
Referenced by QJSManagedValue::QJSManagedValue(), byProperties(), caughtResult(), QJSValue::deleteProperty(), QJSValue::equals(), QV4::QQmlContextWrapper::getPropertyAndBase(), QJSValue::hasOwnProperty(), QJSValue::hasProperty(), QJSEngine::installExtensions(), QJSValue::operator=(), QQmlValueTypeProvider::populateValueType(), QJSValue::property(), QJSValue::property(), QJSEngine::registerModule(), QQmlListModel::set(), QJSValue::setProperty(), QJSValue::setProperty(), QJSValue::setPrototype(), QJSValue::strictlyEquals(), QJSEngine::throwError(), QJSEngine::throwError(), QJSValue::toPrimitive(), QJSValue::toQMetaObject(), QJSValue::toQObject(), QJSValue::toString(), QJSValue::toVariant(), QV4::QQmlTypeWrapper::virtualGet(), and QV4::QQmlTypeWrapper::virtualPut().
|
inlinestatic |
Definition at line 117 of file qjsvalue_p.h.
References BoolValue, Q_ASSERT, and tag.
Referenced by asPrimitiveType(), asReturnedValue(), and encode().
|
inlinestatic |
Definition at line 323 of file qjsvalue_p.h.
Referenced by QJSValue::call(), QJSManagedValue::call(), QJSValue::callAsConstructor(), QJSManagedValue::callAsConstructor(), QJSValue::callWithInstance(), QJSManagedValue::callWithInstance(), QJSManagedValue::jsMetaInstantiate(), QJSValue::setProperty(), and QJSValue::setProperty().
|
inlinestatic |
Definition at line 298 of file qjsvalue_p.h.
References asPrimitiveType(), asQString(), e, QV4::PersistentValueStorage::getEngine(), qWarning, and QV4::Encode::undefined().
Referenced by QJSValue::call(), QJSManagedValue::call(), QJSValue::callAsConstructor(), QJSManagedValue::callAsConstructor(), QJSValue::callWithInstance(), QJSManagedValue::callWithInstance(), QV4::ExecutionEngine::fromData(), QJSManagedValue::jsMetaInstantiate(), QV4::loadProperty(), QV4::ModelObjectOwnPropertyKeyIterator::next(), QJSManagedValue::setProperty(), QJSValue::setProperty(), QJSManagedValue::setProperty(), and QJSValue::setProperty().
|
inlinestatic |
Definition at line 128 of file qjsvalue_p.h.
References DoublePtr, Q_ASSERT, and tag.
Referenced by QJSValue::QJSValue(), asPrimitiveType(), asReturnedValue(), and free().
|
inlinestatic |
Definition at line 123 of file qjsvalue_p.h.
References BoolValue, and boolValue().
|
inlinestatic |
Definition at line 145 of file qjsvalue_p.h.
References QV4::Value::as(), QV4::StaticValue::Boolean_Type, QV4::StaticValue::booleanValue(), QV4::StaticValue::Double_Type, QV4::StaticValue::doubleValue(), QV4::StaticValue::Empty_Type, encode, encodeNull(), encodePointer(), encodeUndefined(), engine, QV4::StaticValue::Integer_Type, QV4::StaticValue::integerValue(), QV4::StaticValue::Managed_Type, QV4::StaticValue::Null_Type, Q_ASSERT, QV4ValuePtr, QV4::StaticValue::type(), and QV4::StaticValue::Undefined_Type.
|
inlinestatic |
Definition at line 134 of file qjsvalue_p.h.
References DoublePtr, and encodePointer().
|
inlinestatic |
Definition at line 105 of file qjsvalue_p.h.
References IntValue, and intValue().
Referenced by QJSValue::QJSValue(), QJSValue::QJSValue(), and QJSValue::QJSValue().
|
inlinestatic |
Definition at line 184 of file qjsvalue_p.h.
References encodePointer(), and QStringPtr.
Definition at line 179 of file qjsvalue_p.h.
References encodePointer(), and QStringPtr.
Definition at line 110 of file qjsvalue_p.h.
References encode.
|
inlinestatic |
Definition at line 94 of file qjsvalue_p.h.
References Null.
Referenced by QJSValue::QJSValue(), and encode().
Definition at line 82 of file qjsvalue_p.h.
Referenced by adoptPersistentValue(), encode(), encode(), encode(), and encode().
|
inlinestatic |
Definition at line 89 of file qjsvalue_p.h.
References Undefined.
Referenced by QJSValue::QJSValue(), encode(), and takeManagedValue().
|
inlinestatic |
Definition at line 313 of file qjsvalue_p.h.
References QV4::PersistentValueStorage::getEngine(), QV4ValuePtr, qv4ValuePtr(), and tag.
Referenced by QJSValue::call(), QJSValue::callAsConstructor(), QJSValue::callWithInstance(), caughtResult(), QJSValue::deleteProperty(), QJSValue::hasOwnProperty(), QJSValue::hasProperty(), QJSValueIteratorPrivate::init(), QJSEngine::installExtensions(), QJSValue::property(), QJSValue::property(), QJSValue::prototype(), sequenceInterface(), QJSManagedValue::setProperty(), QJSValue::setProperty(), QJSManagedValue::setProperty(), QJSValue::setProperty(), QJSValue::setPrototype(), QJSValue::toQMetaObject(), and QJSValue::toQObject().
Definition at line 329 of file qjsvalue_p.h.
References BoolValue, QThread::currentThread(), DoublePtr, doublePtr(), e, QV4::PersistentValueStorage::free(), QV4::PersistentValueStorage::getEngine(), IntValue, QMetaObject::invokeMethod(), Null, Q_ASSERT, QStringPtr, qStringPtr(), QV4ValuePtr, qv4ValuePtr(), tag, and Undefined.
Referenced by QJSValue::~QJSValue(), and QJSValue::operator=().
|
inlinestatic |
Definition at line 189 of file qjsvalue_p.h.
References d, and setValue().
Referenced by QtObject::binding(), QJSValue::call(), QJSManagedValue::call(), QJSValue::callAsConstructor(), QJSManagedValue::callAsConstructor(), QuickTestUtil::callerFile(), QJSValue::callWithInstance(), QJSManagedValue::callWithInstance(), QJSEngine::catchError(), QQuickCanvasItem::context(), createOrConstructValueType(), QQmlValueTypeProvider::createValueType(), QQmlDelegateModelGroupPrivate::emitChanges(), QQuickTrailEmitter::emitWindow(), QJSEngine::evaluate(), QQuickSpinBoxPrivate::evaluateTextFromValue(), QQuickSpinBoxPrivate::evaluateValueFromText(), QQuickWorkerScript::event(), QQmlDelegateModelGroup::get(), QQmlListModel::get(), QJSEngine::globalObject(), QQmlContext::importedScript(), QJSEngine::importModule(), QQmlPrivate::AOTCompiledContext::javaScriptGlobalProperty(), QQmlPrivate::AOTCompiledContext::jsMetaType(), QV4Include::method_include(), QJSEngine::newArray(), QJSEngine::newErrorObject(), QJSEngine::newObject(), QJSEngine::newQMetaObject(), QJSEngine::newQObject(), QJSEngine::newSymbol(), objectToVariant(), QJSManagedValue::property(), QJSValue::property(), QJSManagedValue::property(), QJSValue::property(), QJSValue::prototype(), QV4::QObjectWrapper::setProperty(), QQmlBinding::slowWrite(), QJSManagedValue::toJSValue(), toVariant(), QuickTestUtil::typeName(), QJSValueIterator::value(), and QQmlPropertyPrivate::write().
|
inlinestatic |
Definition at line 99 of file qjsvalue_p.h.
References IntValue, Q_ASSERT, and tag.
Referenced by asPrimitiveType(), asReturnedValue(), and encode().
|
inlinestatic |
Definition at line 288 of file qjsvalue_p.h.
References asQString(), e, encode, and QV4::Value::fromHeapObject().
Definition at line 76 of file qjsvalue_p.h.
Definition at line 173 of file qjsvalue_p.h.
References Q_ASSERT, QStringPtr, and tag.
Referenced by QJSValue::QJSValue(), asQString(), and free().
|
inlinestatic |
Definition at line 139 of file qjsvalue_p.h.
References Q_ASSERT, QV4ValuePtr, and tag.
Referenced by QJSValue::QJSValue(), asManagedType(), asReturnedValue(), engine(), free(), QJSValue::isString(), QJSValue::isUndefined(), and takeManagedValue().
Definition at line 270 of file qjsvalue_p.h.
References encode.
Referenced by QJSValue::operator=().
|
inlinestatic |
Definition at line 282 of file qjsvalue_p.h.
References encode.
Referenced by QQuickCustomAffector::affectSystem(), QQuickParticleEmitter::emitWindow(), QQuickTrailEmitter::emitWindow(), fromReturnedValue(), QV4::ExecutionEngine::metaTypeFromJS(), QJSValue::operator=(), and ListModel::set().
Definition at line 56 of file qjsvalue_p.h.
Referenced by QJSValue::QJSValue(), QJSValue::isBool(), QJSValue::isNull(), QJSValue::isNumber(), QJSValue::isString(), and QJSValue::isUndefined().
|
inlinestatic |
Definition at line 207 of file qjsvalue_p.h.
References encodeUndefined(), QV4ValuePtr, qv4ValuePtr(), and tag.
Referenced by QJSManagedValue::QJSManagedValue(), QV4::QQmlContextWrapper::getPropertyAndBase(), and QQuickLoader::setSource().
|
staticconstexpr |
Definition at line 71 of file qjsvalue_p.h.