Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4mapiterator_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | namespace QV4 { | - | ||||||
4 | - | |||||||
5 | namespace Heap { | - | ||||||
6 | - | |||||||
7 | - | |||||||
8 | - | |||||||
9 | - | |||||||
10 | - | |||||||
11 | - | |||||||
12 | struct MapIteratorObjectOffsetStruct { Pointer<Object *, 0> iteratedMap; IteratorKind iterationKind; quint32 mapNextIndex; }; struct MapIteratorObjectSizeStruct : Object, MapIteratorObjectOffsetStruct {}; struct MapIteratorObjectData { typedef Object SuperClass; static constexpr size_t baseOffset = sizeof(MapIteratorObjectSizeStruct) - sizeof(MapIteratorObjectOffsetStruct); Pointer<Object *, | - | ||||||
13 | __builtin_offsetof ( | - | ||||||
14 | MapIteratorObjectOffsetStruct | - | ||||||
15 | , | - | ||||||
16 | iteratedMap | - | ||||||
17 | ) | - | ||||||
18 | + baseOffset> iteratedMap; IteratorKind iterationKind; quint32 mapNextIndex; }; static_assert(bool(sizeof(MapIteratorObjectSizeStruct) == sizeof(MapIteratorObjectData) + MapIteratorObjectData::baseOffset), "sizeof(MapIteratorObjectSizeStruct) == sizeof(MapIteratorObjectData) + MapIteratorObjectData::baseOffset"); struct MapIteratorObject : Object, MapIteratorObjectData { | - | ||||||
19 | static void markObjects(Heap::Base *b, MarkStack *stack) { MapIteratorObject *o = static_cast<MapIteratorObject *>(b); MapIteratorObjectData::SuperClass::markObjects(o, stack); if (o->iteratedMap
never executed: }o->iteratedMap.heapObject()->mark(stack); never executed: ;end of block | 0 | ||||||
20 | void init(Object *obj, QV4::ExecutionEngine *engine) | - | ||||||
21 | { | - | ||||||
22 | Object::init(); | - | ||||||
23 | this->iteratedMap.set(engine, obj); | - | ||||||
24 | this->mapNextIndex = 0; | - | ||||||
25 | } executed 140 times by 1 test: end of block Executed by:
| 140 | ||||||
26 | }; | - | ||||||
27 | - | |||||||
28 | } | - | ||||||
29 | - | |||||||
30 | struct MapIteratorPrototype : Object | - | ||||||
31 | { | - | ||||||
32 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return never executed: e->iteratorPrototype();return e->iteratorPrototype(); never executed: }return e->iteratorPrototype(); | 0 | ||||||
33 | void init(ExecutionEngine *engine); | - | ||||||
34 | - | |||||||
35 | static ReturnedValue method_next(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc); | - | ||||||
36 | }; | - | ||||||
37 | - | |||||||
38 | struct MapIteratorObject : Object | - | ||||||
39 | { | - | ||||||
40 | private: MapIteratorObject() = delete; MapIteratorObject(const MapIteratorObject &) = delete; MapIteratorObject &operator=(const MapIteratorObject &) = 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 412 times by 1 test: typedef QV4::Heap::MapIteratorObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 832 times by 1 test: &static_vtbl;return &static_vtbl; Executed by:
executed 832 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::MapIteratorObject *d_unchecked() const { returnend of block executed 1222 times by 1 test: static_cast<QV4::Heap::MapIteratorObject *>(m());return static_cast<QV4::Heap::MapIteratorObject *>(m()); Executed by:
executed 1222 times by 1 test: } QV4::Heap::MapIteratorObject *d() const { QV4::Heap::MapIteratorObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::MapIteratorObject *>(m()); Executed by:
executed 1083 times by 1 test: dptr;return dptr; Executed by:
executed 1083 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::MapIteratorObject >::value), "std::is_trivial< QV4::Heap::MapIteratorObject >::value");return dptr; Executed by:
| 0-1222 | ||||||
41 | public: enum { MyType = Type_MapIteratorObject }; | - | ||||||
42 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 140 times by 1 test: e->mapIteratorPrototype();return e->mapIteratorPrototype(); Executed by:
executed 140 times by 1 test: }return e->mapIteratorPrototype(); Executed by:
| 140 | ||||||
43 | - | |||||||
44 | void init(ExecutionEngine *engine); | - | ||||||
45 | }; | - | ||||||
46 | - | |||||||
47 | - | |||||||
48 | } | - | ||||||
49 | - | |||||||
50 | - | |||||||
Switch to Source code | Preprocessed file |