| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4mapobject_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | namespace QV4 { | - |
| 4 | - | |
| 5 | class ESTable; | - |
| 6 | - | |
| 7 | namespace Heap { | - |
| 8 | - | |
| 9 | struct MapCtor : FunctionObject { | - |
| 10 | void init(QV4::ExecutionContext *scope); | - |
| 11 | }; | - |
| 12 | - | |
| 13 | struct MapObject : Object { | - |
| 14 | static void markObjects(Heap::Base *that, MarkStack *markStack); | - |
| 15 | void init(); | - |
| 16 | void destroy(); | - |
| 17 | ESTable *esTable; | - |
| 18 | }; | - |
| 19 | - | |
| 20 | } | - |
| 21 | - | |
| 22 | struct MapCtor: FunctionObject | - |
| 23 | { | - |
| 24 | private: MapCtor() = delete; MapCtor(const MapCtor &) = delete; MapCtor &operator=(const MapCtor &) = 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::MapCtor Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of blockexecuted 296610 times by 153 tests: &static_vtbl;return &static_vtbl;Executed by:
executed 296610 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::MapCtor *d_unchecked() const { returnend of blockexecuted 197781 times by 153 tests: static_cast<QV4::Heap::MapCtor *>(m());return static_cast<QV4::Heap::MapCtor *>(m());Executed by:
executed 197781 times by 153 tests: } QV4::Heap::MapCtor *d() const { QV4::Heap::MapCtor *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::MapCtor *>(m());Executed by:
executed 98900 times by 153 tests: dptr;return dptr;Executed by:
executed 98900 times by 153 tests: } static_assert(bool(std::is_trivial< QV4::Heap::MapCtor >::value), "std::is_trivial< QV4::Heap::MapCtor >::value");return dptr;Executed by:
| 0-296610 |
| 25 | - | |
| 26 | static ReturnedValue virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *); | - |
| 27 | static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc); | - |
| 28 | }; | - |
| 29 | - | |
| 30 | struct MapObject : Object | - |
| 31 | { | - |
| 32 | private: MapObject() = delete; MapObject(const MapObject &) = delete; MapObject &operator=(const MapObject &) = 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 1603 times by 1 test: typedef QV4::Heap::MapObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of blockExecuted by:
executed 3080 times by 1 test: &static_vtbl;return &static_vtbl;Executed by:
executed 3080 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::MapObject *d_unchecked() const { returnend of blockexecuted 2237 times by 1 test: static_cast<QV4::Heap::MapObject *>(m());return static_cast<QV4::Heap::MapObject *>(m());Executed by:
executed 2237 times by 1 test: } QV4::Heap::MapObject *d() const { QV4::Heap::MapObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::MapObject *>(m());Executed by:
executed 1745 times by 1 test: dptr;return dptr;Executed by:
executed 1745 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::MapObject >::value), "std::is_trivial< QV4::Heap::MapObject >::value");return dptr;Executed by:
| 0-3080 |
| 33 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 494 times by 1 test: e->mapPrototype();return e->mapPrototype();Executed by:
executed 494 times by 1 test: }return e->mapPrototype();Executed by:
| 494 |
| 34 | static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); } executed 494 times by 1 test: end of blockExecuted by:
| 494 |
| 35 | }; | - |
| 36 | - | |
| 37 | struct MapPrototype : Object | - |
| 38 | { | - |
| 39 | void init(ExecutionEngine *engine, Object *ctor); | - |
| 40 | - | |
| 41 | static ReturnedValue method_clear(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 42 | static ReturnedValue method_delete(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 43 | static ReturnedValue method_entries(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 44 | static ReturnedValue method_forEach(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 45 | static ReturnedValue method_get(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 46 | static ReturnedValue method_has(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 47 | static ReturnedValue method_keys(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 48 | static ReturnedValue method_set(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 49 | static ReturnedValue method_get_size(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 50 | static ReturnedValue method_values(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 51 | }; | - |
| 52 | - | |
| 53 | - | |
| 54 | } | - |
| 55 | - | |
| 56 | - | |
| 57 | - | |
| Switch to Source code | Preprocessed file |