Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4stringiterator_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 | struct StringIteratorObjectOffsetStruct { Pointer<String *, 0> iteratedString; quint32 nextIndex; }; struct StringIteratorObjectSizeStruct : Object, StringIteratorObjectOffsetStruct {}; struct StringIteratorObjectData { typedef Object SuperClass; static constexpr size_t baseOffset = sizeof(StringIteratorObjectSizeStruct) - sizeof(StringIteratorObjectOffsetStruct); Pointer<String *, | - | ||||||
13 | __builtin_offsetof ( | - | ||||||
14 | StringIteratorObjectOffsetStruct | - | ||||||
15 | , | - | ||||||
16 | iteratedString | - | ||||||
17 | ) | - | ||||||
18 | + baseOffset> iteratedString; quint32 nextIndex; }; static_assert(bool(sizeof(StringIteratorObjectSizeStruct) == sizeof(StringIteratorObjectData) + StringIteratorObjectData::baseOffset), "sizeof(StringIteratorObjectSizeStruct) == sizeof(StringIteratorObjectData) + StringIteratorObjectData::baseOffset"); struct StringIteratorObject : Object, StringIteratorObjectData { | - | ||||||
19 | static void markObjects(Heap::Base *b, MarkStack *stack) { StringIteratorObject *o = static_cast<StringIteratorObject *>(b); StringIteratorObjectData::SuperClass::markObjects(o, stack); if (o->iteratedString
never executed: }o->iteratedString.heapObject()->mark(stack); never executed: ;end of block | 0 | ||||||
20 | void init(String *str, QV4::ExecutionEngine *engine) | - | ||||||
21 | { | - | ||||||
22 | Object::init(); | - | ||||||
23 | this->iteratedString.set(engine, str); | - | ||||||
24 | this->nextIndex = 0; | - | ||||||
25 | } executed 86 times by 1 test: end of block Executed by:
| 86 | ||||||
26 | }; | - | ||||||
27 | - | |||||||
28 | } | - | ||||||
29 | - | |||||||
30 | struct StringIteratorPrototype : 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 StringIteratorObject : Object | - | ||||||
39 | { | - | ||||||
40 | private: StringIteratorObject() = delete; StringIteratorObject(const StringIteratorObject &) = delete; StringIteratorObject &operator=(const StringIteratorObject &) = 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 166 times by 1 test: typedef QV4::Heap::StringIteratorObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 424 times by 1 test: &static_vtbl;return &static_vtbl; Executed by:
executed 424 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::StringIteratorObject *d_unchecked() const { returnend of block executed 642 times by 1 test: static_cast<QV4::Heap::StringIteratorObject *>(m());return static_cast<QV4::Heap::StringIteratorObject *>(m()); Executed by:
executed 642 times by 1 test: } QV4::Heap::StringIteratorObject *d() const { QV4::Heap::StringIteratorObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::StringIteratorObject *>(m()); Executed by:
executed 556 times by 1 test: dptr;return dptr; Executed by:
executed 556 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::StringIteratorObject >::value), "std::is_trivial< QV4::Heap::StringIteratorObject >::value");return dptr; Executed by:
| 0-642 | ||||||
41 | public: enum { MyType = Type_StringIteratorObject }; | - | ||||||
42 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 86 times by 1 test: e->stringIteratorPrototype();return e->stringIteratorPrototype(); Executed by:
executed 86 times by 1 test: }return e->stringIteratorPrototype(); Executed by:
| 86 | ||||||
43 | - | |||||||
44 | void init(ExecutionEngine *engine); | - | ||||||
45 | }; | - | ||||||
46 | - | |||||||
47 | - | |||||||
48 | } | - | ||||||
49 | - | |||||||
50 | - | |||||||
Switch to Source code | Preprocessed file |