OpenCoverage

qv4arraybuffer_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4arraybuffer_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3namespace QV4 {-
4-
5namespace Heap {-
6-
7struct ArrayBufferCtor : FunctionObject {-
8 void init(QV4::ExecutionContext *scope);-
9};-
10-
11struct __attribute__((visibility("default"))) ArrayBuffer : Object {-
12 void init(size_t length);-
13 void init(const QByteArray& array);-
14 void destroy();-
15 QTypedArrayData<char> *data;-
16-
17 uint byteLength() const { return
executed 55507 times by 2 tests: return data->size;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlxmlhttprequest
data->size;
executed 55507 times by 2 tests: return data->size;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlxmlhttprequest
}
55507
18};-
19-
20}-
21-
22struct ArrayBufferCtor: FunctionObject-
23{-
24 private: ArrayBufferCtor() = delete; ArrayBufferCtor(const ArrayBufferCtor &) = delete; ArrayBufferCtor &operator=(const ArrayBufferCtor &) = 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::ArrayBufferCtor Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 296390 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 296390 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::ArrayBufferCtor *d_unchecked() const { return
executed 197339 times by 153 tests: return static_cast<QV4::Heap::ArrayBufferCtor *>(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::ArrayBufferCtor *>(m());
executed 197339 times by 153 tests: return static_cast<QV4::Heap::ArrayBufferCtor *>(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::ArrayBufferCtor *d() const { QV4::Heap::ArrayBufferCtor *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 98578 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 98578 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::ArrayBufferCtor >::value), "std::is_trivial< QV4::Heap::ArrayBufferCtor >::value");
0-296390
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 static ReturnedValue method_isView(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
30-
31};-
32-
33struct __attribute__((visibility("default"))) ArrayBuffer : Object-
34{-
35 private: ArrayBuffer() = delete; ArrayBuffer(const ArrayBuffer &) = delete; ArrayBuffer &operator=(const ArrayBuffer &) = 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 42081 times by 40 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • ...
typedef QV4::Heap::ArrayBuffer Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 107835 times by 40 tests: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • ...
&static_vtbl;
executed 107835 times by 40 tests: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • ...
} 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::ArrayBuffer *d_unchecked() const { return
executed 109125 times by 4 tests: return static_cast<QV4::Heap::ArrayBuffer *>(m());
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickdroparea
static_cast<QV4::Heap::ArrayBuffer *>(m());
executed 109125 times by 4 tests: return static_cast<QV4::Heap::ArrayBuffer *>(m());
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickdroparea
} QV4::Heap::ArrayBuffer *d() const { QV4::Heap::ArrayBuffer *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 87654 times by 4 tests: return dptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickdroparea
dptr;
executed 87654 times by 4 tests: return dptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickdroparea
} static_assert(bool(std::is_trivial< QV4::Heap::ArrayBuffer >::value), "std::is_trivial< QV4::Heap::ArrayBuffer >::value");
0-109125
36 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
executed 21526 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickdroparea
21526
37 static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return
executed 21505 times by 4 tests: return e->arrayBufferPrototype();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickdroparea
e->arrayBufferPrototype();
executed 21505 times by 4 tests: return e->arrayBufferPrototype();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickdroparea
}
21505
38-
39 QByteArray asByteArray() const;-
40 uint byteLength() const { return
executed 13079 times by 2 tests: return d()->byteLength();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlxmlhttprequest
d()->byteLength();
executed 13079 times by 2 tests: return d()->byteLength();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlxmlhttprequest
}
13079
41 char *data() { detach(); return
never executed: return d()->data ? d()->data->data() : nullptr;
d()->data ? d()->data->data() : nullptr;
never executed: return d()->data ? d()->data->data() : nullptr;
}
0
42 const char *constData() { detach(); return
never executed: return d()->data ? d()->data->data() : nullptr;
d()->data ? d()->data->data() : nullptr;
never executed: return d()->data ? d()->data->data() : nullptr;
}
0
43-
44private:-
45 void detach();-
46};-
47-
48struct ArrayBufferPrototype: Object-
49{-
50 void init(ExecutionEngine *engine, Object *ctor);-
51-
52 static ReturnedValue method_get_byteLength(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
53 static ReturnedValue method_slice(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
54 static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);-
55};-
56-
57-
58}-
59-
60-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0