| Line | Source | Count |
| 1 | | - |
| 2 | enum WTF_UnusedOverflowMode { | - |
| 3 | UnsafeVectorOverflow | - |
| 4 | }; | - |
| 5 | | - |
| 6 | namespace WTF { | - |
| 7 | | - |
| 8 | template <typename T, int capacity = 1, int overflowMode = UnsafeVectorOverflow> | - |
| 9 | class Vector : public std::vector<T> { | - |
| 10 | public: | - |
| 11 | Vector() {} | - |
| 12 | Vector(int initialSize) : std::vector<T>(initialSize) {}executed 1163958 times by 153 tests: end of blockExecuted 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
- ...
| 1163958 |
| 13 | | - |
| 14 | inline void append(const T& value) | - |
| 15 | { this->push_back(value); }executed 7517512 times by 153 tests: end of blockExecuted 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
- ...
| 7517512 |
| 16 | | - |
| 17 | template <typename OtherType> | - |
| 18 | inline void append(const OtherType& other) | - |
| 19 | { this->push_back(T(other)); }executed 4705914 times by 153 tests: end of blockExecuted 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
- ...
| 4705914 |
| 20 | | - |
| 21 | inline void append(const Vector<T>& vector) | - |
| 22 | { | - |
| 23 | this->insert(this->end(), vector.begin(), vector.end()); | - |
| 24 | } never executed: end of block | 0 |
| 25 | | - |
| 26 | inline void append(const T* ptr, size_t count) | - |
| 27 | { | - |
| 28 | for (size_t i = 0; i < count| TRUE | never evaluated | | FALSE | never evaluated |
; ++i) | 0 |
| 29 | this->push_back(T(ptr[i])); never executed: this->push_back(T(ptr[i])); | 0 |
| 30 | } never executed: end of block | 0 |
| 31 | | - |
| 32 | inline void append(typename std::vector<T>::const_iterator it, size_t count) | - |
| 33 | { | - |
| 34 | for (size_t i = 0; i < count| TRUE | evaluated 1590429 times by 9 testsEvaluated by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsvalue
- tst_qqmlecmascript
- tst_qqmlxmlhttprequest
- tst_qquicklistview
- tst_qquicktextinput
- tst_qquickworkerscript
| | FALSE | evaluated 2382701 times by 9 testsEvaluated by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsvalue
- tst_qqmlecmascript
- tst_qqmlxmlhttprequest
- tst_qquicklistview
- tst_qquicktextinput
- tst_qquickworkerscript
|
; ++i, ++it) | 1590429-2382701 |
| 35 | this->push_back(*it);executed 1590523 times by 9 tests: this->push_back(*it);Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsvalue
- tst_qqmlecmascript
- tst_qqmlxmlhttprequest
- tst_qquicklistview
- tst_qquicktextinput
- tst_qquickworkerscript
| 1590523 |
| 36 | }executed 2382716 times by 9 tests: end of blockExecuted by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsvalue
- tst_qqmlecmascript
- tst_qqmlxmlhttprequest
- tst_qquicklistview
- tst_qquicktextinput
- tst_qquickworkerscript
| 2382716 |
| 37 | | - |
| 38 | using std::vector<T>::insert; | - |
| 39 | | - |
| 40 | inline void reserveInitialCapacity(size_t size) { this->reserve(size); }executed 469 times by 2 tests: end of blockExecuted by:- tst_ecmascripttests
- tst_qqmlxmlhttprequest
| 469 |
| 41 | | - |
| 42 | inline void insert(size_t position, T value) | - |
| 43 | { this->insert(this->begin() + position, value); }executed 5514 times by 3 tests: end of blockExecuted by:- tst_ecmascripttests
- tst_qjsengine
- tst_qquicktextinput
| 5514 |
| 44 | | - |
| 45 | inline void grow(size_t size) | - |
| 46 | { this->resize(size); }executed 1089576 times by 65 tests: end of blockExecuted by:- tst_ecmascripttests
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qjsvalue
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickaccessible
- tst_qquickanimatedimage
- ...
| 1089576 |
| 47 | | - |
| 48 | inline void shrink(size_t size) | - |
| 49 | { this->erase(this->begin() + size, this->end()); }executed 2141 times by 1 test: end of block | 2141 |
| 50 | | - |
| 51 | inline void shrinkToFit() | - |
| 52 | { this->shrink(this->size()); }executed 622 times by 1 test: end of block | 622 |
| 53 | | - |
| 54 | inline void remove(size_t position) | - |
| 55 | { this->erase(this->begin() + position); }executed 684 times by 1 test: end of block | 684 |
| 56 | | - |
| 57 | inline bool isEmpty() const { returnexecuted 2300965 times by 153 tests: return this->empty();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
- ...
this->empty();executed 2300965 times by 153 tests: return this->empty();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
- ...
} | 2300965 |
| 58 | | - |
| 59 | inline T &last() { returnexecuted 3360452 times by 153 tests: return *(this->begin() + this->size() - 1);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
- ...
*(this->begin() + this->size() - 1);executed 3360452 times by 153 tests: return *(this->begin() + this->size() - 1);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
- ...
} | 3360452 |
| 60 | }; | - |
| 61 | | - |
| 62 | template <typename T, int capacity> | - |
| 63 | void deleteAllValues(const Vector<T, capacity> &vector) | - |
| 64 | { | - |
| 65 | qDeleteAll(vector); | - |
| 66 | } never executed: end of block | 0 |
| 67 | | - |
| 68 | } | - |
| 69 | | - |
| 70 | using WTF::Vector; | - |
| 71 | using WTF::deleteAllValues; | - |
| | |