| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | using namespace QV4; | - |
| 4 | | - |
| 5 | RegExpCache::~RegExpCache() | - |
| 6 | { | - |
| 7 | for (RegExpCache::Iterator it = begin(), e = end(); it != e| TRUE | never evaluated | | FALSE | evaluated 99193 times by 153 testsEvaluated 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
- ...
|
; ++it) { | 0-99193 |
| 8 | if (RegExp *re = it.value().as<RegExp>()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 9 | re->d()->cache = nullptr; never executed: re->d()->cache = nullptr; | 0 |
| 10 | } never executed: end of block | 0 |
| 11 | }executed 99193 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
- ...
| 99193 |
| 12 | | - |
| 13 | const QV4::VTable RegExp::static_vtbl = { 0, (sizeof(RegExp::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(RegExp::Data) + (RegExp::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(RegExp::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), RegExp::IsExecutionContext, RegExp::IsString, RegExp::IsObject, RegExp::IsFunctionObject, RegExp::IsErrorObject, RegExp::IsArrayData, RegExp::IsStringOrSymbol, RegExp::MyType, { 0, 0, 0, 0 }, "RegExp", RegExp::virtualDestroy, RegExp::Data::markObjects, RegExp::virtualIsEqualTo, RegExp::virtualGet, RegExp::virtualPut, RegExp::virtualDeleteProperty, RegExp::virtualHasProperty, RegExp::virtualGetOwnProperty, RegExp::virtualDefineOwnProperty, RegExp::virtualIsExtensible, RegExp::virtualPreventExtensions, RegExp::virtualGetPrototypeOf, RegExp::virtualSetPrototypeOf, RegExp::virtualGetLength, RegExp::virtualAdvanceIterator, RegExp::virtualInstanceOf, RegExp::virtualCall, RegExp::virtualCallAsConstructor, }; | - |
| 14 | | - |
| 15 | uint RegExp::match(const QString &string, int start, uint *matchOffsets) | - |
| 16 | { | - |
| 17 | if (!isValid()| TRUE | never evaluated | | FALSE | evaluated 11437 times by 3 testsEvaluated by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
|
) | 0-11437 |
| 18 | return never executed: return JSC::Yarr::offsetNoMatch; JSC::Yarr::offsetNoMatch;never executed: return JSC::Yarr::offsetNoMatch; | 0 |
| 19 | | - |
| 20 | WTF::String s(string); | - |
| 21 | | - |
| 22 | | - |
| 23 | if (d()->hasValidJITCode()| TRUE | evaluated 11231 times by 3 testsEvaluated by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
| | FALSE | evaluated 216 times by 1 test |
) | 216-11231 |
| 24 | returnexecuted 11227 times by 3 tests: return uint(jitCode()->execute(s.characters16(), start, s.length(), (int*)matchOffsets).start);Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
uint(jitCode()->execute(s.characters16(), start, s.length(), (int*)matchOffsets).start);executed 11227 times by 3 tests: return uint(jitCode()->execute(s.characters16(), start, s.length(), (int*)matchOffsets).start);Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
| 11227 |
| 25 | | - |
| 26 | | - |
| 27 | returnexecuted 215 times by 1 test: return JSC::Yarr::interpret(byteCode(), s.characters16(), string.length(), start, matchOffsets); JSC::Yarr::interpret(byteCode(), s.characters16(), string.length(), start, matchOffsets);executed 215 times by 1 test: return JSC::Yarr::interpret(byteCode(), s.characters16(), string.length(), start, matchOffsets); | 215 |
| 28 | } | - |
| 29 | | - |
| 30 | Heap::RegExp *RegExp::create(ExecutionEngine* engine, const QString& pattern, bool ignoreCase, bool multiline, bool global) | - |
| 31 | { | - |
| 32 | RegExpCacheKey key(pattern, ignoreCase, multiline, global); | - |
| 33 | | - |
| 34 | RegExpCache *cache = engine->regExpCache; | - |
| 35 | if (!cache| TRUE | evaluated 98566 times by 153 testsEvaluated 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
- ...
| | FALSE | evaluated 1054009 times by 9 testsEvaluated by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsvalue
- tst_qqmlecmascript
- tst_qqmlxmlhttprequest
- tst_qquicklistview
- tst_qquicktextinput
- tst_qquickworkerscript
|
) | 98566-1054009 |
| 36 | cache = engine->regExpCache = new RegExpCache;executed 98567 times by 153 tests: cache = engine->regExpCache = new RegExpCache;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
- ...
| 98567 |
| 37 | | - |
| 38 | QV4::WeakValue &cachedValue = (*cache)[key]; | - |
| 39 | if (QV4::RegExp *result = cachedValue.as<RegExp>()| TRUE | evaluated 3060 times by 5 testsEvaluated by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
- tst_qquickworkerscript
| | FALSE | evaluated 1149478 times by 153 testsEvaluated 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
- ...
|
) | 3060-1149478 |
| 40 | returnexecuted 3060 times by 5 tests: return result->d();Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
- tst_qquickworkerscript
result->d();executed 3060 times by 5 tests: return result->d();Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
- tst_qquickworkerscript
| 3060 |
| 41 | | - |
| 42 | Scope scope(engine); | - |
| 43 | Scoped<RegExp> result(scope, engine->memoryManager->alloc<RegExp>(engine, pattern, ignoreCase, multiline, global)); | - |
| 44 | | - |
| 45 | result->d()->cache = cache; | - |
| 46 | cachedValue.set(engine, result); | - |
| 47 | | - |
| 48 | returnexecuted 1151821 times by 153 tests: return result->d();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
- ...
result->d();executed 1151821 times by 153 tests: return result->d();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
- ...
| 1151821 |
| 49 | } | - |
| 50 | | - |
| 51 | void Heap::RegExp::init(ExecutionEngine *engine, const QString &pattern, bool ignoreCase, bool multiline, bool global) | - |
| 52 | { | - |
| 53 | Base::init(); | - |
| 54 | this->pattern = new QString(pattern); | - |
| 55 | this->ignoreCase = ignoreCase; | - |
| 56 | this->multiLine = multiline; | - |
| 57 | this->global = global; | - |
| 58 | | - |
| 59 | valid = false; | - |
| 60 | | - |
| 61 | const char* error = nullptr; | - |
| 62 | JSC::Yarr::YarrPattern yarrPattern(WTF::String(pattern), ignoreCase, multiLine, &error); | - |
| 63 | if (error| TRUE | evaluated 252 times by 1 test | | FALSE | evaluated 1150190 times by 153 testsEvaluated 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
- ...
|
) | 252-1150190 |
| 64 | return;executed 252 times by 1 test: return; | 252 |
| 65 | subPatternCount = yarrPattern.m_numSubpatterns; | - |
| 66 | | - |
| 67 | if (!yarrPattern.m_containsBackreferences| TRUE | evaluated 1149061 times by 153 testsEvaluated 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
- ...
| | FALSE | evaluated 84 times by 1 test |
&& engine->canJIT()| TRUE | evaluated 1149679 times by 153 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-1149679 |
| 68 | jitCode = new JSC::Yarr::YarrCodeBlock; | - |
| 69 | JSC::JSGlobalData dummy(internalClass->engine->regExpAllocator); | - |
| 70 | JSC::Yarr::jitCompile(yarrPattern, JSC::Yarr::Char16, &dummy, *jitCode); | - |
| 71 | }executed 1151507 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
- ...
| 1151507 |
| 72 | | - |
| 73 | | - |
| 74 | | - |
| 75 | if (hasValidJITCode()| TRUE | evaluated 1151403 times by 153 testsEvaluated 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
- ...
| | FALSE | evaluated 208 times by 1 test |
) { | 208-1151403 |
| 76 | valid = true; | - |
| 77 | return;executed 1151399 times by 153 tests: return;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
- ...
| 1151399 |
| 78 | } | - |
| 79 | OwnPtr<JSC::Yarr::BytecodePattern> p = JSC::Yarr::byteCompile(yarrPattern, internalClass->engine->bumperPointerAllocator); | - |
| 80 | byteCode = p.take(); | - |
| 81 | if (byteCode| TRUE | evaluated 208 times by 1 test | | FALSE | never evaluated |
) | 0-208 |
| 82 | valid = true;executed 208 times by 1 test: valid = true; | 208 |
| 83 | }executed 208 times by 1 test: end of block | 208 |
| 84 | | - |
| 85 | void Heap::RegExp::destroy() | - |
| 86 | { | - |
| 87 | if (cache| TRUE | evaluated 1150980 times by 153 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-1150980 |
| 88 | RegExpCacheKey key(this); | - |
| 89 | cache->remove(key); | - |
| 90 | }executed 1151789 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
- ...
| 1151789 |
| 91 | | - |
| 92 | delete jitCode; | - |
| 93 | | - |
| 94 | delete byteCode; | - |
| 95 | delete pattern; | - |
| 96 | Base::destroy(); | - |
| 97 | }executed 1151797 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
- ...
| 1151797 |
| | |