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

#include <qv4lookup_p.h>

+ Collaboration diagram for QV4::Lookup:

Public Member Functions

ReturnedValue resolveGetter (ExecutionEngine *engine, const Object *object)
 
ReturnedValue resolvePrimitiveGetter (ExecutionEngine *engine, const Value &object)
 
ReturnedValue resolveGlobalGetter (ExecutionEngine *engine)
 
void resolveProtoGetter (PropertyKey name, const Heap::Object *proto)
 
bool resolveSetter (ExecutionEngine *engine, Object *object, const Value &value)
 
void markObjects (MarkStack *stack)
 
void clear ()
 
void releasePropertyCache ()
 

Static Public Member Functions

static ReturnedValue getterGeneric (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterTwoClasses (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterFallback (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterFallbackAsVariant (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getter0MemberData (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getter0Inline (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterProto (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getter0Inlinegetter0Inline (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getter0Inlinegetter0MemberData (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getter0MemberDatagetter0MemberData (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterProtoTwoClasses (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterAccessor (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterProtoAccessor (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterProtoAccessorTwoClasses (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterIndexed (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterQObject (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterQObjectAsVariant (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue getterQObjectMethod (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue primitiveGetterProto (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue primitiveGetterAccessor (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue stringLengthGetter (Lookup *l, ExecutionEngine *engine, const Value &object)
 
static ReturnedValue globalGetterGeneric (Lookup *l, ExecutionEngine *engine)
 
static ReturnedValue globalGetterProto (Lookup *l, ExecutionEngine *engine)
 
static ReturnedValue globalGetterProtoAccessor (Lookup *l, ExecutionEngine *engine)
 
static bool setterGeneric (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static Q_NEVER_INLINE bool setterTwoClasses (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setterFallback (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setterFallbackAsVariant (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setter0MemberData (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setter0Inline (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setter0setter0 (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setterInsert (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setterQObject (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool setterQObjectAsVariant (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 
static bool arrayLengthSetter (Lookup *l, ExecutionEngine *engine, Value &object, const Value &value)
 

Public Attributes

union { 
 
   ReturnedValue(*   getter )(Lookup *l, ExecutionEngine
      *engine, const Value &object
 
   ReturnedValue(*   globalGetter )(Lookup *l, ExecutionEngine
      *engine
 
   ReturnedValue(*   qmlContextPropertyGetter )(Lookup *l, ExecutionEngine
      *engine, Value *thisObject) 
 
   bool(*   setter )(Lookup *l, ExecutionEngine
      *engine, Value &object, const
      Value &v
 
};  
 
union { 
 
   struct { 
 
      Heap::Base *   h1 
 
      Heap::Base *   h2 
 
      quintptr   unused 
 
      quintptr   unused2 
 
   }   markDef 
 
   struct { 
 
      Heap::InternalClass *   ic 
 
      quintptr   unused 
 
      uint   index 
 
      uint   offset 
 
   }   objectLookup 
 
   struct { 
 
      quintptr   protoId 
 
      quintptr   _unused 
 
      const Value *   data 
 
   }   protoLookup 
 
   struct { 
 
      Heap::InternalClass *   ic 
 
      Heap::InternalClass *   ic2 
 
      uint   offset 
 
      uint   offset2 
 
   }   objectLookupTwoClasses 
 
   struct { 
 
      quintptr   protoId 
 
      quintptr   protoId2 
 
      const Value *   data 
 
      const Value *   data2 
 
   }   protoLookupTwoClasses 
 
   struct { 
 
      quintptr   protoId 
 
      Heap::Object *   proto 
 
      const Value *   data 
 
      quintptr   type 
 
   }   primitiveLookup 
 
   struct { 
 
      Heap::InternalClass *   newClass 
 
      quintptr   protoId 
 
      uint   offset 
 
      uint   unused 
 
   }   insertionLookup 
 
   struct { 
 
      quintptr   _unused 
 
      quintptr   _unused2 
 
      uint   index 
 
      uint   unused 
 
   }   indexedLookup 
 
   struct { 
 
      Heap::InternalClass *   ic 
 
      Heap::InternalClass *   qmlTypeIc 
 
      const QQmlPropertyCache *   propertyCache 
 
      const QQmlPropertyData *   propertyData 
 
   }   qobjectLookup 
 
   struct { 
 
      Heap::InternalClass *   ic 
 
      Heap::QObjectMethod *   method 
 
      const QQmlPropertyCache *   propertyCache 
 
      const QQmlPropertyData *   propertyData 
 
   }   qobjectMethodLookup 
 
   struct { 
 
      quintptr   isConstant 
 
      quintptr   metaObject 
 
      int   coreIndex 
 
      int   notifyIndex 
 
   }   qobjectFallbackLookup 
 
   struct { 
 
      Heap::InternalClass *   ic 
 
      quintptr   metaObject 
 
      const QtPrivate::QMetaTypeInterface *   metaType 
 
      quint16   coreIndex 
 
      bool   isFunction 
 
      bool   isEnum 
 
   }   qgadgetLookup 
 
   struct { 
 
      quintptr   unused1 
 
      quintptr   unused2 
 
      int   scriptIndex 
 
   }   qmlContextScriptLookup 
 
   struct { 
 
      Heap::Base *   singletonObject 
 
      quintptr   unused2 
 
      QV4::ReturnedValue   singletonValue 
 
   }   qmlContextSingletonLookup 
 
   struct { 
 
      quintptr   unused1 
 
      quintptr   unused2 
 
      int   objectId 
 
   }   qmlContextIdObjectLookup 
 
   struct { 
 
      quintptr   reserved1 
 
      quintptr   reserved2 
 
      quintptr   reserved3 
 
      ReturnedValue(*   getterTrampoline )(Lookup *l, ExecutionEngine
         *engine
 
   }   qmlContextGlobalLookup 
 
   struct { 
 
      Heap::Base *   qmlTypeWrapper 
 
      quintptr   unused2 
 
   }   qmlTypeLookup 
 
   struct { 
 
      Heap::InternalClass *   ic 
 
      quintptr   unused 
 
      ReturnedValue   encodedEnumValue 
 
      const QtPrivate::QMetaTypeInterface *   metaType 
 
   }   qmlEnumValueLookup 
 
   struct { 
 
      Heap::InternalClass *   ic 
 
      Heap::Object *   qmlScopedEnumWrapper 
 
   }   qmlScopedEnumWrapperLookup 
 
};  
 
uint nameIndex: 28
 
uint forCall: 1
 
uint reserved: 3
 

Detailed Description

Definition at line 34 of file qv4lookup_p.h.

Member Function Documentation

◆ arrayLengthSetter()

bool Lookup::arrayLengthSetter ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 674 of file qv4lookup.cpp.

References engine, ok, and Q_ASSERT.

Referenced by QV4::Object::virtualResolveLookupSetter().

+ Here is the caller graph for this function:

◆ clear()

void QV4::Lookup::clear ( )
inline

Definition at line 213 of file qv4lookup_p.h.

Referenced by QQmlPrivate::AOTCompiledContext::storeNameSloppy().

+ Here is the caller graph for this function:

◆ getter0Inline()

ReturnedValue Lookup::getter0Inline ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 233 of file qv4lookup.cpp.

References engine, getterTwoClasses(), ic, o, objectLookup, and offset.

Referenced by getterTwoClasses(), and QV4::Object::virtualResolveLookupGetter().

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

◆ getter0Inlinegetter0Inline()

ReturnedValue Lookup::getter0Inlinegetter0Inline ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 260 of file qv4lookup.cpp.

References engine, getter, getterFallback(), ic, ic2, o, objectLookupTwoClasses, offset, and offset2.

Referenced by getterTwoClasses().

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

◆ getter0Inlinegetter0MemberData()

ReturnedValue Lookup::getter0Inlinegetter0MemberData ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 275 of file qv4lookup.cpp.

References engine, getter, getterFallback(), ic, ic2, o, objectLookupTwoClasses, offset, and offset2.

Referenced by getterTwoClasses().

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

◆ getter0MemberData()

ReturnedValue Lookup::getter0MemberData ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 221 of file qv4lookup.cpp.

References engine, getterTwoClasses(), ic, o, objectLookup, and offset.

Referenced by getterTwoClasses(), and QV4::Object::virtualResolveLookupGetter().

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

◆ getter0MemberDatagetter0MemberData()

ReturnedValue Lookup::getter0MemberDatagetter0MemberData ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 290 of file qv4lookup.cpp.

References engine, getter, getterFallback(), ic, ic2, o, objectLookupTwoClasses, offset, and offset2.

Referenced by getterTwoClasses().

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

◆ getterAccessor()

ReturnedValue Lookup::getterAccessor ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 324 of file qv4lookup.cpp.

References QV4::checkedResult(), engine, getter, getterFallback(), ic, o, objectLookup, offset, and QV4::Encode::undefined().

Referenced by QV4::Object::virtualResolveLookupGetter().

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

◆ getterFallback()

ReturnedValue Lookup::getterFallback ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 196 of file qv4lookup.cpp.

References engine, QV4::Scope::engine, nameIndex, o, and QV4::Encode::undefined().

Referenced by QQmlPrivate::AOTCompiledContext::captureLookup(), QQmlPrivate::AOTCompiledContext::getObjectLookup(), getter0Inlinegetter0Inline(), getter0Inlinegetter0MemberData(), getter0MemberDatagetter0MemberData(), getterAccessor(), getterFallbackAsVariant(), getterIndexed(), getterProtoAccessorTwoClasses(), getterProtoTwoClasses(), getterTwoClasses(), QQmlPrivate::AOTCompiledContext::initGetObjectLookup(), QQmlPrivate::AOTCompiledContext::lookupResultMetaType(), resolveProtoGetter(), and QV4::ModelObject::virtualResolveLookupGetter().

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

◆ getterFallbackAsVariant()

ReturnedValue Lookup::getterFallbackAsVariant ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 206 of file qv4lookup.cpp.

References engine, getterFallback(), getterFallbackAsVariant(), and qFatal.

Referenced by QQmlPrivate::AOTCompiledContext::captureLookup(), QQmlPrivate::AOTCompiledContext::getObjectLookup(), getterFallbackAsVariant(), QQmlPrivate::AOTCompiledContext::initGetObjectLookup(), and QQmlPrivate::AOTCompiledContext::lookupResultMetaType().

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

◆ getterGeneric()

ReturnedValue Lookup::getterGeneric ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 112 of file qv4lookup.cpp.

References engine, o, resolveGetter(), and resolvePrimitiveGetter().

Referenced by getterQObject(), getterQObjectMethod(), getterTwoClasses(), QV4::ExecutableCompilationUnit::linkToEngine(), QV4::QQmlTypeWrapper::lookupEnumValue(), QV4::QQmlTypeWrapper::lookupScopedEnum(), QV4::QQmlTypeWrapper::lookupSingletonMethod(), QV4::QQmlTypeWrapper::lookupSingletonProperty(), primitiveGetterAccessor(), primitiveGetterProto(), and stringLengthGetter().

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

◆ getterIndexed()

ReturnedValue Lookup::getterIndexed ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 388 of file qv4lookup.cpp.

References QV4::ArrayData::arrayData(), QV4::StaticValue::asReturnedValue(), QV4::Value::cast(), QV4::Heap::SimpleArrayData::data(), engine, getter, getterFallback(), index, indexedLookup, and o.

Referenced by QV4::Object::virtualResolveLookupGetter().

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

◆ getterProto()

ReturnedValue Lookup::getterProto ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 245 of file qv4lookup.cpp.

References QV4::StaticValue::asReturnedValue(), data, engine, getterTwoClasses(), o, protoId, protoLookup, and Q_ASSERT.

Referenced by getterTwoClasses(), resolveGlobalGetter(), resolvePrimitiveGetter(), and resolveProtoGetter().

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

◆ getterProtoAccessor()

ReturnedValue Lookup::getterProtoAccessor ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 343 of file qv4lookup.cpp.

References QV4::checkedResult(), data, engine, getter, getterTwoClasses(), o, protoId, protoLookup, Q_ASSERT, and QV4::Encode::undefined().

Referenced by getterTwoClasses(), resolveGlobalGetter(), resolvePrimitiveGetter(), and resolveProtoGetter().

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

◆ getterProtoAccessorTwoClasses()

ReturnedValue Lookup::getterProtoAccessorTwoClasses ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 362 of file qv4lookup.cpp.

References QV4::checkedResult(), data, data2, engine, getter, getterFallback(), o, protoId, protoId2, protoLookupTwoClasses, Q_ASSERT, and QV4::Encode::undefined().

Referenced by getterTwoClasses().

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

◆ getterProtoTwoClasses()

ReturnedValue Lookup::getterProtoTwoClasses ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 305 of file qv4lookup.cpp.

References QV4::StaticValue::asReturnedValue(), data, data2, engine, getter, getterFallback(), o, protoId, protoId2, protoLookupTwoClasses, and Q_ASSERT.

Referenced by getterTwoClasses().

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

◆ getterQObject()

ReturnedValue Lookup::getterQObject ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 405 of file qv4lookup.cpp.

References QV4::QObjectWrapper::AllowOverride, QV4::QObjectWrapper::AttachMethods, engine, forCall, getter, getterGeneric(), QV4::QObjectWrapper::lookupPropertyGetterImpl(), propertyCache, qobjectLookup, and QQmlRefCounted< T >::release().

Referenced by QQmlPrivate::AOTCompiledContext::captureLookup(), QQmlPrivate::AOTCompiledContext::getObjectLookup(), getterQObjectAsVariant(), QQmlPrivate::AOTCompiledContext::initGetObjectLookup(), and QQmlPrivate::AOTCompiledContext::lookupResultMetaType().

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

◆ getterQObjectAsVariant()

ReturnedValue Lookup::getterQObjectAsVariant ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 421 of file qv4lookup.cpp.

References engine, getterQObject(), getterQObjectAsVariant(), and qFatal.

Referenced by QQmlPrivate::AOTCompiledContext::captureLookup(), QQmlPrivate::AOTCompiledContext::getObjectLookup(), getterQObjectAsVariant(), QQmlPrivate::AOTCompiledContext::initGetObjectLookup(), and QQmlPrivate::AOTCompiledContext::lookupResultMetaType().

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

◆ getterQObjectMethod()

ReturnedValue Lookup::getterQObjectMethod ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 436 of file qv4lookup.cpp.

References QV4::QObjectWrapper::AllowOverride, QV4::QObjectWrapper::AttachMethods, engine, forCall, getter, getterGeneric(), QV4::QObjectWrapper::lookupMethodGetterImpl(), propertyCache, qobjectMethodLookup, and QQmlRefCounted< T >::release().

+ Here is the call graph for this function:

◆ getterTwoClasses()

ReturnedValue Lookup::getterTwoClasses ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 145 of file qv4lookup.cpp.

References engine, forCall, getter, getter0Inline(), getter0Inlinegetter0Inline(), getter0Inlinegetter0MemberData(), getter0MemberData(), getter0MemberDatagetter0MemberData(), getterFallback(), getterGeneric(), getterProto(), getterProtoAccessor(), getterProtoAccessorTwoClasses(), getterProtoTwoClasses(), nameIndex, o, releasePropertyCache(), resolveGetter(), setupObjectLookupTwoClasses(), and setupProtoLookupTwoClasses().

Referenced by getter0Inline(), getter0MemberData(), getterProto(), and getterProtoAccessor().

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

◆ globalGetterGeneric()

ReturnedValue Lookup::globalGetterGeneric ( Lookup l,
ExecutionEngine engine 
)
static

Definition at line 495 of file qv4lookup.cpp.

References engine, and resolveGlobalGetter().

Referenced by QV4::QQmlContextWrapper::getPropertyAndBase(), globalGetterProto(), globalGetterProtoAccessor(), QV4::ExecutableCompilationUnit::linkToEngine(), resolveGlobalGetter(), and QV4::QQmlContextWrapper::resolveQmlContextPropertyLookupGetter().

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

◆ globalGetterProto()

ReturnedValue Lookup::globalGetterProto ( Lookup l,
ExecutionEngine engine 
)
static

Definition at line 500 of file qv4lookup.cpp.

References QV4::StaticValue::asReturnedValue(), data, engine, globalGetter, globalGetterGeneric(), QJSEngine::globalObject(), o, protoId, protoLookup, and Q_ASSERT.

Referenced by resolveGlobalGetter().

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

◆ globalGetterProtoAccessor()

ReturnedValue Lookup::globalGetterProtoAccessor ( Lookup l,
ExecutionEngine engine 
)
static

Definition at line 512 of file qv4lookup.cpp.

References QV4::checkedResult(), data, engine, getter, globalGetter, globalGetterGeneric(), QJSEngine::globalObject(), o, protoId, protoLookup, Q_ASSERT, and QV4::Encode::undefined().

Referenced by resolveGlobalGetter().

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

◆ markObjects()

void QV4::Lookup::markObjects ( MarkStack stack)
inline

Definition at line 206 of file qv4lookup_p.h.

◆ primitiveGetterAccessor()

ReturnedValue Lookup::primitiveGetterAccessor ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 466 of file qv4lookup.cpp.

References QV4::checkedResult(), data, engine, getter, getterGeneric(), o, primitiveLookup, proto, protoId, Q_ASSERT, type, and QV4::Encode::undefined().

Referenced by resolvePrimitiveGetter().

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

◆ primitiveGetterProto()

ReturnedValue Lookup::primitiveGetterProto ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 452 of file qv4lookup.cpp.

References QV4::StaticValue::asReturnedValue(), data, engine, getter, getterGeneric(), o, primitiveLookup, proto, protoId, Q_ASSERT, and type.

Referenced by resolvePrimitiveGetter().

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

◆ releasePropertyCache()

void QV4::Lookup::releasePropertyCache ( )
inline

Definition at line 217 of file qv4lookup_p.h.

Referenced by getterTwoClasses(), QQmlPrivate::initObjectLookup(), setterTwoClasses(), QV4::setupQObjectLookup(), and QV4::setupQObjectMethodLookup().

+ Here is the caller graph for this function:

◆ resolveGetter()

ReturnedValue Lookup::resolveGetter ( ExecutionEngine engine,
const Object object 
)

Definition at line 36 of file qv4lookup.cpp.

References engine.

Referenced by getterGeneric(), and getterTwoClasses().

+ Here is the caller graph for this function:

◆ resolveGlobalGetter()

ReturnedValue Lookup::resolveGlobalGetter ( ExecutionEngine engine)

Definition at line 89 of file qv4lookup.cpp.

References engine, getter, getterProto(), getterProtoAccessor(), globalGetter, globalGetterGeneric(), globalGetterProto(), globalGetterProtoAccessor(), QJSEngine::globalObject(), nameIndex, o, protoLookup, Q_ASSERT, and resolveProtoGetter().

Referenced by QV4::QQmlContextWrapper::getPropertyAndBase(), globalGetterGeneric(), and QV4::QQmlContextWrapper::resolveQmlContextPropertyLookupGetter().

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

◆ resolvePrimitiveGetter()

ReturnedValue Lookup::resolvePrimitiveGetter ( ExecutionEngine engine,
const Value object 
)

Definition at line 41 of file qv4lookup.cpp.

References QV4::StaticValue::Boolean_Type, engine, getter, getterProto(), getterProtoAccessor(), QV4::StaticValue::Integer_Type, QV4::StaticValue::Managed_Type, nameIndex, QV4::StaticValue::Null_Type, primitiveGetterAccessor(), primitiveGetterProto(), primitiveLookup, protoLookup, Q_ASSERT, QStringLiteral, resolveProtoGetter(), stringLengthGetter(), and QV4::StaticValue::Undefined_Type.

Referenced by getterGeneric().

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

◆ resolveProtoGetter()

void Lookup::resolveProtoGetter ( PropertyKey  name,
const Heap::Object *  proto 
)

Definition at line 16 of file qv4lookup.cpp.

References attrs, getter, getterFallback(), getterProto(), getterProtoAccessor(), proto, and protoLookup.

Referenced by resolveGlobalGetter(), resolvePrimitiveGetter(), and QV4::Object::virtualResolveLookupGetter().

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

◆ resolveSetter()

bool Lookup::resolveSetter ( ExecutionEngine engine,
Object object,
const Value value 
)

Definition at line 530 of file qv4lookup.cpp.

References engine.

Referenced by setterGeneric(), and setterTwoClasses().

+ Here is the caller graph for this function:

◆ setter0Inline()

bool Lookup::setter0Inline ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 613 of file qv4lookup.cpp.

References engine, ic, o, objectLookup, offset, and setterTwoClasses().

Referenced by setterTwoClasses(), and QV4::Object::virtualResolveLookupSetter().

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

◆ setter0MemberData()

bool Lookup::setter0MemberData ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 602 of file qv4lookup.cpp.

References engine, ic, o, objectLookup, offset, and setterTwoClasses().

Referenced by setterTwoClasses(), and QV4::Object::virtualResolveLookupSetter().

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

◆ setter0setter0()

bool Lookup::setter0setter0 ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 624 of file qv4lookup.cpp.

References engine, ic, ic2, o, objectLookupTwoClasses, offset, offset2, setter, and setterFallback().

Referenced by setterTwoClasses().

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

◆ setterFallback()

bool Lookup::setterFallback ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

◆ setterFallbackAsVariant()

bool Lookup::setterFallbackAsVariant ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 594 of file qv4lookup.cpp.

References engine, and setterFallback().

Referenced by QQmlPrivate::AOTCompiledContext::initSetObjectLookup(), QQmlPrivate::AOTCompiledContext::lookupResultMetaType(), and QQmlPrivate::AOTCompiledContext::setObjectLookup().

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

◆ setterGeneric()

bool Lookup::setterGeneric ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 535 of file qv4lookup.cpp.

References QV4::RuntimeHelpers::convertToObject(), engine, QV4::Scope::engine, nameIndex, o, and resolveSetter().

Referenced by QV4::ExecutableCompilationUnit::linkToEngine().

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

◆ setterInsert()

bool Lookup::setterInsert ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 642 of file qv4lookup.cpp.

References engine, insertionLookup, newClass, o, offset, protoId, Q_ASSERT, setter, and setterFallback().

Referenced by QV4::Object::virtualResolveLookupSetter().

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

◆ setterQObject()

bool Lookup::setterQObject ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 658 of file qv4lookup.cpp.

References engine, and setterFallback().

Referenced by QQmlPrivate::AOTCompiledContext::initSetObjectLookup(), QQmlPrivate::AOTCompiledContext::lookupResultMetaType(), and QQmlPrivate::AOTCompiledContext::setObjectLookup().

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

◆ setterQObjectAsVariant()

bool Lookup::setterQObjectAsVariant ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 665 of file qv4lookup.cpp.

References engine, and setterFallback().

Referenced by QQmlPrivate::AOTCompiledContext::initSetObjectLookup(), QQmlPrivate::AOTCompiledContext::lookupResultMetaType(), and QQmlPrivate::AOTCompiledContext::setObjectLookup().

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

◆ setterTwoClasses()

bool Lookup::setterTwoClasses ( Lookup l,
ExecutionEngine engine,
Value object,
const Value value 
)
static

Definition at line 551 of file qv4lookup.cpp.

References engine, ic, ic2, index, objectLookup, objectLookupTwoClasses, offset, offset2, Q_ASSERT, releasePropertyCache(), resolveSetter(), setter, setter0Inline(), setter0MemberData(), setter0setter0(), and setterFallback().

Referenced by setter0Inline(), and setter0MemberData().

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

◆ stringLengthGetter()

ReturnedValue Lookup::stringLengthGetter ( Lookup l,
ExecutionEngine engine,
const Value object 
)
static

Definition at line 486 of file qv4lookup.cpp.

References engine, getter, and getterGeneric().

Referenced by resolvePrimitiveGetter().

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

Member Data Documentation

◆ [union]

union { ... } QV4::Lookup

◆ [union]

union { ... } QV4::Lookup

◆ _unused

quintptr QV4::Lookup::_unused

Definition at line 58 of file qv4lookup_p.h.

◆ _unused2

quintptr QV4::Lookup::_unused2

Definition at line 88 of file qv4lookup_p.h.

◆ coreIndex [1/2]

◆ coreIndex [2/2]

quint16 QV4::Lookup::coreIndex

Definition at line 114 of file qv4lookup_p.h.

◆ data

◆ data2

const Value* QV4::Lookup::data2

◆ encodedEnumValue

◆ forCall

◆ getter

ReturnedValue(* QV4::Lookup::getter) (Lookup *l, ExecutionEngine *engine, const Value &object)

Definition at line 36 of file qv4lookup_p.h.

Referenced by QV4::Runtime::CallPropertyLookup::call(), QV4::Runtime::GetLookup::call(), QQmlPrivate::AOTCompiledContext::callObjectPropertyLookup(), QQmlPrivate::AOTCompiledContext::captureLookup(), QQmlPrivate::AOTCompiledContext::getEnumLookup(), QQmlPrivate::AOTCompiledContext::getObjectLookup(), getter0Inlinegetter0Inline(), getter0Inlinegetter0MemberData(), getter0MemberDatagetter0MemberData(), getterAccessor(), getterIndexed(), getterProtoAccessor(), getterProtoAccessorTwoClasses(), getterProtoTwoClasses(), getterQObject(), getterQObjectMethod(), getterTwoClasses(), QQmlPrivate::AOTCompiledContext::getValueLookup(), globalGetterProtoAccessor(), QQmlPrivate::AOTCompiledContext::initGetEnumLookup(), QQmlPrivate::AOTCompiledContext::initGetObjectLookup(), QQmlPrivate::AOTCompiledContext::initGetValueLookup(), QQmlPrivate::AOTCompiledContext::initLoadAttachedLookup(), QV4::Moth::VME::interpret(), QV4::ExecutableCompilationUnit::linkToEngine(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QV4::QQmlTypeWrapper::lookupEnumValue(), QV4::QQmlValueTypeWrapper::lookupGetter(), QQmlPrivate::AOTCompiledContext::lookupResultMetaType(), QV4::QQmlTypeWrapper::lookupScopedEnum(), QV4::QQmlTypeWrapper::lookupSingletonMethod(), QV4::QQmlTypeWrapper::lookupSingletonProperty(), primitiveGetterAccessor(), primitiveGetterProto(), resolveGlobalGetter(), resolvePrimitiveGetter(), resolveProtoGetter(), stringLengthGetter(), QV4::Object::virtualResolveLookupGetter(), QV4::QObjectWrapper::virtualResolveLookupGetter(), QV4::QQmlTypeWrapper::virtualResolveLookupGetter(), QV4::QQmlValueTypeWrapper::virtualResolveLookupGetter(), and QV4::ModelObject::virtualResolveLookupGetter().

◆ getterTrampoline

◆ globalGetter

◆ h1

Heap::Base* QV4::Lookup::h1

Definition at line 45 of file qv4lookup_p.h.

◆ h2

Heap::Base* QV4::Lookup::h2

Definition at line 46 of file qv4lookup_p.h.

◆ ic

◆ ic2

◆ index

◆ [struct]

struct { ... } QV4::Lookup::indexedLookup

◆ [struct]

struct { ... } QV4::Lookup::insertionLookup

◆ isConstant

◆ isEnum

bool QV4::Lookup::isEnum

◆ isFunction

bool QV4::Lookup::isFunction

◆ [struct]

struct { ... } QV4::Lookup::markDef

◆ metaObject

◆ metaType

◆ method

Heap::QObjectMethod* QV4::Lookup::method

◆ nameIndex

◆ newClass

Heap::InternalClass* QV4::Lookup::newClass

Definition at line 81 of file qv4lookup_p.h.

Referenced by setterInsert(), and QV4::Object::virtualResolveLookupSetter().

◆ notifyIndex

◆ objectId

◆ [struct]

◆ [struct]

◆ offset

◆ offset2

◆ [struct]

struct { ... } QV4::Lookup::primitiveLookup

◆ propertyCache

◆ propertyData

◆ proto

Heap::Object* QV4::Lookup::proto

Definition at line 76 of file qv4lookup_p.h.

Referenced by primitiveGetterAccessor(), primitiveGetterProto(), and resolveProtoGetter().

◆ protoId

◆ protoId2

quintptr QV4::Lookup::protoId2

◆ [struct]

◆ [struct]

struct { ... } QV4::Lookup::protoLookupTwoClasses

◆ [struct]

◆ [struct]

◆ [struct]

◆ qmlContextPropertyGetter

◆ [struct]

struct { ... } QV4::Lookup::qmlContextScriptLookup

◆ [struct]

◆ [struct]

◆ qmlScopedEnumWrapper

Heap::Object* QV4::Lookup::qmlScopedEnumWrapper

◆ [struct]

struct { ... } QV4::Lookup::qmlScopedEnumWrapperLookup

◆ qmlTypeIc

Heap::InternalClass* QV4::Lookup::qmlTypeIc

◆ [struct]

◆ qmlTypeWrapper

◆ [struct]

◆ [struct]

◆ [struct]

◆ reserved

uint QV4::Lookup::reserved

Definition at line 158 of file qv4lookup_p.h.

◆ reserved1

quintptr QV4::Lookup::reserved1

Definition at line 135 of file qv4lookup_p.h.

◆ reserved2

quintptr QV4::Lookup::reserved2

Definition at line 136 of file qv4lookup_p.h.

◆ reserved3

quintptr QV4::Lookup::reserved3

Definition at line 137 of file qv4lookup_p.h.

◆ scriptIndex

int QV4::Lookup::scriptIndex

◆ setter

◆ singletonObject

◆ singletonValue

◆ type

quintptr QV4::Lookup::type

Definition at line 78 of file qv4lookup_p.h.

Referenced by primitiveGetterAccessor(), and primitiveGetterProto().

◆ unused [1/2]

quintptr QV4::Lookup::unused

Definition at line 47 of file qv4lookup_p.h.

◆ unused [2/2]

uint QV4::Lookup::unused

Definition at line 84 of file qv4lookup_p.h.

◆ unused1

quintptr QV4::Lookup::unused1

Definition at line 119 of file qv4lookup_p.h.

◆ unused2

quintptr QV4::Lookup::unused2

Definition at line 48 of file qv4lookup_p.h.


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