OpenCoverage

qv4qobjectwrapper_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QObject;-
6class QQmlData;-
7class QQmlPropertyCache;-
8class QQmlPropertyData;-
9-
10namespace QV4 {-
11struct QObjectSlotDispatcher;-
12-
13namespace Heap {-
14-
15struct QQmlValueTypeWrapper;-
16-
17struct __attribute__((visibility("default"))) QObjectWrapper : Object {-
18 void init(QObject *object)-
19 {-
20 Object::init();-
21 qObj.init(object);-
22 }
executed 536134 times by 141 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
536134
23-
24 void destroy() {-
25 qObj.destroy();-
26 Object::destroy();-
27 }
executed 535986 times by 141 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
535986
28-
29 QObject *object() const { return
executed 13947464 times by 141 tests: return qObj.data();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
qObj.data();
executed 13947464 times by 141 tests: return qObj.data();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
}
13947464
30 static void markObjects(Heap::Base *that, MarkStack *markStack);-
31-
32private:-
33 QQmlQPointer<QObject> qObj;-
34};-
35-
36-
37-
38-
39-
40-
41-
42struct QObjectMethodOffsetStruct { Pointer<QQmlValueTypeWrapper *, 0> valueTypeWrapper; QQmlQPointer<QObject> qObj; QQmlPropertyCache * _propertyCache; int index; }; struct QObjectMethodSizeStruct : FunctionObject, QObjectMethodOffsetStruct {}; struct QObjectMethodData { typedef FunctionObject SuperClass; static constexpr size_t baseOffset = sizeof(QObjectMethodSizeStruct) - sizeof(QObjectMethodOffsetStruct); Pointer<QQmlValueTypeWrapper *, -
43__builtin_offsetof (-
44QObjectMethodOffsetStruct-
45, -
46valueTypeWrapper-
47) -
48+ baseOffset> valueTypeWrapper; QQmlQPointer<QObject> qObj; QQmlPropertyCache * _propertyCache; int index; }; static_assert(bool(sizeof(QObjectMethodSizeStruct) == sizeof(QObjectMethodData) + QObjectMethodData::baseOffset), "sizeof(QObjectMethodSizeStruct) == sizeof(QObjectMethodData) + QObjectMethodData::baseOffset"); struct QObjectMethod : FunctionObject, QObjectMethodData {-
49 static void markObjects(Heap::Base *b, MarkStack *stack) { QObjectMethod *o = static_cast<QObjectMethod *>(b); QObjectMethodData::SuperClass::markObjects(o, stack); if (o->valueTypeWrapper
o->valueTypeWrapperDescription
TRUEnever evaluated
FALSEevaluated 104 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
) o->valueTypeWrapper.heapObject()->mark(stack);
never executed: o->valueTypeWrapper.heapObject()->mark(stack);
}
executed 104 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
;
0-104
50-
51 void init(QV4::ExecutionContext *scope);-
52 void destroy()-
53 {-
54 setPropertyCache(nullptr);-
55 qObj.destroy();-
56 FunctionObject::destroy();-
57 }
executed 68114 times by 62 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
68114
58-
59 QQmlPropertyCache *propertyCache() const { return
executed 130504 times by 56 tests: return _propertyCache;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
_propertyCache;
executed 130504 times by 56 tests: return _propertyCache;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
}
130504
60 void setPropertyCache(QQmlPropertyCache *c) {-
61 if (c
cDescription
TRUEevaluated 65298 times by 61 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
FALSEevaluated 70976 times by 62 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
)
65298-70976
62 c->addref();
executed 65298 times by 61 tests: c->addref();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
65298
63 if (_propertyCache
_propertyCacheDescription
TRUEevaluated 65252 times by 61 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
FALSEevaluated 71022 times by 62 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
)
65252-71022
64 _propertyCache->release();
executed 65252 times by 61 tests: _propertyCache->release();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
65252
65 _propertyCache = c;-
66 }
executed 136274 times by 62 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
136274
67-
68 const QMetaObject *metaObject();-
69 QObject *object() const { return
executed 132492 times by 62 tests: return qObj.data();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
qObj.data();
executed 132492 times by 62 tests: return qObj.data();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
}
132492
70 void setObject(QObject *o) { qObj = o; }
executed 67816 times by 62 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
67816
71-
72};-
73-
74struct QMetaObjectWrapper : FunctionObject {-
75 const QMetaObject* metaObject;-
76 QQmlPropertyData *constructors;-
77 int constructorCount;-
78-
79 void init(const QMetaObject* metaObject);-
80 void destroy();-
81 void ensureConstructorsCache();-
82};-
83-
84struct QmlSignalHandler : Object {-
85 void init(QObject *object, int signalIndex);-
86 void destroy() {-
87 qObj.destroy();-
88 Object::destroy();-
89 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
14
90 int signalIndex;-
91-
92 QObject *object() const { return
executed 10 times by 1 test: return qObj.data();
Executed by:
  • tst_qqmlecmascript
qObj.data();
executed 10 times by 1 test: return qObj.data();
Executed by:
  • tst_qqmlecmascript
}
10
93 void setObject(QObject *o) { qObj = o; }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
14
94-
95private:-
96 QQmlQPointer<QObject> qObj;-
97};-
98-
99}-
100-
101struct __attribute__((visibility("default"))) QObjectWrapper : public Object-
102{-
103 private: QObjectWrapper() = delete; QObjectWrapper(const QObjectWrapper &) = delete; QObjectWrapper &operator=(const QObjectWrapper &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
executed 12965255 times by 153 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
typedef QV4::Heap::QObjectWrapper Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 19292649 times by 153 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
&static_vtbl;
executed 19292649 times by 153 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::QObjectWrapper *d_unchecked() const { return
executed 13815737 times by 141 tests: return static_cast<QV4::Heap::QObjectWrapper *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
static_cast<QV4::Heap::QObjectWrapper *>(m());
executed 13815737 times by 141 tests: return static_cast<QV4::Heap::QObjectWrapper *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
} QV4::Heap::QObjectWrapper *d() const { QV4::Heap::QObjectWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 13729819 times by 141 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
dptr;
executed 13729819 times by 141 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
} static_assert(bool(std::is_trivial< QV4::Heap::QObjectWrapper >::value), "std::is_trivial< QV4::Heap::QObjectWrapper >::value");
0-19292649
104 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
executed 535326 times by 141 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
535326
105-
106 enum RevisionMode { IgnoreRevision, CheckRevision };-
107-
108 static void initializeBindings(ExecutionEngine *engine);-
109-
110 QObject *object() const { return
executed 453323 times by 111 tests: return d()->object();
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
d()->object();
executed 453323 times by 111 tests: return d()->object();
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
}
453323
111-
112 ReturnedValue getQmlProperty(QQmlContextData *qmlContext, String *name, RevisionMode revisionMode, bool *hasProperty = nullptr, bool includeImports = false) const;-
113 static ReturnedValue getQmlProperty(ExecutionEngine *engine, QQmlContextData *qmlContext, QObject *object, String *name, RevisionMode revisionMode, bool *hasProperty = nullptr);-
114-
115 static bool setQmlProperty(ExecutionEngine *engine, QQmlContextData *qmlContext, QObject *object, String *name, RevisionMode revisionMode, const Value &value);-
116-
117 static ReturnedValue wrap(ExecutionEngine *engine, QObject *object);-
118 static void markWrapper(QObject *object, MarkStack *markStack);-
119-
120 using Object::get;-
121-
122 static ReturnedValue getProperty(ExecutionEngine *engine, QObject *object, int propertyIndex, bool captureRequired);-
123 static void setProperty(ExecutionEngine *engine, QObject *object, int propertyIndex, const Value &value);-
124 void setProperty(ExecutionEngine *engine, int propertyIndex, const Value &value);-
125-
126 void destroyObject(bool lastCall);-
127-
128protected:-
129 static bool virtualIsEqualTo(Managed *that, Managed *o);-
130-
131 static ReturnedValue getProperty(ExecutionEngine *engine, QObject *object, QQmlPropertyData *property, bool captureRequired = true);-
132 static void setProperty(ExecutionEngine *engine, QObject *object, QQmlPropertyData *property, const Value &value);-
133-
134 static ReturnedValue create(ExecutionEngine *engine, QObject *object);-
135-
136 static QQmlPropertyData *findProperty(ExecutionEngine *engine, QObject *o, QQmlContextData *qmlContext, String *name, RevisionMode revisionMode, QQmlPropertyData *local);-
137 QQmlPropertyData *findProperty(ExecutionEngine *engine, QQmlContextData *qmlContext, String *name, RevisionMode revisionMode, QQmlPropertyData *local) const;-
138-
139 static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty);-
140 static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver);-
141 static PropertyAttributes virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p);-
142 static void virtualAdvanceIterator(Managed *m, ObjectIterator *it, Value *name, uint *index, Property *p, PropertyAttributes *attributes);-
143-
144 static ReturnedValue method_connect(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
145 static ReturnedValue method_disconnect(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
146-
147private:-
148 __attribute__((noinline)) static ReturnedValue wrap_slowPath(ExecutionEngine *engine, QObject *object);-
149};-
150-
151inline ReturnedValue QObjectWrapper::wrap(ExecutionEngine *engine, QObject *object)-
152{-
153 if (__builtin_expect(!!(QQmlData::wasDeleted(object)), false)
__builtin_expe...ject)), false)Description
TRUEevaluated 677 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • ...
FALSEevaluated 8143104 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
)
677-8143104
154 return
executed 677 times by 30 tests: return QV4::Encode::null();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • ...
QV4::Encode::null();
executed 677 times by 30 tests: return QV4::Encode::null();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • ...
677
155-
156 auto ddata = QQmlData::get(object);-
157 if (__builtin_expect(!!(ddata && ddata->jsEngineId == engine->m_engineId && !ddata->jsWrapper.isUndefined()), true)
__builtin_expe...ined()), true)Description
TRUEevaluated 7608054 times by 134 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
FALSEevaluated 535050 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
) {
535050-7608054
158-
159 return
executed 7608054 times by 134 tests: return ddata->jsWrapper.value();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
ddata->jsWrapper.value();
executed 7608054 times by 134 tests: return ddata->jsWrapper.value();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
7608054
160 }-
161-
162 return
executed 535050 times by 141 tests: return wrap_slowPath(engine, object);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
wrap_slowPath(engine, object);
executed 535050 times by 141 tests: return wrap_slowPath(engine, object);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
535050
163}-
164-
165struct QQmlValueTypeWrapper;-
166-
167struct __attribute__((visibility("default"))) QObjectMethod : public QV4::FunctionObject-
168{-
169 private: QObjectMethod() = delete; QObjectMethod(const QObjectMethod &) = delete; QObjectMethod &operator=(const QObjectMethod &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
executed 1006 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_signalspy
typedef QV4::Heap::QObjectMethod Data; typedef QV4::FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 205854 times by 62 tests: return &static_vtbl;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
&static_vtbl;
executed 205854 times by 62 tests: return &static_vtbl;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::QObjectMethod *d_unchecked() const { return
executed 800254 times by 62 tests: return static_cast<QV4::Heap::QObjectMethod *>(m());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
static_cast<QV4::Heap::QObjectMethod *>(m());
executed 800254 times by 62 tests: return static_cast<QV4::Heap::QObjectMethod *>(m());
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
} QV4::Heap::QObjectMethod *d() const { QV4::Heap::QObjectMethod *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 732094 times by 62 tests: return dptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
dptr;
executed 732094 times by 62 tests: return dptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
} static_assert(bool(std::is_trivial< QV4::Heap::QObjectMethod >::value), "std::is_trivial< QV4::Heap::QObjectMethod >::value");
0-800254
170 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
executed 68114 times by 62 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
68114
171-
172 enum { DestroyMethod = -1, ToStringMethod = -2 };-
173-
174 static ReturnedValue create(QV4::ExecutionContext *scope, QObject *object, int index);-
175 static ReturnedValue create(QV4::ExecutionContext *scope, const QQmlValueTypeWrapper *valueType, int index);-
176-
177 int methodIndex() const { return
executed 636 times by 6 tests: return d()->index;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_signalspy
d()->index;
executed 636 times by 6 tests: return d()->index;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_signalspy
}
636
178 QObject *object() const { return
executed 636 times by 6 tests: return d()->object();
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_signalspy
d()->object();
executed 636 times by 6 tests: return d()->object();
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_signalspy
}
636
179-
180 QV4::ReturnedValue method_toString(QV4::ExecutionEngine *engine) const;-
181 QV4::ReturnedValue method_destroy(QV4::ExecutionEngine *ctx, const Value *args, int argc) const;-
182-
183 static ReturnedValue virtualCall(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
184-
185 ReturnedValue callInternal(const Value *thisObject, const Value *argv, int argc) const;-
186-
187 static QPair<QObject *, int> extractQtMethod(const QV4::FunctionObject *function);-
188};-
189-
190-
191struct __attribute__((visibility("default"))) QMetaObjectWrapper : public QV4::FunctionObject-
192{-
193 private: QMetaObjectWrapper() = delete; QMetaObjectWrapper(const QMetaObjectWrapper &) = delete; QMetaObjectWrapper &operator=(const QMetaObjectWrapper &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qjsengine
typedef QV4::Heap::QMetaObjectWrapper Data; typedef QV4::FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 30 times by 1 test: return &static_vtbl;
Executed by:
  • tst_qjsengine
&static_vtbl;
executed 30 times by 1 test: return &static_vtbl;
Executed by:
  • tst_qjsengine
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::QMetaObjectWrapper *d_unchecked() const { return
executed 94 times by 1 test: return static_cast<QV4::Heap::QMetaObjectWrapper *>(m());
Executed by:
  • tst_qjsengine
static_cast<QV4::Heap::QMetaObjectWrapper *>(m());
executed 94 times by 1 test: return static_cast<QV4::Heap::QMetaObjectWrapper *>(m());
Executed by:
  • tst_qjsengine
} QV4::Heap::QMetaObjectWrapper *d() const { QV4::Heap::QMetaObjectWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 88 times by 1 test: return dptr;
Executed by:
  • tst_qjsengine
dptr;
executed 88 times by 1 test: return dptr;
Executed by:
  • tst_qjsengine
} static_assert(bool(std::is_trivial< QV4::Heap::QMetaObjectWrapper >::value), "std::is_trivial< QV4::Heap::QMetaObjectWrapper >::value");
0-94
194 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qjsengine
6
195-
196 static ReturnedValue create(ExecutionEngine *engine, const QMetaObject* metaObject);-
197 const QMetaObject *metaObject() const { return d()->metaObject; }-
198-
199protected:-
200 static ReturnedValue virtualCallAsConstructor(const FunctionObject *, const Value *argv, int argc, const Value *);-
201 static bool virtualIsEqualTo(Managed *a, Managed *b);-
202-
203private:-
204 void init(ExecutionEngine *engine);-
205 ReturnedValue constructInternal(const Value *argv, int argc) const;-
206 ReturnedValue callConstructor(const QQmlPropertyData &data, QV4::ExecutionEngine *engine, QV4::CallData *callArgs) const;-
207 ReturnedValue callOverloadedConstructor(QV4::ExecutionEngine *engine, QV4::CallData *callArgs) const;-
208-
209};-
210-
211struct __attribute__((visibility("default"))) QmlSignalHandler : public QV4::Object-
212{-
213 private: QmlSignalHandler() = delete; QmlSignalHandler(const QmlSignalHandler &) = delete; QmlSignalHandler &operator=(const QmlSignalHandler &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
typedef QV4::Heap::QmlSignalHandler Data; typedef QV4::Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 52 times by 1 test: return &static_vtbl;
Executed by:
  • tst_qqmlecmascript
&static_vtbl;
executed 52 times by 1 test: return &static_vtbl;
Executed by:
  • tst_qqmlecmascript
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::QmlSignalHandler *d_unchecked() const { return
executed 48 times by 1 test: return static_cast<QV4::Heap::QmlSignalHandler *>(m());
Executed by:
  • tst_qqmlecmascript
static_cast<QV4::Heap::QmlSignalHandler *>(m());
executed 48 times by 1 test: return static_cast<QV4::Heap::QmlSignalHandler *>(m());
Executed by:
  • tst_qqmlecmascript
} QV4::Heap::QmlSignalHandler *d() const { QV4::Heap::QmlSignalHandler *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 34 times by 1 test: return dptr;
Executed by:
  • tst_qqmlecmascript
dptr;
executed 34 times by 1 test: return dptr;
Executed by:
  • tst_qqmlecmascript
} static_assert(bool(std::is_trivial< QV4::Heap::QmlSignalHandler >::value), "std::is_trivial< QV4::Heap::QmlSignalHandler >::value");
0-52
214 static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return
executed 14 times by 1 test: return e->signalHandlerPrototype();
Executed by:
  • tst_qqmlecmascript
e->signalHandlerPrototype();
executed 14 times by 1 test: return e->signalHandlerPrototype();
Executed by:
  • tst_qqmlecmascript
}
14
215 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
executed 14 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
14
216-
217 int signalIndex() const { return
executed 10 times by 1 test: return d()->signalIndex;
Executed by:
  • tst_qqmlecmascript
d()->signalIndex;
executed 10 times by 1 test: return d()->signalIndex;
Executed by:
  • tst_qqmlecmascript
}
10
218 QObject *object() const { return
executed 10 times by 1 test: return d()->object();
Executed by:
  • tst_qqmlecmascript
d()->object();
executed 10 times by 1 test: return d()->object();
Executed by:
  • tst_qqmlecmascript
}
10
219-
220 static void initProto(ExecutionEngine *v4);-
221};-
222-
223class MultiplyWrappedQObjectMap : public QObject,-
224 private QHash<QObject*, QV4::WeakValue>-
225{-
226 public:-
227#pragma GCC diagnostic push-
228 -
229#pragma GCC diagnostic ignored "-Wsuggest-override"-
230 static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
231#pragma GCC diagnostic ignored "-Wattributes"-
232 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
233#pragma GCC diagnostic pop-
234 struct QPrivateSignal {};-
235public:-
236 typedef QHash<QObject*, QV4::WeakValue>::ConstIterator ConstIterator;-
237 typedef QHash<QObject*, QV4::WeakValue>::Iterator Iterator;-
238-
239 ConstIterator begin() const { return
never executed: return QHash<QObject*, QV4::WeakValue>::constBegin();
QHash<QObject*, QV4::WeakValue>::constBegin();
never executed: return QHash<QObject*, QV4::WeakValue>::constBegin();
}
0
240 Iterator begin() { return
never executed: return QHash<QObject*, QV4::WeakValue>::begin();
QHash<QObject*, QV4::WeakValue>::begin();
never executed: return QHash<QObject*, QV4::WeakValue>::begin();
}
0
241 ConstIterator end() const { return
never executed: return QHash<QObject*, QV4::WeakValue>::constEnd();
QHash<QObject*, QV4::WeakValue>::constEnd();
never executed: return QHash<QObject*, QV4::WeakValue>::constEnd();
}
0
242 Iterator end() { return
never executed: return QHash<QObject*, QV4::WeakValue>::end();
QHash<QObject*, QV4::WeakValue>::end();
never executed: return QHash<QObject*, QV4::WeakValue>::end();
}
0
243-
244 void insert(QObject *key, Heap::Object *value);-
245 ReturnedValue value(QObject *key) const { return
never executed: return QHash<QObject*, QV4::WeakValue>::value(key).value();
QHash<QObject*, QV4::WeakValue>::value(key).value();
never executed: return QHash<QObject*, QV4::WeakValue>::value(key).value();
}
0
246 Iterator erase(Iterator it);-
247 void remove(QObject *key);-
248 void mark(QObject *key, MarkStack *markStack);-
249-
250private :-
251 void removeDestroyedObject(QObject*);-
252};-
253-
254}-
255-
256-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0