Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | namespace QV4 { | - |
11 | | - |
12 | struct ExecutionEngine; | - |
13 | struct RegExpCacheKey; | - |
14 | | - |
15 | namespace Heap { | - |
16 | | - |
17 | struct RegExp : Base { | - |
18 | void init(ExecutionEngine *engine, const QString& pattern, bool ignoreCase, bool multiline, bool global); | - |
19 | void destroy(); | - |
20 | | - |
21 | QString *pattern; | - |
22 | JSC::Yarr::BytecodePattern *byteCode; | - |
23 | | - |
24 | JSC::Yarr::YarrCodeBlock *jitCode; | - |
25 | | - |
26 | bool hasValidJITCode() const { | - |
27 | | - |
28 | returnexecuted 1162972 times by 153 tests: return jitCode && !jitCode->isFallBack() && jitCode->has16BitCode(); 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
- ...
jitCode && !jitCode->isFallBack() && jitCode->has16BitCode();executed 1162972 times by 153 tests: return jitCode && !jitCode->isFallBack() && jitCode->has16BitCode(); 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
- ...
| 1162972 |
29 | | - |
30 | | - |
31 | | - |
32 | } | - |
33 | RegExpCache *cache; | - |
34 | int subPatternCount; | - |
35 | bool ignoreCase; | - |
36 | bool multiLine; | - |
37 | bool global; | - |
38 | bool valid; | - |
39 | | - |
40 | int captureCount() const { returnexecuted 19109 times by 3 tests: return subPatternCount + 1; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
subPatternCount + 1;executed 19109 times by 3 tests: return subPatternCount + 1; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
} | 19109 |
41 | }; | - |
42 | static_assert(bool(std::is_trivial< RegExp >::value), "std::is_trivial< RegExp >::value"); | - |
43 | | - |
44 | } | - |
45 | | - |
46 | struct RegExp : public Managed | - |
47 | { | - |
48 | private: RegExp() = delete; RegExp(const RegExp &) = delete; RegExp &operator=(const RegExp &) = 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 1056256 times by 8 tests: end of block Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsvalue
- tst_qqmlecmascript
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
- tst_qquickworkerscript
typedef QV4::Heap::RegExp Data; typedef Managed SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnexecuted 2306443 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 2306443 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::RegExp *d_unchecked() const { returnexecuted 5704431 times by 153 tests: return static_cast<QV4::Heap::RegExp *>(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::RegExp *>(m());executed 5704431 times by 153 tests: return static_cast<QV4::Heap::RegExp *>(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::RegExp *d() const { QV4::Heap::RegExp *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnexecuted 4553872 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 4553872 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::RegExp >::value), "std::is_trivial< QV4::Heap::RegExp >::value"); | 0-5704431 |
49 | public: enum { MyType = Type_RegExp }; | - |
50 | static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }executed 1151794 times by 153 tests: end of block 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
- ...
| 1151794 |
51 | static Heap::InternalClass *defaultInternalClass(QV4::EngineBase *e) { returnexecuted 1151153 times by 153 tests: return e->internalClasses(QV4::EngineBase::Class_RegExp); 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
- ...
e->internalClasses(QV4::EngineBase::Class_RegExp);executed 1151153 times by 153 tests: return e->internalClasses(QV4::EngineBase::Class_RegExp); 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
- ...
} | 1151153 |
52 | | - |
53 | QString pattern() const { return never executed: return *d()->pattern; *d()->pattern;never executed: return *d()->pattern; } | 0 |
54 | JSC::Yarr::BytecodePattern *byteCode() { returnexecuted 216 times by 1 test: return d()->byteCode; d()->byteCode;executed 216 times by 1 test: return d()->byteCode; } | 216 |
55 | | - |
56 | JSC::Yarr::YarrCodeBlock *jitCode() const { returnexecuted 11231 times by 3 tests: return d()->jitCode; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
d()->jitCode;executed 11231 times by 3 tests: return d()->jitCode; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
} | 11231 |
57 | | - |
58 | RegExpCache *cache() const { return never executed: return d()->cache; d()->cache;never executed: return d()->cache; } | 0 |
59 | int subPatternCount() const { returnexecuted 3730 times by 3 tests: return d()->subPatternCount; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
d()->subPatternCount;executed 3730 times by 3 tests: return d()->subPatternCount; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
} | 3730 |
60 | bool ignoreCase() const { return never executed: return d()->ignoreCase; d()->ignoreCase;never executed: return d()->ignoreCase; } | 0 |
61 | bool multiLine() const { return never executed: return d()->multiLine; d()->multiLine;never executed: return d()->multiLine; } | 0 |
62 | bool global() const { return never executed: return d()->global; d()->global;never executed: return d()->global; } | 0 |
63 | | - |
64 | static Heap::RegExp *create(ExecutionEngine* engine, const QString& pattern, bool ignoreCase = false, bool multiline = false, bool global = false); | - |
65 | | - |
66 | bool isValid() const { returnexecuted 13612 times by 4 tests: return d()->valid; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
- tst_qquicklistview
d()->valid;executed 13612 times by 4 tests: return d()->valid; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
- tst_qquicklistview
} | 13612 |
67 | | - |
68 | uint match(const QString& string, int start, uint *matchOffsets); | - |
69 | | - |
70 | int captureCount() const { returnexecuted 3730 times by 3 tests: return subPatternCount() + 1; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
subPatternCount() + 1;executed 3730 times by 3 tests: return subPatternCount() + 1; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
} | 3730 |
71 | | - |
72 | friend class RegExpCache; | - |
73 | }; | - |
74 | | - |
75 | struct RegExpCacheKey | - |
76 | { | - |
77 | RegExpCacheKey(const QString &pattern, bool ignoreCase, bool multiLine, bool global) | - |
78 | : pattern(pattern) | - |
79 | , ignoreCase(ignoreCase) | - |
80 | , multiLine(multiLine) | - |
81 | , global(global) | - |
82 | { }executed 1152555 times by 153 tests: end of block 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
- ...
| 1152555 |
83 | explicit inline RegExpCacheKey(const RegExp::Data *re); | - |
84 | | - |
85 | bool operator==(const RegExpCacheKey &other) const | - |
86 | { returnexecuted 1417368 times by 153 tests: return pattern == other.pattern && ignoreCase == other.ignoreCase && multiLine == other.multiLine && global == other.global; 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
- ...
pattern == other.pattern && ignoreCase == other.ignoreCase && multiLine == other.multiLine && global == other.global;executed 1417368 times by 153 tests: return pattern == other.pattern && ignoreCase == other.ignoreCase && multiLine == other.multiLine && global == other.global; 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
- ...
} | 1417368 |
87 | bool operator!=(const RegExpCacheKey &other) const | - |
88 | { return never executed: return !operator==(other); !operator==(other);never executed: return !operator==(other); } | 0 |
89 | | - |
90 | QString pattern; | - |
91 | uint ignoreCase : 1; | - |
92 | uint multiLine : 1; | - |
93 | uint global : 1; | - |
94 | }; | - |
95 | | - |
96 | inline RegExpCacheKey::RegExpCacheKey(const RegExp::Data *re) | - |
97 | : pattern(*re->pattern) | - |
98 | , ignoreCase(re->ignoreCase) | - |
99 | , multiLine(re->multiLine) | - |
100 | , global(re->global) | - |
101 | {}executed 1151208 times by 153 tests: end of block 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
- ...
| 1151208 |
102 | | - |
103 | inline uint qHash(const RegExpCacheKey& key, uint seed = 0) noexcept | - |
104 | { returnexecuted 2304563 times by 153 tests: return qHash(key.pattern, seed); 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
- ...
qHash(key.pattern, seed);executed 2304563 times by 153 tests: return qHash(key.pattern, seed); 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
- ...
} | 2304563 |
105 | | - |
106 | class RegExpCache : public QHash<RegExpCacheKey, WeakValue> | - |
107 | { | - |
108 | public: | - |
109 | ~RegExpCache(); | - |
110 | }; | - |
111 | | - |
112 | | - |
113 | | - |
114 | } | - |
115 | | - |
116 | | - |
| | |