OpenCoverage

qv4dataview_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4dataview_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3namespace QV4 {-
4-
5namespace Heap {-
6-
7struct DataViewCtor : FunctionObject {-
8 void init(QV4::ExecutionContext *scope);-
9};-
10-
11-
12-
13-
14-
15-
16struct 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 (-
18DataViewOffsetStruct-
19, -
20buffer-
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
o->bufferDescription
TRUEnever evaluated
FALSEnever evaluated
) o->buffer.heapObject()->mark(stack);
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 block
Executed by:
  • tst_ecmascripttests
1330
25};-
26-
27}-
28-
29struct 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: end of block
typedef QV4::Heap::DataViewCtor Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 296371 times by 153 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
&static_vtbl;
executed 296371 times by 153 tests: return &static_vtbl;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
} 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::DataViewCtor *d_unchecked() const { return
executed 197616 times by 153 tests: return static_cast<QV4::Heap::DataViewCtor *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
static_cast<QV4::Heap::DataViewCtor *>(m());
executed 197616 times by 153 tests: return static_cast<QV4::Heap::DataViewCtor *>(m());
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
} QV4::Heap::DataViewCtor *d() const { QV4::Heap::DataViewCtor *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 98961 times by 153 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
dptr;
executed 98961 times by 153 tests: return dptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
} static_assert(bool(std::is_trivial< QV4::Heap::DataViewCtor >::value), "std::is_trivial< QV4::Heap::DataViewCtor >::value");
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-
37struct 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: end of block
Executed by:
  • tst_ecmascripttests
typedef QV4::Heap::DataView Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 12183 times by 1 test: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
&static_vtbl;
executed 12183 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::DataView *d_unchecked() const { return
executed 27690 times by 1 test: return static_cast<QV4::Heap::DataView *>(m());
Executed by:
  • tst_ecmascripttests
static_cast<QV4::Heap::DataView *>(m());
executed 27690 times by 1 test: return static_cast<QV4::Heap::DataView *>(m());
Executed by:
  • tst_ecmascripttests
} QV4::Heap::DataView *d() const { QV4::Heap::DataView *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 26362 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
dptr;
executed 26362 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
} static_assert(bool(std::is_trivial< QV4::Heap::DataView >::value), "std::is_trivial< QV4::Heap::DataView >::value");
0-27690
40 static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return
executed 1339 times by 1 test: return e->dataViewPrototype();
Executed by:
  • tst_ecmascripttests
e->dataViewPrototype();
executed 1339 times by 1 test: return e->dataViewPrototype();
Executed by:
  • tst_ecmascripttests
}
1339
41};-
42-
43struct 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 codePreprocessed file

Generated by Squish Coco 4.2.0