OpenCoverage

qqmlvme_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlvme_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6class QObject;-
7class QJSValue;-
8class QQmlScriptData;-
9class QQmlContextData;-
10-
11namespace QQmlVMETypes {-
12 struct List-
13 {-
14 List() : type(0) {}
never executed: end of block
0
15 List(int t) : type(t) {}
never executed: end of block
0
16-
17 int type;-
18 QQmlListProperty<void> qListProperty;-
19 };-
20 struct State {-
21 enum Flag { Deferred = 0x00000001 };-
22-
23 State() : flags(0), context(nullptr), instructionStream(nullptr) {}
never executed: end of block
0
24 quint32 flags;-
25 QQmlContextData *context;-
26 const char *instructionStream;-
27 QBitField bindingSkipList;-
28 };-
29}-
30template<> class QTypeInfo<QQmlVMETypes::List > { public: enum { isSpecialized = true, isComplex = (((Q_PRIMITIVE_TYPE | Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE | Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_PRIMITIVE_TYPE | Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QQmlVMETypes::List)>sizeof(void*)), isPointer = false, isIntegral = std::is_integral< QQmlVMETypes::List >::value, isDummy = (((Q_PRIMITIVE_TYPE | Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QQmlVMETypes::List) }; static inline const char *name() { return "QQmlVMETypes::List"; } };-
31template<>-
32class QTypeInfo<QQmlVMETypes::State> : public QTypeInfoMerger<QQmlVMETypes::State, QBitField> {};-
33-
34class QQmlInstantiationInterrupt {-
35public:-
36 inline QQmlInstantiationInterrupt();-
37 inline QQmlInstantiationInterrupt(volatile bool *runWhile, int nsecs=0);-
38 inline QQmlInstantiationInterrupt(int nsecs);-
39-
40 inline void reset();-
41 inline bool shouldInterrupt() const;-
42private:-
43 enum Mode { None, Time, Flag };-
44 Mode mode;-
45 QElapsedTimer timer;-
46 int nsecs;-
47 volatile bool *runWhile;-
48};-
49-
50class __attribute__((visibility("default"))) QQmlVME-
51{-
52public:-
53 static void enableComponentComplete();-
54 static void disableComponentComplete();-
55 static bool componentCompleteEnabled();-
56-
57private:-
58 static bool s_enableComponentComplete;-
59};-
60class QQmlVMEGuard-
61{-
62public:-
63 QQmlVMEGuard();-
64 ~QQmlVMEGuard();-
65-
66 void guard(QQmlObjectCreator *);-
67 void clear();-
68-
69 bool isOK() const;-
70-
71private:-
72 int m_objectCount;-
73 QPointer<QObject> *m_objects;-
74 int m_contextCount;-
75 QQmlGuardedContextData *m_contexts;-
76};-
77-
78QQmlInstantiationInterrupt::QQmlInstantiationInterrupt()-
79 : mode(None), nsecs(0), runWhile(nullptr)-
80{-
81}
executed 150100 times by 140 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • 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
  • tst_qqmllistmodel
  • ...
150100
82-
83QQmlInstantiationInterrupt::QQmlInstantiationInterrupt(volatile bool *runWhile, int nsecs)-
84 : mode(Flag), nsecs(nsecs), runWhile(runWhile)-
85{-
86}
executed 1580 times by 5 tests: end of block
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
1580
87-
88QQmlInstantiationInterrupt::QQmlInstantiationInterrupt(int nsecs)-
89 : mode(Time), nsecs(nsecs), runWhile(nullptr)-
90{-
91}
executed 973 times by 9 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
973
92-
93void QQmlInstantiationInterrupt::reset()-
94{-
95 if (mode == Time
mode == TimeDescription
TRUEevaluated 973 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 1580 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
|| nsecs
nsecsDescription
TRUEnever evaluated
FALSEevaluated 1580 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
)
0-1580
96 timer.start();
executed 973 times by 9 tests: timer.start();
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
973
97}
executed 2553 times by 10 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
2553
98-
99bool QQmlInstantiationInterrupt::shouldInterrupt() const-
100{-
101 if (mode == None
mode == NoneDescription
TRUEevaluated 1190778 times by 136 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 28559 times by 10 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
) {
28559-1190778
102 return
executed 1190778 times by 136 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
false;
executed 1190778 times by 136 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
1190778
103 } else if (mode == Time
mode == TimeDescription
TRUEevaluated 24339 times by 9 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 4220 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
) {
4220-24339
104 return
executed 24339 times by 9 tests: return timer.nsecsElapsed() > nsecs;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
timer.nsecsElapsed() > nsecs;
executed 24339 times by 9 tests: return timer.nsecsElapsed() > nsecs;
Executed by:
  • tst_qqmlcomponent
  • tst_qqmlinstantiator
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
24339
105 } else if (mode == Flag
mode == FlagDescription
TRUEevaluated 4220 times by 5 tests
Evaluated by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEnever evaluated
) {
0-4220
106 return
executed 4220 times by 5 tests: return !*runWhile || (nsecs && timer.nsecsElapsed() > nsecs);
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
!*runWhile || (nsecs && timer.nsecsElapsed() > nsecs);
executed 4220 times by 5 tests: return !*runWhile || (nsecs && timer.nsecsElapsed() > nsecs);
Executed by:
  • tst_qqmlincubator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
4220
107 } else {-
108 return
never executed: return false;
false;
never executed: return false;
0
109 }-
110}-
111-
112-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0