![]() |
Qt 6.x
The Qt SDK
|
#include <qv4value_p.h>
Public Types | |
using | ManagedPtr = Managed * |
![]() | |
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 |
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::String * | toString (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 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) |
Definition at line 37 of file qv4value_p.h.
using QV4::Value::ManagedPtr = Managed * |
Definition at line 39 of file qv4value_p.h.
|
default |
|
inlineconstexpr |
Definition at line 42 of file qv4value_p.h.
|
inline |
Definition at line 149 of file qv4value_p.h.
|
inline |
Definition at line 214 of file qv4dateobject_p.h.
References QV4::StaticValue::isManaged(), and QV4::Managed::Type_DateObject.
|
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::CreateClass::call(), QV4::QObjectMethod::callInternal(), QV4::coerce(), QV4::coerceListType(), Collector::collect(), collectProperty(), QV4::convertAndCall(), QQuickStackViewPrivate::createElement(), QJSManagedValue::deleteProperty(), QJSManagedValue::deleteProperty(), QV4::doGetIndexed(), QV4::doInstanceof(), QJSValuePrivate::encode(), QV4::RegExpPrototype::execFirstMatch(), QV4::Promise::ReactionHandler::executeResolveThenable(), QQmlDelegateModelItem::get_groups(), VDMAbstractItemModelDataType::get_hasModelChildren(), QQmlAdaptorModelEngineData::get_index(), QQmlDelegateModelItem::get_model(), QQmlDMListAccessorData::get_modelData(), QQmlDMAbstractItemModelData::get_modelData(), QQmlDMAbstractItemModelData::get_property(), QV4::DatePrototype::getThisDate(), QV4::QQmlLocaleData::getThisLocale(), getThisString(), QV4::Object::getValueAccessor(), QQuickContext2DStyle::gradient_proto_addColorStop(), QJSManagedValue::hasOwnProperty(), QJSManagedValue::hasOwnProperty(), QJSManagedValue::hasProperty(), QJSManagedValue::hasProperty(), QQmlComponent::incubateObject(), QV4::UrlSearchParamsObject::indexOf(), QV4::UrlSearchParamsObject::initializeParams(), QJSManagedValue::isArray(), QJSManagedValue::isDate(), QJSManagedValue::isError(), QJSManagedValue::isJsMetaType(), 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::UrlSearchParamsPrototype::method_append(), 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::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::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::VariantPrototype::method_preserve(), 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::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::JsonObject::method_stringify(), QV4::SymbolPrototype::method_symbolToPrimitive(), 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::RuntimeHelpers::ordinaryToPrimitive(), 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(), 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(), 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::QQmlTypeWrapper::virtualInstanceOf(), QV4::QMetaObjectWrapper::virtualIsEqualTo(), QV4::QObjectWrapper::virtualIsEqualTo(), QV4::QQmlTypeWrapper::virtualIsEqualTo(), GenericBinding< StaticPropType >::write(), and QQmlVMEMetaObject::writeVarProperty().
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().
|
inline |
Definition at line 156 of file qv4value_p.h.
References managed().
Referenced by QV4::Lookup::getterIndexed().
|
inline |
Definition at line 159 of file qv4value_p.h.
References managed().
|
inline |
Definition at line 329 of file qv4value_p.h.
References QV4::StaticValue::asReturnedValue(), QV4::StaticValue::isDouble(), QV4::StaticValue::isInteger(), and toNumberImpl().
Referenced by QV4::Atomics::method_compareExchange(), and QV4::Atomics::method_store().
|
inlinestaticconstexpr |
Definition at line 179 of file qv4value_p.h.
Referenced by QV4::Scope::alloc(), QV4::Scope::alloc(), QV4::ExecutionEngine::catchException(), QV4::Heap::DECLARE_HEAP_OBJECT(), QV4::Heap::DECLARE_HEAP_OBJECT(), QV4::SimpleArrayData::del(), QV4::SimpleArrayData::get(), QV4::SparseArrayData::get(), QV4::ArrayData::insert(), QV4::Moth::VME::interpret(), QV4::ObjectPrototype::method_defineGetter(), QV4::ObjectPrototype::method_defineSetter(), QV4::GeneratorPrototype::method_return(), QV4::SimpleArrayData::putArray(), QV4::ArrayData::sort(), QV4::ObjectPrototype::toPropertyDescriptor(), and QV4::ConstructorFunction::virtualCallAsConstructor().
|
inlinestaticconstexpr |
Definition at line 183 of file qv4value_p.h.
Referenced by QV4::IteratorPrototype::createIterResultObject(), QV4::ObjectPrototype::fromPropertyDescriptor(), QV4::ArrayPrototype::init(), QV4::ArrayPrototype::method_from(), QV4::IntrinsicTypedArrayCtor::method_from(), QQuickJSContext2DPrototype::method_isPointInPath(), and QQmlVMEMetaObject::writeProperty().
|
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().
|
inlinestatic |
Definition at line 84 of file qv4value_p.h.
Referenced by QV4::Encode::Encode(), QV4::Property::Property(), QV4::UrlSearchParamsObject::append(), QV4::Heap::Base::asReturnedValue(), QV4::Heap::DECLARE_EXPORTED_HEAP_OBJECT(), QV4::QQmlContextWrapper::lookupType(), QJSValuePrivate::manageStringOnV4Heap(), QV4::UrlSearchParamsPrototype::method_getAll(), QV4::Scoped< T >::operator=(), and QV4::UrlSearchParamsObject::setParams().
|
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::QQmlLocaleData::method_get_weekDays(), 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().
|
inlinestaticconstexpr |
Definition at line 165 of file qv4value_p.h.
Referenced by QV4::Scoped< T >::Scoped(), QV4::Scoped< T >::Scoped(), atomicReadModifyWrite(), caughtResult(), QV4::Object::checkedInstanceOf(), compareEqualInt(), createObjectFromCtorOrArray(), QV4::QQmlContextWrapper::getPropertyAndBase(), QV4::Moth::VME::interpret(), isRegExp(), QV4::PromiseCtor::method_all(), QV4::ObjectPrototype::method_assign(), QV4::Atomics::method_compareExchange(), QV4::ArrayPrototype::method_from(), QV4::IntrinsicTypedArrayCtor::method_from(), QV4::PromiseCtor::method_race(), QV4::Atomics::method_store(), QV4::RegExpPrototype::method_test(), QV4::Scoped< T >::operator=(), QJSValue::setPrototype(), QV4::ArrayData::sort(), QJSValue::toPrimitive(), QJSValue::toString(), QJSValue::toVariant(), QQmlJSTypeResolver::typeForConst(), QV4::ScriptFunction::virtualCallAsConstructor(), QV4::ConstructorFunction::virtualCallAsConstructor(), QV4::DefaultClassConstructorFunction::virtualCallAsConstructor(), QV4::TypedArray::virtualDefineOwnProperty(), QV4::ProxyObject::virtualOwnPropertyKeys(), QV4::TypedArray::virtualPut(), QV4::QQmlTypeWrapper::virtualResolveLookupGetter(), and QQmlVMEMetaObject::writeProperty().
|
inlinestaticconstexpr |
Definition at line 44 of file qv4value_p.h.
References QV4::StaticValue::_val.
Referenced by QV4::ExecutionContext::newBlockContext(), and QV4::ExecutionContext::newCallContext().
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().
|
inline |
Definition at line 80 of file qv4value_p.h.
Referenced by QV4::QQmlContextWrapper::getPropertyAndBase(), isFunctionObject(), isObject(), isString(), isStringOrSymbol(), QV4::Property::isSubset(), isSymbol(), mark(), QV4::Property::setter(), QV4::ArrayBufferCtor::virtualCallAsConstructor(), QV4::TypedArrayCtor::virtualCallAsConstructor(), and QV4::ProxyObject::virtualGetPrototypeOf().
|
inline |
Definition at line 309 of file qv4value_p.h.
References heapObject().
Referenced by QV4::Reflect::method_apply(), QV4::FunctionPrototype::method_call(), QV4::ArrayPrototype::method_every(), QV4::IntrinsicTypedArrayPrototype::method_every(), QV4::ArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_find(), QV4::IntrinsicTypedArrayPrototype::method_findIndex(), QV4::ArrayPrototype::method_forEach(), QV4::IntrinsicTypedArrayPrototype::method_forEach(), QV4::ArrayPrototype::method_map(), QV4::IntrinsicTypedArrayPrototype::method_map(), QV4::ArrayPrototype::method_reduce(), QV4::IntrinsicTypedArrayPrototype::method_reduce(), QV4::ArrayPrototype::method_reduceRight(), QV4::IntrinsicTypedArrayPrototype::method_reduceRight(), QV4::ArrayPrototype::method_some(), QV4::IntrinsicTypedArrayPrototype::method_some(), QV4::PropertyListPrototype::method_sort(), QV4::Object::setProtoFromNewTarget(), QV4::ArrayData::sort(), QJSManagedValue::type(), QV4::ProxyFunctionObject::virtualCall(), QV4::ScriptFunction::virtualCallAsConstructor(), QV4::ArrayBufferCtor::virtualCallAsConstructor(), QV4::ProxyFunctionObject::virtualCallAsConstructor(), QV4::TypedArrayCtor::virtualCallAsConstructor(), QV4::ProxyObject::virtualDefineOwnProperty(), QV4::ProxyObject::virtualDeleteProperty(), QV4::ProxyObject::virtualGet(), QV4::ProxyObject::virtualGetOwnProperty(), QV4::ProxyObject::virtualGetPrototypeOf(), QV4::ProxyObject::virtualHasProperty(), QV4::ProxyObject::virtualIsExtensible(), QV4::ProxyObject::virtualOwnPropertyKeys(), QV4::ProxyObject::virtualPreventExtensions(), QV4::ProxyObject::virtualPut(), and QV4::ProxyObject::virtualSetPrototypeOf().
|
inline |
Definition at line 302 of file qv4value_p.h.
References heapObject().
Referenced by QV4::Runtime::PushWithContext::call(), isPrimitive(), QV4::WeakSetPrototype::method_add(), QV4::PromiseCtor::method_all(), QV4::Reflect::method_apply(), QV4::PromisePrototype::method_catch(), QV4::Reflect::method_construct(), QV4::Reflect::method_defineProperty(), QV4::Reflect::method_deleteProperty(), QV4::QObjectWrapper::method_disconnect(), QV4::Reflect::method_get(), QV4::Reflect::method_getOwnPropertyDescriptor(), QV4::Reflect::method_getPrototypeOf(), QV4::Reflect::method_has(), QV4::Reflect::method_isExtensible(), QV4::Reflect::method_ownKeys(), QV4::Reflect::method_preventExtensions(), QQuickJSContext2DPrototype::method_putImageData(), QV4::PromiseCtor::method_race(), QV4::PromiseCtor::method_reject(), QV4::PromiseCtor::method_resolve(), QV4::WeakMapPrototype::method_set(), QV4::Reflect::method_set(), QV4::Reflect::method_setPrototypeOf(), QV4::DatePrototype::method_symbolToPrimitive(), toQString(), toQString(), toQStringNoThrow(), QV4::ResolveWrapper::virtualCall(), QV4::DefaultClassConstructorFunction::virtualCallAsConstructor(), QV4::TypedArrayCtor::virtualCallAsConstructor(), QV4::ProxyObject::virtualGetOwnProperty(), and QV4::ProxyObject::virtualGetPrototypeOf().
|
inline |
Definition at line 315 of file qv4value_p.h.
References isObject().
Referenced by toQStringNoThrow().
|
inline |
Definition at line 284 of file qv4value_p.h.
References heapObject().
Referenced by QV4::Runtime::CompareEqual::call(), compareEqualInt(), QV4::QQmlContextWrapper::getPropertyAndBase(), QJSManagedValue::hasOwnProperty(), QJSManagedValue::hasProperty(), QJSValue::isString(), QV4::MatchScore(), QV4::PromiseCtor::method_all(), QV4::PromisePrototype::method_catch(), QQuickJSContext2DPrototype::method_createImageData(), QQmlLocale::method_localeCompare(), QV4::PromiseCtor::method_race(), QV4::DatePrototype::method_symbolToPrimitive(), QV4::ObjectPrototype::method_toString(), QV4::StringPrototype::method_toString(), QV4::Module::resolveExport(), QJSManagedValue::toVariant(), QJSManagedValue::type(), QV4::QQmlTypeWrapper::virtualGet(), QV4::QQmlScopedEnumWrapper::virtualGet(), QV4::ModelObject::virtualGet(), QV4::QQmlTypeWrapper::virtualGetOwnProperty(), QV4::QQmlTypeWrapper::virtualPut(), QV4::ModelObject::virtualPut(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().
|
inline |
Definition at line 290 of file qv4value_p.h.
References heapObject().
Referenced by QV4::Runtime::CompareEqual::call(), and toPropertyKey().
|
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().
|
inline |
Definition at line 75 of file qv4value_p.h.
Referenced by QV4::PersistentValue::asManaged(), QV4::WeakValue::asManaged(), and QV4::Scoped< T >::operator T*().
Definition at line 277 of file qv4value_p.h.
References heapObject(), and o.
Referenced by QV4::ESTable::markObjects(), and QV4::Heap::QQuickJSContext2DImageData::markObjects().
|
inlinestaticconstexpr |
Definition at line 195 of file qv4value_p.h.
|
inline |
Definition at line 70 of file qv4value_p.h.
Referenced by QV4::Runtime::CompareGreaterThan::call(), QV4::Runtime::CompareLessThan::call(), QV4::Runtime::CompareGreaterEqual::call(), QV4::Runtime::CompareLessEqual::call(), QV4::Runtime::In::call(), QV4::RuntimeHelpers::equalHelper(), QV4::QQmlContextWrapper::getPropertyAndBase(), QV4::FunctionPrototype::method_apply(), QV4::ArrayPrototype::method_isArray(), QV4::Object::speciesConstructor(), toQString(), toQString(), and toQStringNoThrow().
Definition at line 410 of file qv4scopedvalue_p.h.
References QV4::StaticValue::_val.
|
inline |
Definition at line 403 of file qv4scopedvalue_p.h.
References QV4::StaticValue::_val.
Referenced by QV4::InternalClass::operator=().
|
inline |
Definition at line 222 of file qv4value_p.h.
References o.
|
inline |
Definition at line 214 of file qv4value_p.h.
|
inline |
Definition at line 209 of file qv4value_p.h.
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(), QV4::RegExpPrototype::method_get_unicode(), QV4::RegExpPrototype::method_search(), QV4::RegExpCtor::virtualCallAsConstructor(), and QV4::ProxyObject::virtualGet().
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().
|
inline |
Definition at line 60 of file qv4value_p.h.
|
inline |
Definition at line 55 of file qv4value_p.h.
Referenced by QV4::RuntimeHelpers::addHelper(), asArrayLength(), QV4::Runtime::CompareGreaterThan::call(), QV4::Runtime::CompareLessThan::call(), QV4::Runtime::CompareGreaterEqual::call(), QV4::Runtime::CompareLessEqual::call(), QV4::coerce(), QV4::EvalFunction::evalCall(), QV4::RegExp::getSubstitution(), getThisString(), js_equal(), QV4::ExecutionEngine::metaTypeFromJS(), QV4::UrlSearchParamsPrototype::method_append(), QV4::UrlSearchParamsPrototype::method_delete(), QV4::UrlSearchParamsPrototype::method_get(), QV4::UrlSearchParamsPrototype::method_getAll(), QV4::UrlSearchParamsPrototype::method_has(), QV4::UrlSearchParamsPrototype::method_set(), QV4::DatePrototype::method_symbolToPrimitive(), QQmlVMEMetaObject::readPropertyAsString(), sameValue(), sameValueZero(), ListModel::set(), thisAsString(), toNumberImpl(), toQString(), toQString(), toQStringNoThrow(), toVariant(), and QV4::UrlCtor::virtualCallAsConstructor().
|
inline |
Definition at line 65 of file qv4value_p.h.
Referenced by toQStringNoThrow(), and QV4::StringCtor::virtualCall().
|
inline |
Definition at line 97 of file qv4value_p.h.
Referenced by EvalJob::handleResult(), QV4::Object::isConcatSpreadable(), QV4::PromiseCtor::method_all(), QQuickJSContext2DPrototype::method_arc(), QV4::ConsoleObject::method_assert(), QV4::PromisePrototype::method_catch(), QV4::ArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::DataViewPrototype::method_get(), QV4::DataViewPrototype::method_getFloat(), QV4::RegExpPrototype::method_match(), QV4::PromiseCtor::method_race(), QV4::RegExpPrototype::method_replace(), QV4::DataViewPrototype::method_set(), QV4::DataViewPrototype::method_setFloat(), QJSValue::toBool(), QJSManagedValue::toBoolean(), unscopable(), QV4::BooleanCtor::virtualCall(), QV4::BooleanCtor::virtualCallAsConstructor(), QV4::ProxyObject::virtualDefineOwnProperty(), QV4::ProxyObject::virtualDeleteProperty(), QV4::ProxyObject::virtualHasProperty(), QV4::ProxyObject::virtualIsExtensible(), QV4::ProxyObject::virtualPreventExtensions(), QV4::ProxyObject::virtualPut(), and QV4::ProxyObject::virtualSetPrototypeOf().
|
static |
Definition at line 42 of file qv4value.cpp.
References d.
Referenced by QV4::Moth::VME::interpret().
|
inline |
Definition at line 378 of file qv4value_p.h.
References Q_LIKELY, and toInteger().
Referenced by validateAtomicAccess(), and QV4::DataViewCtor::virtualCallAsConstructor().
|
inline |
Definition at line 350 of file qv4value_p.h.
References Q_LIKELY.
Referenced by QQmlListModel::insert(), QQuickJSContext2DPrototype::method_createPattern(), QV4::QQmlLocaleData::method_get_formattedDataSize(), QV4::DataViewPrototype::method_set(), QV4::DataViewPrototype::method_setChar(), QV4::StringPrototype::method_substr(), QV4::NumberPrototype::method_toPrecision(), QV4::NumberPrototype::method_toString(), QQuickStackView::pop(), QQuickStackView::push(), QQmlListModel::remove(), QQuickStackView::replace(), QJSValue::toInt(), and QJSManagedValue::toInteger().
|
inlinestatic |
Definition at line 177 of file qv4value_p.h.
References d.
|
inline |
Definition at line 391 of file qv4value_p.h.
References toInteger().
Referenced by DateFromTime(), MakeDay(), MakeTime(), QV4::PromiseCtor::method_all(), 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::QQmlLocaleData::method_get_formattedDataSize(), 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::PromiseCtor::method_race(), 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().
|
inlinestatic |
Definition at line 176 of file qv4value_p.h.
References d.
|
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().
|
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(), QV4::Runtime::Exp::call(), 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(), QV4::QQmlLocaleData::method_currencySymbol(), 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::StringPrototype::method_includes(), 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::RegExpPrototype::method_search(), QV4::IntrinsicTypedArrayPrototype::method_set(), QQuickJSContext2D::method_set_globalAlpha(), QQuickJSContext2D::method_set_lineDashOffset(), QQuickJSContext2D::method_set_lineWidth(), QQuickJSContext2D::method_set_miterLimit(), QV4::QQmlLocaleData::method_set_numberOptions(), 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(), QV4::DatePrototype::method_toJSON(), QQuickJSContext2DPrototype::method_transform(), QQuickJSContext2DPrototype::method_translate(), QV4::MathObject::method_trunc(), QV4::DatePrototype::method_UTC(), QJSManagedValue::toNumber(), QJSValue::toNumber(), toNumberImpl(), toUInt16(), QV4::NumberCtor::virtualCall(), QV4::DateCtor::virtualCallAsConstructor(), and QV4::NumberCtor::virtualCallAsConstructor().
|
inline |
Definition at line 108 of file qv4value_p.h.
References toNumberImpl().
Referenced by convertedToNumber(), toNumber(), and toNumberImpl().
|
static |
Definition at line 58 of file qv4value.cpp.
References QV4::StaticValue::Boolean_Type, QV4::Managed::engine(), QV4::Scope::hasException(), QV4::StaticValue::Integer_Type, QV4::StaticValue::Managed_Type, QV4::StaticValue::Null_Type, QV4::NUMBER_HINT, Q_ASSERT, QV4::RuntimeHelpers::stringToNumber(), stringValue(), QV4::ExecutionEngine::throwTypeError(), toNumber(), QV4::RuntimeHelpers::toPrimitive(), and QV4::StaticValue::Undefined_Type.
|
inline |
Definition at line 122 of file qv4value_p.h.
References e.
Referenced by QV4::Runtime::PushWithContext::call(), firstOrLastIndexOf(), QV4::ArrayPrototype::method_concat(), 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().
|
static |
Definition at line 270 of file qv4value.cpp.
References QV4::RuntimeHelpers::convertToObject(), and e.
QV4::PropertyKey Value::toPropertyKey | ( | ExecutionEngine * | e | ) | const |
Definition at line 207 of file qv4value.cpp.
References e, QV4::PropertyKey::fromArrayIndex(), QV4::StaticValue::int_32(), QV4::PropertyKey::invalid(), QV4::StaticValue::isInteger(), isStringOrSymbol(), QV4::STRING_HINT, and QV4::RuntimeHelpers::toPrimitive().
Referenced by QV4::Runtime::CreateClass::call(), and QV4::Reflect::method_defineProperty().
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(), QV4::RuntimeHelpers::toPrimitive(), and toQString().
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::GlobalFunctions::method_parseInt(), QV4::StringCtor::method_raw(), QV4::RegExpPrototype::method_replace(), QV4::StringPrototype::method_replace(), QV4::UrlSearchParamsPrototype::method_set(), QQuickJSContext2D::method_set_globalCompositeOperation(), QQuickJSContext2D::method_set_lineCap(), QQuickJSContext2D::method_set_lineJoin(), QV4::StringPrototype::method_split(), 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(), toQString(), toQString(), QJSManagedValue::toString(), QJSManagedValue::toVariant(), QV4::UrlObject::username(), and QV4::Object::virtualDefineOwnProperty().
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(), QV4::RuntimeHelpers::toPrimitive(), and toQString().
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(), isPrimitive(), objectValue(), primitiveToQString(), Q_ASSERT, QV4::STRING_HINT, stringValue(), symbolValue(), QV4::RuntimeHelpers::toPrimitive(), and toQStringNoThrow().
Referenced by QV4::QObjectMethod::callInternal(), QV4::ExecutionEngine::catchExceptionAsQmlError(), Collector::collect(), collectProperty(), doWriteProperties(), QQmlDelegateModelPrivate::insert(), QV4::Moth::VME::interpret(), QV4::ConsoleObject::method_assert(), QV4::ConsoleObject::method_count(), QQuickJSContext2DPrototype::method_createImageData(), 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(), QV4::throwPropertyIsNotAFunctionTypeError(), toQStringNoThrow(), and QJSValue::toString().
|
inline |
Definition at line 114 of file qv4value_p.h.
References e, and toString().
Referenced by QV4::PromiseCtor::method_all(), QV4::UrlSearchParamsPrototype::method_append(), QV4::ObjectPrototype::method_assign(), QV4::PromisePrototype::method_catch(), QV4::StringPrototype::method_concat(), QV4::SymbolCtor::method_for(), QV4::StringPrototype::method_iterator(), QV4::ArrayPrototype::method_join(), QV4::IntrinsicTypedArrayPrototype::method_join(), QV4::StringPrototype::method_match(), QV4::ArrayPrototype::method_push(), QV4::PromiseCtor::method_race(), QV4::RegExpPrototype::method_replace(), QV4::RegExpPrototype::method_split(), QV4::SequencePrototype::method_valueOf(), thisAsString(), QV4::PropertyKey::toStringOrSymbol(), QV4::StringCtor::virtualCall(), QV4::StringCtor::virtualCallAsConstructor(), QV4::ProxyObject::virtualDefineOwnProperty(), QV4::ProxyObject::virtualGetOwnProperty(), and QV4::ProxyObject::virtualHasProperty().
|
static |
Definition at line 265 of file qv4value.cpp.
References QV4::RuntimeHelpers::convertToString(), and e.
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().
|
inline |
Definition at line 361 of file qv4value_p.h.
References toInt32().
Referenced by asArrayLength(), QV4::MathObject::method_clz32(), QV4::QQmlLocaleData::method_get_formattedDataSize(), QV4::MathObject::method_imul(), QV4::ArrayPrototype::method_join(), QV4::RegExpPrototype::method_split(), qmlsqldatabase_rows_item(), and QJSValue::toUInt().
|
inlinestatic |
Definition at line 178 of file qv4value_p.h.
References d.
|
inlinestaticconstexpr |
Definition at line 191 of file qv4value_p.h.
Referenced by QV4::ExecutionEngine::ExecutionEngine(), QV4::Scope::alloc(), QV4::Scope::alloc(), atomicReadModifyWrite(), 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().