Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4arrayiterator_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 ArrayIteratorObjectOffsetStruct { Pointer<Object *, 0> iteratedObject; IteratorKind iterationKind; quint32 nextIndex; }; struct ArrayIteratorObjectSizeStruct : Object, ArrayIteratorObjectOffsetStruct {}; struct ArrayIteratorObjectData { typedef Object SuperClass; static constexpr size_t baseOffset = sizeof(ArrayIteratorObjectSizeStruct) - sizeof(ArrayIteratorObjectOffsetStruct); Pointer<Object *, | - | ||||||
14 | __builtin_offsetof ( | - | ||||||
15 | ArrayIteratorObjectOffsetStruct | - | ||||||
16 | , | - | ||||||
17 | iteratedObject | - | ||||||
18 | ) | - | ||||||
19 | + baseOffset> iteratedObject; IteratorKind iterationKind; quint32 nextIndex; }; static_assert(bool(sizeof(ArrayIteratorObjectSizeStruct) == sizeof(ArrayIteratorObjectData) + ArrayIteratorObjectData::baseOffset), "sizeof(ArrayIteratorObjectSizeStruct) == sizeof(ArrayIteratorObjectData) + ArrayIteratorObjectData::baseOffset"); struct ArrayIteratorObject : Object, ArrayIteratorObjectData { | - | ||||||
20 | static void markObjects(Heap::Base *b, MarkStack *stack) { ArrayIteratorObject *o = static_cast<ArrayIteratorObject *>(b); ArrayIteratorObjectData::SuperClass::markObjects(o, stack); if (o->iteratedObject
never executed: }o->iteratedObject.heapObject()->mark(stack); never executed: ;end of block | 0 | ||||||
21 | void init(Object *obj, QV4::ExecutionEngine *engine) | - | ||||||
22 | { | - | ||||||
23 | Object::init(); | - | ||||||
24 | this->iteratedObject.set(engine, obj); | - | ||||||
25 | this->nextIndex = 0; | - | ||||||
26 | } executed 11030 times by 1 test: end of block Executed by:
| 11030 | ||||||
27 | }; | - | ||||||
28 | - | |||||||
29 | } | - | ||||||
30 | - | |||||||
31 | struct ArrayIteratorPrototype : 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 ArrayIteratorObject : Object | - | ||||||
40 | { | - | ||||||
41 | private: ArrayIteratorObject() = delete; ArrayIteratorObject(const ArrayIteratorObject &) = delete; ArrayIteratorObject &operator=(const ArrayIteratorObject &) = 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 23219 times by 1 test: typedef QV4::Heap::ArrayIteratorObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 56299 times by 1 test: &static_vtbl;return &static_vtbl; Executed by:
executed 56299 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::ArrayIteratorObject *d_unchecked() const { returnend of block executed 110695 times by 1 test: static_cast<QV4::Heap::ArrayIteratorObject *>(m());return static_cast<QV4::Heap::ArrayIteratorObject *>(m()); Executed by:
executed 110695 times by 1 test: } QV4::Heap::ArrayIteratorObject *d() const { QV4::Heap::ArrayIteratorObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::ArrayIteratorObject *>(m()); Executed by:
executed 99794 times by 1 test: dptr;return dptr; Executed by:
executed 99794 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::ArrayIteratorObject >::value), "std::is_trivial< QV4::Heap::ArrayIteratorObject >::value");return dptr; Executed by:
| 0-110695 | ||||||
42 | public: enum { MyType = Type_ArrayIteratorObject }; | - | ||||||
43 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 11059 times by 1 test: e->arrayIteratorPrototype();return e->arrayIteratorPrototype(); Executed by:
executed 11059 times by 1 test: }return e->arrayIteratorPrototype(); Executed by:
| 11059 | ||||||
44 | - | |||||||
45 | void init(ExecutionEngine *engine); | - | ||||||
46 | }; | - | ||||||
47 | - | |||||||
48 | - | |||||||
49 | } | - | ||||||
50 | - | |||||||
51 | - | |||||||
Switch to Source code | Preprocessed file |