Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4symbol_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | namespace QV4 { | - | ||||||
5 | - | |||||||
6 | namespace Heap { | - | ||||||
7 | - | |||||||
8 | struct SymbolCtor : FunctionObject { | - | ||||||
9 | void init(QV4::ExecutionContext *scope); | - | ||||||
10 | }; | - | ||||||
11 | - | |||||||
12 | struct Symbol : StringOrSymbol { | - | ||||||
13 | void init(const QString &s); | - | ||||||
14 | }; | - | ||||||
15 | - | |||||||
16 | - | |||||||
17 | - | |||||||
18 | - | |||||||
19 | struct SymbolObjectOffsetStruct { Pointer<Symbol *, 0> symbol; }; struct SymbolObjectSizeStruct : Object, SymbolObjectOffsetStruct {}; struct SymbolObjectData { typedef Object SuperClass; static constexpr size_t baseOffset = sizeof(SymbolObjectSizeStruct) - sizeof(SymbolObjectOffsetStruct); Pointer<Symbol *, | - | ||||||
20 | __builtin_offsetof ( | - | ||||||
21 | SymbolObjectOffsetStruct | - | ||||||
22 | , | - | ||||||
23 | symbol | - | ||||||
24 | ) | - | ||||||
25 | + baseOffset> symbol; }; static_assert(bool(sizeof(SymbolObjectSizeStruct) == sizeof(SymbolObjectData) + SymbolObjectData::baseOffset), "sizeof(SymbolObjectSizeStruct) == sizeof(SymbolObjectData) + SymbolObjectData::baseOffset"); struct SymbolObject : Object, SymbolObjectData { | - | ||||||
26 | static void markObjects(Heap::Base *b, MarkStack *stack) { SymbolObject *o = static_cast<SymbolObject *>(b); SymbolObjectData::SuperClass::markObjects(o, stack); if (o->symbol
never executed: }o->symbol.heapObject()->mark(stack); never executed: ;end of block | 0 | ||||||
27 | void init(const QV4::Symbol *s); | - | ||||||
28 | }; | - | ||||||
29 | - | |||||||
30 | } | - | ||||||
31 | - | |||||||
32 | struct SymbolCtor : FunctionObject | - | ||||||
33 | { | - | ||||||
34 | private: SymbolCtor() = delete; SymbolCtor(const SymbolCtor &) = delete; SymbolCtor &operator=(const SymbolCtor &) = 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; } never executed: typedef QV4::Heap::SymbolCtor Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block executed 297173 times by 153 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 297173 times by 153 tests: } 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::SymbolCtor *d_unchecked() const { returnend of block executed 197988 times by 153 tests: static_cast<QV4::Heap::SymbolCtor *>(m());return static_cast<QV4::Heap::SymbolCtor *>(m()); Executed by:
executed 197988 times by 153 tests: } QV4::Heap::SymbolCtor *d() const { QV4::Heap::SymbolCtor *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::SymbolCtor *>(m()); Executed by:
executed 99091 times by 153 tests: dptr;return dptr; Executed by:
executed 99091 times by 153 tests: } static_assert(bool(std::is_trivial< QV4::Heap::SymbolCtor >::value), "std::is_trivial< QV4::Heap::SymbolCtor >::value");return dptr; Executed by:
| 0-297173 | ||||||
35 | - | |||||||
36 | static ReturnedValue virtualCall(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
37 | static ReturnedValue method_for(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
38 | static ReturnedValue method_keyFor(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
39 | }; | - | ||||||
40 | - | |||||||
41 | struct SymbolPrototype : Object | - | ||||||
42 | { | - | ||||||
43 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 98849 times by 153 tests: e->objectPrototype();return e->objectPrototype(); Executed by:
executed 98849 times by 153 tests: }return e->objectPrototype(); Executed by:
| 98849 | ||||||
44 | void init(ExecutionEngine *engine, Object *ctor); | - | ||||||
45 | - | |||||||
46 | static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
47 | static ReturnedValue method_valueOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
48 | - | |||||||
49 | static ReturnedValue method_symbolToPrimitive(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
50 | }; | - | ||||||
51 | - | |||||||
52 | struct Symbol : StringOrSymbol | - | ||||||
53 | { | - | ||||||
54 | private: Symbol() = delete; Symbol(const Symbol &) = delete; Symbol &operator=(const Symbol &) = 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 80 times by 1 test: typedef QV4::Heap::Symbol Data; typedef StringOrSymbol SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 1290540 times by 153 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 1290540 times by 153 tests: } 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::Symbol *d_unchecked() const { returnend of block executed 2378501 times by 153 tests: static_cast<QV4::Heap::Symbol *>(m());return static_cast<QV4::Heap::Symbol *>(m()); Executed by:
executed 2378501 times by 153 tests: } QV4::Heap::Symbol *d() const { QV4::Heap::Symbol *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::Symbol *>(m()); Executed by:
executed 1190791 times by 153 tests: dptr;return dptr; Executed by:
executed 1190791 times by 153 tests: } static_assert(bool(std::is_trivial< QV4::Heap::Symbol >::value), "std::is_trivial< QV4::Heap::Symbol >::value");return dptr; Executed by:
| 0-2378501 | ||||||
55 | public: enum { MyType = Type_Symbol }; | - | ||||||
56 | static Heap::InternalClass *defaultInternalClass(QV4::EngineBase *e) { return executed 1190835 times by 153 tests: e->internalClasses(QV4::EngineBase::Class_Symbol);return e->internalClasses(QV4::EngineBase::Class_Symbol); Executed by:
executed 1190835 times by 153 tests: }return e->internalClasses(QV4::EngineBase::Class_Symbol); Executed by:
| 1190835 | ||||||
57 | static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); } executed 1188977 times by 153 tests: end of block Executed by:
| 1188977 | ||||||
58 | - | |||||||
59 | static Heap::Symbol *create(ExecutionEngine *e, const QString &s); | - | ||||||
60 | - | |||||||
61 | QString descriptiveString() const; | - | ||||||
62 | }; | - | ||||||
63 | - | |||||||
64 | struct SymbolObject : Object | - | ||||||
65 | { | - | ||||||
66 | private: SymbolObject() = delete; SymbolObject(const SymbolObject &) = delete; SymbolObject &operator=(const SymbolObject &) = 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 48 times by 1 test: typedef QV4::Heap::SymbolObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 98898 times by 153 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 98898 times by 153 tests: } 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::SymbolObject *d_unchecked() const { returnend of block executed 24 times by 1 test: static_cast<QV4::Heap::SymbolObject *>(m());return static_cast<QV4::Heap::SymbolObject *>(m()); Executed by:
executed 24 times by 1 test: } QV4::Heap::SymbolObject *d() const { QV4::Heap::SymbolObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::SymbolObject *>(m()); Executed by:
executed 24 times by 1 test: dptr;return dptr; Executed by:
executed 24 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::SymbolObject >::value), "std::is_trivial< QV4::Heap::SymbolObject >::value");return dptr; Executed by:
| 0-98898 | ||||||
67 | public: enum { MyType = Type_SymbolObject }; | - | ||||||
68 | static Heap::InternalClass *defaultInternalClass(QV4::EngineBase *e) { return never executed: e->internalClasses(QV4::EngineBase::Class_SymbolObject);return e->internalClasses(QV4::EngineBase::Class_SymbolObject); never executed: }return e->internalClasses(QV4::EngineBase::Class_SymbolObject); | 0 | ||||||
69 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return never executed: e->symbolPrototype();return e->symbolPrototype(); never executed: }return e->symbolPrototype(); | 0 | ||||||
70 | - | |||||||
71 | static bool virtualPut(Managed *, PropertyKey, const Value &, Value *) { return executed 24 times by 1 test: false;return false; Executed by:
executed 24 times by 1 test: }return false; Executed by:
| 24 | ||||||
72 | }; | - | ||||||
73 | - | |||||||
74 | } | - | ||||||
75 | - | |||||||
76 | - | |||||||
Switch to Source code | Preprocessed file |