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