OpenCoverage

qqmlbuiltinfunctions_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/v8/qqmlbuiltinfunctions_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQmlEngine;-
5-
6namespace QV4 {-
7-
8namespace Heap {-
9-
10struct QtObject : Object {-
11 void init(QQmlEngine *qmlEngine);-
12 QObject *platform;-
13 QObject *application;-
14-
15 enum { Finished = -1 };-
16 int enumeratorIterator;-
17 int keyIterator;-
18-
19 bool isComplete() const-
20 { return
never executed: return enumeratorIterator == Finished;
enumeratorIterator == Finished;
never executed: return enumeratorIterator == Finished;
}
0
21};-
22-
23struct ConsoleObject : Object {-
24 void init();-
25};-
26-
27-
28-
29struct QQmlBindingFunctionOffsetStruct { Pointer<FunctionObject *, 0> bindingFunction; }; struct QQmlBindingFunctionSizeStruct : FunctionObject, QQmlBindingFunctionOffsetStruct {}; struct QQmlBindingFunctionData { typedef FunctionObject SuperClass; static constexpr size_t baseOffset = sizeof(QQmlBindingFunctionSizeStruct) - sizeof(QQmlBindingFunctionOffsetStruct); Pointer<FunctionObject *, -
30__builtin_offsetof (-
31QQmlBindingFunctionOffsetStruct-
32, -
33bindingFunction-
34) -
35+ baseOffset> bindingFunction; }; static_assert(bool(sizeof(QQmlBindingFunctionSizeStruct) == sizeof(QQmlBindingFunctionData) + QQmlBindingFunctionData::baseOffset), "sizeof(QQmlBindingFunctionSizeStruct) == sizeof(QQmlBindingFunctionData) + QQmlBindingFunctionData::baseOffset"); struct QQmlBindingFunction : FunctionObject, QQmlBindingFunctionData {-
36 static void markObjects(Heap::Base *b, MarkStack *stack) { QQmlBindingFunction *o = static_cast<QQmlBindingFunction *>(b); QQmlBindingFunctionData::SuperClass::markObjects(o, stack); if (o->bindingFunction
o->bindingFunctionDescription
TRUEnever evaluated
FALSEnever evaluated
) o->bindingFunction.heapObject()->mark(stack);
never executed: o->bindingFunction.heapObject()->mark(stack);
}
never executed: end of block
0
37 void init(const QV4::FunctionObject *bindingFunction);-
38};-
39-
40}-
41-
42struct QtObject : Object-
43{-
44 private: QtObject() = delete; QtObject(const QtObject &) = delete; QtObject &operator=(const QtObject &) = 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::QtObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 26352 times by 148 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
&static_vtbl;
executed 26352 times by 148 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
} 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::QtObject *d_unchecked() const { return
executed 17568 times by 148 tests: return static_cast<QV4::Heap::QtObject *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
static_cast<QV4::Heap::QtObject *>(m());
executed 17568 times by 148 tests: return static_cast<QV4::Heap::QtObject *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
} QV4::Heap::QtObject *d() const { QV4::Heap::QtObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 8784 times by 148 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
dptr;
executed 8784 times by 148 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
} static_assert(bool(std::is_trivial< QV4::Heap::QtObject >::value), "std::is_trivial< QV4::Heap::QtObject >::value");
0-26352
45-
46 static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty);-
47 static void virtualAdvanceIterator(Managed *m, ObjectIterator *it, Value *name, uint *index, Property *p, PropertyAttributes *attributes);-
48-
49 static ReturnedValue method_isQtObject(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
50 static ReturnedValue method_rgba(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
51 static ReturnedValue method_hsla(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
52 static ReturnedValue method_hsva(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
53 static ReturnedValue method_colorEqual(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
54 static ReturnedValue method_font(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
55 static ReturnedValue method_rect(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
56 static ReturnedValue method_point(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
57 static ReturnedValue method_size(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
58 static ReturnedValue method_vector2d(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
59 static ReturnedValue method_vector3d(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
60 static ReturnedValue method_vector4d(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
61 static ReturnedValue method_quaternion(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
62 static ReturnedValue method_matrix4x4(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
63 static ReturnedValue method_lighter(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
64 static ReturnedValue method_darker(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
65 static ReturnedValue method_tint(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
66 static ReturnedValue method_formatDate(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
67 static ReturnedValue method_formatTime(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
68 static ReturnedValue method_formatDateTime(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
69 static ReturnedValue method_openUrlExternally(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
70 static ReturnedValue method_fontFamilies(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
71 static ReturnedValue method_md5(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
72 static ReturnedValue method_btoa(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
73 static ReturnedValue method_atob(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
74 static ReturnedValue method_quit(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
75 static ReturnedValue method_exit(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
76 static ReturnedValue method_resolvedUrl(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
77 static ReturnedValue method_createQmlObject(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
78 static ReturnedValue method_createComponent(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
79-
80 static ReturnedValue method_locale(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
81-
82 static ReturnedValue method_binding(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
83-
84 static ReturnedValue method_get_platform(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
85 static ReturnedValue method_get_application(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
86 static ReturnedValue method_get_inputMethod(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
87 static ReturnedValue method_get_styleHints(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
88-
89 static ReturnedValue method_callLater(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
90-
91private:-
92 void addAll();-
93 ReturnedValue findAndAdd(const QString *name, bool &foundProperty) const;-
94};-
95-
96struct ConsoleObject : Object-
97{-
98 private: ConsoleObject() = delete; ConsoleObject(const ConsoleObject &) = delete; ConsoleObject &operator=(const ConsoleObject &) = 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::ConsoleObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
never executed: return &static_vtbl;
&static_vtbl;
never executed: return &static_vtbl;
} 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::ConsoleObject *d_unchecked() const { return
never executed: return static_cast<QV4::Heap::ConsoleObject *>(m());
static_cast<QV4::Heap::ConsoleObject *>(m());
never executed: return static_cast<QV4::Heap::ConsoleObject *>(m());
} QV4::Heap::ConsoleObject *d() const { QV4::Heap::ConsoleObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
never executed: return dptr;
dptr;
never executed: return dptr;
} static_assert(bool(std::is_trivial< QV4::Heap::ConsoleObject >::value), "std::is_trivial< QV4::Heap::ConsoleObject >::value");
0
99-
100 static ReturnedValue method_error(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
101 static ReturnedValue method_log(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
102 static ReturnedValue method_info(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
103 static ReturnedValue method_profile(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
104 static ReturnedValue method_profileEnd(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
105 static ReturnedValue method_time(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
106 static ReturnedValue method_timeEnd(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
107 static ReturnedValue method_count(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
108 static ReturnedValue method_trace(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
109 static ReturnedValue method_warn(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
110 static ReturnedValue method_assert(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
111 static ReturnedValue method_exception(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
112-
113};-
114-
115struct __attribute__((visibility("default"))) GlobalExtensions {-
116 static void init(Object *globalObject, QJSEngine::Extensions extensions);-
117-
118-
119 static ReturnedValue method_qsTranslate(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
120 static ReturnedValue method_qsTranslateNoOp(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
121 static ReturnedValue method_qsTr(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
122 static ReturnedValue method_qsTrNoOp(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
123 static ReturnedValue method_qsTrId(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
124 static ReturnedValue method_qsTrIdNoOp(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
125-
126 static ReturnedValue method_gc(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
127-
128-
129 static ReturnedValue method_string_arg(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc);-
130-
131};-
132-
133struct QQmlBindingFunction : public QV4::FunctionObject-
134{-
135 private: QQmlBindingFunction() = delete; QQmlBindingFunction(const QQmlBindingFunction &) = delete; QQmlBindingFunction &operator=(const QQmlBindingFunction &) = 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 80 times by 8 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
typedef QV4::Heap::QQmlBindingFunction Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 820 times by 13 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
&static_vtbl;
executed 820 times by 13 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlstatemachine
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
} 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::QQmlBindingFunction *d_unchecked() const { return
executed 80 times by 8 tests: return static_cast<QV4::Heap::QQmlBindingFunction *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
static_cast<QV4::Heap::QQmlBindingFunction *>(m());
executed 80 times by 8 tests: return static_cast<QV4::Heap::QQmlBindingFunction *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
} QV4::Heap::QQmlBindingFunction *d() const { QV4::Heap::QQmlBindingFunction *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 80 times by 8 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
dptr;
executed 80 times by 8 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
} static_assert(bool(std::is_trivial< QV4::Heap::QQmlBindingFunction >::value), "std::is_trivial< QV4::Heap::QQmlBindingFunction >::value");
0-820
136-
137 Heap::FunctionObject *bindingFunction() const { return
executed 80 times by 8 tests: return d()->bindingFunction;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
d()->bindingFunction;
executed 80 times by 8 tests: return d()->bindingFunction;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickitem2
  • tst_qquickloader
}
80
138 QQmlSourceLocation currentLocation() const;-
139};-
140-
141}-
142-
143-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0