Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | class QObject; | - | ||||||
6 | class QQmlData; | - | ||||||
7 | class QQmlPropertyCache; | - | ||||||
8 | class QQmlPropertyData; | - | ||||||
9 | - | |||||||
10 | namespace QV4 { | - | ||||||
11 | struct QObjectSlotDispatcher; | - | ||||||
12 | - | |||||||
13 | namespace Heap { | - | ||||||
14 | - | |||||||
15 | struct QQmlValueTypeWrapper; | - | ||||||
16 | - | |||||||
17 | struct __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:
| 536134 | ||||||
23 | - | |||||||
24 | void destroy() { | - | ||||||
25 | qObj.destroy(); | - | ||||||
26 | Object::destroy(); | - | ||||||
27 | } executed 535986 times by 141 tests: end of block Executed by:
| 535986 | ||||||
28 | - | |||||||
29 | QObject *object() const { return executed 13947464 times by 141 tests: qObj.data();return qObj.data(); Executed by:
executed 13947464 times by 141 tests: }return qObj.data(); Executed by:
| 13947464 | ||||||
30 | static void markObjects(Heap::Base *that, MarkStack *markStack); | - | ||||||
31 | - | |||||||
32 | private: | - | ||||||
33 | QQmlQPointer<QObject> qObj; | - | ||||||
34 | }; | - | ||||||
35 | - | |||||||
36 | - | |||||||
37 | - | |||||||
38 | - | |||||||
39 | - | |||||||
40 | - | |||||||
41 | - | |||||||
42 | struct 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 ( | - | ||||||
44 | QObjectMethodOffsetStruct | - | ||||||
45 | , | - | ||||||
46 | valueTypeWrapper | - | ||||||
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
never executed: }o->valueTypeWrapper.heapObject()->mark(stack); executed 104 times by 5 tests: ;end of block Executed by:
| 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:
| 68114 | ||||||
58 | - | |||||||
59 | QQmlPropertyCache *propertyCache() const { return executed 130504 times by 56 tests: _propertyCache;return _propertyCache; Executed by:
executed 130504 times by 56 tests: }return _propertyCache; Executed by:
| 130504 | ||||||
60 | void setPropertyCache(QQmlPropertyCache *c) { | - | ||||||
61 | if (c
| 65298-70976 | ||||||
62 | c->addref(); executed 65298 times by 61 tests: c->addref(); Executed by:
| 65298 | ||||||
63 | if (_propertyCache
| 65252-71022 | ||||||
64 | _propertyCache->release(); executed 65252 times by 61 tests: _propertyCache->release(); Executed by:
| 65252 | ||||||
65 | _propertyCache = c; | - | ||||||
66 | } executed 136274 times by 62 tests: end of block Executed by:
| 136274 | ||||||
67 | - | |||||||
68 | const QMetaObject *metaObject(); | - | ||||||
69 | QObject *object() const { return executed 132492 times by 62 tests: qObj.data();return qObj.data(); Executed by:
executed 132492 times by 62 tests: }return qObj.data(); Executed by:
| 132492 | ||||||
70 | void setObject(QObject *o) { qObj = o; } executed 67816 times by 62 tests: end of block Executed by:
| 67816 | ||||||
71 | - | |||||||
72 | }; | - | ||||||
73 | - | |||||||
74 | struct 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 | - | |||||||
84 | struct 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:
| 14 | ||||||
90 | int signalIndex; | - | ||||||
91 | - | |||||||
92 | QObject *object() const { return executed 10 times by 1 test: qObj.data();return qObj.data(); Executed by:
executed 10 times by 1 test: }return qObj.data(); Executed by:
| 10 | ||||||
93 | void setObject(QObject *o) { qObj = o; } executed 14 times by 1 test: end of block Executed by:
| 14 | ||||||
94 | - | |||||||
95 | private: | - | ||||||
96 | QQmlQPointer<QObject> qObj; | - | ||||||
97 | }; | - | ||||||
98 | - | |||||||
99 | } | - | ||||||
100 | - | |||||||
101 | struct __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: typedef QV4::Heap::QObjectWrapper Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 19292649 times by 153 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 19292649 times by 153 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::QObjectWrapper *d_unchecked() const { returnend of block executed 13815737 times by 141 tests: static_cast<QV4::Heap::QObjectWrapper *>(m());return static_cast<QV4::Heap::QObjectWrapper *>(m()); Executed by:
executed 13815737 times by 141 tests: } QV4::Heap::QObjectWrapper *d() const { QV4::Heap::QObjectWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QObjectWrapper *>(m()); Executed by:
executed 13729819 times by 141 tests: dptr;return dptr; Executed by:
executed 13729819 times by 141 tests: } static_assert(bool(std::is_trivial< QV4::Heap::QObjectWrapper >::value), "std::is_trivial< QV4::Heap::QObjectWrapper >::value");return dptr; Executed by:
| 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:
| 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: d()->object();return d()->object(); Executed by:
executed 453323 times by 111 tests: }return d()->object(); Executed by:
| 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 | - | |||||||
128 | protected: | - | ||||||
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 | - | |||||||
147 | private: | - | ||||||
148 | __attribute__((noinline)) static ReturnedValue wrap_slowPath(ExecutionEngine *engine, QObject *object); | - | ||||||
149 | }; | - | ||||||
150 | - | |||||||
151 | inline ReturnedValue QObjectWrapper::wrap(ExecutionEngine *engine, QObject *object) | - | ||||||
152 | { | - | ||||||
153 | if (__builtin_expect(!!(QQmlData::wasDeleted(object)), false)
| 677-8143104 | ||||||
154 | return executed 677 times by 30 tests: QV4::Encode::null();return QV4::Encode::null(); Executed by:
executed 677 times by 30 tests: return QV4::Encode::null(); Executed by:
| 677 | ||||||
155 | - | |||||||
156 | auto ddata = QQmlData::get(object); | - | ||||||
157 | if (__builtin_expect(!!(ddata && ddata->jsEngineId == engine->m_engineId && !ddata->jsWrapper.isUndefined()), true)
| 535050-7608054 | ||||||
158 | - | |||||||
159 | return executed 7608054 times by 134 tests: ddata->jsWrapper.value();return ddata->jsWrapper.value(); Executed by:
executed 7608054 times by 134 tests: return ddata->jsWrapper.value(); Executed by:
| 7608054 | ||||||
160 | } | - | ||||||
161 | - | |||||||
162 | return executed 535050 times by 141 tests: wrap_slowPath(engine, object);return wrap_slowPath(engine, object); Executed by:
executed 535050 times by 141 tests: return wrap_slowPath(engine, object); Executed by:
| 535050 | ||||||
163 | } | - | ||||||
164 | - | |||||||
165 | struct QQmlValueTypeWrapper; | - | ||||||
166 | - | |||||||
167 | struct __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: typedef QV4::Heap::QObjectMethod Data; typedef QV4::FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 205854 times by 62 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 205854 times by 62 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::QObjectMethod *d_unchecked() const { returnend of block executed 800254 times by 62 tests: static_cast<QV4::Heap::QObjectMethod *>(m());return static_cast<QV4::Heap::QObjectMethod *>(m()); Executed by:
executed 800254 times by 62 tests: } QV4::Heap::QObjectMethod *d() const { QV4::Heap::QObjectMethod *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QObjectMethod *>(m()); Executed by:
executed 732094 times by 62 tests: dptr;return dptr; Executed by:
executed 732094 times by 62 tests: } static_assert(bool(std::is_trivial< QV4::Heap::QObjectMethod >::value), "std::is_trivial< QV4::Heap::QObjectMethod >::value");return dptr; Executed by:
| 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:
| 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: d()->index;return d()->index; Executed by:
executed 636 times by 6 tests: }return d()->index; Executed by:
| 636 | ||||||
178 | QObject *object() const { return executed 636 times by 6 tests: d()->object();return d()->object(); Executed by:
executed 636 times by 6 tests: }return d()->object(); Executed by:
| 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 | - | |||||||
191 | struct __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: typedef QV4::Heap::QMetaObjectWrapper Data; typedef QV4::FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 30 times by 1 test: &static_vtbl;return &static_vtbl; Executed by:
executed 30 times by 1 test: } 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::QMetaObjectWrapper *d_unchecked() const { returnend of block executed 94 times by 1 test: static_cast<QV4::Heap::QMetaObjectWrapper *>(m());return static_cast<QV4::Heap::QMetaObjectWrapper *>(m()); Executed by:
executed 94 times by 1 test: } QV4::Heap::QMetaObjectWrapper *d() const { QV4::Heap::QMetaObjectWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QMetaObjectWrapper *>(m()); Executed by:
executed 88 times by 1 test: dptr;return dptr; Executed by:
executed 88 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::QMetaObjectWrapper >::value), "std::is_trivial< QV4::Heap::QMetaObjectWrapper >::value");return dptr; Executed by:
| 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:
| 6 | ||||||
195 | - | |||||||
196 | static ReturnedValue create(ExecutionEngine *engine, const QMetaObject* metaObject); | - | ||||||
197 | const QMetaObject *metaObject() const { return d()->metaObject; } | - | ||||||
198 | - | |||||||
199 | protected: | - | ||||||
200 | static ReturnedValue virtualCallAsConstructor(const FunctionObject *, const Value *argv, int argc, const Value *); | - | ||||||
201 | static bool virtualIsEqualTo(Managed *a, Managed *b); | - | ||||||
202 | - | |||||||
203 | private: | - | ||||||
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 | - | |||||||
211 | struct __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: typedef QV4::Heap::QmlSignalHandler Data; typedef QV4::Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 52 times by 1 test: &static_vtbl;return &static_vtbl; Executed by:
executed 52 times by 1 test: } 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::QmlSignalHandler *d_unchecked() const { returnend of block executed 48 times by 1 test: static_cast<QV4::Heap::QmlSignalHandler *>(m());return static_cast<QV4::Heap::QmlSignalHandler *>(m()); Executed by:
executed 48 times by 1 test: } QV4::Heap::QmlSignalHandler *d() const { QV4::Heap::QmlSignalHandler *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QmlSignalHandler *>(m()); Executed by:
executed 34 times by 1 test: dptr;return dptr; Executed by:
executed 34 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::QmlSignalHandler >::value), "std::is_trivial< QV4::Heap::QmlSignalHandler >::value");return dptr; Executed by:
| 0-52 | ||||||
214 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 14 times by 1 test: e->signalHandlerPrototype();return e->signalHandlerPrototype(); Executed by:
executed 14 times by 1 test: }return e->signalHandlerPrototype(); Executed by:
| 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:
| 14 | ||||||
216 | - | |||||||
217 | int signalIndex() const { return executed 10 times by 1 test: d()->signalIndex;return d()->signalIndex; Executed by:
executed 10 times by 1 test: }return d()->signalIndex; Executed by:
| 10 | ||||||
218 | QObject *object() const { return executed 10 times by 1 test: d()->object();return d()->object(); Executed by:
executed 10 times by 1 test: }return d()->object(); Executed by:
| 10 | ||||||
219 | - | |||||||
220 | static void initProto(ExecutionEngine *v4); | - | ||||||
221 | }; | - | ||||||
222 | - | |||||||
223 | class 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 {}; | - | ||||||
235 | public: | - | ||||||
236 | typedef QHash<QObject*, QV4::WeakValue>::ConstIterator ConstIterator; | - | ||||||
237 | typedef QHash<QObject*, QV4::WeakValue>::Iterator Iterator; | - | ||||||
238 | - | |||||||
239 | ConstIterator begin() const { return never executed: QHash<QObject*, QV4::WeakValue>::constBegin();return QHash<QObject*, QV4::WeakValue>::constBegin(); never executed: }return QHash<QObject*, QV4::WeakValue>::constBegin(); | 0 | ||||||
240 | Iterator begin() { return never executed: QHash<QObject*, QV4::WeakValue>::begin();return QHash<QObject*, QV4::WeakValue>::begin(); never executed: }return QHash<QObject*, QV4::WeakValue>::begin(); | 0 | ||||||
241 | ConstIterator end() const { return never executed: QHash<QObject*, QV4::WeakValue>::constEnd();return QHash<QObject*, QV4::WeakValue>::constEnd(); never executed: }return QHash<QObject*, QV4::WeakValue>::constEnd(); | 0 | ||||||
242 | Iterator end() { return never executed: QHash<QObject*, QV4::WeakValue>::end();return 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: QHash<QObject*, QV4::WeakValue>::value(key).value();return 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 | - | |||||||
250 | private : | - | ||||||
251 | void removeDestroyedObject(QObject*); | - | ||||||
252 | }; | - | ||||||
253 | - | |||||||
254 | } | - | ||||||
255 | - | |||||||
256 | - | |||||||
Switch to Source code | Preprocessed file |