Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::Value Struct Reference

#include <qv4value_p.h>

+ Inheritance diagram for QV4::Value:
+ Collaboration diagram for QV4::Value:

Public Types

using ManagedPtr = Managed *
 
- Public Types inherited from QV4::StaticValue
enum class  TagBit {
  SpecialNegative = 0b10000000000000000000 << 12 , SpecialQNaN = 0b00000000000010000000 << 12 , Special = 0b00000000000001000000 << 12 , IntCompat = 0b00000000000000100000 << 12 ,
  Unmanaged = 0b00000000000000010000 << 12 , IntOrBool = 0b00000000000000001000 << 12 , Number = 0b00000000000000000100 << 12
}
 
enum  Type {
  Managed_Type = 0 , Double_Type = 1 , Undefined_Type = 2 , Empty_Type = quint32(TagBit::Unmanaged) ,
  Null_Type = Empty_Type | quint32(TagBit::IntCompat) , Boolean_Type = Null_Type | quint32(TagBit::IntOrBool) , Integer_Type = Boolean_Type | quint32(TagBit::Number)
}
 
enum  {
  Tag_Shift = 32 , IsIntegerConvertible_Shift = 48 , IsIntegerConvertible_Value = 3 , IsIntegerOrBool_Shift = 47 ,
  IsIntegerOrBool_Value = 7
}
 
enum class  QuickType : quint32 {
  Managed = Managed_Type , Empty = Empty_Type , Null = Null_Type , Boolean = Boolean_Type ,
  Integer = Integer_Type , PlusInf = quint32(TagBit::Number) | quint32(TagBit::Special) | quint32(TagBit::Unmanaged) , MinusInf = PlusInf | quint32(TagBit::SpecialNegative) , NaN = PlusInf | quint32(TagBit::SpecialQNaN) ,
  MinusNaN = NaN | quint32(TagBit::SpecialNegative)
}
 
enum  {
  QT_Empty = Empty_Type , QT_Null = Null_Type , QT_Bool = Boolean_Type , QT_Int = Integer_Type ,
  QuickType_Shift = Tag_Shift
}
 
using HeapBasePtr = Heap::Base *
 
using ValueTypeInternal = QuickType
 

Public Member Functions

 Value ()=default
 
constexpr Value (quint64 val)
 
bool isString () const
 
bool isStringOrSymbol () const
 
bool isSymbol () const
 
bool isObject () const
 
bool isFunctionObject () const
 
QML_NEARLY_ALWAYS_INLINE StringstringValue () const
 
QML_NEARLY_ALWAYS_INLINE StringOrSymbolstringOrSymbolValue () const
 
QML_NEARLY_ALWAYS_INLINE SymbolsymbolValue () const
 
QML_NEARLY_ALWAYS_INLINE ObjectobjectValue () const
 
QML_NEARLY_ALWAYS_INLINE ManagedPtr managed () const
 
QML_NEARLY_ALWAYS_INLINE Value::HeapBasePtr heapObject () const
 
int toUInt16 () const
 
int toInt32 () const
 
unsigned int toUInt32 () const
 
qint64 toLength () const
 
qint64 toIndex () const
 
bool toBoolean () const
 
double toInteger () const
 
ReturnedValue convertedToNumber () const
 
double toNumber () const
 
double toNumberImpl () const
 
QString toQStringNoThrow () const
 
QString toQString () const
 
QString toQString (bool *ok) const
 
Heap::StringtoString (ExecutionEngine *e) const
 
QV4::PropertyKey toPropertyKey (ExecutionEngine *e) const
 
Heap::Object * toObject (ExecutionEngine *e) const
 
bool isPrimitive () const
 
template<typename T >
const T * as () const
 
template<typename T >
T * as ()
 
template<typename T >
T * cast ()
 
template<typename T >
const T * cast () const
 
uint asArrayLength (bool *ok) const
 
bool sameValue (Value other) const
 
bool sameValueZero (Value other) const
 
void mark (MarkStack *markStack)
 
Valueoperator= (const ScopedValue &v)
 
Valueoperator= (ReturnedValue v)
 
Valueoperator= (ManagedPtr m)
 
Valueoperator= (HeapBasePtr o)
 
template<typename T >
Valueoperator= (const Scoped< T > &t)
 
template<>
const DateObjectas () const
 
template<>
const ErrorObjectas () const
 
template<>
const FunctionObjectas () const
 
template<>
const Managedas () const
 
template<>
const Objectas () const
 
template<>
const ArrayObjectas () const
 
template<>
const StringOrSymbolas () const
 
template<>
const Stringas () const
 
template<>
const UrlObjectas () const
 
template<>
const UrlSearchParamsObjectas () const
 
- Public Member Functions inherited from QV4::StaticValue
 StaticValue ()=default
 
constexpr StaticValue (quint64 val)
 
StaticValueoperator= (ReturnedValue v)
 
template<typename Value >
StaticValueoperator= (const Value &)
 
template<typename Value >
const ValueasValue () const
 
template<typename Value >
ValueasValue ()
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint64rawValueRef ()
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint64 rawValue () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setRawValue (quint64 raw)
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setTagValue (quint32 tag, quint32 value)
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint32 value () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint32 tag () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setTag (quint32 tag)
 
QV4_NEARLY_ALWAYS_INLINE constexpr int int_32 () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setInt_32 (int i)
 
QV4_NEARLY_ALWAYS_INLINE uint uint_32 () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setEmpty ()
 
Type type () const
 
quint64 quickType () const
 
bool isEmpty () const
 
bool isNull () const
 
bool isBoolean () const
 
bool isInteger () const
 
bool isNullOrUndefined () const
 
bool isUndefined () const
 
bool isDouble () const
 
bool isNumber () const
 
bool isManagedOrUndefined () const
 
bool isManaged () const
 
bool isIntOrBool () const
 
bool integerCompatible () const
 
bool isNaN () const
 
bool isPositiveInt () const
 
QV4_NEARLY_ALWAYS_INLINE double doubleValue () const
 
QV4_NEARLY_ALWAYS_INLINE void setDouble (double d)
 
bool isInt32 ()
 
double asDouble () const
 
bool booleanValue () const
 
int integerValue () const
 
bool tryIntegerConversion ()
 
bool toBoolean () const
 
int toInt32 () const
 
ReturnedValuedata_ptr ()
 
constexpr ReturnedValue asReturnedValue () const
 
template<>
StaticValueoperator= (const Value &value)
 
template<typename Managed >
StaticValueoperator= (const Managed &m)
 
template<>
ValueasValue ()
 
template<>
const ValueasValue () const
 

Static Public Member Functions

static constexpr Value fromStaticValue (StaticValue staticValue)
 
static Value fromHeapObject (HeapBasePtr m)
 
static bool toBooleanImpl (Value val)
 
static double toNumberImpl (Value v)
 
static Heap::StringtoString (ExecutionEngine *e, Value val)
 
static Heap::Object * toObject (ExecutionEngine *e, Value val)
 
static constexpr Value fromReturnedValue (ReturnedValue val)
 
static double toInteger (double d)
 
static int toInt32 (double d)
 
static unsigned int toUInt32 (double d)
 
static constexpr Value emptyValue ()
 
static constexpr Value fromBoolean (bool b)
 
static constexpr Value fromInt32 (int i)
 
static constexpr Value undefinedValue ()
 
static constexpr Value nullValue ()
 
static Value fromDouble (double d)
 
static Value fromUInt32 (uint i)
 
- Static Public Member Functions inherited from QV4::StaticValue
static int valueOffset ()
 
static int tagOffset ()
 
static constexpr quint64 tagValue (quint32 tag, quint32 value)
 
static constexpr quint64 tagBitMask (TagBit bit)
 
static bool integerCompatible (StaticValue a, StaticValue b)
 
static bool bothDouble (StaticValue a, StaticValue b)
 
static QV4_NEARLY_ALWAYS_INLINE bool isInt32 (double d)
 
static constexpr StaticValue fromReturnedValue (ReturnedValue val)
 
static constexpr StaticValue emptyValue ()
 
static constexpr StaticValue fromBoolean (bool b)
 
static constexpr StaticValue fromInt32 (int i)
 
static constexpr StaticValue undefinedValue ()
 
static constexpr StaticValue nullValue ()
 
static StaticValue fromDouble (double d)
 
static StaticValue fromUInt32 (uint i)
 
static double toInteger (double d)
 
static int toInt32 (double d)
 
static unsigned int toUInt32 (double d)
 

Additional Inherited Members

- Public Attributes inherited from QV4::StaticValue
quint64 _val
 
- Static Public Attributes inherited from QV4::StaticValue
static constexpr quint64 ExponentMask = 0b0111111111110000ull << 48
 
static constexpr quint64 Top1Mask = 0b1000000000000000ull << 48
 
static constexpr quint64 Upper3Mask = 0b0000000000001110ull << 48
 
static constexpr quint64 Lower5Mask = 0b0000000000011111ull
 
static constexpr quint64 ManagedMask = ExponentMask | quint64(TagBit::Unmanaged) << Tag_Shift
 
static constexpr quint64 DoubleMask = ManagedMask | quint64(TagBit::Special) << Tag_Shift
 
static constexpr quint64 NumberMask = ManagedMask | quint64(TagBit::Number) << Tag_Shift
 
static constexpr quint64 IntOrBoolMask = ManagedMask | quint64(TagBit::IntOrBool) << Tag_Shift
 
static constexpr quint64 IntCompatMask = ManagedMask | quint64(TagBit::IntCompat) << Tag_Shift
 
static constexpr quint64 EncodeMask = DoubleMask | NumberMask
 
static constexpr quint64 DoubleDiscriminator = ((quint64(TagBit::Unmanaged) | quint64(TagBit::Special)) << Tag_Shift)
 
static constexpr quint64 NumberDiscriminator = ((quint64(TagBit::Unmanaged) | quint64(TagBit::Number)) << Tag_Shift)
 

Detailed Description

Definition at line 37 of file qv4value_p.h.

Member Typedef Documentation

◆ ManagedPtr

Definition at line 39 of file qv4value_p.h.

Constructor & Destructor Documentation

◆ Value() [1/2]

QV4::Value::Value ( )
default

Referenced by QV4::MemberData::allocate(), QV4::ExecutionContext::cloneBlockContext(), QV4::ExecutionContext::newBlockContext(), QV4::ExecutionContext::newCallContext(), and QV4::ArrayData::realloc().

+ Here is the caller graph for this function:

◆ Value() [2/2]

constexpr QV4::Value::Value ( quint64 val)
inlineconstexpr

Definition at line 42 of file qv4value_p.h.

Member Function Documentation

◆ as() [1/12]

template<typename T >
T * QV4::Value::as ( )
inline

Definition at line 149 of file qv4value_p.h.

◆ as() [2/12]

template<>
const DateObject * QV4::Value::as ( ) const
inline

Definition at line 220 of file qv4dateobject_p.h.

References QV4::StaticValue::isManaged(), and QV4::Managed::Type_DateObject.

+ Here is the call graph for this function:

◆ as() [3/12]

template<>
const ErrorObject * QV4::Value::as ( ) const
inline

Definition at line 146 of file qv4errorobject_p.h.

References QV4::StaticValue::isManaged().

+ Here is the call graph for this function:

◆ as() [4/12]

template<>
const FunctionObject * QV4::Value::as ( ) const
inline

Definition at line 203 of file qv4functionobject_p.h.

References QV4::StaticValue::isManaged().

+ Here is the call graph for this function:

◆ as() [5/12]

template<>
const Managed * QV4::Value::as ( ) const
inline

Definition at line 177 of file qv4managed_p.h.

References managed().

+ Here is the call graph for this function:

◆ as() [6/12]

template<>
const Object * QV4::Value::as ( ) const
inline

Definition at line 182 of file qv4managed_p.h.

References objectValue().

+ Here is the call graph for this function:

◆ as() [7/12]

template<>
const ArrayObject * QV4::Value::as ( ) const
inline

Definition at line 514 of file qv4object_p.h.

References QV4::StaticValue::isManaged(), and QV4::Managed::Type_ArrayObject.

+ Here is the call graph for this function:

◆ as() [8/12]

template<>
const StringOrSymbol * QV4::Value::as ( ) const
inline

Definition at line 267 of file qv4string_p.h.

References QV4::StaticValue::isManaged().

+ Here is the call graph for this function:

◆ as() [9/12]

template<>
const String * QV4::Value::as ( ) const
inline

Definition at line 272 of file qv4string_p.h.

References QV4::StaticValue::isManaged().

+ Here is the call graph for this function:

◆ as() [10/12]

template<>
const UrlObject * QV4::Value::as ( ) const
inline

Definition at line 125 of file qv4urlobject_p.h.

References QV4::StaticValue::isManaged(), and QV4::Managed::Type_UrlObject.

+ Here is the call graph for this function:

◆ as() [11/12]

template<>
const UrlSearchParamsObject * QV4::Value::as ( ) const
inline

Definition at line 241 of file qv4urlobject_p.h.

References QV4::StaticValue::isManaged(), and QV4::Managed::Type_UrlSearchParamsObject.

+ Here is the call graph for this function:

◆ as() [12/12]

template<typename T >
const T * QV4::Value::as ( ) const
inline

Definition at line 132 of file qv4value_p.h.

References QV4::VTable::parent, and Q_ASSERT.

Referenced by QV4::ExecutionEngine::ExecutionEngine(), QQmlDelayedCallQueue::addUniquelyAndExecuteLater(), QV4::Runtime::LoadSuperConstructor::call(), QV4::Runtime::IteratorClose::call(), QV4::Runtime::CallPropertyLookup::call(), QV4::Runtime::CreateClass::call(), QV4::QObjectMethod::callInternal(), QV4::coerce(), QV4::coerceListType(), QV4::coerceQObject(), Collector::collect(), collectProperty(), QV4::convertAndCall(), QQuickStackViewPrivate::createElement(), QJSManagedValue::deleteProperty(), QJSManagedValue::deleteProperty(), QV4::doGetIndexed(), QV4::doInstanceof(), QV4::RegExpPrototype::execFirstMatch(), QV4::Promise::ReactionHandler::executeResolveThenable(), firstOrLastIndexOf(), functionObjectForCall(), QQmlDelegateModelItem::get_groups(), VDMAbstractItemModelDataType::get_hasModelChildren(), QQmlAdaptorModelEngineData::get_index(), QQmlDelegateModelItem::get_model(), QQmlDMListAccessorData::get_modelData(), QQmlDMAbstractItemModelData::get_modelData(), QQmlDMAbstractItemModelData::get_property(), QV4::DatePrototype::getThisDate(), getThisString(), QV4::Object::getValueAccessor(), QQuickContext2DStyle::gradient_proto_addColorStop(), QJSManagedValue::hasOwnProperty(), QJSManagedValue::hasOwnProperty(), QJSManagedValue::hasProperty(), QJSManagedValue::hasProperty(), QQmlComponent::incubateObject(), QV4::UrlSearchParamsObject::indexOf(), QV4::UrlSearchParamsObject::initializeParams(), initProperties(), QV4::Moth::VME::interpret(), QJSManagedValue::isArray(), QJSManagedValue::isDate(), QJSManagedValue::isError(), QJSManagedValue::isJsMetaType(), isLocaleObject(), QJSManagedValue::isQMetaObject(), QJSManagedValue::isQObject(), QJSManagedValue::isRegularExpression(), QJSManagedValue::isUrl(), QJSManagedValue::isVariant(), QJSManagedValue::jsMetaInstantiate(), QJSManagedValue::jsMetaMembers(), QJSManagedValue::jsMetaType(), QV4::QQmlTypeWrapper::lookupSingletonMethod(), QV4::PersistentValueStorage::mark(), QV4::MatchScore(), QQmlVMEMetaObject::metaCall(), QV4::ExecutionEngine::metaTypeFromJS(), QV4::QQmlXMLHttpRequestCtor::method_abort(), QV4::PromiseCtor::method_all(), QV4::FunctionPrototype::method_apply(), QV4::PromisePrototype::method_catch(), QV4::RegExpPrototype::method_compile(), QV4::Reflect::method_construct(), QQuickJSContext2DPrototype::method_createConicalGradient(), QQuickJSContext2DPrototype::method_createImageData(), QQuickJSContext2DPrototype::method_createLinearGradient(), QQuickJSContext2DPrototype::method_createRadialGradient(), QV4::VariantPrototype::method_destroy(), QV4::Document::method_documentElement(), QV4::RegExpPrototype::method_exec(), QV4::QmlIncubatorObject::method_forceCompletion(), QV4::UrlSearchParamsPrototype::method_forEach(), QV4::ArrayPrototype::method_from(), QV4::IntrinsicTypedArrayCtor::method_from(), QV4::DataViewPrototype::method_get(), QV4::NodePrototype::method_get_attributes(), QV4::DataViewPrototype::method_get_buffer(), QV4::IntrinsicTypedArrayPrototype::method_get_buffer(), QV4::SharedArrayBufferPrototype::method_get_byteLength(), QV4::ArrayBufferPrototype::method_get_byteLength(), QV4::DataViewPrototype::method_get_byteLength(), QV4::IntrinsicTypedArrayPrototype::method_get_byteLength(), QV4::DataViewPrototype::method_get_byteOffset(), QV4::IntrinsicTypedArrayPrototype::method_get_byteOffset(), QQuickJSContext2DPrototype::method_get_canvas(), QV4::NodePrototype::method_get_childNodes(), QQmlDelegateModelGroupChange::method_get_count(), QQuickJSContext2D::method_get_fillRule(), QQuickJSContext2D::method_get_fillStyle(), QV4::NodePrototype::method_get_firstChild(), QQuickJSContext2D::method_get_globalAlpha(), QQuickJSContext2D::method_get_globalCompositeOperation(), QQmlDelegateModelGroupChange::method_get_index(), QV4::NodePrototype::method_get_lastChild(), QV4::IntrinsicTypedArrayPrototype::method_get_length(), QV4::PropertyListPrototype::method_get_length(), QV4::method_get_length(), QQmlDelegateModelGroupChange::method_get_moveId(), QV4::NodePrototype::method_get_namespaceUri(), QV4::NodePrototype::method_get_nextSibling(), QV4::NodePrototype::method_get_nodeName(), QV4::NodePrototype::method_get_nodeType(), QV4::NodePrototype::method_get_nodeValue(), QV4::QmlIncubatorObject::method_get_object(), QV4::NodePrototype::method_get_parentNode(), QV4::NodePrototype::method_get_previousSibling(), QV4::ObjectPrototype::method_get_proto(), QV4::QQmlXMLHttpRequestCtor::method_get_readyState(), QV4::QQmlXMLHttpRequestCtor::method_get_response(), QV4::QQmlXMLHttpRequestCtor::method_get_responseText(), QV4::QQmlXMLHttpRequestCtor::method_get_responseType(), QV4::QQmlXMLHttpRequestCtor::method_get_responseURL(), QV4::QQmlXMLHttpRequestCtor::method_get_responseXML(), QV4::ErrorObject::method_get_stack(), QV4::QmlIncubatorObject::method_get_status(), QV4::QQmlXMLHttpRequestCtor::method_get_status(), QV4::QmlIncubatorObject::method_get_statusChanged(), QV4::QQmlXMLHttpRequestCtor::method_get_statusText(), QQuickJSContext2D::method_get_strokeStyle(), QV4::IntrinsicTypedArrayPrototype::method_get_toStringTag(), QV4::QQmlXMLHttpRequestCtor::method_getAllResponseHeaders(), QV4::DataViewPrototype::method_getChar(), QV4::DataViewPrototype::method_getFloat(), QQuickJSContext2DPrototype::method_getImageData(), QV4::QQmlXMLHttpRequestCtor::method_getResponseHeader(), QV4::UrlPrototype::method_getSearchParams(), QV4::FunctionPrototype::method_hasInstance(), QV4::Text::method_isElementContentWhitespace(), QV4::ArrayPrototype::method_join(), QV4::CharacterData::method_length(), QQmlLocale::method_localeCompare(), QV4::Attr::method_name(), QV4::GeneratorPrototype::method_next(), QV4::ArrayIteratorPrototype::method_next(), QV4::MapIteratorPrototype::method_next(), QV4::SetIteratorPrototype::method_next(), QV4::StringIteratorPrototype::method_next(), QV4::IntrinsicTypedArrayCtor::method_of(), QV4::QQmlXMLHttpRequestCtor::method_open(), QV4::QQmlXMLHttpRequestCtor::method_overrideMimeType(), QV4::Attr::method_ownerElement(), QV4::PropertyListPrototype::method_pop(), QV4::VariantPrototype::method_preserve(), QV4::PropertyListPrototype::method_push(), QQuickJSContext2DPrototype::method_putImageData(), QV4::PromiseCtor::method_race(), QV4::PromiseCtor::method_reject(), QV4::StringPrototype::method_replace(), QQuickJSContext2DPrototype::method_reset(), QQuickJSContext2DPrototype::method_resetTransform(), QV4::PromiseCtor::method_resolve(), QQuickJSContext2DPrototype::method_restore(), QV4::GeneratorPrototype::method_return(), QQuickJSContext2DPrototype::method_rotate(), QQuickJSContext2DPrototype::method_save(), QQuickJSContext2DPrototype::method_scale(), QV4::QQmlXMLHttpRequestCtor::method_send(), QV4::DataViewPrototype::method_set(), QQuickJSContext2D::method_set_fillRule(), QQuickJSContext2D::method_set_fillStyle(), QQuickJSContext2D::method_set_globalAlpha(), QQuickJSContext2D::method_set_globalCompositeOperation(), QV4::PropertyListPrototype::method_set_length(), QV4::method_set_length(), QV4::QQmlXMLHttpRequestCtor::method_set_responseType(), QV4::QmlIncubatorObject::method_set_statusChanged(), QQuickJSContext2D::method_set_strokeStyle(), QV4::DataViewPrototype::method_setChar(), QV4::DatePrototype::method_setDate(), QV4::DataViewPrototype::method_setFloat(), QV4::DatePrototype::method_setFullYear(), QV4::DatePrototype::method_setHours(), QV4::DatePrototype::method_setMilliseconds(), QV4::DatePrototype::method_setMinutes(), QV4::DatePrototype::method_setMonth(), QV4::QQmlXMLHttpRequestCtor::method_setRequestHeader(), QV4::DatePrototype::method_setSeconds(), QV4::DatePrototype::method_setTime(), QQuickJSContext2DPrototype::method_setTransform(), QV4::DatePrototype::method_setUTCDate(), QV4::DatePrototype::method_setUTCFullYear(), QV4::DatePrototype::method_setUTCHours(), QV4::DatePrototype::method_setUTCMilliseconds(), QV4::DatePrototype::method_setUTCMinutes(), QV4::DatePrototype::method_setUTCMonth(), QV4::DatePrototype::method_setUTCSeconds(), QV4::DatePrototype::method_setYear(), QQuickJSContext2DPrototype::method_shear(), QV4::PropertyListPrototype::method_shift(), QV4::PropertyListPrototype::method_sort(), QV4::PropertyListPrototype::method_splice(), QV4::JsonObject::method_stringify(), QV4::SymbolPrototype::method_symbolToPrimitive(), QV4::PromisePrototype::method_then(), QV4::GeneratorPrototype::method_throw(), QV4::DatePrototype::method_toISOString(), QV4::DatePrototype::method_toJSON(), QV4::ArrayBufferPrototype::method_toString(), QV4::ErrorPrototype::method_toString(), QV4::FunctionPrototype::method_toString(), QV4::ObjectPrototype::method_toString(), QV4::RegExpPrototype::method_toString(), QV4::StringPrototype::method_toString(), QV4::SymbolPrototype::method_toString(), QV4::VariantPrototype::method_toString(), QV4::QQmlValueTypeWrapper::method_toString(), QV4::DatePrototype::method_toUTCString(), QQuickJSContext2DPrototype::method_transform(), QQuickJSContext2DPrototype::method_translate(), QV4::PropertyListPrototype::method_unshift(), QV4::Attr::method_value(), QV4::SymbolPrototype::method_valueOf(), QV4::VariantPrototype::method_valueOf(), QV4::Text::method_wholeText(), QV4::Document::method_xmlEncoding(), QV4::Document::method_xmlStandalone(), QV4::Document::method_xmlVersion(), QV4::UrlSearchParamsObject::params(), QJSManagedValue::property(), QJSManagedValue::property(), QQuickJSContext2DPixelData::proto_get_length(), QJSManagedValue::prototype(), qmlsqldatabase_executeSql(), qmlsqldatabase_rows_forwardOnly(), qmlsqldatabase_rows_item(), qmlsqldatabase_rows_length(), qmlsqldatabase_rows_setForwardOnly(), qmlsqldatabase_transaction_shared(), qmlsqldatabase_version(), QQmlVMEMetaObject::readPropertyAsDate(), QQmlVMEMetaObject::readPropertyAsDateTime(), QQmlVMEMetaObject::readPropertyAsPointF(), QQmlVMEMetaObject::readPropertyAsQObject(), QQmlVMEMetaObject::readPropertyAsRectF(), QQmlVMEMetaObject::readPropertyAsSizeF(), QQmlVMEMetaObject::readPropertyAsTime(), QQmlVMEMetaObject::readPropertyAsUrl(), removePendingQPropertyBinding(), ListModel::set(), ListModel::set(), QQmlDelegateModelItem::set_groups(), QQmlDMAbstractItemModelData::set_modelData(), QQmlDMListAccessorData::set_modelData(), QQmlDMAbstractItemModelData::set_property(), QJSManagedValue::setProperty(), QJSManagedValue::setProperty(), QJSManagedValue::setPrototype(), QV4::SharedArrayBufferPrototype::slice(), QQmlBinding::slowWrite(), Stringify::Str(), QuickTestResult::stringify(), QV4::MemoryManager::sweep(), thisAsString(), thisNumber(), thisNumberValue(), QJSManagedValue::toDateTime(), QJSManagedValue::toQMetaObject(), QJSManagedValue::toQObject(), QJSManagedValue::toRegularExpression(), QJSManagedValue::toUrl(), QJSManagedValue::toVariant(), toVariant(), validateSharedIntegerTypedArray(), value(), QV4::ResolveWrapper::virtualCall(), QV4::UrlCtor::virtualCallAsConstructor(), QV4::UrlSearchParamsCtor::virtualCallAsConstructor(), QV4::Proxy::virtualCallAsConstructor(), QV4::Object::virtualInstanceOf(), QV4::QMetaObjectWrapper::virtualIsEqualTo(), QV4::QObjectWrapper::virtualIsEqualTo(), QV4::QQmlTypeWrapper::virtualIsEqualTo(), QV4::QObjectWrapper::virtualMetacall(), QV4::QQmlTypeWrapper::virtualMetacall(), QV4::QQmlValueTypeWrapper::virtualMetacall(), GenericBinding< StaticPropType >::write(), and QQmlVMEMetaObject::writeVarProperty().

◆ asArrayLength()

uint Value::asArrayLength ( bool * ok) const

Definition at line 275 of file qv4value.cpp.

References d, QV4::StaticValue::doubleValue(), QV4::StaticValue::int_32(), QV4::StaticValue::isInteger(), QV4::StaticValue::isNumber(), ok, stringValue(), toNumber(), and toUInt32().

Referenced by QV4::PropertyListPrototype::method_set_length(), QV4::method_set_length(), and QV4::ArrayCtor::virtualCallAsConstructor().

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

◆ cast() [1/2]

template<typename T >
T * QV4::Value::cast ( )
inline

Definition at line 156 of file qv4value_p.h.

References managed().

Referenced by QV4::Lookup::getterIndexed().

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

◆ cast() [2/2]

template<typename T >
const T * QV4::Value::cast ( ) const
inline

Definition at line 159 of file qv4value_p.h.

References managed().

+ Here is the call graph for this function:

◆ convertedToNumber()

ReturnedValue QV4::Value::convertedToNumber ( ) const
inline

Definition at line 329 of file qv4value_p.h.

References QV4::StaticValue::asReturnedValue(), QV4::StaticValue::isDouble(), QV4::StaticValue::isInteger(), QV4::StaticValue::setDouble(), and toNumberImpl().

Referenced by QV4::Atomics::method_compareExchange(), and QV4::Atomics::method_store().

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

◆ emptyValue()

◆ fromBoolean()

static constexpr Value QV4::Value::fromBoolean ( bool b)
inlinestaticconstexpr

Definition at line 183 of file qv4value_p.h.

Referenced by QV4::IteratorPrototype::createIterResultObject(), QV4::ObjectPrototype::fromPropertyDescriptor(), QV4::ArrayPrototype::init(), QQuickJSContext2DPrototype::method_isPointInPath(), and QQmlVMEMetaObject::writeProperty().

+ Here is the caller graph for this function:

◆ fromDouble()

static Value QV4::Value::fromDouble ( double d)
inlinestatic

Definition at line 199 of file qv4value_p.h.

References d.

Referenced by QV4::ExecutionEngine::ExecutionEngine(), QV4::Heap::MathObject::init(), QV4::NumberPrototype::init(), QV4::PropertyKey::isCanonicalNumericIndexString(), QV4::ArrayPrototype::method_every(), QV4::IntrinsicTypedArrayPrototype::method_every(), QV4::IntrinsicTypedArrayPrototype::method_fill(), QV4::ArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::ArrayPrototype::method_find(), QV4::IntrinsicTypedArrayPrototype::method_find(), QV4::ArrayPrototype::method_findIndex(), QV4::IntrinsicTypedArrayPrototype::method_findIndex(), QV4::MathObject::method_floor(), QV4::ArrayPrototype::method_forEach(), QV4::IntrinsicTypedArrayPrototype::method_forEach(), QV4::ArrayPrototype::method_from(), QV4::IntrinsicTypedArrayCtor::method_from(), QQuickJSContext2DPrototype::method_getLineDash(), QV4::MathObject::method_hypot(), QV4::ArrayPrototype::method_join(), QV4::IntrinsicTypedArrayPrototype::method_join(), QV4::ArrayPrototype::method_map(), QV4::IntrinsicTypedArrayPrototype::method_map(), QQuickJSContext2DPrototype::method_measureText(), QV4::ArrayPrototype::method_of(), QV4::ArrayPrototype::method_pop(), QV4::ArrayPrototype::method_push(), QV4::ArrayPrototype::method_reduce(), QV4::IntrinsicTypedArrayPrototype::method_reduce(), QV4::ArrayPrototype::method_reduceRight(), QV4::IntrinsicTypedArrayPrototype::method_reduceRight(), QV4::ArrayPrototype::method_shift(), QV4::ArrayPrototype::method_some(), QV4::IntrinsicTypedArrayPrototype::method_some(), QV4::ArrayPrototype::method_splice(), QV4::NumberPrototype::method_toString(), QV4::ArrayPrototype::method_unshift(), QV4::ESTable::set(), and QQmlVMEMetaObject::writeProperty().

+ Here is the caller graph for this function:

◆ fromHeapObject()

static Value QV4::Value::fromHeapObject ( HeapBasePtr m)
inlinestatic

◆ fromInt32()

static constexpr Value QV4::Value::fromInt32 ( int i)
inlinestaticconstexpr

Definition at line 187 of file qv4value_p.h.

References i.

Referenced by QV4::ExecutionEngine::ExecutionEngine(), advanceLastIndexOnEmptyMatch(), QV4::RegExpObject::builtinExec(), QV4::FunctionObject::createBuiltinFunction(), QtObject::createQmlObject(), QV4::IntrinsicTypedArrayPrototype::init(), QV4::SharedArrayBufferPrototype::init(), QV4::ArrayBufferPrototype::init(), QV4::ArrayPrototype::init(), QV4::BooleanPrototype::init(), QV4::DataViewPrototype::init(), QV4::DatePrototype::init(), QV4::FunctionPrototype::init(), QV4::GeneratorPrototype::init(), QV4::WeakMapPrototype::init(), QV4::MapPrototype::init(), QV4::NumberPrototype::init(), QV4::ObjectPrototype::init(), QV4::PromisePrototype::init(), QV4::RegExpPrototype::init(), QV4::WeakSetPrototype::init(), QV4::SetPrototype::init(), QV4::StringPrototype::init(), QV4::SymbolPrototype::init(), QV4::ErrorPrototype::init(), QV4::TypedArrayPrototype::init(), QV4::Heap::EvalFunction::init(), QV4::Heap::ArrowFunction::init(), QV4::RegExpObject::initProperties(), QV4::Moth::VME::interpret(), QV4::RegExpPrototype::method_match(), QV4::ArrayIteratorPrototype::method_next(), QV4::IntrinsicTypedArrayCtor::method_of(), QV4::ArrayPrototype::method_pop(), QV4::RegExpPrototype::method_replace(), QV4::Proxy::method_revocable(), QV4::RegExpPrototype::method_search(), QV4::ArrayPrototype::method_shift(), QV4::RegExpPrototype::method_split(), QV4::ExecutionEngine::newPromiseObject(), qmlsqldatabase_executeSql(), qt_add_domexceptions(), qt_add_sqlexceptions(), QV4::QQmlXMLHttpRequestCtor::setupProto(), QV4::QQmlTypeWrapper::virtualGet(), QV4::QQmlScopedEnumWrapper::virtualGet(), QV4::NamedNodeMap::virtualGet(), QV4::NodeList::virtualGet(), QV4::QQmlTypeWrapper::virtualResolveLookupGetter(), and QQmlVMEMetaObject::writeProperty().

◆ fromReturnedValue()

static constexpr Value QV4::Value::fromReturnedValue ( ReturnedValue val)
inlinestaticconstexpr

◆ fromStaticValue()

static constexpr Value QV4::Value::fromStaticValue ( StaticValue staticValue)
inlinestaticconstexpr

Definition at line 44 of file qv4value_p.h.

Referenced by QV4::ExecutionContext::newBlockContext(), and QV4::ExecutionContext::newCallContext().

+ Here is the caller graph for this function:

◆ fromUInt32()

static Value QV4::Value::fromUInt32 ( uint i)
inlinestatic

Definition at line 203 of file qv4value_p.h.

References i.

Referenced by QV4::StringPrototype::method_replace(), QV4::Object::setArrayLengthUnchecked(), QV4::QmlIncubatorObject::statusChanged(), QV4::PropertyKey::toStringOrSymbol(), QQuickCanvasItem::updatePolish(), QV4::ProxyObject::virtualDefineOwnProperty(), QV4::ProxyObject::virtualGetOwnProperty(), and QV4::ProxyObject::virtualHasProperty().

+ Here is the caller graph for this function:

◆ heapObject()

QML_NEARLY_ALWAYS_INLINE Value::HeapBasePtr QV4::Value::heapObject ( ) const
inline

Definition at line 80 of file qv4value_p.h.

Referenced by isFunctionObject(), isObject(), isString(), isStringOrSymbol(), QV4::Property::isSubset(), isSymbol(), mark(), QV4::Property::setter(), ObjectInCreationGCAnchorList::trackObject(), QV4::ArrayBufferCtor::virtualCallAsConstructor(), and QV4::TypedArrayCtor::virtualCallAsConstructor().

+ Here is the caller graph for this function:

◆ isFunctionObject()

◆ isObject()

◆ isPrimitive()

bool QV4::Value::isPrimitive ( ) const
inline

Definition at line 315 of file qv4value_p.h.

References isObject().

+ Here is the call graph for this function:

◆ isString()

◆ isStringOrSymbol()

bool QV4::Value::isStringOrSymbol ( ) const
inline

Definition at line 290 of file qv4value_p.h.

References heapObject().

Referenced by QV4::Runtime::CompareEqual::call(), and toPropertyKey().

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

◆ isSymbol()

bool QV4::Value::isSymbol ( ) const
inline

Definition at line 296 of file qv4value_p.h.

References heapObject().

Referenced by QV4::SymbolCtor::method_keyFor(), QV4::SymbolPrototype::method_symbolToPrimitive(), QV4::ObjectPrototype::method_toString(), toQString(), toQString(), QJSManagedValue::type(), QV4::StringCtor::virtualCall(), QV4::Module::virtualDeleteProperty(), QV4::Module::virtualGet(), QV4::NamedNodeMap::virtualGet(), QV4::Module::virtualGetOwnProperty(), QV4::Module::virtualHasProperty(), and QV4::QQmlContextWrapper::virtualPut().

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

◆ managed()

QML_NEARLY_ALWAYS_INLINE ManagedPtr QV4::Value::managed ( ) const
inline

Definition at line 75 of file qv4value_p.h.

Referenced by as(), QV4::PersistentValue::asManaged(), QV4::WeakValue::asManaged(), QV4::MemoryManager::cleanupDeletedQObjectWrappersInSweep(), QV4::MemoryManager::collectFromJSStack(), QV4::Scoped< Object >::operator Object *(), and QV4::MemoryManager::sweep().

+ Here is the caller graph for this function:

◆ mark()

void QV4::Value::mark ( MarkStack * markStack)
inline

Definition at line 277 of file qv4value_p.h.

References heapObject(), and o.

Referenced by QV4::ESTable::markObjects(), QV4::Heap::QQuickJSContext2DImageData::markObjects(), and QV4::WeakValue::markOnce().

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

◆ nullValue()

static constexpr Value QV4::Value::nullValue ( )
inlinestaticconstexpr

Definition at line 195 of file qv4value_p.h.

◆ objectValue()

◆ operator=() [1/5]

template<typename T >
Value & QV4::Value::operator= ( const Scoped< T > & t)
inline

Definition at line 410 of file qv4scopedvalue_p.h.

References QV4::StaticValue::_val, and QV4::StaticValue::rawValue().

+ Here is the call graph for this function:

◆ operator=() [2/5]

Value & QV4::Value::operator= ( const ScopedValue & v)
inline

Definition at line 403 of file qv4scopedvalue_p.h.

References QV4::StaticValue::_val, and QV4::StaticValue::rawValue().

Referenced by QV4::InternalClass::operator=().

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

◆ operator=() [3/5]

Value & QV4::Value::operator= ( HeapBasePtr o)
inline

Definition at line 222 of file qv4value_p.h.

References o.

◆ operator=() [4/5]

Value & QV4::Value::operator= ( ManagedPtr m)
inline

Definition at line 214 of file qv4value_p.h.

◆ operator=() [5/5]

Value & QV4::Value::operator= ( ReturnedValue v)
inline

Definition at line 209 of file qv4value_p.h.

◆ sameValue()

bool Value::sameValue ( Value other) const

Definition at line 226 of file qv4value.cpp.

References QV4::StaticValue::_val, QV4::StaticValue::doubleValue(), QV4::StaticValue::int_32(), QV4::StaticValue::isDouble(), QV4::StaticValue::isInteger(), QV4::StaticValue::isManaged(), other(), and stringValue().

Referenced by QV4::Property::isCompatible(), QV4::RegExpPrototype::method_get_global(), QV4::RegExpPrototype::method_get_ignoreCase(), QV4::RegExpPrototype::method_get_multiline(), QV4::RegExpPrototype::method_get_source(), QV4::RegExpPrototype::method_get_sticky(), and QV4::RegExpPrototype::method_get_unicode().

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

◆ sameValueZero()

bool Value::sameValueZero ( Value other) const

Definition at line 244 of file qv4value.cpp.

References QV4::StaticValue::_val, QV4::StaticValue::doubleValue(), QV4::StaticValue::int_32(), QV4::StaticValue::isDouble(), QV4::StaticValue::isInteger(), QV4::StaticValue::isManaged(), other(), and stringValue().

+ Here is the call graph for this function:

◆ stringOrSymbolValue()

QML_NEARLY_ALWAYS_INLINE StringOrSymbol * QV4::Value::stringOrSymbolValue ( ) const
inline

Definition at line 60 of file qv4value_p.h.

◆ stringValue()

◆ symbolValue()

QML_NEARLY_ALWAYS_INLINE Symbol * QV4::Value::symbolValue ( ) const
inline

Definition at line 65 of file qv4value_p.h.

Referenced by toQStringNoThrow(), and QV4::StringCtor::virtualCall().

+ Here is the caller graph for this function:

◆ toBoolean()

◆ toBooleanImpl()

bool Value::toBooleanImpl ( Value val)
static

Definition at line 42 of file qv4value.cpp.

References d.

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

+ Here is the caller graph for this function:

◆ toIndex()

qint64 QV4::Value::toIndex ( ) const
inline

Definition at line 378 of file qv4value_p.h.

References Q_LIKELY, and toInteger().

Referenced by validateAtomicAccess(), and QV4::DataViewCtor::virtualCallAsConstructor().

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

◆ toInt32() [1/2]

int QV4::Value::toInt32 ( ) const
inline

◆ toInt32() [2/2]

static int QV4::Value::toInt32 ( double d)
inlinestatic

Definition at line 177 of file qv4value_p.h.

References d.

◆ toInteger() [1/2]

double QV4::Value::toInteger ( ) const
inline

Definition at line 391 of file qv4value_p.h.

References toInteger().

Referenced by DateFromTime(), QQmlLocaleValueType::formattedDataSize(), MakeDay(), MakeTime(), QV4::PromisePrototype::method_catch(), QV4::StringPrototype::method_charAt(), QV4::StringPrototype::method_charCodeAt(), QV4::StringPrototype::method_codePointAt(), QV4::ArrayPrototype::method_copyWithin(), QV4::IntrinsicTypedArrayPrototype::method_copyWithin(), QV4::StringPrototype::method_endsWith(), QV4::ArrayPrototype::method_fill(), QV4::IntrinsicTypedArrayPrototype::method_fill(), QV4::ArrayPrototype::method_includes(), QV4::StringPrototype::method_includes(), QV4::IntrinsicTypedArrayPrototype::method_includes(), QV4::ArrayPrototype::method_indexOf(), QV4::StringPrototype::method_indexOf(), QV4::IntrinsicTypedArrayPrototype::method_indexOf(), QV4::PropertyListPrototype::method_indexOf(), QV4::Atomics::method_isLockFree(), QV4::ArrayPrototype::method_lastIndexOf(), QV4::IntrinsicTypedArrayPrototype::method_lastIndexOf(), QV4::PropertyListPrototype::method_lastIndexOf(), QV4::StringPrototype::method_padEnd(), QV4::StringPrototype::method_padStart(), QV4::IntrinsicTypedArrayPrototype::method_set(), QV4::DatePrototype::method_setYear(), QV4::ArrayPrototype::method_slice(), QV4::StringPrototype::method_slice(), QV4::IntrinsicTypedArrayPrototype::method_slice(), QV4::ArrayPrototype::method_splice(), QV4::PropertyListPrototype::method_splice(), QV4::StringPrototype::method_startsWith(), QV4::IntrinsicTypedArrayPrototype::method_subarray(), QV4::StringPrototype::method_substr(), QV4::StringPrototype::method_substring(), QV4::NumberPrototype::method_toExponential(), QV4::NumberPrototype::method_toFixed(), QV4::DatePrototype::method_UTC(), QV4::SharedArrayBufferPrototype::slice(), TimeClip(), toIndex(), toInteger(), toLength(), QV4::SharedArrayBufferCtor::virtualCallAsConstructor(), QV4::ArrayBufferCtor::virtualCallAsConstructor(), and QV4::TypedArrayCtor::virtualCallAsConstructor().

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

◆ toInteger() [2/2]

static double QV4::Value::toInteger ( double d)
inlinestatic

Definition at line 176 of file qv4value_p.h.

References d.

◆ toLength()

qint64 QV4::Value::toLength ( ) const
inline

Definition at line 366 of file qv4value_p.h.

References i, Q_LIKELY, and toInteger().

Referenced by QV4::ArgumentsObject::virtualGetLength(), and QV4::ArrayObject::virtualGetLength().

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

◆ toNumber()

double QV4::Value::toNumber ( ) const
inline

Definition at line 320 of file qv4value_p.h.

References QV4::StaticValue::doubleValue(), QV4::StaticValue::int_32(), QV4::StaticValue::isDouble(), QV4::StaticValue::isInteger(), and toNumberImpl().

Referenced by asArrayLength(), QQuickContext2DStyle::gradient_proto_addColorStop(), QV4::MathObject::method_abs(), QV4::MathObject::method_acos(), QV4::MathObject::method_acosh(), QQuickJSContext2DPrototype::method_arc(), QQuickJSContext2DPrototype::method_arcTo(), QV4::MathObject::method_asin(), QV4::MathObject::method_asinh(), QV4::MathObject::method_atan(), QV4::MathObject::method_atan2(), QV4::MathObject::method_atanh(), QQuickJSContext2DPrototype::method_bezierCurveTo(), QV4::MathObject::method_cbrt(), QV4::MathObject::method_ceil(), QQuickJSContext2DPrototype::method_clearRect(), QV4::MathObject::method_cos(), QV4::MathObject::method_cosh(), QQuickJSContext2DPrototype::method_createConicalGradient(), QQuickJSContext2DPrototype::method_createImageData(), QQuickJSContext2DPrototype::method_createLinearGradient(), QQuickJSContext2DPrototype::method_createRadialGradient(), QQuickJSContext2DPrototype::method_drawImage(), QQuickJSContext2DPrototype::method_ellipse(), QV4::MathObject::method_exp(), QV4::MathObject::method_expm1(), QV4::IntrinsicTypedArrayPrototype::method_fill(), QQuickJSContext2DPrototype::method_fillRect(), QQuickJSContext2DPrototype::method_fillText(), QV4::MathObject::method_floor(), QV4::StringCtor::method_fromCodePoint(), QV4::MathObject::method_fround(), QQuickJSContext2DPrototype::method_getImageData(), QV4::MathObject::method_hypot(), QV4::GlobalFunctions::method_isFinite(), QV4::NumberPrototype::method_isFinite(), QV4::GlobalFunctions::method_isNaN(), QV4::NumberPrototype::method_isNaN(), QQuickJSContext2DPrototype::method_isPointInPath(), QQuickJSContext2DPrototype::method_lineTo(), QV4::MathObject::method_log(), QV4::MathObject::method_log10(), QV4::MathObject::method_log1p(), QV4::MathObject::method_log2(), QV4::MathObject::method_max(), QV4::MathObject::method_min(), QQuickJSContext2DPrototype::method_moveTo(), QV4::MathObject::method_pow(), QQuickJSContext2DPrototype::method_putImageData(), QQuickJSContext2DPrototype::method_quadraticCurveTo(), QQuickJSContext2DPrototype::method_rect(), QQuickJSContext2DPrototype::method_rotate(), QV4::MathObject::method_round(), QQuickJSContext2DPrototype::method_roundedRect(), QQuickJSContext2DPrototype::method_scale(), QV4::IntrinsicTypedArrayPrototype::method_set(), QQuickJSContext2D::method_set_globalAlpha(), QQuickJSContext2D::method_set_lineDashOffset(), QQuickJSContext2D::method_set_lineWidth(), QQuickJSContext2D::method_set_miterLimit(), QQuickJSContext2D::method_set_shadowBlur(), QQuickJSContext2D::method_set_shadowOffsetX(), QQuickJSContext2D::method_set_shadowOffsetY(), QV4::DatePrototype::method_setDate(), QV4::DataViewPrototype::method_setFloat(), QV4::DatePrototype::method_setFullYear(), QV4::DatePrototype::method_setHours(), QV4::DatePrototype::method_setMilliseconds(), QV4::DatePrototype::method_setMinutes(), QV4::DatePrototype::method_setMonth(), QV4::DatePrototype::method_setSeconds(), QV4::DatePrototype::method_setTime(), QQuickJSContext2DPrototype::method_setTransform(), QV4::DatePrototype::method_setUTCDate(), QV4::DatePrototype::method_setUTCFullYear(), QV4::DatePrototype::method_setUTCHours(), QV4::DatePrototype::method_setUTCMilliseconds(), QV4::DatePrototype::method_setUTCMinutes(), QV4::DatePrototype::method_setUTCMonth(), QV4::DatePrototype::method_setUTCSeconds(), QV4::DatePrototype::method_setYear(), QQuickJSContext2DPrototype::method_shear(), QV4::MathObject::method_sign(), QV4::MathObject::method_sin(), QV4::MathObject::method_sinh(), QV4::MathObject::method_sqrt(), QQuickJSContext2DPrototype::method_strokeRect(), QQuickJSContext2DPrototype::method_strokeText(), QV4::MathObject::method_tan(), QV4::MathObject::method_tanh(), QQuickJSContext2DPrototype::method_text(), QQuickJSContext2DPrototype::method_transform(), QQuickJSContext2DPrototype::method_translate(), QV4::MathObject::method_trunc(), QV4::DatePrototype::method_UTC(), QJSManagedValue::toNumber(), QJSValue::toNumber(), toUInt16(), QV4::NumberCtor::virtualCall(), QV4::DateCtor::virtualCallAsConstructor(), and QV4::NumberCtor::virtualCallAsConstructor().

+ Here is the call graph for this function:

◆ toNumberImpl() [1/2]

double QV4::Value::toNumberImpl ( ) const
inline

Definition at line 108 of file qv4value_p.h.

References toNumberImpl().

Referenced by convertedToNumber(), toNumber(), and toNumberImpl().

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

◆ toNumberImpl() [2/2]

double Value::toNumberImpl ( Value v)
static

◆ toObject() [1/2]

Heap::Object * QV4::Value::toObject ( ExecutionEngine * e) const
inline

Definition at line 122 of file qv4value_p.h.

Referenced by firstOrLastIndexOf(), QV4::ArrayPrototype::method_copyWithin(), QV4::ArrayPrototype::method_entries(), QV4::ArrayPrototype::method_every(), QV4::ArrayPrototype::method_fill(), QV4::ArrayPrototype::method_filter(), QV4::ArrayPrototype::method_find(), QV4::ArrayPrototype::method_findIndex(), QV4::ArrayPrototype::method_forEach(), QV4::IntrinsicTypedArrayCtor::method_from(), QV4::PropertyListPrototype::method_get_length(), QV4::ObjectPrototype::method_hasOwnProperty(), QV4::ArrayPrototype::method_includes(), QV4::ArrayPrototype::method_indexOf(), QV4::ObjectPrototype::method_isPrototypeOf(), QV4::ArrayPrototype::method_join(), QV4::ArrayPrototype::method_keys(), QV4::ArrayPrototype::method_lastIndexOf(), QV4::ArrayPrototype::method_map(), QV4::Reflect::method_ownKeys(), QV4::ArrayPrototype::method_pop(), QV4::PropertyListPrototype::method_pop(), QV4::ObjectPrototype::method_propertyIsEnumerable(), QV4::ArrayPrototype::method_push(), QV4::PropertyListPrototype::method_push(), QV4::StringCtor::method_raw(), QV4::ArrayPrototype::method_reduce(), QV4::ArrayPrototype::method_reduceRight(), QV4::ArrayPrototype::method_reverse(), QV4::IntrinsicTypedArrayPrototype::method_set(), QV4::PropertyListPrototype::method_set_length(), QV4::ArrayPrototype::method_shift(), QV4::PropertyListPrototype::method_shift(), QV4::ArrayPrototype::method_slice(), QV4::ArrayPrototype::method_some(), QV4::ArrayPrototype::method_sort(), QV4::PropertyListPrototype::method_sort(), QV4::ArrayPrototype::method_splice(), QV4::PropertyListPrototype::method_splice(), QV4::DatePrototype::method_toJSON(), QV4::ObjectPrototype::method_toLocaleString(), QV4::ArrayPrototype::method_toString(), QV4::ArrayPrototype::method_unshift(), QV4::PropertyListPrototype::method_unshift(), QV4::ObjectPrototype::method_valueOf(), QV4::ArrayPrototype::method_values(), QV4::ObjectCtor::virtualCall(), and QV4::ObjectCtor::virtualCallAsConstructor().

+ Here is the caller graph for this function:

◆ toObject() [2/2]

Heap::Object * Value::toObject ( ExecutionEngine * e,
Value val )
static

Definition at line 270 of file qv4value.cpp.

References QV4::RuntimeHelpers::convertToObject().

+ Here is the call graph for this function:

◆ toPropertyKey()

QV4::PropertyKey Value::toPropertyKey ( ExecutionEngine * e) const

Definition at line 207 of file qv4value.cpp.

References QV4::PropertyKey::fromArrayIndex(), QV4::EngineBase::hasException, QV4::StaticValue::int_32(), QV4::PropertyKey::invalid(), QV4::StaticValue::isInteger(), isStringOrSymbol(), QV4::STRING_HINT, and QV4::RuntimeHelpers::toPrimitive().

Referenced by QV4::Reflect::method_defineProperty().

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

◆ toQString() [1/2]

QString Value::toQString ( ) const

Definition at line 158 of file qv4value.cpp.

References engine, QV4::StaticValue::isManaged(), isObject(), isSymbol(), objectValue(), primitiveToQString(), Q_ASSERT, QV4::STRING_HINT, stringValue(), and QV4::RuntimeHelpers::toPrimitive().

Referenced by getThisString(), QV4::UrlObject::hash(), QV4::UrlObject::host(), QV4::UrlObject::hostname(), QV4::UrlObject::href(), QV4::GlobalFunctions::method_decodeURI(), QV4::GlobalFunctions::method_decodeURIComponent(), QV4::GlobalFunctions::method_encodeURI(), QV4::GlobalFunctions::method_encodeURIComponent(), QV4::GlobalFunctions::method_escape(), QV4::StringPrototype::method_normalize(), QV4::JsonObject::method_parse(), QV4::StringCtor::method_raw(), QV4::StringPrototype::method_replace(), QQuickJSContext2D::method_set_globalCompositeOperation(), QQuickJSContext2D::method_set_lineCap(), QQuickJSContext2D::method_set_lineJoin(), QV4::GlobalExtensions::method_string_arg(), QV4::GlobalFunctions::method_unescape(), StringObjectOwnPropertyKeyIterator::next(), QV4::UrlObject::origin(), QV4::FunctionCtor::parse(), QV4::UrlObject::password(), QV4::UrlObject::pathname(), QV4::UrlObject::port(), QV4::UrlObject::protocol(), qmlsqldatabase_changeVersion(), qmlsqldatabase_executeSql(), QJSManagedValue::toPrimitive(), QJSManagedValue::toString(), QJSManagedValue::toVariant(), QV4::UrlObject::username(), and QV4::Object::virtualDefineOwnProperty().

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

◆ toQString() [2/2]

QString Value::toQString ( bool * ok) const

Definition at line 178 of file qv4value.cpp.

References engine, QV4::Scope::hasException(), QV4::StaticValue::isManaged(), isObject(), isSymbol(), objectValue(), ok, primitiveToQString(), Q_ASSERT, QV4::STRING_HINT, stringValue(), and QV4::RuntimeHelpers::toPrimitive().

+ Here is the call graph for this function:

◆ toQStringNoThrow()

QString Value::toQStringNoThrow ( ) const

Definition at line 122 of file qv4value.cpp.

References QV4::ExecutionEngine::catchException(), engine, QV4::Scope::engine, QV4::Scope::hasException(), QV4::StaticValue::isManaged(), isObject(), objectValue(), primitiveToQString(), Q_ASSERT, QV4::STRING_HINT, stringValue(), symbolValue(), and QV4::RuntimeHelpers::toPrimitive().

Referenced by QV4::QmlSignalHandler::call(), QV4::QObjectMethod::callInternal(), QV4::ExecutionEngine::catchExceptionAsQmlError(), QQmlDelegateModelPrivate::insert(), QV4::Moth::VME::interpret(), QV4::ConsoleObject::method_assert(), QV4::ConsoleObject::method_count(), QQuickJSContext2DPrototype::method_createPattern(), QQuickJSContext2DPrototype::method_fillText(), QV4::IntrinsicTypedArrayCtor::method_from(), QV4::QQmlXMLHttpRequestCtor::method_getResponseHeader(), QQmlLocale::method_localeCompare(), QQuickJSContext2DPrototype::method_measureText(), QV4::QQmlXMLHttpRequestCtor::method_open(), QV4::QQmlXMLHttpRequestCtor::method_overrideMimeType(), QV4::QQmlXMLHttpRequestCtor::method_send(), QV4::QQmlXMLHttpRequestCtor::method_set_responseType(), QV4::QQmlXMLHttpRequestCtor::method_setRequestHeader(), QQuickJSContext2DPrototype::method_strokeText(), QQuickJSContext2DPrototype::method_text(), QV4::ConsoleObject::method_time(), QV4::ConsoleObject::method_timeEnd(), and QV4::throwPropertyIsNotAFunctionTypeError().

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

◆ toString() [1/2]

Heap::String * QV4::Value::toString ( ExecutionEngine * e) const
inline

Definition at line 114 of file qv4value_p.h.

References toString().

Referenced by QV4::PromisePrototype::method_catch(), QV4::StringPrototype::method_concat(), QV4::SymbolCtor::method_for(), QV4::StringPrototype::method_iterator(), QV4::StringPrototype::method_match(), QV4::SequencePrototype::method_valueOf(), thisAsString(), QV4::StringCtor::virtualCall(), and QV4::StringCtor::virtualCallAsConstructor().

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

◆ toString() [2/2]

Heap::String * Value::toString ( ExecutionEngine * e,
Value val )
static

Definition at line 265 of file qv4value.cpp.

References QV4::RuntimeHelpers::convertToString().

+ Here is the call graph for this function:

◆ toUInt16()

int Value::toUInt16 ( ) const

Definition at line 16 of file qv4value.cpp.

References d, QV4::StaticValue::integerCompatible(), QV4::StaticValue::integerValue(), number, and toNumber().

Referenced by QV4::StringCtor::method_fromCharCode().

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

◆ toUInt32() [1/2]

unsigned int QV4::Value::toUInt32 ( ) const
inline

Definition at line 361 of file qv4value_p.h.

References toInt32().

Referenced by asArrayLength(), QV4::MathObject::method_clz32(), QV4::MathObject::method_imul(), QV4::RegExpPrototype::method_split(), qmlsqldatabase_rows_item(), and QJSValue::toUInt().

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

◆ toUInt32() [2/2]

static unsigned int QV4::Value::toUInt32 ( double d)
inlinestatic

Definition at line 178 of file qv4value_p.h.

References d.

◆ undefinedValue()

static constexpr Value QV4::Value::undefinedValue ( )
inlinestaticconstexpr

Definition at line 191 of file qv4value_p.h.

Referenced by QV4::ExecutionEngine::ExecutionEngine(), QV4::Scope::alloc(), QV4::Scope::alloc(), atomicReadModifyWrite(), QV4::MemoryManager::cleanupDeletedQObjectWrappersInSweep(), createObjectFromCtorOrArray(), QV4::doCall(), QV4::Module::evaluate(), QV4::RegExpPrototype::execFirstMatch(), QV4::Property::fullyPopulated(), QQmlListModel::get(), QQmlComponent::incubateObject(), QV4::Heap::QQuickJSContext2DImageData::init(), QV4::Moth::VME::interpret(), QV4::WeakSetPrototype::method_add(), QV4::SetPrototype::method_add(), QV4::FunctionPrototype::method_apply(), QV4::FunctionPrototype::method_bind(), QV4::Atomics::method_compareExchange(), QV4::ObjectPrototype::method_defineProperty(), QV4::Reflect::method_defineProperty(), QV4::MapPrototype::method_delete(), QV4::Reflect::method_deleteProperty(), QV4::StringPrototype::method_endsWith(), QV4::ArrayPrototype::method_every(), QV4::IntrinsicTypedArrayPrototype::method_every(), QV4::RegExpPrototype::method_exec(), QV4::ArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::ArrayPrototype::method_find(), QV4::IntrinsicTypedArrayPrototype::method_find(), QV4::ArrayPrototype::method_findIndex(), QV4::IntrinsicTypedArrayPrototype::method_findIndex(), QV4::SymbolCtor::method_for(), QV4::ArrayPrototype::method_forEach(), QV4::MapPrototype::method_forEach(), QV4::SetPrototype::method_forEach(), QV4::IntrinsicTypedArrayPrototype::method_forEach(), QV4::ObjectPrototype::method_freeze(), QV4::ArrayPrototype::method_from(), QV4::IntrinsicTypedArrayCtor::method_from(), QV4::DataViewPrototype::method_get(), QV4::MapPrototype::method_get(), QV4::Reflect::method_get(), QV4::DataViewPrototype::method_getChar(), QV4::DataViewPrototype::method_getFloat(), QV4::ObjectPrototype::method_getOwnPropertyDescriptor(), QV4::MapPrototype::method_has(), QV4::Reflect::method_has(), QV4::ObjectPrototype::method_hasOwnProperty(), QV4Include::method_include(), QV4::StringPrototype::method_includes(), QV4::ArrayPrototype::method_indexOf(), QV4::StringPrototype::method_indexOf(), QV4::IntrinsicTypedArrayPrototype::method_indexOf(), QV4::ArrayPrototype::method_join(), QV4::IntrinsicTypedArrayPrototype::method_join(), QV4::ArrayPrototype::method_lastIndexOf(), QV4::StringPrototype::method_lastIndexOf(), QV4::IntrinsicTypedArrayPrototype::method_lastIndexOf(), QV4::Atomics::method_load(), QV4::StringPrototype::method_localeCompare(), QV4::ArrayPrototype::method_map(), QV4::IntrinsicTypedArrayPrototype::method_map(), QV4::RegExpPrototype::method_match(), QV4::StringPrototype::method_match(), QV4::GeneratorPrototype::method_next(), QV4::ArrayIteratorPrototype::method_next(), QV4::MapIteratorPrototype::method_next(), QV4::SetIteratorPrototype::method_next(), QV4::StringIteratorPrototype::method_next(), QV4::GlobalFunctions::method_parseFloat(), QV4::GlobalFunctions::method_parseInt(), QV4::ObjectPrototype::method_propertyIsEnumerable(), QV4::PromiseCtor::method_reject(), QV4::StringPrototype::method_repeat(), QV4::RegExpPrototype::method_replace(), QV4::StringPrototype::method_replace(), QV4::PromiseCtor::method_resolve(), QV4::GeneratorPrototype::method_return(), QV4::ObjectPrototype::method_seal(), QV4::RegExpPrototype::method_search(), QV4::StringPrototype::method_search(), QQuickWorkerScriptEnginePrivate::method_sendMessage(), QV4::DataViewPrototype::method_set(), QV4::WeakMapPrototype::method_set(), QV4::MapPrototype::method_set(), QV4::Reflect::method_set(), QQuickJSContext2D::method_set_fillRule(), QQuickJSContext2D::method_set_fillStyle(), QQuickJSContext2D::method_set_font(), QQuickJSContext2D::method_set_strokeStyle(), QQuickJSContext2D::method_set_textAlign(), QQuickJSContext2D::method_set_textBaseline(), QV4::DataViewPrototype::method_setChar(), QV4::DataViewPrototype::method_setFloat(), QV4::ArrayPrototype::method_slice(), QV4::IntrinsicTypedArrayPrototype::method_slice(), QV4::ArrayPrototype::method_some(), QV4::IntrinsicTypedArrayPrototype::method_some(), QV4::ArrayPrototype::method_sort(), QV4::PropertyListPrototype::method_sort(), QV4::ArrayPrototype::method_splice(), QV4::PropertyListPrototype::method_splice(), QV4::RegExpPrototype::method_split(), QV4::StringPrototype::method_split(), QV4::StringPrototype::method_startsWith(), QV4::Atomics::method_store(), QV4::JsonObject::method_stringify(), QV4::GeneratorPrototype::method_throw(), QV4::ExecutionContext::newCallContext(), qfoDoCall(), qmlsqldatabase_changeVersion(), qmlsqldatabase_executeSql(), QQmlVMEMetaObject::readVarProperty(), removeAllOccurrences(), QQuickWorkerScript::sendMessage(), QV4::GeneratorFunction::virtualCall(), QV4::ProxyFunctionObject::virtualCall(), QV4::ScriptFunction::virtualCallAsConstructor(), QV4::ConstructorFunction::virtualCallAsConstructor(), QV4::DefaultClassConstructorFunction::virtualCallAsConstructor(), QV4::ArrayBufferCtor::virtualCallAsConstructor(), QV4::DataViewCtor::virtualCallAsConstructor(), QV4::ErrorCtor::virtualCallAsConstructor(), QV4::EvalErrorCtor::virtualCallAsConstructor(), QV4::RangeErrorCtor::virtualCallAsConstructor(), QV4::ReferenceErrorCtor::virtualCallAsConstructor(), QV4::SyntaxErrorCtor::virtualCallAsConstructor(), QV4::TypeErrorCtor::virtualCallAsConstructor(), QV4::URIErrorCtor::virtualCallAsConstructor(), QV4::ProxyFunctionObject::virtualCallAsConstructor(), QV4::RegExpCtor::virtualCallAsConstructor(), QV4::TypedArrayCtor::virtualCallAsConstructor(), QV4::QmlListWrapper::virtualGet(), QQmlDelegateModelGroupChangeArray::virtualGet(), and QQmlVMEMetaObject::vmeMethod().


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