| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4dataview_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | namespace QV4 { | - | ||||||
| 4 | - | |||||||
| 5 | namespace Heap { | - | ||||||
| 6 | - | |||||||
| 7 | struct DataViewCtor : FunctionObject { | - | ||||||
| 8 | void init(QV4::ExecutionContext *scope); | - | ||||||
| 9 | }; | - | ||||||
| 10 | - | |||||||
| 11 | - | |||||||
| 12 | - | |||||||
| 13 | - | |||||||
| 14 | - | |||||||
| 15 | - | |||||||
| 16 | struct DataViewOffsetStruct { Pointer<ArrayBuffer *, 0> buffer; uint byteLength; uint byteOffset; }; struct DataViewSizeStruct : Object, DataViewOffsetStruct {}; struct DataViewData { typedef Object SuperClass; static constexpr size_t baseOffset = sizeof(DataViewSizeStruct) - sizeof(DataViewOffsetStruct); Pointer<ArrayBuffer *, | - | ||||||
| 17 | __builtin_offsetof ( | - | ||||||
| 18 | DataViewOffsetStruct | - | ||||||
| 19 | , | - | ||||||
| 20 | buffer | - | ||||||
| 21 | ) | - | ||||||
| 22 | + baseOffset> buffer; uint byteLength; uint byteOffset; }; static_assert(bool(sizeof(DataViewSizeStruct) == sizeof(DataViewData) + DataViewData::baseOffset), "sizeof(DataViewSizeStruct) == sizeof(DataViewData) + DataViewData::baseOffset"); struct DataView : Object, DataViewData { | - | ||||||
| 23 | static void markObjects(Heap::Base *b, MarkStack *stack) { DataView *o = static_cast<DataView *>(b); DataViewData::SuperClass::markObjects(o, stack); if (o->buffer
never executed: }o->buffer.heapObject()->mark(stack);never executed: ;end of block | 0 | ||||||
| 24 | void init() { Object::init(); } executed 1330 times by 1 test: end of blockExecuted by:
| 1330 | ||||||
| 25 | }; | - | ||||||
| 26 | - | |||||||
| 27 | } | - | ||||||
| 28 | - | |||||||
| 29 | struct DataViewCtor: FunctionObject | - | ||||||
| 30 | { | - | ||||||
| 31 | private: DataViewCtor() = delete; DataViewCtor(const DataViewCtor &) = delete; DataViewCtor &operator=(const DataViewCtor &) = 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::DataViewCtor Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of blockexecuted 296371 times by 153 tests: &static_vtbl;return &static_vtbl;Executed by:
executed 296371 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::DataViewCtor *d_unchecked() const { returnend of blockexecuted 197616 times by 153 tests: static_cast<QV4::Heap::DataViewCtor *>(m());return static_cast<QV4::Heap::DataViewCtor *>(m());Executed by:
executed 197616 times by 153 tests: } QV4::Heap::DataViewCtor *d() const { QV4::Heap::DataViewCtor *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::DataViewCtor *>(m());Executed by:
executed 98961 times by 153 tests: dptr;return dptr;Executed by:
executed 98961 times by 153 tests: } static_assert(bool(std::is_trivial< QV4::Heap::DataViewCtor >::value), "std::is_trivial< QV4::Heap::DataViewCtor >::value");return dptr;Executed by:
| 0-296371 | ||||||
| 32 | - | |||||||
| 33 | static ReturnedValue virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *); | - | ||||||
| 34 | static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 35 | }; | - | ||||||
| 36 | - | |||||||
| 37 | struct DataView : Object | - | ||||||
| 38 | { | - | ||||||
| 39 | private: DataView() = delete; DataView(const DataView &) = delete; DataView &operator=(const DataView &) = 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 8139 times by 1 test: typedef QV4::Heap::DataView Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of blockExecuted by:
executed 12183 times by 1 test: &static_vtbl;return &static_vtbl;Executed by:
executed 12183 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::DataView *d_unchecked() const { returnend of blockexecuted 27690 times by 1 test: static_cast<QV4::Heap::DataView *>(m());return static_cast<QV4::Heap::DataView *>(m());Executed by:
executed 27690 times by 1 test: } QV4::Heap::DataView *d() const { QV4::Heap::DataView *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::DataView *>(m());Executed by:
executed 26362 times by 1 test: dptr;return dptr;Executed by:
executed 26362 times by 1 test: } static_assert(bool(std::is_trivial< QV4::Heap::DataView >::value), "std::is_trivial< QV4::Heap::DataView >::value");return dptr;Executed by:
| 0-27690 | ||||||
| 40 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 1339 times by 1 test: e->dataViewPrototype();return e->dataViewPrototype();Executed by:
executed 1339 times by 1 test: }return e->dataViewPrototype();Executed by:
| 1339 | ||||||
| 41 | }; | - | ||||||
| 42 | - | |||||||
| 43 | struct DataViewPrototype: Object | - | ||||||
| 44 | { | - | ||||||
| 45 | void init(ExecutionEngine *engine, Object *ctor); | - | ||||||
| 46 | - | |||||||
| 47 | static ReturnedValue method_get_buffer(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 48 | static ReturnedValue method_get_byteLength(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 49 | static ReturnedValue method_get_byteOffset(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 50 | template <typename T> | - | ||||||
| 51 | static ReturnedValue method_getChar(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 52 | template <typename T> | - | ||||||
| 53 | static ReturnedValue method_get(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 54 | template <typename T> | - | ||||||
| 55 | static ReturnedValue method_getFloat(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 56 | template <typename T> | - | ||||||
| 57 | static ReturnedValue method_setChar(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 58 | template <typename T> | - | ||||||
| 59 | static ReturnedValue method_set(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 60 | template <typename T> | - | ||||||
| 61 | static ReturnedValue method_setFloat(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - | ||||||
| 62 | }; | - | ||||||
| 63 | - | |||||||
| 64 | - | |||||||
| 65 | } | - | ||||||
| 66 | - | |||||||
| 67 | - | |||||||
| Switch to Source code | Preprocessed file |