Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/v8/qqmlbuiltinfunctions_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | class QQmlEngine; | - | ||||||
5 | - | |||||||
6 | namespace QV4 { | - | ||||||
7 | - | |||||||
8 | namespace Heap { | - | ||||||
9 | - | |||||||
10 | struct 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: enumeratorIterator == Finished;return enumeratorIterator == Finished; never executed: }return enumeratorIterator == Finished; | 0 | ||||||
21 | }; | - | ||||||
22 | - | |||||||
23 | struct ConsoleObject : Object { | - | ||||||
24 | void init(); | - | ||||||
25 | }; | - | ||||||
26 | - | |||||||
27 | - | |||||||
28 | - | |||||||
29 | struct 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 ( | - | ||||||
31 | QQmlBindingFunctionOffsetStruct | - | ||||||
32 | , | - | ||||||
33 | bindingFunction | - | ||||||
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
never executed: }o->bindingFunction.heapObject()->mark(stack); never executed: end of block | 0 | ||||||
37 | void init(const QV4::FunctionObject *bindingFunction); | - | ||||||
38 | }; | - | ||||||
39 | - | |||||||
40 | } | - | ||||||
41 | - | |||||||
42 | struct 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: typedef QV4::Heap::QtObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block executed 26352 times by 148 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 26352 times by 148 tests: } void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }return &static_vtbl; Executed by:
never executed: QV4::Heap::QtObject *d_unchecked() const { returnend of block executed 17568 times by 148 tests: static_cast<QV4::Heap::QtObject *>(m());return static_cast<QV4::Heap::QtObject *>(m()); Executed by:
executed 17568 times by 148 tests: } QV4::Heap::QtObject *d() const { QV4::Heap::QtObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QtObject *>(m()); Executed by:
executed 8784 times by 148 tests: dptr;return dptr; Executed by:
executed 8784 times by 148 tests: } static_assert(bool(std::is_trivial< QV4::Heap::QtObject >::value), "std::is_trivial< QV4::Heap::QtObject >::value");return dptr; Executed by:
| 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 | - | |||||||
91 | private: | - | ||||||
92 | void addAll(); | - | ||||||
93 | ReturnedValue findAndAdd(const QString *name, bool &foundProperty) const; | - | ||||||
94 | }; | - | ||||||
95 | - | |||||||
96 | struct 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: typedef QV4::Heap::ConsoleObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block never executed: &static_vtbl;return &static_vtbl; never executed: } void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }return &static_vtbl; never executed: QV4::Heap::ConsoleObject *d_unchecked() const { returnend of block never executed: static_cast<QV4::Heap::ConsoleObject *>(m());return static_cast<QV4::Heap::ConsoleObject *>(m()); never executed: } QV4::Heap::ConsoleObject *d() const { QV4::Heap::ConsoleObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::ConsoleObject *>(m()); never executed: dptr;return dptr; never executed: } static_assert(bool(std::is_trivial< QV4::Heap::ConsoleObject >::value), "std::is_trivial< QV4::Heap::ConsoleObject >::value");return dptr; | 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 | - | |||||||
115 | struct __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 | - | |||||||
133 | struct 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: typedef QV4::Heap::QQmlBindingFunction Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 820 times by 13 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 820 times by 13 tests: } void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }return &static_vtbl; Executed by:
never executed: QV4::Heap::QQmlBindingFunction *d_unchecked() const { returnend of block executed 80 times by 8 tests: static_cast<QV4::Heap::QQmlBindingFunction *>(m());return static_cast<QV4::Heap::QQmlBindingFunction *>(m()); Executed by:
executed 80 times by 8 tests: } QV4::Heap::QQmlBindingFunction *d() const { QV4::Heap::QQmlBindingFunction *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QQmlBindingFunction *>(m()); Executed by:
executed 80 times by 8 tests: dptr;return dptr; Executed by:
executed 80 times by 8 tests: } static_assert(bool(std::is_trivial< QV4::Heap::QQmlBindingFunction >::value), "std::is_trivial< QV4::Heap::QQmlBindingFunction >::value");return dptr; Executed by:
| 0-820 | ||||||
136 | - | |||||||
137 | Heap::FunctionObject *bindingFunction() const { return executed 80 times by 8 tests: d()->bindingFunction;return d()->bindingFunction; Executed by:
executed 80 times by 8 tests: }return d()->bindingFunction; Executed by:
| 80 | ||||||
138 | QQmlSourceLocation currentLocation() const; | - | ||||||
139 | }; | - | ||||||
140 | - | |||||||
141 | } | - | ||||||
142 | - | |||||||
143 | - | |||||||
Switch to Source code | Preprocessed file |