OpenCoverage

qv4arrayiterator_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4arrayiterator_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4namespace QV4 {-
5-
6namespace Heap {-
7-
8-
9-
10-
11-
12-
13struct 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 (-
15ArrayIteratorObjectOffsetStruct-
16, -
17iteratedObject-
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
o->iteratedObjectDescription
TRUEnever evaluated
FALSEnever evaluated
) o->iteratedObject.heapObject()->mark(stack);
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:
  • tst_ecmascripttests
11030
27};-
28-
29}-
30-
31struct ArrayIteratorPrototype : Object-
32{-
33 static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return
never executed: return e->iteratorPrototype();
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-
39struct 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: end of block
Executed by:
  • tst_ecmascripttests
typedef QV4::Heap::ArrayIteratorObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 56299 times by 1 test: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
&static_vtbl;
executed 56299 times by 1 test: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::ArrayIteratorObject *d_unchecked() const { return
executed 110695 times by 1 test: return static_cast<QV4::Heap::ArrayIteratorObject *>(m());
Executed by:
  • tst_ecmascripttests
static_cast<QV4::Heap::ArrayIteratorObject *>(m());
executed 110695 times by 1 test: return static_cast<QV4::Heap::ArrayIteratorObject *>(m());
Executed by:
  • tst_ecmascripttests
} QV4::Heap::ArrayIteratorObject *d() const { QV4::Heap::ArrayIteratorObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 99794 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
dptr;
executed 99794 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
} static_assert(bool(std::is_trivial< QV4::Heap::ArrayIteratorObject >::value), "std::is_trivial< QV4::Heap::ArrayIteratorObject >::value");
0-110695
42 public: enum { MyType = Type_ArrayIteratorObject };-
43 static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return
executed 11059 times by 1 test: return e->arrayIteratorPrototype();
Executed by:
  • tst_ecmascripttests
e->arrayIteratorPrototype();
executed 11059 times by 1 test: return e->arrayIteratorPrototype();
Executed by:
  • tst_ecmascripttests
}
11059
44-
45 void init(ExecutionEngine *engine);-
46};-
47-
48-
49}-
50-
51-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0