![]() |
Qt 6.x
The Qt SDK
|
#include <qv4managed_p.h>
Public Types | |
enum | { IsExecutionContext = false , IsString = false , IsStringOrSymbol = false , IsObject = false , IsFunctionObject = false , IsErrorObject = false , IsArrayData = false } |
enum | { NInlineProperties = 0 } |
enum | Type { Type_Invalid , Type_String , Type_Object , Type_Symbol , Type_ArrayObject , Type_FunctionObject , Type_GeneratorObject , Type_BooleanObject , Type_NumberObject , Type_StringObject , Type_SymbolObject , Type_DateObject , Type_RegExpObject , Type_ErrorObject , Type_ArgumentsObject , Type_JsonObject , Type_MathObject , Type_ProxyObject , Type_UrlObject , Type_UrlSearchParamsObject , Type_ExecutionContext , Type_InternalClass , Type_SetIteratorObject , Type_MapIteratorObject , Type_ArrayIteratorObject , Type_StringIteratorObject , Type_ForInIterator , Type_RegExp , Type_V4Sequence , Type_QmlListProperty } |
![]() | |
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 Protected Member Functions | |
static bool | virtualIsEqualTo (Managed *m, Managed *other) |
Friends | |
class | MemoryManager |
struct | Identifiers |
struct | ObjectIterator |
Definition at line 72 of file qv4managed_p.h.
anonymous enum |
Enumerator | |
---|---|
IsExecutionContext | |
IsString | |
IsStringOrSymbol | |
IsObject | |
IsFunctionObject | |
IsErrorObject | |
IsArrayData |
Definition at line 75 of file qv4managed_p.h.
anonymous enum |
Enumerator | |
---|---|
NInlineProperties |
Definition at line 90 of file qv4managed_p.h.
enum QV4::Managed::Type |
Definition at line 92 of file qv4managed_p.h.
|
inline |
Definition at line 154 of file qv4managed_p.h.
Referenced by QV4::ExecutionEngine::ExecutionEngine(), and QV4::FunctionPrototype::method_apply().
|
inline |
Definition at line 157 of file qv4managed_p.h.
QString Managed::className | ( | ) | const |
Definition at line 14 of file qv4managed.cpp.
References QString::fromLatin1(), Type_ArgumentsObject, Type_ArrayIteratorObject, Type_ArrayObject, Type_BooleanObject, Type_DateObject, Type_ErrorObject, Type_ExecutionContext, Type_ForInIterator, Type_FunctionObject, Type_GeneratorObject, Type_InternalClass, Type_Invalid, Type_JsonObject, Type_MapIteratorObject, Type_MathObject, Type_NumberObject, Type_Object, Type_ProxyObject, Type_QmlListProperty, Type_RegExp, Type_RegExpObject, Type_SetIteratorObject, Type_String, Type_StringIteratorObject, Type_StringObject, Type_Symbol, Type_SymbolObject, Type_UrlObject, Type_UrlSearchParamsObject, Type_V4Sequence, and vtable().
Referenced by QV4::ErrorPrototype::init().
|
inline |
Definition at line 131 of file qv4managed_p.h.
Referenced by QV4::RegExpObject::builtinExec(), QV4::FunctionObject::call(), QV4::Object::checkedInstanceOf(), QV4::ExecutionContext::cloneBlockContext(), QV4::Sequence::containerPutIndexed(), QV4::Object::copyArrayData(), QV4::QQmlTypeWrapper::create(), QV4::QQmlTypeWrapper::create(), QV4::QmlListWrapper::create(), QV4::QmlListWrapper::create(), QV4::QmlListWrapper::create(), QV4::QQmlSqlDatabaseWrapper::create(), QQuickJSContext2DPrototype::create(), QV4::FunctionObject::createBuiltinFunction(), QV4::IteratorPrototype::createIterResultObject(), QV4::QQmlBindingFunction::currentLocation(), QV4::DateObject::dateTimeToString(), QV4::ExecutionContext::deleteProperty(), QV4::Heap::Sequence::detached(), QV4::RuntimeHelpers::equalHelper(), QV4::EvalFunction::evalCall(), QV4::Module::evaluate(), QV4::RegExpPrototype::exec(), QV4::JsonObject::fromJsonArray(), QV4::JsonObject::fromJsonObject(), QV4::JsonObject::fromJsonValue(), QV4::ArgumentsObject::fullyCreate(), QV4::ExecutionContext::getProperty(), QV4::QQmlContextWrapper::getPropertyAndBase(), QV4::ExecutionContext::getPropertyAndBase(), QV4::IteratorPrototype::init(), QV4::IntrinsicTypedArrayPrototype::init(), QV4::ErrorPrototype::init(), QV4::EvalErrorPrototype::init(), QV4::RangeErrorPrototype::init(), QV4::ReferenceErrorPrototype::init(), QV4::SyntaxErrorPrototype::init(), QV4::TypeErrorPrototype::init(), QV4::URIErrorPrototype::init(), QV4::FunctionPrototype::init(), QV4::GeneratorPrototype::init(), QV4::RegExpPrototype::init(), QV4::TypedArrayPrototype::init(), QV4::Heap::ArrowFunction::init(), QV4::QQmlContextWrapper::lookupContextObjectMethod(), QV4::QQmlContextWrapper::lookupContextObjectProperty(), QV4::QQmlTypeWrapper::lookupEnumValue(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupIdObjectInParentContext(), QV4::QQmlContextWrapper::lookupInGlobalObject(), QV4::QQmlContextWrapper::lookupInParentContextHierarchy(), QV4::QObjectWrapper::lookupMethodGetterImpl(), QV4::QObjectWrapper::lookupPropertyGetterImpl(), QV4::QQmlTypeWrapper::lookupScopedEnum(), QV4::QQmlContextWrapper::lookupScopeFallbackProperty(), QV4::QQmlContextWrapper::lookupScopeObjectMethod(), QV4::QQmlContextWrapper::lookupScopeObjectProperty(), QV4::QQmlContextWrapper::lookupScript(), QV4::QQmlContextWrapper::lookupSingleton(), QV4::QQmlTypeWrapper::lookupSingletonMethod(), QV4::QQmlTypeWrapper::lookupSingletonProperty(), QV4::QQmlContextWrapper::lookupType(), QV4::QQmlContextWrapper::lookupValueSingleton(), QV4::QQmlTypeWrapper::metaObject(), QV4::DataViewPrototype::method_get_buffer(), QV4::SharedArrayBufferPrototype::method_get_byteLength(), QV4::ArrayBufferPrototype::method_get_byteLength(), QV4::DataViewPrototype::method_get_byteLength(), QV4::DataViewPrototype::method_get_byteOffset(), QV4::GeneratorPrototype::method_next(), QV4::GeneratorPrototype::method_return(), QV4::GeneratorPrototype::method_throw(), QV4::QQmlValueTypeWrapper::method_toString(), QV4::ExecutionContext::newWithContext(), ModuleNamespaceIterator::next(), QV4::QObjectWrapperOwnPropertyKeyIterator::next(), QV4::QQmlValueTypeWrapperOwnPropertyKeyIterator::next(), QV4::ModelObjectOwnPropertyKeyIterator::next(), UrlSearchParamsObjectOwnPropertyKeyIterator::next(), QV4::QQmlTypeWrapper::object(), QV4::Script::parse(), QV4::FunctionCtor::parse(), QV4::Object::push_back(), qfoDoCall(), qtObjectFromJS(), QV4::Module::resolveExport(), QV4::QQmlContextWrapper::resolveQmlContextPropertyLookupGetter(), QV4::Script::run(), QQmlBinding::setBoundFunction(), QV4::ExecutionContext::setProperty(), QV4::QQmlXMLHttpRequestCtor::setupProto(), QV4::QQmlTypeWrapper::singletonObject(), QV4::ArrayData::sort(), QV4::DateObject::stringToDateTime(), QV4::Value::toNumberImpl(), QV4::ArrayObject::toQStringList(), QV4::DateObject::toString(), QV4::QQmlTypeWrapper::toVariant(), QV4::SequencePrototype::toVariant(), QV4::BoundFunction::virtualCall(), QV4::GeneratorFunction::virtualCall(), QV4::ArrowFunction::virtualCall(), QV4::DelegateModelGroupFunction::virtualCall(), QV4::BooleanCtor::virtualCallAsConstructor(), QV4::DateCtor::virtualCallAsConstructor(), QV4::ScriptFunction::virtualCallAsConstructor(), QV4::UrlCtor::virtualCallAsConstructor(), QV4::UrlSearchParamsCtor::virtualCallAsConstructor(), QV4::FunctionCtor::virtualCallAsConstructor(), QV4::GeneratorFunctionCtor::virtualCallAsConstructor(), QV4::StringCtor::virtualCallAsConstructor(), QV4::ArrayCtor::virtualCallAsConstructor(), QV4::ArrowFunction::virtualCallWithMetaTypes(), QV4::ArrayObject::virtualDefineOwnProperty(), QV4::Sequence::virtualDeleteProperty(), QV4::QObjectWrapper::virtualGet(), QV4::QQmlTypeWrapper::virtualGet(), QV4::QQmlScopedEnumWrapper::virtualGet(), QV4::ModelObject::virtualGet(), QQuickJSContext2DPixelData::virtualGet(), QV4::Sequence::virtualGet(), QV4::Object::virtualGetLength(), QV4::TypedArray::virtualHasProperty(), QV4::Object::virtualInstanceOf(), QV4::QQmlContextWrapper::virtualPut(), QV4::ModelObject::virtualPut(), QV4::Sequence::virtualPut(), QQuickJSContext2DPixelData::virtualPut(), QV4::Object::virtualResolveLookupGetter(), QV4::QQmlTypeWrapper::virtualResolveLookupGetter(), QV4::ModelObject::virtualResolveLookupGetter(), QV4::Object::virtualResolveLookupSetter(), QV4::QQmlTypeWrapper::virtualResolveLookupSetter(), and QV4::QObjectWrapper::wrapConst().
|
inline |
Definition at line 150 of file qv4managed_p.h.
Referenced by QV4::QQmlContextWrapper::lookupType().
|
inline |
Definition at line 129 of file qv4managed_p.h.
References d.
Referenced by QV4::Sequence::containerPutIndexed(), freeze_recursive(), QV4::Heap::Atomics::init(), QV4::Heap::JsonObject::init(), QV4::Heap::MathObject::init(), QV4::Heap::Reflect::init(), QV4::Heap::NodePrototype::init(), QV4::Heap::QQuickJSContext2DPixelData::init(), QV4::Heap::ArrayObject::init(), QV4::Heap::ProxyFunctionObject::init(), QV4::ExecutionEngine::initializeGlobal(), instanceOfQObject(), QV4::ExecutionEngine::lockObject(), QV4::FunctionObject::name(), QV4::Heap::VariantObject::removeVmePropertyReference(), QV4::Object::setArrayLength(), QV4::setupQObjectLookup(), QV4::ArrayObject::toQStringList(), QV4::Object::virtualInstanceOf(), QV4::Module::virtualOwnPropertyKeys(), QV4::QObjectWrapper::virtualPut(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().
|
inline |
Definition at line 146 of file qv4managed_p.h.
References d.
|
inline |
Definition at line 135 of file qv4managed_p.h.
|
inline |
Definition at line 137 of file qv4managed_p.h.
References d.
Referenced by QV4::Object::arraySet(), QV4::Object::arraySet(), QV4::Object::copyArrayData(), QV4::Object::isArray(), QV4::Object::setArrayLength(), and QV4::Object::setArrayLengthUnchecked().
|
inline |
|
inline |
Definition at line 134 of file qv4managed_p.h.
References d.
|
inline |
Definition at line 138 of file qv4managed_p.h.
References d.
|
inline |
Definition at line 139 of file qv4managed_p.h.
References d.
|
inline |
Definition at line 133 of file qv4managed_p.h.
References d.
Definition at line 170 of file qv4managed_p.h.
References Q_ASSERT.
Referenced by QV4::Heap::StringOrSymbol::markObjects().
|
inline |
Definition at line 147 of file qv4managed_p.h.
References d.
Definition at line 113 of file qv4managed.cpp.
|
inline |
Definition at line 130 of file qv4managed_p.h.
References d.
Referenced by className().
|
friend |
Definition at line 166 of file qv4managed_p.h.
|
friend |
Definition at line 165 of file qv4managed_p.h.
|
friend |
Definition at line 167 of file qv4managed_p.h.