Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4::Encode Struct Reference

#include <qv4staticvalue_p.h>

+ Collaboration diagram for QV4::Encode:

Public Member Functions

constexpr Encode (bool b)
 
 Encode (double d)
 
constexpr Encode (int i)
 
 Encode (uint i)
 
constexpr Encode (ReturnedValue v)
 
constexpr Encode (StaticValue v)
 
template<typename HeapBase >
 Encode (HeapBase *o)
 
 Encode (StaticValue *o)
 
constexpr operator ReturnedValue () const
 

Static Public Member Functions

static constexpr ReturnedValue undefined ()
 
static constexpr ReturnedValue null ()
 
static ReturnedValue smallestNumber (double d)
 

Public Attributes

quint64 val
 

Detailed Description

Definition at line 618 of file qv4staticvalue_p.h.

Constructor & Destructor Documentation

◆ Encode() [1/8]

constexpr QV4::Encode::Encode ( bool  b)
inlineexplicitconstexpr

Definition at line 626 of file qv4staticvalue_p.h.

◆ Encode() [2/8]

QV4::Encode::Encode ( double  d)
inlineexplicit

Definition at line 630 of file qv4staticvalue_p.h.

References QV4::StaticValue::asReturnedValue(), d, and QV4::StaticValue::fromDouble().

+ Here is the call graph for this function:

◆ Encode() [3/8]

constexpr QV4::Encode::Encode ( int  i)
inlineexplicitconstexpr

Definition at line 633 of file qv4staticvalue_p.h.

◆ Encode() [4/8]

QV4::Encode::Encode ( uint  i)
inlineexplicit

Definition at line 637 of file qv4staticvalue_p.h.

References QV4::StaticValue::asReturnedValue(), QV4::StaticValue::fromUInt32(), and i.

+ Here is the call graph for this function:

◆ Encode() [5/8]

constexpr QV4::Encode::Encode ( ReturnedValue  v)
inlineexplicitconstexpr

Definition at line 640 of file qv4staticvalue_p.h.

◆ Encode() [6/8]

constexpr QV4::Encode::Encode ( StaticValue  v)
inlineconstexpr

Definition at line 644 of file qv4staticvalue_p.h.

◆ Encode() [7/8]

template<typename HeapBase >
QV4::Encode::Encode ( HeapBase *  o)
inlineexplicit

Definition at line 272 of file qv4value_p.h.

References QV4::StaticValue::asReturnedValue(), QV4::Value::fromHeapObject(), and o.

+ Here is the call graph for this function:

◆ Encode() [8/8]

QV4::Encode::Encode ( StaticValue o)
inlineexplicit

Definition at line 652 of file qv4staticvalue_p.h.

References o, and Q_ASSERT.

Member Function Documentation

◆ null()

static constexpr ReturnedValue QV4::Encode::null ( )
inlinestaticconstexpr

Definition at line 622 of file qv4staticvalue_p.h.

References QV4::StaticValue::asReturnedValue(), and QV4::StaticValue::nullValue().

Referenced by QJSManagedValue::QJSManagedValue(), QJSValuePrivate::asPrimitiveType(), QJSValuePrivate::asReturnedValue(), QV4::RegExpObject::builtinExec(), QQuickCanvasItem::cancelRequestAnimationFrame(), QV4::coerce(), QV4::QmlListWrapper::create(), QV4::RegExpPrototype::execFirstMatch(), QV4::ExecutionEngine::fromData(), QV4::JsonObject::fromJsonValue(), QQuickCanvasItem::getContext(), QV4::QQmlContextWrapper::getPropertyAndBase(), QQmlComponent::incubateObject(), QV4::Moth::VME::interpret(), QV4::Document::load(), QV4::Compiler::Codegen::Reference::loadInAccumulator(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupScript(), QV4::UrlSearchParamsPrototype::method_get(), QV4::NodePrototype::method_get_attributes(), QV4::NodePrototype::method_get_firstChild(), QV4::NodePrototype::method_get_lastChild(), QV4::NodePrototype::method_get_nextSibling(), QV4::NodePrototype::method_get_nodeValue(), QV4::NodePrototype::method_get_parentNode(), QV4::NodePrototype::method_get_previousSibling(), QV4::QQmlXMLHttpRequestCtor::method_get_responseXML(), QQuickJSContext2DPrototype::method_getImageData(), QV4::Reflect::method_getPrototypeOf(), QV4::ObjectPrototype::method_getPrototypeOf(), QV4::RegExpPrototype::method_match(), QV4::DatePrototype::method_toJSON(), QV4::ObjectIterator::nextPropertyName(), QV4::ObjectIterator::nextPropertyNameAsString(), QV4::ObjectIterator::nextPropertyNameAsString(), QQuickStackView::pop(), QJSManagedValue::prototype(), QQuickStackView::push(), qmlsqldatabase_rows_index(), QQuickStackView::replace(), QQuickCanvasItem::requestAnimationFrame(), QuickTestResult::stringify(), QV4::ProxyObject::virtualSetPrototypeOf(), QV4::Compiler::Codegen::visit(), QV4::QObjectWrapper::wrap(), and QV4::QObjectWrapper::wrapConst().

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

◆ operator ReturnedValue()

constexpr QV4::Encode::operator ReturnedValue ( ) const
inlineconstexpr

Definition at line 664 of file qv4staticvalue_p.h.

References val.

◆ smallestNumber()

static ReturnedValue QV4::Encode::smallestNumber ( double  d)
inlinestatic

Definition at line 657 of file qv4staticvalue_p.h.

References d, and QV4::StaticValue::isInt32().

Referenced by QV4::MathObject::method_max(), QV4::MathObject::method_min(), and QV4::Compiler::Codegen::visit().

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

◆ undefined()

static constexpr ReturnedValue QV4::Encode::undefined ( )
inlinestaticconstexpr

Definition at line 619 of file qv4staticvalue_p.h.

References QV4::StaticValue::asReturnedValue(), and QV4::StaticValue::undefinedValue().

Referenced by QV4::ExecutionEngine::ExecutionEngine(), QV4::Property::Property(), QJSManagedValue::QJSManagedValue(), QJSValue::QJSValue(), QQmlVMEMetaObject::QQmlVMEMetaObject(), QV4::PersistentValueStorage::~PersistentValueStorage(), QQmlXMLHttpRequest::abort(), QQmlDelayedCallQueue::addUniquelyAndExecuteLater(), QV4::PersistentValueStorage::allocate(), QJSValuePrivate::asPrimitiveType(), QJSValuePrivate::asReturnedValue(), atomicReadModifyWrite(), QV4::Compiler::Codegen::Reference::baseObject(), QV4::RegExpObject::builtinExec(), QV4::callDatafromJS(), callWithContextObject(), callWithScopeObject(), QV4::checkedResult(), QV4::coerce(), QV4::coerceAndCall(), QV4::Property::completed(), QV4::WeakMapCtor::construct(), QV4::Sequence::containerGetIndexed(), QV4::convertAndCall(), QJSValuePrivate::convertToReturnedValue(), QV4::ErrorObject::create(), QV4::ErrorObject::create(), QV4::Node::create(), QV4::Compiler::Codegen::defineFunction(), QQmlBinding::doUpdate(), QV4::EvalFunction::evalCall(), QQmlJavaScriptExpression::evalFunction(), QQmlJavaScriptExpression::evaluate(), QQmlJavaScriptExpression::evaluate(), QV4::RegExpPrototype::execFirstMatch(), QV4::ExecutionEngine::fromData(), QV4::JsonObject::fromJsonValue(), QV4::ObjectPrototype::fromPropertyDescriptor(), QV4::SequencePrototype::fromVariant(), QV4::ESTable::get(), QQmlDMAbstractItemModelData::get_property(), QV4::FunctionObject::getHomeObject(), QV4::QQmlContextWrapper::getPropertyAndBase(), QV4::Lookup::getterAccessor(), QV4::Lookup::getterFallback(), QV4::Lookup::getterProtoAccessor(), QV4::Lookup::getterProtoAccessorTwoClasses(), QV4::Object::getValueAccessor(), QV4::Lookup::globalGetterProtoAccessor(), QV4::Moth::VME::interpret(), QV4::Compiler::Codegen::loadClosure(), QV4::Compiler::Codegen::Reference::loadInAccumulator(), QV4::QQmlContextWrapper::lookupInParentContextHierarchy(), QV4::QObjectWrapper::lookupMethodGetterImpl(), QV4::QObjectWrapper::lookupPropertyGetterImpl(), QV4::QQmlContextWrapper::lookupType(), QQmlVMEMetaObject::metaCall(), QQmlVMEMetaObject::method(), QV4::UrlSearchParamsPrototype::method_append(), QV4::Reflect::method_apply(), QV4::ConsoleObject::method_assert(), QV4::ObjectPrototype::method_assign(), QV4::PromisePrototype::method_catch(), QV4::StringPrototype::method_charAt(), QV4::StringPrototype::method_charCodeAt(), QV4::MapPrototype::method_clear(), QV4::SetPrototype::method_clear(), QV4::StringPrototype::method_codePointAt(), QV4::Atomics::method_compareExchange(), QV4::RegExpPrototype::method_compile(), QV4::ArrayPrototype::method_concat(), QV4::StringPrototype::method_concat(), QV4::Reflect::method_construct(), QV4::ConsoleObject::method_count(), QV4::QQmlLocaleData::method_currencySymbol(), QV4::ObjectPrototype::method_defineGetter(), QV4::ObjectPrototype::method_defineProperties(), QV4::ObjectPrototype::method_defineProperty(), QV4::Reflect::method_defineProperty(), QV4::ObjectPrototype::method_defineSetter(), QV4::UrlSearchParamsPrototype::method_delete(), QV4::StringPrototype::method_endsWith(), QV4::ObjectPrototype::method_entries(), QV4::UrlSearchParamsPrototype::method_entries(), QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::SymbolCtor::method_for(), QV4::MapPrototype::method_forEach(), QV4::SetPrototype::method_forEach(), QV4::UrlSearchParamsPrototype::method_forEach(), QV4::StringCtor::method_fromCodePoint(), QV4::GlobalExtensions::method_gc(), QV4::DataViewPrototype::method_get(), QV4::WeakMapPrototype::method_get(), QV4::Reflect::method_get(), QV4::UrlSearchParamsPrototype::method_get(), QV4::QQmlLocaleData::method_get_firstDayOfWeek(), QV4::RegExpPrototype::method_get_flags(), QV4::QQmlLocaleData::method_get_formattedDataSize(), QV4::RegExpPrototype::method_get_global(), QV4::RegExpPrototype::method_get_ignoreCase(), QV4::RegExpPrototype::method_get_lastMatch_n(), QV4::RegExpPrototype::method_get_lastParen(), QV4::method_get_length(), QV4::QQmlLocaleData::method_get_measurementSystem(), QV4::RegExpPrototype::method_get_multiline(), QV4::QQmlLocaleData::method_get_numberOptions(), QV4::RegExpPrototype::method_get_sticky(), QV4::QQmlLocaleData::method_get_textDirection(), QV4::IntrinsicTypedArrayPrototype::method_get_toStringTag(), QV4::QQmlLocaleData::method_get_uiLanguages(), QV4::RegExpPrototype::method_get_unicode(), QV4::QQmlLocaleData::method_get_weekDays(), QV4::UrlSearchParamsPrototype::method_getAll(), QV4::DataViewPrototype::method_getChar(), QV4::DataViewPrototype::method_getFloat(), QV4::UrlPrototype::method_getHash(), QV4::UrlPrototype::method_getHost(), QV4::UrlPrototype::method_getHostname(), QV4::UrlPrototype::method_getHref(), QV4::UrlPrototype::method_getOrigin(), QV4::ObjectPrototype::method_getOwnPropertyDescriptor(), QV4::ObjectPrototype::method_getOwnPropertyDescriptors(), QV4::ObjectPrototype::method_getOwnPropertyNames(), QV4::ObjectPrototype::method_getOwnPropertySymbols(), QV4::UrlPrototype::method_getPassword(), QV4::UrlPrototype::method_getPathname(), QV4::UrlPrototype::method_getPort(), QV4::UrlPrototype::method_getProtocol(), QV4::ObjectPrototype::method_getPrototypeOf(), QV4::UrlPrototype::method_getSearch(), QV4::UrlPrototype::method_getSearchParams(), QV4::UrlPrototype::method_getUsername(), QV4::UrlSearchParamsPrototype::method_has(), QV4::ObjectPrototype::method_hasOwnProperty(), QV4::StringPrototype::method_includes(), QV4::StringPrototype::method_indexOf(), QV4::PropertyListPrototype::method_indexOf(), QV4::ObjectPrototype::method_isPrototypeOf(), QV4::SymbolCtor::method_keyFor(), QV4::ObjectPrototype::method_keys(), QV4::UrlSearchParamsPrototype::method_keys(), QV4::StringPrototype::method_lastIndexOf(), QV4::PropertyListPrototype::method_lastIndexOf(), QV4::Atomics::method_load(), QV4::StringPrototype::method_localeCompare(), QV4::IntrinsicTypedArrayPrototype::method_map(), QV4::RegExpPrototype::method_match(), QV4::StringPrototype::method_match(), QV4::StringPrototype::method_normalize(), QV4::IntrinsicTypedArrayCtor::method_of(), QV4::QQmlXMLHttpRequestCtor::method_overrideMimeType(), QV4::Reflect::method_ownKeys(), QV4::StringPrototype::method_padEnd(), QV4::StringPrototype::method_padStart(), QV4::ObjectPrototype::method_preventExtensions(), QV4::ConsoleObject::method_profile(), QV4::ConsoleObject::method_profileEnd(), QV4::ObjectPrototype::method_propertyIsEnumerable(), QV4::StringCtor::method_raw(), QV4::PromiseCtor::method_reject(), QV4::StringPrototype::method_repeat(), QV4::RegExpPrototype::method_replace(), QV4::StringPrototype::method_replace(), QV4::PromiseCtor::method_resolve(), QV4::Proxy::method_revocable(), QV4::Proxy::method_revoke(), QV4::RegExpPrototype::method_search(), QV4::StringPrototype::method_search(), QQuickWorkerScriptEnginePrivate::method_sendMessage(), QV4::DataViewPrototype::method_set(), QV4::IntrinsicTypedArrayPrototype::method_set(), QV4::UrlSearchParamsPrototype::method_set(), QQuickJSContext2D::method_set_lineCap(), QV4::QQmlLocaleData::method_set_numberOptions(), QV4::ObjectPrototype::method_set_proto(), QV4::QQmlXMLHttpRequestCtor::method_set_responseType(), QV4::DataViewPrototype::method_setChar(), QV4::DatePrototype::method_setDate(), QV4::DataViewPrototype::method_setFloat(), QV4::DatePrototype::method_setFullYear(), QV4::UrlPrototype::method_setHash(), QV4::UrlPrototype::method_setHost(), QV4::UrlPrototype::method_setHostname(), QV4::DatePrototype::method_setHours(), QV4::UrlPrototype::method_setHref(), QV4::DatePrototype::method_setMilliseconds(), QV4::DatePrototype::method_setMinutes(), QV4::DatePrototype::method_setMonth(), QV4::UrlPrototype::method_setPassword(), QV4::UrlPrototype::method_setPathname(), QV4::UrlPrototype::method_setPort(), QV4::UrlPrototype::method_setProtocol(), QV4::UrlPrototype::method_setSearch(), QV4::DatePrototype::method_setSeconds(), QV4::DatePrototype::method_setTime(), QV4::UrlPrototype::method_setUsername(), QV4::DatePrototype::method_setUTCDate(), QV4::DatePrototype::method_setUTCMilliseconds(), QV4::StringPrototype::method_slice(), QV4::IntrinsicTypedArrayPrototype::method_slice(), QV4::UrlSearchParamsPrototype::method_sort(), QV4::RegExpPrototype::method_split(), QV4::StringPrototype::method_split(), QV4::StringPrototype::method_startsWith(), QV4::Atomics::method_store(), QV4::StringPrototype::method_substr(), QV4::StringPrototype::method_substring(), QV4::PromisePrototype::method_then(), QV4::GeneratorPrototype::method_throw(), QV4::ConsoleObject::method_time(), QV4::ConsoleObject::method_timeEnd(), QV4::NumberPrototype::method_toExponential(), QV4::NumberPrototype::method_toFixed(), QV4::DatePrototype::method_toJSON(), QV4::ArrayPrototype::method_toLocaleString(), QV4::IntrinsicTypedArrayPrototype::method_toLocaleString(), QV4::StringPrototype::method_toLowerCase(), QV4::NumberPrototype::method_toPrecision(), QV4::ArrayPrototype::method_toString(), QV4::NumberPrototype::method_toString(), QV4::RegExpPrototype::method_toString(), QV4::UrlSearchParamsPrototype::method_toString(), QV4::QQmlLocaleData::method_toString(), QV4::StringPrototype::method_toUpperCase(), QV4::ConsoleObject::method_trace(), QV4::StringPrototype::method_trim(), QV4::DatePrototype::method_UTC(), QV4::VariantPrototype::method_valueOf(), QV4::ObjectPrototype::method_values(), QV4::UrlSearchParamsPrototype::method_values(), QV4::ExecutionContext::newCallContext(), QQmlXMLHttpRequest::open(), QV4::PersistentValue::operator=(), QV4::PersistentValue::operator=(), QV4::WeakValue::operator=(), QQmlV4Function::operator[](), QV4::JsonParser::parse(), particleData_discard(), QV4::SimpleArrayData::pop_front(), QV4::SparseArrayData::pop_front(), QV4::Lookup::primitiveGetterAccessor(), qmlsqldatabase_rows_index(), QV4::GeneratorObject::resume(), QV4Debugger::resume(), QV4::Script::run(), QQmlXMLHttpRequest::send(), QQmlDelegateModelItem::set_groups(), QQmlDelegateModelItem::set_member(), QQmlDMAbstractItemModelData::set_modelData(), QQmlDMListAccessorData::set_modelData(), QQmlDMAbstractItemModelData::set_property(), QQuick3DLoader::setSource(), QV4::SharedArrayBufferPrototype::slice(), QV4::Compiler::Codegen::statementList(), thisNumberValue(), QV4::ExecutionEngine::throwError(), QQmlExpressionPrivate::v4value(), QV4::Compiler::Codegen::variableDeclaration(), QV4::QQmlXMLHttpRequestCtor::virtualCall(), QV4::SymbolCtor::virtualCall(), QV4::FunctionObject::virtualCall(), QV4::BoundFunction::virtualCall(), QV4::CapabilitiesExecutorWrapper::virtualCall(), QV4::ResolveElementWrapper::virtualCall(), QV4::ResolveWrapper::virtualCall(), QV4::RejectWrapper::virtualCall(), QV4::ProxyFunctionObject::virtualCall(), QV4::ScriptFunction::virtualCallAsConstructor(), QV4::ConstructorFunction::virtualCallAsConstructor(), QV4::DefaultClassConstructorFunction::virtualCallAsConstructor(), QV4::BoundFunction::virtualCallAsConstructor(), QV4::SharedArrayBufferCtor::virtualCallAsConstructor(), QV4::ArrayBufferCtor::virtualCallAsConstructor(), QV4::DataViewCtor::virtualCallAsConstructor(), QV4::FunctionCtor::virtualCallAsConstructor(), QV4::GeneratorFunctionCtor::virtualCallAsConstructor(), QV4::PromiseCtor::virtualCallAsConstructor(), QV4::ProxyFunctionObject::virtualCallAsConstructor(), QV4::RegExpCtor::virtualCallAsConstructor(), QV4::TypedArrayCtor::virtualCallAsConstructor(), QV4::ProxyObject::virtualDeleteProperty(), QV4::Module::virtualGet(), QV4::ProxyObject::virtualGet(), QV4::TypedArray::virtualGet(), QV4::QQmlTypeWrapper::virtualGet(), QV4::QQmlScopedEnumWrapper::virtualGet(), QV4::NamedNodeMap::virtualGet(), QV4::NodeList::virtualGet(), QQuickJSContext2DPixelData::virtualGet(), QV4::Module::virtualGetOwnProperty(), QV4::ProxyObject::virtualGetOwnProperty(), QV4::ProxyObject::virtualHasProperty(), QV4::QQmlTypeWrapper::virtualInstanceOf(), QV4::ProxyObject::virtualIsExtensible(), QV4::ProxyObject::virtualOwnPropertyKeys(), QV4::ProxyObject::virtualPreventExtensions(), QV4::ProxyObject::virtualPut(), QV4::Compiler::Codegen::visit(), QV4::Compiler::Codegen::visit(), QV4::Compiler::Codegen::visit(), QV4::Compiler::Codegen::visit(), and writeToConsole().

+ Here is the call graph for this function:

Member Data Documentation

◆ val

quint64 QV4::Encode::val

Definition at line 667 of file qv4staticvalue_p.h.

Referenced by operator ReturnedValue().


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