OpenCoverage

qv4context_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4context_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3namespace QV4 {-
4-
5-
6namespace Heap {-
7-
8-
9-
10-
11-
12struct ExecutionContextOffsetStruct { Pointer<ExecutionContext *, 0> outer; Pointer<Object *, 0> activation; }; struct ExecutionContextSizeStruct : Base, ExecutionContextOffsetStruct {}; struct ExecutionContextData { typedef Base SuperClass; static constexpr size_t baseOffset = sizeof(ExecutionContextSizeStruct) - sizeof(ExecutionContextOffsetStruct); Pointer<ExecutionContext *, -
13__builtin_offsetof (-
14ExecutionContextOffsetStruct-
15, -
16outer-
17) -
18+ baseOffset> outer; Pointer<Object *, -
19__builtin_offsetof (-
20ExecutionContextOffsetStruct-
21, -
22activation-
23) -
24+ baseOffset> activation; }; static_assert(bool(sizeof(ExecutionContextSizeStruct) == sizeof(ExecutionContextData) + ExecutionContextData::baseOffset), "sizeof(ExecutionContextSizeStruct) == sizeof(ExecutionContextData) + ExecutionContextData::baseOffset"); struct ExecutionContext : Base, ExecutionContextData {-
25 static void markObjects(Heap::Base *b, MarkStack *stack) { ExecutionContext *o = static_cast<ExecutionContext *>(b); ExecutionContextData::SuperClass::markObjects(o, stack); if (o->outer
o->outerDescription
TRUEevaluated 81038 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
FALSEevaluated 8856 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_quicktestmainwithsetup
  • tst_qv4mm
  • ...
) o->outer.heapObject()->mark(stack);
executed 81038 times by 22 tests: o->outer.heapObject()->mark(stack);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
if (o->activation
o->activationDescription
TRUEevaluated 89874 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_quicktestmainwithsetup
  • tst_qv4mm
  • ...
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
) o->activation.heapObject()->mark(stack);
executed 89874 times by 27 tests: o->activation.heapObject()->mark(stack);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_quicktestmainwithsetup
  • tst_qv4mm
  • ...
}
executed 89894 times by 27 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_quicktestmainwithsetup
  • tst_qv4mm
  • ...
;
20-89894
26-
27 enum ContextType {-
28 Type_GlobalContext = 0x1,-
29 Type_WithContext = 0x2,-
30 Type_QmlContext = 0x3,-
31 Type_BlockContext = 0x4,-
32 Type_CallContext = 0x5-
33 };-
34-
35 void init(ContextType t)-
36 {-
37 Base::init();-
38-
39 type = t;-
40 }
executed 6062128 times by 154 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
  • ...
6062128
41-
42 const VTable *vtable() const {-
43 return
executed 1559567 times by 130 tests: return internalClass->vtable;
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_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
internalClass->vtable;
executed 1559567 times by 130 tests: return internalClass->vtable;
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_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
1559567
44 }-
45-
46 quint32 type : 8;-
47 quint32 nArgs : 24;-
48-
49 quint8 padding_[4];-
50-
51};-
52static_assert(bool(std::is_trivial< ExecutionContext >::value), "std::is_trivial< ExecutionContext >::value");-
53static_assert(bool(sizeof(ExecutionContext) == sizeof(Base) + sizeof(ExecutionContextData) + 8), "sizeof(ExecutionContext) == sizeof(Base) + sizeof(ExecutionContextData) + QT_POINTER_SIZE");-
54-
55static_assert(bool(std::is_standard_layout<ExecutionContextData>::value), "std::is_standard_layout<ExecutionContextData>::value");-
56static_assert(bool(-
57__builtin_offsetof (-
58ExecutionContextData-
59, -
60outer-
61) -
62== 0), "offsetof(ExecutionContextData, outer) == 0");-
63static_assert(bool(-
64__builtin_offsetof (-
65ExecutionContextData-
66, -
67activation-
68) -
69== -
70__builtin_offsetof (-
71ExecutionContextData-
72, -
73outer-
74) -
75+ 8), "offsetof(ExecutionContextData, activation) == offsetof(ExecutionContextData, outer) + QT_POINTER_SIZE");-
76-
77-
78-
79-
80-
81struct CallContextOffsetStruct { Pointer<FunctionObject *, 0> function; ValueArray<0> locals; }; struct CallContextSizeStruct : ExecutionContext, CallContextOffsetStruct {}; struct CallContextData { typedef ExecutionContext SuperClass; static constexpr size_t baseOffset = sizeof(CallContextSizeStruct) - sizeof(CallContextOffsetStruct); Pointer<FunctionObject *, -
82__builtin_offsetof (-
83CallContextOffsetStruct-
84, -
85function-
86) -
87+ baseOffset> function; ValueArray<-
88__builtin_offsetof (-
89CallContextOffsetStruct-
90, -
91locals-
92) -
93+ baseOffset> locals; }; static_assert(bool(sizeof(CallContextSizeStruct) == sizeof(CallContextData) + CallContextData::baseOffset), "sizeof(CallContextSizeStruct) == sizeof(CallContextData) + CallContextData::baseOffset"); struct CallContext : ExecutionContext, CallContextData {-
94 static void markObjects(Heap::Base *b, MarkStack *stack) { CallContext *o = static_cast<CallContext *>(b); CallContextData::SuperClass::markObjects(o, stack); if (o->function
o->functionDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicklayouts
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlxmlhttprequest
) o->function.heapObject()->mark(stack);
executed 4 times by 1 test: o->function.heapObject()->mark(stack);
Executed by:
  • tst_qquicklayouts
o->locals.mark(stack); }
executed 20 times by 2 tests: end of block
Executed by:
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
;
4-20
95-
96 void init()-
97 {-
98 ExecutionContext::init(Type_CallContext);-
99 }
executed 4410185 times by 29 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • ...
4410185
100-
101 int argc() const {-
102 return
executed 6590 times by 11 tests: return static_cast<int>(nArgs);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
static_cast<int>(nArgs);
executed 6590 times by 11 tests: return static_cast<int>(nArgs);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
6590
103 }-
104 const Value *args() const {-
105 return
executed 1963 times by 4 tests: return locals.data() + locals.size;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
locals.data() + locals.size;
executed 1963 times by 4 tests: return locals.data() + locals.size;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
1963
106 }-
107 void setArg(uint index, Value v);-
108};-
109static_assert(bool(std::is_trivial< CallContext >::value), "std::is_trivial< CallContext >::value");-
110static_assert(bool(std::is_standard_layout<CallContextData>::value), "std::is_standard_layout<CallContextData>::value");-
111static_assert(bool(-
112__builtin_offsetof (-
113CallContextData-
114, -
115function-
116) -
117== 0), "offsetof(CallContextData, function) == 0");-
118}-
119-
120struct __attribute__((visibility("default"))) ExecutionContext : public Managed-
121{-
122 enum {-
123 IsExecutionContext = true-
124 };-
125-
126 private: ExecutionContext() = delete; ExecutionContext(const ExecutionContext &) = delete; ExecutionContext &operator=(const ExecutionContext &) = 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; }
never executed: end of block
typedef QV4::Heap::ExecutionContext Data; typedef Managed SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 198971 times by 154 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 198971 times by 154 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::ExecutionContext *d_unchecked() const { return
executed 146347902 times by 154 tests: return static_cast<QV4::Heap::ExecutionContext *>(m());
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_cast<QV4::Heap::ExecutionContext *>(m());
executed 146347902 times by 154 tests: return static_cast<QV4::Heap::ExecutionContext *>(m());
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
  • ...
} QV4::Heap::ExecutionContext *d() const { QV4::Heap::ExecutionContext *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 146379841 times by 154 tests: return dptr;
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
  • ...
dptr;
executed 146379841 times by 154 tests: return dptr;
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_assert(bool(std::is_trivial< QV4::Heap::ExecutionContext >::value), "std::is_trivial< QV4::Heap::ExecutionContext >::value");
0-146379841
127 public: enum { MyType = Type_ExecutionContext };-
128 static Heap::InternalClass *defaultInternalClass(QV4::EngineBase *e) { return
executed 99511 times by 154 tests: return e->internalClasses(QV4::EngineBase::Class_ExecutionContext);
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
  • ...
e->internalClasses(QV4::EngineBase::Class_ExecutionContext);
executed 99511 times by 154 tests: return e->internalClasses(QV4::EngineBase::Class_ExecutionContext);
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
  • ...
}
99511
129-
130 static Heap::CallContext *newBlockContext(QV4::CppStackFrame *frame, int blockIndex);-
131 static Heap::CallContext *cloneBlockContext(Heap::CallContext *context);-
132 static Heap::CallContext *newCallContext(QV4::CppStackFrame *frame);-
133 Heap::ExecutionContext *newWithContext(Heap::Object *with);-
134 static Heap::ExecutionContext *newCatchContext(CppStackFrame *frame, int blockIndex, Heap::String *exceptionVarName);-
135-
136 void createMutableBinding(String *name, bool deletable);-
137-
138 enum Error {-
139 NoError,-
140 TypeError,-
141 RangeError-
142 };-
143-
144 Error setProperty(String *name, const Value &value);-
145-
146 ReturnedValue getProperty(String *name);-
147 ReturnedValue getPropertyAndBase(String *name, Value *base);-
148 bool deleteProperty(String *name);-
149-
150 inline CallContext *asCallContext();-
151 inline const CallContext *asCallContext() const;-
152-
153protected:-
154-
155 static bool virtualDeleteProperty(Managed *, PropertyKey) {-
156 do { ((false) ? static_cast<void>(0) : qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached", __FILE__, 172)); __builtin_unreachable(); } while (false);-
157 }
never executed: end of block
0
158};-
159-
160struct __attribute__((visibility("default"))) CallContext : public ExecutionContext-
161{-
162 private: CallContext() = delete; CallContext(const CallContext &) = delete; CallContext &operator=(const CallContext &) = 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; }
never executed: end of block
typedef QV4::Heap::CallContext Data; typedef ExecutionContext SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 4504952 times by 154 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 4504952 times by 154 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::CallContext *d_unchecked() const { return
executed 13557 times by 12 tests: return static_cast<QV4::Heap::CallContext *>(m());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
static_cast<QV4::Heap::CallContext *>(m());
executed 13557 times by 12 tests: return static_cast<QV4::Heap::CallContext *>(m());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
} QV4::Heap::CallContext *d() const { QV4::Heap::CallContext *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 13562 times by 12 tests: return dptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
dptr;
executed 13562 times by 12 tests: return dptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
} static_assert(bool(std::is_trivial< QV4::Heap::CallContext >::value), "std::is_trivial< QV4::Heap::CallContext >::value");
0-4504952
163 static Heap::InternalClass *defaultInternalClass(QV4::EngineBase *e) { return
never executed: return e->internalClasses(QV4::EngineBase::Class_CallContext);
e->internalClasses(QV4::EngineBase::Class_CallContext);
never executed: return e->internalClasses(QV4::EngineBase::Class_CallContext);
}
0
164-
165 int argc() const {-
166 return
executed 4496 times by 11 tests: return d()->argc();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
d()->argc();
executed 4496 times by 11 tests: return d()->argc();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
4496
167 }-
168 const Value *args() const {-
169 return
never executed: return d()->args();
d()->args();
never executed: return d()->args();
0
170 }-
171};-
172-
173inline CallContext *ExecutionContext::asCallContext()-
174{-
175 return
executed 232 times by 1 test: return d()->type == Heap::ExecutionContext::Type_CallContext ? static_cast<CallContext *>(this) : nullptr;
Executed by:
  • tst_qv4debugger
d()->type == Heap::ExecutionContext::Type_CallContext ? static_cast<CallContext *>(this) : nullptr;
executed 232 times by 1 test: return d()->type == Heap::ExecutionContext::Type_CallContext ? static_cast<CallContext *>(this) : nullptr;
Executed by:
  • tst_qv4debugger
232
176}-
177-
178inline const CallContext *ExecutionContext::asCallContext() const-
179{-
180 return
never executed: return d()->type == Heap::ExecutionContext::Type_CallContext ? static_cast<const CallContext *>(this) : nullptr;
d()->type == Heap::ExecutionContext::Type_CallContext ? static_cast<const CallContext *>(this) : nullptr;
never executed: return d()->type == Heap::ExecutionContext::Type_CallContext ? static_cast<const CallContext *>(this) : nullptr;
0
181}-
182-
183}-
184-
185-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0