OpenCoverage

qv4runtime.cpp #1

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15namespace QV4 {-
16Runtime::Runtime()-
17{-
18-
19runtimeMethods[callGlobalLookup] = reinterpret_cast<void*>(&method_callGlobalLookup); runtimeMethods[callName] = reinterpret_cast<void*>(&method_callName); runtimeMethods[callProperty] = reinterpret_cast<void*>(&method_callProperty); runtimeMethods[callPropertyLookup] = reinterpret_cast<void*>(&method_callPropertyLookup); runtimeMethods[callElement] = reinterpret_cast<void*>(&method_callElement); runtimeMethods[callValue] = reinterpret_cast<void*>(&method_callValue); runtimeMethods[callPossiblyDirectEval] = reinterpret_cast<void*>(&method_callPossiblyDirectEval); runtimeMethods[callWithSpread] = reinterpret_cast<void*>(&method_callWithSpread); runtimeMethods[construct] = reinterpret_cast<void*>(&method_construct); runtimeMethods[constructWithSpread] = reinterpret_cast<void*>(&method_constructWithSpread); runtimeMethods[storeNameStrict] = reinterpret_cast<void*>(&method_storeNameStrict); runtimeMethods[storeNameSloppy] = reinterpret_cast<void*>(&method_storeNameSloppy); runtimeMethods[storeProperty] = reinterpret_cast<void*>(&method_storeProperty); runtimeMethods[storeElement] = reinterpret_cast<void*>(&method_storeElement); runtimeMethods[loadProperty] = reinterpret_cast<void*>(&method_loadProperty); runtimeMethods[loadName] = reinterpret_cast<void*>(&method_loadName); runtimeMethods[loadElement] = reinterpret_cast<void*>(&method_loadElement); runtimeMethods[loadSuperProperty] = reinterpret_cast<void*>(&method_loadSuperProperty); runtimeMethods[storeSuperProperty] = reinterpret_cast<void*>(&method_storeSuperProperty); runtimeMethods[typeofValue] = reinterpret_cast<void*>(&method_typeofValue); runtimeMethods[typeofName] = reinterpret_cast<void*>(&method_typeofName); runtimeMethods[deleteProperty] = reinterpret_cast<void*>(&method_deleteProperty); runtimeMethods[deleteName] = reinterpret_cast<void*>(&method_deleteName); runtimeMethods[throwException] = reinterpret_cast<void*>(&method_throwException); runtimeMethods[createWithContext] = reinterpret_cast<void*>(&method_createWithContext); runtimeMethods[createCatchContext] = reinterpret_cast<void*>(&method_createCatchContext); runtimeMethods[createBlockContext] = reinterpret_cast<void*>(&method_createBlockContext); runtimeMethods[createScriptContext] = reinterpret_cast<void*>(&method_createScriptContext); runtimeMethods[cloneBlockContext] = reinterpret_cast<void*>(&method_cloneBlockContext); runtimeMethods[popScriptContext] = reinterpret_cast<void*>(&method_popScriptContext); runtimeMethods[closure] = reinterpret_cast<void*>(&method_closure); runtimeMethods[declareVar] = reinterpret_cast<void*>(&method_declareVar); runtimeMethods[createMappedArgumentsObject] = reinterpret_cast<void*>(&method_createMappedArgumentsObject); runtimeMethods[createUnmappedArgumentsObject] = reinterpret_cast<void*>(&method_createUnmappedArgumentsObject); runtimeMethods[createRestParameter] = reinterpret_cast<void*>(&method_createRestParameter); runtimeMethods[arrayLiteral] = reinterpret_cast<void*>(&method_arrayLiteral); runtimeMethods[objectLiteral] = reinterpret_cast<void*>(&method_objectLiteral); runtimeMethods[createClass] = reinterpret_cast<void*>(&method_createClass); runtimeMethods[getIterator] = reinterpret_cast<void*>(&method_getIterator); runtimeMethods[iteratorNext] = reinterpret_cast<void*>(&method_iteratorNext); runtimeMethods[iteratorClose] = reinterpret_cast<void*>(&method_iteratorClose); runtimeMethods[destructureRestElement] = reinterpret_cast<void*>(&method_destructureRestElement); runtimeMethods[uMinus] = reinterpret_cast<void*>(&method_uMinus); runtimeMethods[instanceof] = reinterpret_cast<void*>(&method_instanceof); runtimeMethods[in] = reinterpret_cast<void*>(&method_in); runtimeMethods[add] = reinterpret_cast<void*>(&method_add); runtimeMethods[sub] = reinterpret_cast<void*>(&method_sub); runtimeMethods[mul] = reinterpret_cast<void*>(&method_mul); runtimeMethods[div] = reinterpret_cast<void*>(&method_div); runtimeMethods[mod] = reinterpret_cast<void*>(&method_mod); runtimeMethods[shl] = reinterpret_cast<void*>(&method_shl); runtimeMethods[shr] = reinterpret_cast<void*>(&method_shr); runtimeMethods[ushr] = reinterpret_cast<void*>(&method_ushr); runtimeMethods[greaterThan] = reinterpret_cast<void*>(&method_greaterThan); runtimeMethods[lessThan] = reinterpret_cast<void*>(&method_lessThan); runtimeMethods[greaterEqual] = reinterpret_cast<void*>(&method_greaterEqual); runtimeMethods[lessEqual] = reinterpret_cast<void*>(&method_lessEqual); runtimeMethods[equal] = reinterpret_cast<void*>(&method_equal); runtimeMethods[notEqual] = reinterpret_cast<void*>(&method_notEqual); runtimeMethods[strictEqual] = reinterpret_cast<void*>(&method_strictEqual); runtimeMethods[strictNotEqual] = reinterpret_cast<void*>(&method_strictNotEqual); runtimeMethods[compareGreaterThan] = reinterpret_cast<void*>(&method_compareGreaterThan); runtimeMethods[compareLessThan] = reinterpret_cast<void*>(&method_compareLessThan); runtimeMethods[compareGreaterEqual] = reinterpret_cast<void*>(&method_compareGreaterEqual); runtimeMethods[compareLessEqual] = reinterpret_cast<void*>(&method_compareLessEqual); runtimeMethods[compareEqual] = reinterpret_cast<void*>(&method_compareEqual); runtimeMethods[compareNotEqual] = reinterpret_cast<void*>(&method_compareNotEqual); runtimeMethods[compareStrictEqual] = reinterpret_cast<void*>(&method_compareStrictEqual); runtimeMethods[compareStrictNotEqual] = reinterpret_cast<void*>(&method_compareStrictNotEqual); runtimeMethods[compareInstanceof] = reinterpret_cast<void*>(&method_compareInstanceof); runtimeMethods[compareIn] = reinterpret_cast<void*>(&method_compareIn); runtimeMethods[regexpLiteral] = reinterpret_cast<void*>(&method_regexpLiteral); runtimeMethods[loadQmlContext] = reinterpret_cast<void*>(&method_loadQmlContext); runtimeMethods[loadQmlImportedScripts] = reinterpret_cast<void*>(&method_loadQmlImportedScripts); runtimeMethods[loadQmlScopeObjectProperty] = reinterpret_cast<void*>(&method_loadQmlScopeObjectProperty); runtimeMethods[loadQmlContextObjectProperty] = reinterpret_cast<void*>(&method_loadQmlContextObjectProperty); runtimeMethods[loadQmlIdObject] = reinterpret_cast<void*>(&method_loadQmlIdObject); runtimeMethods[callQmlScopeObjectProperty] = reinterpret_cast<void*>(&method_callQmlScopeObjectProperty); runtimeMethods[callQmlContextObjectProperty] = reinterpret_cast<void*>(&method_callQmlContextObjectProperty); runtimeMethods[storeQmlScopeObjectProperty] = reinterpret_cast<void*>(&method_storeQmlScopeObjectProperty); runtimeMethods[storeQmlContextObjectProperty] = reinterpret_cast<void*>(&method_storeQmlContextObjectProperty);-
20-
21}
executed 99151 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
  • ...
99151
22-
23void RuntimeHelpers::numberToString(QString *result, double num, int radix)-
24{-
25 ((result) ? static_cast<void>(0) : qt_assert("result", __FILE__, 237));-
26-
27 if (std::isnan(num)
std::isnan(num)Description
TRUEevaluated 2404 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3021936 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
) {
2404-3021936
28 *result = ([]() noexcept -> QString { enum { Size = sizeof(u"" "NaN")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "NaN" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());-
29 return;
executed 2404 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
2404
30 } else if (qt_is_inf(num)
qt_is_inf(num)Description
TRUEevaluated 1655 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qquicklayouts
FALSEevaluated 3020283 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
) {
1655-3020283
31 *result = num < 0 ? ([]() noexcept -> QString { enum { Size = sizeof(u"" "-Infinity")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "-Infinity" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()) : ([]() noexcept -> QString { enum { Size = sizeof(u"" "Infinity")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Infinity" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 976 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
  • tst_qquicklayouts
qstring_literal_temp;
executed 976 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
  • tst_qquicklayouts
}());
976
32 return;
executed 1655 times by 2 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_qquicklayouts
1655
33 }-
34-
35 if (radix == 10
radix == 10Description
TRUEevaluated 3020296 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
FALSEnever evaluated
) {
0-3020296
36-
37-
38 const int ecma_shortest_low = -6;-
39 const int ecma_shortest_high = 21;-
40-
41 const QLatin1Char zero('0');-
42 const QLatin1Char dot('.');-
43-
44 int decpt = 0;-
45 int sign = 0;-
46 *result = qdtoa(num, &decpt, &sign);-
47-
48 if (decpt <= ecma_shortest_low
decpt <= ecma_shortest_lowDescription
TRUEevaluated 1004 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlproperty
FALSEevaluated 3019284 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
|| decpt > ecma_shortest_high
decpt > ecma_shortest_highDescription
TRUEevaluated 324 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlproperty
FALSEevaluated 3018978 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
) {
324-3019284
49 if (result->length() > 1
result->length() > 1Description
TRUEevaluated 124 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlproperty
FALSEevaluated 1203 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlproperty
)
124-1203
50 result->insert(1, dot);
executed 124 times by 3 tests: result->insert(1, dot);
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlproperty
124
51 result->append(QLatin1Char('e'));-
52 if (decpt > 0
decpt > 0Description
TRUEevaluated 323 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlproperty
FALSEevaluated 1004 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlproperty
)
323-1004
53 result->append(QLatin1Char('+'));
executed 323 times by 2 tests: result->append(QLatin1Char('+'));
Executed by:
  • tst_ecmascripttests
  • tst_qqmlproperty
323
54 result->append(QString::number(decpt - 1));-
55 }
executed 1328 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlproperty
else if (decpt <= 0
decpt <= 0Description
TRUEevaluated 2398 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
FALSEevaluated 3016568 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
) {
1328-3016568
56 result->prepend(QLatin1String("0.") + QString(-decpt, zero));-
57 }
executed 2398 times by 8 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
else if (decpt < result->length()
decpt < result->length()Description
TRUEevaluated 27459 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
FALSEevaluated 2989112 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
) {
2398-2989112
58 result->insert(decpt, dot);-
59 }
executed 27459 times by 12 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
else {
27459
60 result->append(QString(decpt - result->length(), zero));-
61 }
executed 2989103 times by 27 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
2989103
62-
63 if (sign
signDescription
TRUEevaluated 88077 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 2932220 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
&& num)
88077-2932220
64 result->prepend(QLatin1Char('-'));
executed 81118 times by 8 tests: result->prepend(QLatin1Char('-'));
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
81118
65-
66 return;
executed 3020290 times by 27 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
3020290
67 }-
68-
69 result->clear();-
70 bool negative = false;-
71-
72 if (num < 0
num < 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
73 negative = true;-
74 num = -num;-
75 }
never executed: end of block
0
76-
77 double frac = num - ::floor(num);-
78 num = Primitive::toInteger(num);-
79-
80 do {-
81 char c = (char)::fmod(num, radix);-
82 c = (
(c < 10)Description
TRUEnever evaluated
FALSEnever evaluated
c < 10)
(c < 10)Description
TRUEnever evaluated
FALSEnever evaluated
? (c + '0') : (c - 10 + 'a');
0
83 result->prepend(QLatin1Char(c));-
84 num = ::floor(num / radix);-
85 }
never executed: end of block
while (num != 0
num != 0Description
TRUEnever evaluated
FALSEnever evaluated
);
0
86-
87 if (frac != 0
frac != 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
88 result->append(QLatin1Char('.'));-
89 do {-
90 frac = frac * radix;-
91 char c = (char)::floor(frac);-
92 c = (
(c < 10)Description
TRUEnever evaluated
FALSEnever evaluated
c < 10)
(c < 10)Description
TRUEnever evaluated
FALSEnever evaluated
? (c + '0') : (c - 10 + 'a');
0
93 result->append(QLatin1Char(c));-
94 frac = frac - ::floor(frac);-
95 }
never executed: end of block
while (frac != 0
frac != 0Description
TRUEnever evaluated
FALSEnever evaluated
);
0
96 }
never executed: end of block
0
97-
98 if (negative
negativeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
99 result->prepend(QLatin1Char('-'));
never executed: result->prepend(QLatin1Char('-'));
0
100}
never executed: end of block
0
101-
102ReturnedValue Runtime::method_closure(ExecutionEngine *engine, int functionId)-
103{-
104 QV4::Function *clos = static_cast<CompiledData::CompilationUnit*>(engine->currentStackFrame->v4Function->compilationUnit)->runtimeFunctions[functionId];-
105 ((clos) ? static_cast<void>(0) : qt_assert("clos", __FILE__, 317));-
106 ExecutionContext *current = static_cast<ExecutionContext *>(&engine->currentStackFrame->jsFrame->context);-
107 if (clos->isGenerator()
clos->isGenerator()Description
TRUEevaluated 6116 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 948890 times by 31 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
)
6116-948890
108 return
executed 6111 times by 1 test: return GeneratorFunction::create(current, clos)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
GeneratorFunction::create(current, clos)->asReturnedValue();
executed 6111 times by 1 test: return GeneratorFunction::create(current, clos)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
6111
109 return
executed 949040 times by 31 tests: return FunctionObject::createScriptFunction(current, clos)->asReturnedValue();
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
FunctionObject::createScriptFunction(current, clos)->asReturnedValue();
executed 949040 times by 31 tests: return FunctionObject::createScriptFunction(current, clos)->asReturnedValue();
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
949040
110}-
111-
112bool Runtime::method_deleteProperty(ExecutionEngine *engine, const Value &base, const Value &index)-
113{-
114 Scope scope(engine);-
115 ScopedObject o(scope, base.toObject(engine));-
116 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 10266 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
)
0-10266
117 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
118 ((o) ? static_cast<void>(0) : qt_assert("o", __FILE__, 330));-
119-
120 ScopedPropertyKey key(scope, index.toPropertyKey(engine));-
121 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 10289 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
)
4-10289
122 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
123 return
executed 10279 times by 5 tests: return o->deleteProperty(key);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
o->deleteProperty(key);
executed 10279 times by 5 tests: return o->deleteProperty(key);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
10279
124}-
125-
126bool Runtime::method_deleteName(ExecutionEngine *engine, int nameIndex)-
127{-
128 Scope scope(engine);-
129 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
130 return
executed 142 times by 2 tests: return static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).deleteProperty(name);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).deleteProperty(name);
executed 142 times by 2 tests: return static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).deleteProperty(name);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
142
131}-
132-
133QV4::ReturnedValue Runtime::method_instanceof(ExecutionEngine *engine, const Value &lval, const Value &rval)-
134{-
135-
136 const Object *rhs = rval.as<Object>();-
137 if (!rhs
!rhsDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 4252218 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
)
22-4252218
138 return
executed 22 times by 2 tests: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
engine->throwTypeError();
executed 22 times by 2 tests: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
22
139-
140 Scope scope(engine);-
141 ScopedValue hasInstance(scope, rhs->get(engine->symbol_hasInstance()));-
142 if (hasInstance->isUndefined()
hasInstance->isUndefined()Description
TRUEevaluated 74 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquicklayouts
FALSEevaluated 4262635 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
)
74-4262635
143 return
executed 74 times by 3 tests: return rhs->instanceOf(lval);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquicklayouts
rhs->instanceOf(lval);
executed 74 times by 3 tests: return rhs->instanceOf(lval);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquicklayouts
74
144 FunctionObject *f = hasInstance->as<FunctionObject>();-
145 if (!f
!fDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4299623 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
)
4-4299623
146 return
executed 4 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 4 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
4
147-
148 ScopedValue result(scope, f->call(&rval, &lval, 1));-
149 return
executed 4301818 times by 11 tests: return Encode(result->toBoolean());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
Encode(result->toBoolean());
executed 4301818 times by 11 tests: return Encode(result->toBoolean());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
4301818
150}-
151-
152QV4::ReturnedValue Runtime::method_in(ExecutionEngine *engine, const Value &left, const Value &right)-
153{-
154 Object *ro = right.objectValue();-
155 if (!ro
!roDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 672 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
)
20-672
156 return
executed 20 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 20 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
157 Scope scope(engine);-
158 ScopedPropertyKey s(scope, left.toPropertyKey(engine));-
159 if (scope.hasException()
scope.hasException()Description
TRUEnever evaluated
FALSEevaluated 672 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
)
0-672
160 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
161 bool r = ro->hasProperty(s);-
162 return
executed 672 times by 6 tests: return Encode(r);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
Encode(r);
executed 672 times by 6 tests: return Encode(r);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_testfiltering
672
163}-
164-
165double RuntimeHelpers::stringToNumber(const QString &string)-
166{-
167 const QStringRef s = QStringRef(&string).trimmed();-
168 if (s.startsWith(QLatin1String("0x"))
s.startsWith(Q...1String("0x"))Description
TRUEevaluated 262320 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9150 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
|| s.startsWith(QLatin1String("0X"))
s.startsWith(Q...1String("0X"))Description
TRUEevaluated 88 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9069 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
)
88-262320
169 return
executed 262408 times by 1 test: return s.toLong(nullptr, 16);
Executed by:
  • tst_ecmascripttests
s.toLong(nullptr, 16);
executed 262408 times by 1 test: return s.toLong(nullptr, 16);
Executed by:
  • tst_ecmascripttests
262408
170 bool ok;-
171 QByteArray ba = s.toLatin1();-
172 const char *begin = ba.constData();-
173 const char *end = nullptr;-
174 double d = qstrtod(begin, &end, &ok);-
175 if (end - begin != ba.size()
end - begin != ba.size()Description
TRUEevaluated 1851 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
FALSEevaluated 7212 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
) {
1851-7212
176 if (ba == "Infinity"
ba == "Infinity"Description
TRUEevaluated 132 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
FALSEevaluated 1720 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
|| ba == "+Infinity"
ba == "+Infinity"Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1692 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
)
28-1720
177 d = (::qInf());
executed 160 times by 2 tests: d = (::qInf());
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
160
178 else if (ba == "-Infinity"
ba == "-Infinity"Description
TRUEevaluated 88 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
FALSEevaluated 1604 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
)
88-1604
179 d = -(::qInf());
executed 88 times by 2 tests: d = -(::qInf());
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
88
180 else-
181 d = std::numeric_limits<double>::quiet_NaN();
executed 1604 times by 4 tests: d = std::numeric_limits<double>::quiet_NaN();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
1604
182 }-
183 return
executed 9067 times by 7 tests: return d;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
d;
executed 9067 times by 7 tests: return d;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
9067
184}-
185-
186Heap::String *RuntimeHelpers::stringFromNumber(ExecutionEngine *engine, double number)-
187{-
188 QString qstr;-
189 RuntimeHelpers::numberToString(&qstr, number, 10);-
190 return
executed 3013986 times by 20 tests: return engine->newString(qstr);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
engine->newString(qstr);
executed 3013986 times by 20 tests: return engine->newString(qstr);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
3013986
191}-
192-
193ReturnedValue RuntimeHelpers::objectDefaultValue(const Object *object, int typeHint)-
194{-
195 ExecutionEngine *engine = object->internalClass()->engine;-
196 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 404 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 52222 times by 30 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
)
404-52222
197 return
executed 404 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 404 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
404
198-
199 String *hint;-
200 switch (typeHint) {-
201 case
executed 5749 times by 25 tests: case STRING_HINT:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
STRING_HINT:
executed 5749 times by 25 tests: case STRING_HINT:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
5749
202 hint = engine->id_string();-
203 break;
executed 5748 times by 25 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
5748
204 case
executed 42829 times by 6 tests: case NUMBER_HINT:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
NUMBER_HINT:
executed 42829 times by 6 tests: case NUMBER_HINT:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
42829
205 hint = engine->id_number();-
206 break;
executed 42829 times by 6 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
42829
207 default
executed 3638 times by 8 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
:
executed 3638 times by 8 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
3638
208 hint = engine->id_default();-
209 break;
executed 3634 times by 8 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
3634
210 }-
211-
212 Scope scope(engine);-
213 ScopedFunctionObject toPrimitive(scope, object->get(engine->symbol_toPrimitive()));-
214 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 52204 times by 30 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
)
28-52204
215 return
executed 28 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 28 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
28
216 if (toPrimitive
toPrimitiveDescription
TRUEevaluated 32482 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 19715 times by 30 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
) {
19715-32482
217 ScopedValue result(scope, toPrimitive->call(object, hint, 1));-
218 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 68 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 32414 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
)
68-32414
219 return
executed 68 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 68 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
68
220 if (!result->isPrimitive()
!result->isPrimitive()Description
TRUEevaluated 92 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 32322 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
)
92-32322
221 return
executed 92 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 92 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
92
222 return
executed 32322 times by 3 tests: return result->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
result->asReturnedValue();
executed 32322 times by 3 tests: return result->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
32322
223 }-
224-
225 if (hint == engine->id_default()
hint == engine->id_default()Description
TRUEevaluated 3378 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
FALSEevaluated 16320 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • ...
)
3378-16320
226 hint = engine->id_number();
executed 3380 times by 8 tests: hint = engine->id_number();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
3380
227 return
executed 19699 times by 30 tests: return ordinaryToPrimitive(engine, object, hint);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
ordinaryToPrimitive(engine, object, hint);
executed 19699 times by 30 tests: return ordinaryToPrimitive(engine, object, hint);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
19699
228}-
229-
230-
231ReturnedValue RuntimeHelpers::ordinaryToPrimitive(ExecutionEngine *engine, const Object *object, String *typeHint)-
232{-
233 ((!engine->hasException) ? static_cast<void>(0) : qt_assert("!engine->hasException", __FILE__, 445));-
234-
235 String *meth1 = engine->id_toString();-
236 String *meth2 = engine->id_valueOf();-
237-
238 if (typeHint->propertyKey() == engine->id_number()->propertyKey()
typeHint->prop...>propertyKey()Description
TRUEevaluated 46039 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
FALSEevaluated 5759 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
) {
5759-46039
239 qSwap(meth1, meth2);-
240 }
executed 46041 times by 10 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
else {
46041
241 ((typeHint->propertyKey() == engine->id_string()->propertyKey()) ? static_cast<void>(0) : qt_assert("typeHint->propertyKey() == engine->id_string()->propertyKey()", __FILE__, 453));-
242 }
executed 5766 times by 25 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
5766
243-
244 Scope scope(engine);-
245 ScopedValue result(scope);-
246-
247 ScopedValue conv(scope, object->get(meth1));-
248 if (FunctionObject *o = conv->as<FunctionObject>()
FunctionObject...ctionObject>()Description
TRUEevaluated 51614 times by 30 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
FALSEevaluated 228 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
228-51614
249 result = o->call(object, nullptr, 0);-
250 if (result->isPrimitive()
result->isPrimitive()Description
TRUEevaluated 46284 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 5324 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
)
5324-46284
251 return
executed 46283 times by 26 tests: return result->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • ...
result->asReturnedValue();
executed 46283 times by 26 tests: return result->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • ...
46283
252 }
executed 5323 times by 7 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
5323
253-
254 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 5549 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
)
0-5549
255 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
256-
257 conv = object->get(meth2);-
258 if (FunctionObject *o = conv->as<FunctionObject>()
FunctionObject...ctionObject>()Description
TRUEevaluated 5493 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
60-5493
259 result = o->call(object, nullptr, 0);-
260 if (result->isPrimitive()
result->isPrimitive()Description
TRUEevaluated 5179 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
FALSEevaluated 312 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
312-5179
261 return
executed 5179 times by 7 tests: return result->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
result->asReturnedValue();
executed 5179 times by 7 tests: return result->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickimage
5179
262 }
executed 312 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
312
263-
264 return
executed 372 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 372 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
372
265}-
266-
267-
268Heap::Object *RuntimeHelpers::convertToObject(ExecutionEngine *engine, const Value &value)-
269{-
270 ((!value.isObject()) ? static_cast<void>(0) : qt_assert("!value.isObject()", __FILE__, 482));-
271 switch (value.type()) {-
272 case
executed 366 times by 3 tests: case Value::Undefined_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
Value::Undefined_Type:
executed 366 times by 3 tests: case Value::Undefined_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
366
273 engine->throwTypeError(QLatin1String("Value is undefined and could not be converted to an object"));-
274 return
executed 366 times by 3 tests: return nullptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
nullptr;
executed 366 times by 3 tests: return nullptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
366
275 case
executed 342 times by 3 tests: case Value::Null_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
Value::Null_Type:
executed 342 times by 3 tests: case Value::Null_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
342
276 engine->throwTypeError(QLatin1String("Value is null and could not be converted to an object"));-
277 return
executed 342 times by 3 tests: return nullptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
nullptr;
executed 342 times by 3 tests: return nullptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
342
278 case
executed 300 times by 1 test: case Value::Boolean_Type:
Executed by:
  • tst_ecmascripttests
Value::Boolean_Type:
executed 300 times by 1 test: case Value::Boolean_Type:
Executed by:
  • tst_ecmascripttests
300
279 return
executed 300 times by 1 test: return engine->newBooleanObject(value.booleanValue());
Executed by:
  • tst_ecmascripttests
engine->newBooleanObject(value.booleanValue());
executed 300 times by 1 test: return engine->newBooleanObject(value.booleanValue());
Executed by:
  • tst_ecmascripttests
300
280 case
executed 44954 times by 12 tests: case Value::Managed_Type:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
Value::Managed_Type:
executed 44954 times by 12 tests: case Value::Managed_Type:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
44954
281 ((value.isStringOrSymbol()) ? static_cast<void>(0) : qt_assert("value.isStringOrSymbol()", __FILE__, 493));-
282 if (!value.isString()
!value.isString()Description
TRUEevaluated 106 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 44845 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
)
106-44845
283 return
executed 106 times by 1 test: return engine->newSymbolObject(value.symbolValue());
Executed by:
  • tst_ecmascripttests
engine->newSymbolObject(value.symbolValue());
executed 106 times by 1 test: return engine->newSymbolObject(value.symbolValue());
Executed by:
  • tst_ecmascripttests
106
284 return
executed 44845 times by 12 tests: return engine->newStringObject(value.stringValue());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
engine->newStringObject(value.stringValue());
executed 44845 times by 12 tests: return engine->newStringObject(value.stringValue());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
44845
285 case
executed 606 times by 7 tests: case Value::Integer_Type:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquicklayouts
  • tst_qv4debugger
Value::Integer_Type:
executed 606 times by 7 tests: case Value::Integer_Type:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquicklayouts
  • tst_qv4debugger
606
286 default
executed 638 times by 8 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
:
executed 638 times by 8 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
638
287 return
executed 1244 times by 9 tests: return engine->newNumberObject(value.asDouble());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qv4debugger
engine->newNumberObject(value.asDouble());
executed 1244 times by 9 tests: return engine->newNumberObject(value.asDouble());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qv4debugger
1244
288 }-
289}-
290-
291Heap::String *RuntimeHelpers::convertToString(ExecutionEngine *engine, Value value, TypeHint hint)-
292{-
293 redo:-
294 switch (value.type()) {-
295 case
never executed: case Value::Empty_Type:
Value::Empty_Type:
never executed: case Value::Empty_Type:
0
296 ((!"empty Value encountered") ? static_cast<void>(0) : qt_assert("!\"empty Value encountered\"", __FILE__, 508));-
297 do { ((false) ? static_cast<void>(0) : qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached", __FILE__, 509)); __builtin_unreachable(); } while (false);-
298 case
executed 1151 times by 3 tests: case Value::Undefined_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
code before this statement never executed: case Value::Undefined_Type:
executed 1151 times by 3 tests: case Value::Undefined_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
Value::Undefined_Type:
code before this statement never executed: case Value::Undefined_Type:
executed 1151 times by 3 tests: case Value::Undefined_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
0-1151
299 return
executed 1149 times by 3 tests: return engine->id_undefined()->d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
engine->id_undefined()->d();
executed 1149 times by 3 tests: return engine->id_undefined()->d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
1149
300 case
executed 152 times by 1 test: case Value::Null_Type:
Executed by:
  • tst_ecmascripttests
Value::Null_Type:
executed 152 times by 1 test: case Value::Null_Type:
Executed by:
  • tst_ecmascripttests
152
301 return
executed 152 times by 1 test: return engine->id_null()->d();
Executed by:
  • tst_ecmascripttests
engine->id_null()->d();
executed 152 times by 1 test: return engine->id_null()->d();
Executed by:
  • tst_ecmascripttests
152
302 case
executed 963 times by 3 tests: case Value::Boolean_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
  • tst_qquickloader
Value::Boolean_Type:
executed 963 times by 3 tests: case Value::Boolean_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
  • tst_qquickloader
963
303 if (value.booleanValue()
value.booleanValue()Description
TRUEevaluated 475 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
  • tst_qquickloader
FALSEevaluated 488 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
)
475-488
304 return
executed 475 times by 3 tests: return engine->id_true()->d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
  • tst_qquickloader
engine->id_true()->d();
executed 475 times by 3 tests: return engine->id_true()->d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
  • tst_qquickloader
475
305 else-
306 return
executed 488 times by 2 tests: return engine->id_false()->d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
engine->id_false()->d();
executed 488 times by 2 tests: return engine->id_false()->d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmllistmodel
488
307 case
executed 1576 times by 2 tests: case Value::Managed_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
Value::Managed_Type:
executed 1576 times by 2 tests: case Value::Managed_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
{
1576
308 if (value.isString()
value.isString()Description
TRUEnever evaluated
FALSEevaluated 1576 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
)
0-1576
309 return
never executed: return static_cast<const String &>(value).d();
static_cast<const String &>(value).d();
never executed: return static_cast<const String &>(value).d();
0
310 if (value.isSymbol()
value.isSymbol()Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1545 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
) {
32-1545
311 engine->throwTypeError(QLatin1String("Cannot convert a symbol to a string."));-
312 return
executed 32 times by 1 test: return nullptr;
Executed by:
  • tst_ecmascripttests
nullptr;
executed 32 times by 1 test: return nullptr;
Executed by:
  • tst_ecmascripttests
32
313 }-
314 value = Primitive::fromReturnedValue(RuntimeHelpers::toPrimitive(value, hint));-
315 ((value.isPrimitive()) ? static_cast<void>(0) : qt_assert("value.isPrimitive()", __FILE__, 527));-
316 if (value.isString()
value.isString()Description
TRUEevaluated 1172 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 375 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
375-1172
317 return
executed 1171 times by 2 tests: return static_cast<const String &>(value).d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
static_cast<const String &>(value).d();
executed 1171 times by 2 tests: return static_cast<const String &>(value).d();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
1171
318 goto
executed 372 times by 1 test: goto redo;
Executed by:
  • tst_ecmascripttests
redo;
executed 372 times by 1 test: goto redo;
Executed by:
  • tst_ecmascripttests
372
319 }-
320 case
executed 2614215 times by 15 tests: case Value::Integer_Type:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
Value::Integer_Type:
executed 2614215 times by 15 tests: case Value::Integer_Type:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
2614215
321 return
executed 2614214 times by 15 tests: return RuntimeHelpers::stringFromNumber(engine, value.int_32());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
RuntimeHelpers::stringFromNumber(engine, value.int_32());
executed 2614214 times by 15 tests: return RuntimeHelpers::stringFromNumber(engine, value.int_32());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
2614214
322 default
executed 399725 times by 13 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
:
executed 399725 times by 13 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
399725
323 return
executed 399726 times by 13 tests: return RuntimeHelpers::stringFromNumber(engine, value.doubleValue());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
RuntimeHelpers::stringFromNumber(engine, value.doubleValue());
executed 399726 times by 13 tests: return RuntimeHelpers::stringFromNumber(engine, value.doubleValue());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
399726
324 }-
325}-
326-
327-
328-
329static Heap::String *convert_to_string_add(ExecutionEngine *engine, Value value)-
330{-
331 return
executed 2395087 times by 18 tests: return RuntimeHelpers::convertToString(engine, value, PREFERREDTYPE_HINT);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
RuntimeHelpers::convertToString(engine, value, PREFERREDTYPE_HINT);
executed 2395087 times by 18 tests: return RuntimeHelpers::convertToString(engine, value, PREFERREDTYPE_HINT);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
2395087
332}-
333-
334QV4::ReturnedValue RuntimeHelpers::addHelper(ExecutionEngine *engine, const Value &left, const Value &right)-
335{-
336 Scope scope(engine);-
337-
338 ScopedValue pleft(scope, RuntimeHelpers::toPrimitive(left, PREFERREDTYPE_HINT));-
339 ScopedValue pright(scope, RuntimeHelpers::toPrimitive(right, PREFERREDTYPE_HINT));-
340 String *sleft = pleft->stringValue();-
341 String *sright = pright->stringValue();-
342 if (sleft
sleftDescription
TRUEevaluated 57837409 times by 35 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
FALSEevaluated 185896 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
|| sright
srightDescription
TRUEevaluated 185494 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 402 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
) {
402-57837409
343 if (!sleft
!sleftDescription
TRUEevaluated 185494 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 57842851 times by 35 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
) {
185494-57842851
344 pleft = convert_to_string_add(engine, pleft);-
345 sleft = static_cast<String *>(pleft.ptr);-
346 }
executed 185496 times by 8 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
185496
347 if (!sright
!srightDescription
TRUEevaluated 2209596 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
FALSEevaluated 55841666 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
) {
2209596-55841666
348 pright = convert_to_string_add(engine, pright);-
349 sright = static_cast<String *>(pright.ptr);-
350 }
executed 2209594 times by 16 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
2209594
351 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 58183347 times by 37 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
)
32-58183347
352 return
executed 32 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 32 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
32
353 if (!sleft->d()->length()
!sleft->d()->length()Description
TRUEevaluated 271322 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_scenegraph
FALSEevaluated 57979299 times by 37 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
)
271322-57979299
354 return
executed 271321 times by 7 tests: return sright->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_scenegraph
sright->asReturnedValue();
executed 271321 times by 7 tests: return sright->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_scenegraph
271321
355 if (!sright->d()->length()
!sright->d()->length()Description
TRUEevaluated 1139831 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
FALSEevaluated 57028952 times by 35 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
)
1139831-57028952
356 return
executed 1139709 times by 6 tests: return sleft->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
sleft->asReturnedValue();
executed 1139709 times by 6 tests: return sleft->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlproperty
1139709
357 MemoryManager *mm = engine->memoryManager;-
358 return
executed 56942701 times by 35 tests: return (mm->alloc<ComplexString>(sleft->d(), sright->d()))->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
(mm->alloc<ComplexString>(sleft->d(), sright->d()))->asReturnedValue();
executed 56942701 times by 35 tests: return (mm->alloc<ComplexString>(sleft->d(), sright->d()))->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
56942701
359 }-
360 double x = RuntimeHelpers::toNumber(pleft);-
361 double y = RuntimeHelpers::toNumber(pright);-
362 return
executed 402 times by 3 tests: return Encode(x + y);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
Encode(x + y);
executed 402 times by 3 tests: return Encode(x + y);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
402
363}-
364-
365void Runtime::method_storeProperty(ExecutionEngine *engine, const Value &object, int nameIndex, const Value &value)-
366{-
367 Scope scope(engine);-
368 QV4::Function *v4Function = engine->currentStackFrame->v4Function;-
369 ScopedString name(scope, v4Function->compilationUnit->runtimeStrings[nameIndex]);-
370 ScopedObject o(scope, object.toObject(engine));-
371 if ((!o
!oDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 52630 times by 66 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
|| !o->put(name, value)
!o->put(name, value)Description
TRUEevaluated 80 times by 5 tests
Evaluated by:
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
FALSEevaluated 52550 times by 66 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
) && v4Function->isStrict()
v4Function->isStrict()Description
TRUEnever evaluated
FALSEevaluated 84 times by 5 tests
Evaluated by:
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
)
0-52630
372 engine->throwTypeError();
never executed: engine->throwTypeError();
0
373}
executed 52634 times by 66 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
52634
374-
375static __attribute__((noinline)) ReturnedValue getElementIntFallback(ExecutionEngine *engine, const Value &object, uint idx)-
376{-
377 ((idx < -
378 (0x7fffffff * 2U + 1U)-
379 ) ? static_cast<void>(0) : qt_assert("idx < UINT_MAX", __FILE__, 589));-
380 Scope scope(engine);-
381-
382 ScopedObject o(scope, object);-
383 if (!o
!oDescription
TRUEevaluated 24770144 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
FALSEevaluated 95522 times by 19 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
) {
95522-24770144
384 if (const
const String *...t.as<String>()Description
TRUEevaluated 24804282 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
String *str = object.as<String>()
const String *...t.as<String>()Description
TRUEevaluated 24804282 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
) {
57-24804282
385 if (idx >= (uint)str->toQString().length()
idx >= (uint)s...ing().length()Description
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 25127630 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
) {
38-25127630
386 return
executed 38 times by 2 tests: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
Encode::undefined();
executed 38 times by 2 tests: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
38
387 }-
388 const QString s = str->toQString().mid(idx, 1);-
389 return
executed 25086857 times by 3 tests: return scope.engine->newString(s)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
scope.engine->newString(s)->asReturnedValue();
executed 25086857 times by 3 tests: return scope.engine->newString(s)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
25086857
390 }-
391-
392 if (object.isNullOrUndefined()
object.isNullOrUndefined()Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
) {
4-54
393 QString message = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Cannot read property '%1' of %2")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Cannot read property '%1' of %2" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(idx).arg(object.toQStringNoThrow());-
394 return
executed 53 times by 1 test: return engine->throwTypeError(message);
Executed by:
  • tst_ecmascripttests
engine->throwTypeError(message);
executed 53 times by 1 test: return engine->throwTypeError(message);
Executed by:
  • tst_ecmascripttests
53
395 }-
396-
397 o = RuntimeHelpers::convertToObject(scope.engine, object);-
398 ((!!o) ? static_cast<void>(0) : qt_assert("!!o", __FILE__, 608));-
399 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
4
400-
401 if (o->arrayData()
o->arrayData()Description
TRUEevaluated 70912 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
FALSEevaluated 24621 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
&& !o->arrayData()->attrs
!o->arrayData()->attrsDescription
TRUEevaluated 70399 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
FALSEevaluated 519 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
519-70912
402 ScopedValue v(scope, o->arrayData()->get(idx));-
403 if (!v->isEmpty()
!v->isEmpty()Description
TRUEevaluated 128 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 70267 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
)
128-70267
404 return
executed 128 times by 1 test: return v->asReturnedValue();
Executed by:
  • tst_ecmascripttests
v->asReturnedValue();
executed 128 times by 1 test: return v->asReturnedValue();
Executed by:
  • tst_ecmascripttests
128
405 }
executed 70267 times by 16 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
70267
406-
407 return
executed 95391 times by 19 tests: return o->get(idx);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
o->get(idx);
executed 95391 times by 19 tests: return o->get(idx);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
95391
408}-
409-
410static __attribute__((noinline)) ReturnedValue getElementFallback(ExecutionEngine *engine, const Value &object, const Value &index)-
411{-
412 ((!index.isPositiveInt()) ? static_cast<void>(0) : qt_assert("!index.isPositiveInt()", __FILE__, 622));-
413-
414 Scope scope(engine);-
415-
416 ScopedObject o(scope, object);-
417 if (!o
!oDescription
TRUEevaluated 146 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 56286 times by 14 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_signalspy
  • tst_testfiltering
) {
146-56286
418 if (object.isNullOrUndefined()
object.isNullOrUndefined()Description
TRUEevaluated 130 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
17-130
419 QString message = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Cannot read property '%1' of %2")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Cannot read property '%1' of %2" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(index.toQStringNoThrow()).arg(object.toQStringNoThrow());-
420 return
executed 130 times by 2 tests: return engine->throwTypeError(message);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
engine->throwTypeError(message);
executed 130 times by 2 tests: return engine->throwTypeError(message);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
130
421 }-
422-
423 o = RuntimeHelpers::convertToObject(scope.engine, object);-
424 ((!!o) ? static_cast<void>(0) : qt_assert("!!o", __FILE__, 634));-
425 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
16
426-
427 ScopedPropertyKey name(scope, index.toPropertyKey(engine));-
428 if (scope.hasException()
scope.hasException()Description
TRUEevaluated 532 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 55842 times by 14 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_signalspy
  • tst_testfiltering
)
532-55842
429 return
executed 532 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 532 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
532
430 return
executed 55810 times by 14 tests: return o->get(name);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_signalspy
  • tst_testfiltering
o->get(name);
executed 55810 times by 14 tests: return o->get(name);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_signalspy
  • tst_testfiltering
55810
431}-
432-
433ReturnedValue Runtime::method_loadElement(ExecutionEngine *engine, const Value &object, const Value &index)-
434{-
435 if (index.isPositiveInt()
index.isPositiveInt()Description
TRUEevaluated 34286590 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
FALSEevaluated 56402 times by 14 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_signalspy
  • tst_testfiltering
) {
56402-34286590
436 uint idx = static_cast<uint>(index.int_32());-
437 if (Heap::Base *b = object.heapObject()
Heap::Base *b ...t.heapObject()Description
TRUEevaluated 34497689 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
FALSEevaluated 56 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
) {
56-34497689
438 if (b->internalClass->vtable->isObject
b->internalCla...able->isObjectDescription
TRUEevaluated 9612362 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
FALSEevaluated 24955547 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
) {
9612362-24955547
439 Heap::Object *o = static_cast<Heap::Object *>(b);-
440 if (o->arrayData && o->arrayData->type == Heap::ArrayData::Simple
o->arrayData->...ayData::SimpleDescription
TRUEevaluated 9557515 times by 15 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 70115 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
) {
70115-9557515
441 Heap::SimpleArrayData *s = o->arrayData.cast<Heap::SimpleArrayData>();-
442 if (idx < s->values.size
idx < s->values.sizeDescription
TRUEevaluated 9594647 times by 15 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 436 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
436-9594647
443 if (!s->data(idx).isEmpty()
!s->data(idx).isEmpty()Description
TRUEevaluated 9438642 times by 15 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 364 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
364-9438642
444 return
executed 9423221 times by 15 tests: return s->data(idx).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
s->data(idx).asReturnedValue();
executed 9423221 times by 15 tests: return s->data(idx).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlxmlhttprequest
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
9423221
445 }
executed 800 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
800
446 }
executed 95544 times by 19 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
95544
447 }
executed 25053953 times by 19 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
25053953
448 return
executed 25071920 times by 19 tests: return getElementIntFallback(engine, object, idx);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
getElementIntFallback(engine, object, idx);
executed 25071920 times by 19 tests: return getElementIntFallback(engine, object, idx);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
25071920
449 }-
450-
451 return
executed 56403 times by 14 tests: return getElementFallback(engine, object, index);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_signalspy
  • tst_testfiltering
getElementFallback(engine, object, index);
executed 56403 times by 14 tests: return getElementFallback(engine, object, index);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_signalspy
  • tst_testfiltering
56403
452}-
453-
454static __attribute__((noinline)) bool setElementFallback(ExecutionEngine *engine, const Value &object, const Value &index, const Value &value)-
455{-
456 Scope scope(engine);-
457 ScopedObject o(scope, object.toObject(engine));-
458 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 72043 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
)
0-72043
459 return
never executed: return false;
false;
never executed: return false;
0
460-
461 if (index.isPositiveInt()
index.isPositiveInt()Description
TRUEevaluated 46447 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
FALSEevaluated 25633 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
) {
25633-46447
462 uint idx = static_cast<uint>(index.int_32());-
463 if (o->d()->arrayData && o->d()->arrayData->type == Heap::ArrayData::Simple
o->d()->arrayD...ayData::SimpleDescription
TRUEevaluated 25729 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 553 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
) {
553-25729
464 Heap::SimpleArrayData *s = o->d()->arrayData.cast<Heap::SimpleArrayData>();-
465 if (idx < s->values.size
idx < s->values.sizeDescription
TRUEnever evaluated
FALSEevaluated 25726 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
) {
0-25726
466 s->setData(engine, idx, value);-
467 return
never executed: return true;
true;
never executed: return true;
0
468 }-
469 }
executed 25727 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
25727
470 return
executed 46450 times by 7 tests: return o->put(idx, value);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
o->put(idx, value);
executed 46450 times by 7 tests: return o->put(idx, value);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
46450
471 }-
472-
473 ScopedPropertyKey name(scope, index.toPropertyKey(engine));-
474 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 25571 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
)
60-25571
475 return
executed 60 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
false;
executed 60 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
60
476 return
executed 25590 times by 8 tests: return o->put(name, value);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
o->put(name, value);
executed 25590 times by 8 tests: return o->put(name, value);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
25590
477}-
478-
479void Runtime::method_storeElement(ExecutionEngine *engine, const Value &object, const Value &index, const Value &value)-
480{-
481 if (index.isPositiveInt()
index.isPositiveInt()Description
TRUEevaluated 49814 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
FALSEevaluated 25588 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
) {
25588-49814
482 uint idx = static_cast<uint>(index.int_32());-
483 if (Heap::Base *b = object.heapObject()
Heap::Base *b ...t.heapObject()Description
TRUEevaluated 49822 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
FALSEnever evaluated
) {
0-49822
484 if (b->internalClass->vtable->isObject
b->internalCla...able->isObjectDescription
TRUEevaluated 49823 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
4-49823
485 Heap::Object *o = static_cast<Heap::Object *>(b);-
486 if (o->arrayData && o->arrayData->type == Heap::ArrayData::Simple
o->arrayData->...ayData::SimpleDescription
TRUEevaluated 29104 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquicklayouts
FALSEevaluated 553 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
) {
553-29104
487 Heap::SimpleArrayData *s = o->arrayData.cast<Heap::SimpleArrayData>();-
488 if (idx < s->values.size
idx < s->values.sizeDescription
TRUEevaluated 3372 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquicklayouts
FALSEevaluated 25728 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
) {
3372-25728
489 s->setData(engine, idx, value);-
490 return;
executed 3370 times by 3 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquicklayouts
3370
491 }-
492 }
executed 25728 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
25728
493 }
executed 46448 times by 7 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
46448
494 }
executed 46454 times by 7 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
46454
495 }
executed 46456 times by 7 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
46456
496-
497 if (!setElementFallback(engine, object, index, value)
!setElementFal... index, value)Description
TRUEevaluated 5025 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 67057 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
&& engine->currentStackFrame->v4Function->isStrict()
engine->curren...on->isStrict()Description
TRUEevaluated 2478 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2564 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
)
2478-67057
498 engine->throwTypeError();
executed 2473 times by 1 test: engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
2473
499}
executed 72098 times by 11 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
72098
500-
501ReturnedValue Runtime::method_getIterator(ExecutionEngine *engine, const Value &in, int iterator)-
502{-
503 Scope scope(engine);-
504 ScopedObject o(scope, (Object *)nullptr);-
505 if (!in.isNullOrUndefined()
!in.isNullOrUndefined()Description
TRUEevaluated 23158 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 460 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
)
460-23158
506 o = in.toObject(engine);
executed 23160 times by 12 tests: o = in.toObject(engine);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
23160
507 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 23661 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
)
0-23661
508 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
509 if (iterator
iteratorDescription
TRUEevaluated 14565 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9100 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
) {
9100-14565
510 if (!o
!oDescription
TRUEevaluated 416 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 14132 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
416-14132
511 return
executed 416 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 416 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
416
512 ScopedFunctionObject f(scope, o->get(engine->symbol_iterator()));-
513 if (!f
!fDescription
TRUEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 14094 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
108-14094
514 return
executed 108 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 108 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
108
515 JSCallData cData(scope, 0, nullptr, o);-
516 ScopedObject it(scope, f->call(cData));-
517 if (!it
!itDescription
TRUEevaluated 256 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 13779 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
256-13779
518 return
executed 256 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 256 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
256
519 return
executed 13753 times by 1 test: return it->asReturnedValue();
Executed by:
  • tst_ecmascripttests
it->asReturnedValue();
executed 13753 times by 1 test: return it->asReturnedValue();
Executed by:
  • tst_ecmascripttests
13753
520 }-
521 return
executed 9080 times by 12 tests: return engine->newForInIteratorObject(o)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
engine->newForInIteratorObject(o)->asReturnedValue();
executed 9080 times by 12 tests: return engine->newForInIteratorObject(o)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
9080
522}-
523-
524ReturnedValue Runtime::method_iteratorNext(ExecutionEngine *engine, const Value &iterator, Value *value)-
525{-
526 ((iterator.isObject()) ? static_cast<void>(0) : qt_assert("iterator.isObject()", __FILE__, 736));-
527-
528 Scope scope(engine);-
529 ScopedFunctionObject f(scope, static_cast<const Object &>(iterator).get(engine->id_next()));-
530 if (!f
!fDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 51374 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
)
36-51374
531 return
executed 36 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 36 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
36
532 JSCallData cData(scope, 0, nullptr, &iterator);-
533 ScopedObject o(scope, f->call(cData));-
534 if (!o
!oDescription
TRUEevaluated 815 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 50443 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
)
815-50443
535 return
executed 815 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 815 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
815
536 ScopedValue d(scope, o->get(engine->id_done()));-
537 bool done = d->toBoolean();-
538 if (done
doneDescription
TRUEevaluated 16734 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 33726 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
) {
16734-33726
539 *value = Encode::undefined();-
540 }
executed 16732 times by 12 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
else {
16732
541 *value = o->get(engine->id_value());-
542 }
executed 33811 times by 12 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
33811
543 return
executed 50519 times by 12 tests: return Encode(done);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
Encode(done);
executed 50519 times by 12 tests: return Encode(done);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
50519
544}-
545-
546ReturnedValue Runtime::method_iteratorClose(ExecutionEngine *engine, const Value &iterator, const Value &done)-
547{-
548 ((iterator.isObject()) ? static_cast<void>(0) : qt_assert("iterator.isObject()", __FILE__, 758));-
549 ((done.isBoolean()) ? static_cast<void>(0) : qt_assert("done.isBoolean()", __FILE__, 759));-
550 if (done.booleanValue()
done.booleanValue()Description
TRUEevaluated 3107 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3606 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
3107-3606
551 return
executed 3107 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 3107 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
3107
552-
553 Scope scope(engine);-
554 bool hadException = engine->hasException;-
555 ScopedValue e(scope);-
556 if (hadException
hadExceptionDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3584 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
16-3584
557 e = *engine->exceptionValue;-
558 engine->hasException = false;-
559 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
16
560 ScopedFunctionObject f(scope, static_cast<const Object &>(iterator).get(engine->id_return()));-
561 ScopedObject o(scope);-
562 if (f
fDescription
TRUEevaluated 671 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2937 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
671-2937
563 JSCallData cData(scope, 0, nullptr, &iterator);-
564 o = f->call(cData);-
565 }
executed 672 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
672
566 if (hadException
hadExceptionDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3591 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !f
!fDescription
TRUEevaluated 2933 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 660 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
16-3591
567 *engine->exceptionValue = e;-
568 engine->hasException = hadException;-
569 return
executed 2948 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 2948 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
2948
570 }-
571 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 620 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
40-620
572 return
executed 40 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 40 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
40
573-
574 if (!o
!oDescription
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 576 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
44-576
575 return
executed 44 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 44 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
44
576 return
executed 576 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 576 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
576
577}-
578-
579ReturnedValue Runtime::method_destructureRestElement(ExecutionEngine *engine, const Value &iterator)-
580{-
581 ((iterator.isObject()) ? static_cast<void>(0) : qt_assert("iterator.isObject()", __FILE__, 791));-
582-
583 Scope scope(engine);-
584 ScopedArrayObject array(scope, engine->newArrayObject());-
585 array->arrayCreate();-
586 uint index = 0;-
587 while (1) {-
588 ScopedValue n(scope);-
589 ScopedValue done(scope, method_iteratorNext(engine, iterator, n));-
590 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 360 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7580 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
360-7580
591 return
executed 360 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 360 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
360
592 ((done->isBoolean()) ? static_cast<void>(0) : qt_assert("done->isBoolean()", __FILE__, 802));-
593 if (done->booleanValue()
done->booleanValue()Description
TRUEevaluated 2252 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 5328 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
2252-5328
594 break;
executed 2252 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
2252
595 array->arraySet(index, n);-
596 ++index;-
597 }
executed 5324 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
5324
598 return
executed 2252 times by 1 test: return array->asReturnedValue();
Executed by:
  • tst_ecmascripttests
array->asReturnedValue();
executed 2252 times by 1 test: return array->asReturnedValue();
Executed by:
  • tst_ecmascripttests
2252
599}-
600-
601void Runtime::method_storeNameSloppy(ExecutionEngine *engine, int nameIndex, const Value &value)-
602{-
603 Scope scope(engine);-
604 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
605 ExecutionContext::Error e = static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).setProperty(name, value);-
606-
607 if (e == ExecutionContext::RangeError
e == Execution...xt::RangeErrorDescription
TRUEevaluated 655 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
FALSEevaluated 37125187 times by 41 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • ...
)
655-37125187
608 engine->globalObject->put(name, value);
executed 655 times by 3 tests: engine->globalObject->put(name, value);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
655
609}
executed 37129448 times by 41 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • ...
37129448
610-
611void Runtime::method_storeNameStrict(ExecutionEngine *engine, int nameIndex, const Value &value)-
612{-
613 Scope scope(engine);-
614 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
615 ExecutionContext::Error e = static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).setProperty(name, value);-
616 if (e == ExecutionContext::TypeError
e == Execution...ext::TypeErrorDescription
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 36249757 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4assembler
)
100-36249757
617 engine->throwTypeError();
executed 99 times by 1 test: engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
99
618 else if (e == ExecutionContext::RangeError
e == Execution...xt::RangeErrorDescription
TRUEevaluated 132 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 36250661 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4assembler
)
132-36250661
619 engine->throwReferenceError(name);
executed 132 times by 1 test: engine->throwReferenceError(name);
Executed by:
  • tst_ecmascripttests
132
620}
executed 36253804 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4assembler
36253804
621-
622ReturnedValue Runtime::method_loadProperty(ExecutionEngine *engine, const Value &object, int nameIndex)-
623{-
624 Scope scope(engine);-
625 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
626-
627 ScopedObject o(scope, object);-
628 if (o
oDescription
TRUEevaluated 1174858 times by 97 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
FALSEevaluated 44920 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
  • tst_testfiltering
)
44920-1174858
629 return
executed 1174858 times by 97 tests: return o->get(name);
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
o->get(name);
executed 1174858 times by 97 tests: return o->get(name);
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
1174858
630-
631 if (object.isNullOrUndefined()
object.isNullOrUndefined()Description
TRUEevaluated 190 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmltypeloader
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
FALSEevaluated 44730 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
) {
190-44730
632 QString message = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Cannot read property '%1' of %2")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Cannot read property '%1' of %2" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(name->toQString()).arg(object.toQStringNoThrow());-
633 return
executed 190 times by 14 tests: return engine->throwTypeError(message);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmltypeloader
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
engine->throwTypeError(message);
executed 190 times by 14 tests: return engine->throwTypeError(message);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmltypeloader
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickvisualdatamodel
190
634 }-
635-
636 o = RuntimeHelpers::convertToObject(scope.engine, object);-
637 if (!o
!oDescription
TRUEnever evaluated
FALSEevaluated 44730 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
)
0-44730
638 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
639 return
executed 44730 times by 11 tests: return o->get(name);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
o->get(name);
executed 44730 times by 11 tests: return o->get(name);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltranslation
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_testfiltering
44730
640}-
641-
642ReturnedValue Runtime::method_loadName(ExecutionEngine *engine, int nameIndex)-
643{-
644 Scope scope(engine);-
645 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
646 return
executed 5530077 times by 89 tests: return static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).getProperty(name);
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).getProperty(name);
executed 5530077 times by 89 tests: return static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).getProperty(name);
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
5530077
647}-
648-
649ReturnedValue Runtime::method_loadSuperProperty(ExecutionEngine *engine, const Value &property)-
650{-
651 Scope scope(engine);-
652 ScopedObject base(scope, engine->currentStackFrame->thisObject());-
653 if (!base
!baseDescription
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 243 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
44-243
654 return
executed 44 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 44 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
44
655 ScopedObject proto(scope, base->getPrototypeOf());-
656 if (!proto
!protoDescription
TRUEnever evaluated
FALSEevaluated 243 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-243
657 return
never executed: return engine->throwTypeError();
engine->throwTypeError();
never executed: return engine->throwTypeError();
0
658 ScopedPropertyKey key(scope, property.toPropertyKey(engine));-
659 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 242 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-242
660 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
661 return
executed 242 times by 1 test: return proto->get(key, base);
Executed by:
  • tst_ecmascripttests
proto->get(key, base);
executed 242 times by 1 test: return proto->get(key, base);
Executed by:
  • tst_ecmascripttests
242
662}-
663-
664void Runtime::method_storeSuperProperty(ExecutionEngine *engine, const Value &property, const Value &value)-
665{-
666 Scope scope(engine);-
667 ScopedObject base(scope, engine->currentStackFrame->thisObject());-
668 if (!base
!baseDescription
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
0-40
669 engine->throwTypeError();-
670 return;
never executed: return;
0
671 }-
672 ScopedObject proto(scope, base->getPrototypeOf());-
673 if (!proto
!protoDescription
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
0-40
674 engine->throwTypeError();-
675 return;
never executed: return;
0
676 }-
677 ScopedPropertyKey key(scope, property.toPropertyKey(engine));-
678 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-40
679 return;
never executed: return;
0
680 bool result = proto->put(key, value, base);-
681 if (!result
!resultDescription
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& engine->currentStackFrame->v4Function->isStrict()
engine->curren...on->isStrict()Description
TRUEnever evaluated
FALSEnever evaluated
)
0-40
682 engine->throwTypeError();
never executed: engine->throwTypeError();
0
683}
executed 40 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
40
684-
685-
686-
687uint RuntimeHelpers::equalHelper(const Value &x, const Value &y)-
688{-
689 ((x.type() != y.type() || (x.isManaged() && (x.isString() != y.isString()))) ? static_cast<void>(0) : qt_assert("x.type() != y.type() || (x.isManaged() && (x.isString() != y.isString()))", __FILE__, 899));-
690-
691 if (x.isNumber()
x.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
&& y.isNumber()
y.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
692 return
never executed: return x.asDouble() == y.asDouble();
x.asDouble() == y.asDouble();
never executed: return x.asDouble() == y.asDouble();
0
693 if (x.isNull()
x.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
&& y.isUndefined()
y.isUndefined()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
694 return
never executed: return true;
true;
never executed: return true;
0
695 } else if (x.isUndefined()
x.isUndefined()Description
TRUEnever evaluated
FALSEnever evaluated
&& y.isNull()
y.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
696 return
never executed: return true;
true;
never executed: return true;
0
697 } else if (x.isNumber()
x.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
&& y.isString()
y.isString()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
698 double dy = RuntimeHelpers::toNumber(y);-
699 return
never executed: return x.asDouble() == dy;
x.asDouble() == dy;
never executed: return x.asDouble() == dy;
0
700 } else if (x.isString()
x.isString()Description
TRUEnever evaluated
FALSEnever evaluated
&& y.isNumber()
y.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
701 double dx = RuntimeHelpers::toNumber(x);-
702 return
never executed: return dx == y.asDouble();
dx == y.asDouble();
never executed: return dx == y.asDouble();
0
703 } else if (x.isBoolean()
x.isBoolean()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
704 return
never executed: return Runtime::method_compareEqual(Primitive::fromDouble((double) x.booleanValue()), y);
Runtime::method_compareEqual(Primitive::fromDouble((double) x.booleanValue()), y);
never executed: return Runtime::method_compareEqual(Primitive::fromDouble((double) x.booleanValue()), y);
0
705 } else if (y.isBoolean()
y.isBoolean()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
706 return
never executed: return Runtime::method_compareEqual(x, Primitive::fromDouble((double) y.booleanValue()));
Runtime::method_compareEqual(x, Primitive::fromDouble((double) y.booleanValue()));
never executed: return Runtime::method_compareEqual(x, Primitive::fromDouble((double) y.booleanValue()));
0
707 } else {-
708-
709-
710-
711 Object *xo = x.objectValue();-
712 Object *yo = y.objectValue();-
713 if (yo
yoDescription
TRUEnever evaluated
FALSEnever evaluated
&& (x.isNumber()
x.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
|| x.isString()
x.isString()Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
714 Scope scope(yo->engine());-
715 ScopedValue py(scope, RuntimeHelpers::objectDefaultValue(yo, PREFERREDTYPE_HINT));-
716 return
never executed: return Runtime::method_compareEqual(x, py);
Runtime::method_compareEqual(x, py);
never executed: return Runtime::method_compareEqual(x, py);
0
717 } else if (xo
xoDescription
TRUEnever evaluated
FALSEnever evaluated
&& (y.isNumber()
y.isNumber()Description
TRUEnever evaluated
FALSEnever evaluated
|| y.isString()
y.isString()Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
718 Scope scope(xo->engine());-
719 ScopedValue px(scope, RuntimeHelpers::objectDefaultValue(xo, PREFERREDTYPE_HINT));-
720 return
never executed: return Runtime::method_compareEqual(px, y);
Runtime::method_compareEqual(px, y);
never executed: return Runtime::method_compareEqual(px, y);
0
721 }-
722-
723 }
never executed: end of block
0
724-
725 return
never executed: return false;
false;
never executed: return false;
0
726}-
727-
728Bool RuntimeHelpers::strictEqual(const Value &x, const Value &y)-
729{-
730 ;-
731-
732 if (x.rawValue() == y.rawValue()
x.rawValue() == y.rawValue()Description
TRUEevaluated 16337 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 31668862 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
)
16337-31668862
733-
734 return
executed 16337 times by 10 tests: return !x.isNaN();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
!x.isNaN();
executed 16337 times by 10 tests: return !x.isNaN();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
16337
735-
736 if (x.isNumber()
x.isNumber()Description
TRUEevaluated 18551307 times by 15 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qv4debugger
FALSEevaluated 13114268 times by 17 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_signalspy
  • tst_testfiltering
)
13114268-18551307
737 return
executed 18551304 times by 15 tests: return y.isNumber() && x.asDouble() == y.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qv4debugger
y.isNumber() && x.asDouble() == y.asDouble();
executed 18551304 times by 15 tests: return y.isNumber() && x.asDouble() == y.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qv4debugger
18551304
738 if (x.isManaged()
x.isManaged()Description
TRUEevaluated 12838325 times by 15 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 297603 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
)
297603-12838325
739 return
executed 12839433 times by 15 tests: return y.isManaged() && x.cast<Managed>()->isEqualTo(y.cast<Managed>());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_signalspy
  • tst_testfiltering
y.isManaged() && x.cast<Managed>()->isEqualTo(y.cast<Managed>());
executed 12839433 times by 15 tests: return y.isManaged() && x.cast<Managed>()->isEqualTo(y.cast<Managed>());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_signalspy
  • tst_testfiltering
12839433
740 return
executed 297615 times by 9 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
false;
executed 297615 times by 9 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
297615
741}-
742-
743QV4::Bool Runtime::method_compareGreaterThan(const Value &l, const Value &r)-
744{-
745 ;-
746 if (l.isInteger()
l.isInteger()Description
TRUEevaluated 105 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3684 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
&& r.isInteger()
r.isInteger()Description
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 67 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
39-3684
747 return
executed 38 times by 1 test: return l.integerValue() > r.integerValue();
Executed by:
  • tst_ecmascripttests
l.integerValue() > r.integerValue();
executed 38 times by 1 test: return l.integerValue() > r.integerValue();
Executed by:
  • tst_ecmascripttests
38
748 if (l.isNumber()
l.isNumber()Description
TRUEevaluated 2730 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
FALSEevaluated 1023 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& r.isNumber()
r.isNumber()Description
TRUEevaluated 2642 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
FALSEevaluated 87 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
87-2730
749 return
executed 2642 times by 9 tests: return l.asDouble() > r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
l.asDouble() > r.asDouble();
executed 2642 times by 9 tests: return l.asDouble() > r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
2642
750 String *sl = l.stringValue();-
751 String *sr = r.stringValue();-
752 if (sl
slDescription
TRUEevaluated 703 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 405 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& sr
srDescription
TRUEevaluated 639 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
64-703
753-
754-
755-
756-
757 return
executed 639 times by 1 test: return sr->compare(sl);
Executed by:
  • tst_ecmascripttests
sr->compare(sl);
executed 639 times by 1 test: return sr->compare(sl);
Executed by:
  • tst_ecmascripttests
639
758-
759 }-
760-
761 Object *ro = r.objectValue();-
762 Object *lo = l.objectValue();-
763 if (ro
roDescription
TRUEevaluated 148 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 323 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| lo
loDescription
TRUEevaluated 76 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 247 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
76-323
764-
765-
766-
767 QV4::ExecutionEngine *e = (lo
loDescription
TRUEevaluated 146 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? lo : ro)->engine();
76-146
768 QV4::Scope scope(e);-
769 QV4::ScopedValue pl(scope, lo ? RuntimeHelpers::objectDefaultValue(lo, QV4::NUMBER_HINT) : l.asReturnedValue());-
770 QV4::ScopedValue pr(scope, ro ? RuntimeHelpers::objectDefaultValue(ro, QV4::NUMBER_HINT) : r.asReturnedValue());-
771 return
executed 223 times by 1 test: return Runtime::method_compareGreaterThan(pl, pr);
Executed by:
  • tst_ecmascripttests
Runtime::method_compareGreaterThan(pl, pr);
executed 223 times by 1 test: return Runtime::method_compareGreaterThan(pl, pr);
Executed by:
  • tst_ecmascripttests
223
772-
773 }-
774-
775 double dl = RuntimeHelpers::toNumber(l);-
776 double dr = RuntimeHelpers::toNumber(r);-
777 return
executed 248 times by 1 test: return dl > dr;
Executed by:
  • tst_ecmascripttests
dl > dr;
executed 248 times by 1 test: return dl > dr;
Executed by:
  • tst_ecmascripttests
248
778}-
779-
780QV4::Bool Runtime::method_compareLessThan(const Value &l, const Value &r)-
781{-
782 ;-
783 if (l.isInteger()
l.isInteger()Description
TRUEevaluated 340 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlvaluetypeproviders
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 3229 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickbehaviors
  • tst_qquicklistview
&& r.isInteger()
r.isInteger()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 316 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlvaluetypeproviders
  • tst_qquicklayouts
  • tst_qquicklistview
)
24-3229
784 return
executed 24 times by 1 test: return l.integerValue() < r.integerValue();
Executed by:
  • tst_ecmascripttests
l.integerValue() < r.integerValue();
executed 24 times by 1 test: return l.integerValue() < r.integerValue();
Executed by:
  • tst_ecmascripttests
24
785 if (l.isNumber()
l.isNumber()Description
TRUEevaluated 408 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlvaluetypeproviders
  • tst_qquickbehaviors
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 3139 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
&& r.isNumber()
r.isNumber()Description
TRUEevaluated 320 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlvaluetypeproviders
  • tst_qquickbehaviors
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
88-3139
786 return
executed 320 times by 6 tests: return l.asDouble() < r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlvaluetypeproviders
  • tst_qquickbehaviors
  • tst_qquicklayouts
  • tst_qquicklistview
l.asDouble() < r.asDouble();
executed 320 times by 6 tests: return l.asDouble() < r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlvaluetypeproviders
  • tst_qquickbehaviors
  • tst_qquicklayouts
  • tst_qquicklistview
320
787 String *sl = l.stringValue();-
788 String *sr = r.stringValue();-
789 if (sl
slDescription
TRUEevaluated 2834 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllocale
FALSEevaluated 392 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& sr
srDescription
TRUEevaluated 2617 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
FALSEevaluated 216 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmllocale
) {
216-2834
790-
791-
792-
793-
794 return
executed 2617 times by 3 tests: return sl->compare(sr);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
sl->compare(sr);
executed 2617 times by 3 tests: return sl->compare(sr);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
2617
795-
796 }-
797-
798 Object *ro = r.objectValue();-
799 Object *lo = l.objectValue();-
800 if (ro
roDescription
TRUEevaluated 135 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 472 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmllocale
|| lo
loDescription
TRUEevaluated 80 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 392 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmllocale
) {
80-472
801-
802-
803-
804 QV4::ExecutionEngine *e = (lo
loDescription
TRUEevaluated 136 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 80 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? lo : ro)->engine();
80-136
805 QV4::Scope scope(e);-
806 QV4::ScopedValue pl(scope, lo ? RuntimeHelpers::objectDefaultValue(lo, QV4::NUMBER_HINT) : l.asReturnedValue());-
807 QV4::ScopedValue pr(scope, ro ? RuntimeHelpers::objectDefaultValue(ro, QV4::NUMBER_HINT) : r.asReturnedValue());-
808 return
executed 216 times by 1 test: return Runtime::method_compareLessThan(pl, pr);
Executed by:
  • tst_ecmascripttests
Runtime::method_compareLessThan(pl, pr);
executed 216 times by 1 test: return Runtime::method_compareLessThan(pl, pr);
Executed by:
  • tst_ecmascripttests
216
809-
810 }-
811-
812 double dl = RuntimeHelpers::toNumber(l);-
813 double dr = RuntimeHelpers::toNumber(r);-
814 return
executed 392 times by 2 tests: return dl < dr;
Executed by:
  • tst_ecmascripttests
  • tst_qqmllocale
dl < dr;
executed 392 times by 2 tests: return dl < dr;
Executed by:
  • tst_ecmascripttests
  • tst_qqmllocale
392
815}-
816-
817QV4::Bool Runtime::method_compareGreaterEqual(const Value &l, const Value &r)-
818{-
819 ;-
820 if (l.isInteger()
l.isInteger()Description
TRUEevaluated 92 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 891 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquicklayouts
  • tst_qquicktext
&& r.isInteger()
r.isInteger()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
24-891
821 return
executed 24 times by 1 test: return l.integerValue() >= r.integerValue();
Executed by:
  • tst_ecmascripttests
l.integerValue() >= r.integerValue();
executed 24 times by 1 test: return l.integerValue() >= r.integerValue();
Executed by:
  • tst_ecmascripttests
24
822 if (l.isNumber()
l.isNumber()Description
TRUEevaluated 426 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquicklayouts
  • tst_qquicktext
FALSEevaluated 534 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& r.isNumber()
r.isNumber()Description
TRUEevaluated 338 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquicklayouts
  • tst_qquicktext
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
88-534
823 return
executed 338 times by 4 tests: return l.asDouble() >= r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquicklayouts
  • tst_qquicktext
l.asDouble() >= r.asDouble();
executed 338 times by 4 tests: return l.asDouble() >= r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquicklayouts
  • tst_qquicktext
338
824 String *sl = l.stringValue();-
825 String *sr = r.stringValue();-
826 if (sl
slDescription
TRUEevaluated 232 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 392 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& sr
srDescription
TRUEevaluated 168 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
64-392
827-
828-
829-
830-
831 return
executed 168 times by 1 test: return !sl->compare(sr);
Executed by:
  • tst_ecmascripttests
!sl->compare(sr);
executed 168 times by 1 test: return !sl->compare(sr);
Executed by:
  • tst_ecmascripttests
168
832-
833 }-
834-
835 Object *ro = r.objectValue();-
836 Object *lo = l.objectValue();-
837 if (ro
roDescription
TRUEevaluated 132 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 324 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| lo
loDescription
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 246 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
75-324
838-
839-
840-
841 QV4::ExecutionEngine *e = (lo
loDescription
TRUEevaluated 131 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? lo : ro)->engine();
76-131
842 QV4::Scope scope(e);-
843 QV4::ScopedValue pl(scope, lo ? RuntimeHelpers::objectDefaultValue(lo, QV4::NUMBER_HINT) : l.asReturnedValue());-
844 QV4::ScopedValue pr(scope, ro ? RuntimeHelpers::objectDefaultValue(ro, QV4::NUMBER_HINT) : r.asReturnedValue());-
845 return
executed 208 times by 1 test: return Runtime::method_compareGreaterEqual(pl, pr);
Executed by:
  • tst_ecmascripttests
Runtime::method_compareGreaterEqual(pl, pr);
executed 208 times by 1 test: return Runtime::method_compareGreaterEqual(pl, pr);
Executed by:
  • tst_ecmascripttests
208
846-
847 }-
848-
849 double dl = RuntimeHelpers::toNumber(l);-
850 double dr = RuntimeHelpers::toNumber(r);-
851 return
executed 247 times by 1 test: return dl >= dr;
Executed by:
  • tst_ecmascripttests
dl >= dr;
executed 247 times by 1 test: return dl >= dr;
Executed by:
  • tst_ecmascripttests
247
852}-
853-
854QV4::Bool Runtime::method_compareLessEqual(const Value &l, const Value &r)-
855{-
856 ;-
857 if (l.isInteger()
l.isInteger()Description
TRUEevaluated 112 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7457 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
&& r.isInteger()
r.isInteger()Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
44-7457
858 return
executed 44 times by 1 test: return l.integerValue() <= r.integerValue();
Executed by:
  • tst_ecmascripttests
l.integerValue() <= r.integerValue();
executed 44 times by 1 test: return l.integerValue() <= r.integerValue();
Executed by:
  • tst_ecmascripttests
44
859 if (l.isNumber()
l.isNumber()Description
TRUEevaluated 290 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 7234 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& r.isNumber()
r.isNumber()Description
TRUEevaluated 202 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
88-7234
860 return
executed 202 times by 6 tests: return l.asDouble() <= r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
l.asDouble() <= r.asDouble();
executed 202 times by 6 tests: return l.asDouble() <= r.asDouble();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
202
861 String *sl = l.stringValue();-
862 String *sr = r.stringValue();-
863 if (sl
slDescription
TRUEevaluated 6913 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 410 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& sr
srDescription
TRUEevaluated 6848 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
64-6913
864-
865-
866-
867-
868 return
executed 6847 times by 1 test: return !sr->compare(sl);
Executed by:
  • tst_ecmascripttests
!sr->compare(sl);
executed 6847 times by 1 test: return !sr->compare(sl);
Executed by:
  • tst_ecmascripttests
6847
869-
870 }-
871-
872 Object *ro = r.objectValue();-
873 Object *lo = l.objectValue();-
874 if (ro
roDescription
TRUEevaluated 152 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 324 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| lo
loDescription
TRUEevaluated 76 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 247 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
76-324
875-
876-
877-
878 QV4::ExecutionEngine *e = (lo
loDescription
TRUEevaluated 151 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? lo : ro)->engine();
76-151
879 QV4::Scope scope(e);-
880 QV4::ScopedValue pl(scope, lo ? RuntimeHelpers::objectDefaultValue(lo, QV4::NUMBER_HINT) : l.asReturnedValue());-
881 QV4::ScopedValue pr(scope, ro ? RuntimeHelpers::objectDefaultValue(ro, QV4::NUMBER_HINT) : r.asReturnedValue());-
882 return
executed 228 times by 1 test: return Runtime::method_compareLessEqual(pl, pr);
Executed by:
  • tst_ecmascripttests
Runtime::method_compareLessEqual(pl, pr);
executed 228 times by 1 test: return Runtime::method_compareLessEqual(pl, pr);
Executed by:
  • tst_ecmascripttests
228
883-
884 }-
885-
886 double dl = RuntimeHelpers::toNumber(l);-
887 double dr = RuntimeHelpers::toNumber(r);-
888 return
executed 245 times by 1 test: return dl <= dr;
Executed by:
  • tst_ecmascripttests
dl <= dr;
executed 245 times by 1 test: return dl <= dr;
Executed by:
  • tst_ecmascripttests
245
889}-
890-
891-
892Bool Runtime::method_compareInstanceof(ExecutionEngine *engine, const Value &left, const Value &right)-
893{-
894 ;-
895-
896 Scope scope(engine);-
897 ScopedValue v(scope, method_instanceof(engine, left, right));-
898 return
never executed: return v->booleanValue();
v->booleanValue();
never executed: return v->booleanValue();
0
899}-
900-
901uint Runtime::method_compareIn(ExecutionEngine *engine, const Value &left, const Value &right)-
902{-
903 ;-
904-
905 Scope scope(engine);-
906 ScopedValue v(scope, method_in(engine, left, right));-
907 return
never executed: return v->booleanValue();
v->booleanValue();
never executed: return v->booleanValue();
0
908}-
909-
910-
911ReturnedValue Runtime::method_callGlobalLookup(ExecutionEngine *engine, uint index, Value *argv, int argc)-
912{-
913 Lookup *l = engine->currentStackFrame->v4Function->compilationUnit->runtimeLookups + index;-
914 Value function = Value::fromReturnedValue(l->globalGetter(l, engine));-
915 if (!function.isFunctionObject()
!function.isFunctionObject()Description
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 26886643 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qv4assembler
)
140-26886643
916 return
executed 140 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 140 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
140
917-
918 Value thisObject = Primitive::undefinedValue();-
919 return
executed 26901057 times by 2 tests: return static_cast<FunctionObject &>(function).call(&thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
  • tst_qv4assembler
static_cast<FunctionObject &>(function).call(&thisObject, argv, argc);
executed 26901057 times by 2 tests: return static_cast<FunctionObject &>(function).call(&thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
  • tst_qv4assembler
26901057
920}-
921-
922ReturnedValue Runtime::method_callPossiblyDirectEval(ExecutionEngine *engine, Value *argv, int argc)-
923{-
924 Scope scope(engine);-
925 ScopedValue thisObject(scope);-
926-
927 ExecutionContext &ctx = static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context);-
928 ScopedFunctionObject function(scope, ctx.getPropertyAndBase(engine->id_eval(), thisObject));-
929 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 1580728 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquickworkerscript
)
0-1580728
930 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
931-
932 if (!function
!functionDescription
TRUEnever evaluated
FALSEevaluated 1580745 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquickworkerscript
) {
0-1580745
933 QString objectAsString = ([]() noexcept -> QString { enum { Size = sizeof(u"" "[null]")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "[null]" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());-
934 if (!thisObject->isUndefined()
!thisObject->isUndefined()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
935 objectAsString = thisObject->toQStringNoThrow();
never executed: objectAsString = thisObject->toQStringNoThrow();
0
936 QString msg = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Property 'eval' of object %2 is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Property 'eval' of object %2 is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(objectAsString);-
937 return
never executed: return engine->throwTypeError(msg);
engine->throwTypeError(msg);
never executed: return engine->throwTypeError(msg);
0
938 }-
939-
940 if (function->d() == engine->evalFunction()->d()
function->d() ...unction()->d()Description
TRUEevaluated 1579469 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquickworkerscript
FALSEevaluated 1187 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
1187-1579469
941 return
executed 1579460 times by 7 tests: return static_cast<EvalFunction *>(function.getPointer())->evalCall(thisObject, argv, argc, true);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquickworkerscript
static_cast<EvalFunction *>(function.getPointer())->evalCall(thisObject, argv, argc, true);
executed 1579460 times by 7 tests: return static_cast<EvalFunction *>(function.getPointer())->evalCall(thisObject, argv, argc, true);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquickworkerscript
1579460
942-
943 return
executed 1187 times by 1 test: return function->call(thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
function->call(thisObject, argv, argc);
executed 1187 times by 1 test: return function->call(thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
1187
944}-
945-
946ReturnedValue Runtime::method_callName(ExecutionEngine *engine, int nameIndex, Value *argv, int argc)-
947{-
948 Scope scope(engine);-
949 ScopedValue thisObject(scope);-
950 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
951-
952 ExecutionContext &ctx = static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context);-
953 ScopedFunctionObject f(scope, ctx.getPropertyAndBase(name, thisObject));-
954 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 20 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
FALSEevaluated 52483 times by 42 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • ...
)
20-52483
955 return
executed 20 times by 6 tests: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
Encode::undefined();
executed 20 times by 6 tests: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
20
956-
957 if (!f
!fDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 52482 times by 42 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • ...
) {
2-52482
958 QString objectAsString = ([]() noexcept -> QString { enum { Size = sizeof(u"" "[null]")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "[null]" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());-
959 if (!thisObject->isUndefined()
!thisObject->isUndefined()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEnever evaluated
)
0-2
960 objectAsString = thisObject->toQStringNoThrow();
executed 2 times by 1 test: objectAsString = thisObject->toQStringNoThrow();
Executed by:
  • tst_qqmlecmascript
2
961 QString msg = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Property '%1' of object %2 is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Property '%1' of object %2 is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())-
962 .arg(engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]->toQString(),-
963 objectAsString);-
964 return
executed 2 times by 1 test: return engine->throwTypeError(msg);
Executed by:
  • tst_qqmlecmascript
engine->throwTypeError(msg);
executed 2 times by 1 test: return engine->throwTypeError(msg);
Executed by:
  • tst_qqmlecmascript
2
965 }-
966-
967 return
executed 52482 times by 42 tests: return f->call(thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • ...
f->call(thisObject, argv, argc);
executed 52482 times by 42 tests: return f->call(thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • ...
52482
968}-
969-
970ReturnedValue Runtime::method_callProperty(ExecutionEngine *engine, Value *base, int nameIndex, Value *argv, int argc)-
971{-
972 Scope scope(engine);-
973 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
974 ScopedObject lookupObject(scope, base);-
975-
976 if (!lookupObject
!lookupObjectDescription
TRUEevaluated 11332 times by 16 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 472284 times by 78 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
) {
11332-472284
977 ((!base->isEmpty()) ? static_cast<void>(0) : qt_assert("!base->isEmpty()", __FILE__, 1187));-
978 if (base->isNullOrUndefined()
base->isNullOrUndefined()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 11324 times by 16 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
) {
8-11324
979 QString message = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Cannot call method '%1' of %2")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Cannot call method '%1' of %2" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())-
980 .arg(name->toQString(), base->toQStringNoThrow());-
981 return
executed 8 times by 1 test: return engine->throwTypeError(message);
Executed by:
  • tst_qqmlecmascript
engine->throwTypeError(message);
executed 8 times by 1 test: return engine->throwTypeError(message);
Executed by:
  • tst_qqmlecmascript
8
982 }-
983-
984 if (base->isManaged()
base->isManaged()Description
TRUEevaluated 10948 times by 14 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 376 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickdraghandler
) {
376-10948
985 Managed *m = static_cast<Managed *>(base);-
986 lookupObject = m->internalClass()->prototype;-
987 ((m->internalClass()->prototype) ? static_cast<void>(0) : qt_assert("m->internalClass()->prototype", __FILE__, 1197));-
988 }
executed 10948 times by 14 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
else {
10948
989 lookupObject = RuntimeHelpers::convertToObject(engine, *base);-
990 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 376 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickdraghandler
)
0-376
991 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
992 if (!engine->currentStackFrame->v4Function->isStrict()
!engine->curre...on->isStrict()Description
TRUEevaluated 376 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickdraghandler
FALSEnever evaluated
)
0-376
993 base = lookupObject;
executed 376 times by 5 tests: base = lookupObject;
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickdraghandler
376
994 }
executed 376 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickdraghandler
376
995 }-
996-
997 ScopedFunctionObject f(scope, static_cast<Object *>(lookupObject)->get(name));-
998-
999 if (!f
!fDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 483594 times by 78 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
) {
14-483594
1000 QString error = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Property '%1' of object %2 is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Property '%1' of object %2 is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())-
1001 .arg(engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]->toQString(),-
1002 base->toQStringNoThrow());-
1003 return
executed 14 times by 2 tests: return engine->throwTypeError(error);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
engine->throwTypeError(error);
executed 14 times by 2 tests: return engine->throwTypeError(error);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
14
1004 }-
1005-
1006 return
executed 483594 times by 78 tests: return f->call(base, argv, argc);
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
f->call(base, argv, argc);
executed 483594 times by 78 tests: return f->call(base, argv, argc);
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
483594
1007}-
1008-
1009ReturnedValue Runtime::method_callPropertyLookup(ExecutionEngine *engine, Value *base, uint index, Value *argv, int argc)-
1010{-
1011 Lookup *l = engine->currentStackFrame->v4Function->compilationUnit->runtimeLookups + index;-
1012-
1013 Value f = Value::fromReturnedValue(l->getter(l, engine, *base));-
1014-
1015 if (!f.isFunctionObject()
!f.isFunctionObject()Description
TRUEnever evaluated
FALSEevaluated 48 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
)
0-48
1016 return
never executed: return engine->throwTypeError();
engine->throwTypeError();
never executed: return engine->throwTypeError();
0
1017-
1018 return
executed 48 times by 3 tests: return static_cast<FunctionObject &>(f).call(base, argv, argc);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
static_cast<FunctionObject &>(f).call(base, argv, argc);
executed 48 times by 3 tests: return static_cast<FunctionObject &>(f).call(base, argv, argc);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
48
1019}-
1020-
1021ReturnedValue Runtime::method_callElement(ExecutionEngine *engine, Value *base, const Value &index, Value *argv, int argc)-
1022{-
1023 Scope scope(engine);-
1024 ScopedValue thisObject(scope, base->toObject(engine));-
1025 base = thisObject;-
1026-
1027 ScopedPropertyKey str(scope, index.toPropertyKey(engine));-
1028 if (engine->hasException
engine->hasExceptionDescription
TRUEnever evaluated
FALSEevaluated 1903 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
)
0-1903
1029 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
1030-
1031 ScopedFunctionObject f(scope, static_cast<Object *>(base)->get(str));-
1032 if (!f
!fDescription
TRUEevaluated 328 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1575 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
)
328-1575
1033 return
executed 328 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 328 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
328
1034-
1035 return
executed 1575 times by 6 tests: return f->call(base, argv, argc);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
f->call(base, argv, argc);
executed 1575 times by 6 tests: return f->call(base, argv, argc);
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1575
1036}-
1037-
1038ReturnedValue Runtime::method_callValue(ExecutionEngine *engine, const Value &func, Value *argv, int argc)-
1039{-
1040 if (!func.isFunctionObject()
!func.isFunctionObject()Description
TRUEnever evaluated
FALSEevaluated 472 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
)
0-472
1041 return
never executed: return engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "%1 is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "%1 is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(func.toQStringNoThrow()));
engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "%1 is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "%1 is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}()).arg(func.toQStringNoThrow()));
never executed: return engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "%1 is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "%1 is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(func.toQStringNoThrow()));
0
1042 return
executed 472 times by 5 tests: return static_cast<const FunctionObject &>(func).call(nullptr, argv, argc);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
static_cast<const FunctionObject &>(func).call(nullptr, argv, argc);
executed 472 times by 5 tests: return static_cast<const FunctionObject &>(func).call(nullptr, argv, argc);
Executed by:
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
472
1043}-
1044-
1045ReturnedValue Runtime::method_callQmlScopeObjectProperty(ExecutionEngine *engine, Value *base,-
1046 int propertyIndex, Value *argv, int argc)-
1047{-
1048 Scope scope(engine);-
1049 ScopedFunctionObject fo(scope, method_loadQmlScopeObjectProperty(engine, *base, propertyIndex,-
1050 true));-
1051 if (!fo
!foDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
) {
2-14
1052 QString error = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Property '%1' of scope object is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Property '%1' of scope object is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(propertyIndex);-
1053 return
executed 2 times by 1 test: return engine->throwTypeError(error);
Executed by:
  • tst_qqmlecmascript
engine->throwTypeError(error);
executed 2 times by 1 test: return engine->throwTypeError(error);
Executed by:
  • tst_qqmlecmascript
2
1054 }-
1055-
1056 QObject *qmlScopeObj = static_cast<QmlContext *>(base)->d()->qml()->scopeObject;-
1057 ScopedValue qmlScopeValue(scope, QObjectWrapper::wrap(engine, qmlScopeObj));-
1058 return
executed 14 times by 1 test: return fo->call(qmlScopeValue, argv, argc);
Executed by:
  • tst_qqmlecmascript
fo->call(qmlScopeValue, argv, argc);
executed 14 times by 1 test: return fo->call(qmlScopeValue, argv, argc);
Executed by:
  • tst_qqmlecmascript
14
1059}-
1060-
1061ReturnedValue Runtime::method_callQmlContextObjectProperty(ExecutionEngine *engine, Value *base,-
1062 int propertyIndex, Value *argv, int argc)-
1063{-
1064 Scope scope(engine);-
1065 ScopedFunctionObject fo(scope, method_loadQmlContextObjectProperty(engine, *base, propertyIndex,-
1066 true));-
1067 if (!fo
!foDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1068 QString error = ([]() noexcept -> QString { enum { Size = sizeof(u"" "Property '%1' of context object is not a function")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Property '%1' of context object is not a function" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(propertyIndex);-
1069 return
never executed: return engine->throwTypeError(error);
engine->throwTypeError(error);
never executed: return engine->throwTypeError(error);
0
1070 }-
1071-
1072 QObject *qmlContextObj = static_cast<QmlContext *>(base)->d()->qml()->context->contextData()->contextObject;-
1073 ScopedValue qmlContextValue(scope, QObjectWrapper::wrap(engine, qmlContextObj));-
1074 return
never executed: return fo->call(qmlContextValue, argv, argc);
fo->call(qmlContextValue, argv, argc);
never executed: return fo->call(qmlContextValue, argv, argc);
0
1075}-
1076-
1077struct CallArgs {-
1078 Value *argv;-
1079 int argc;-
1080};-
1081-
1082static CallArgs createSpreadArguments(Scope &scope, Value *argv, int argc)-
1083{-
1084 ScopedValue it(scope);-
1085 ScopedValue done(scope);-
1086-
1087 int argCount = 0;-
1088-
1089 Value *v = scope.alloc<Scope::Uninitialized>();-
1090 Value *arguments = v;-
1091 for (int i = 0; i < argc
i < argcDescription
TRUEevaluated 457 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 116 times by 1 test
Evaluated by:
  • tst_ecmascripttests
; ++i) {
116-457
1092 if (!argv[i].isEmpty()
!argv[i].isEmpty()Description
TRUEevaluated 199 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 258 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
199-258
1093 *v = argv[i];-
1094 ++argCount;-
1095 v = scope.alloc<Scope::Uninitialized>();-
1096 continue;
executed 199 times by 1 test: continue;
Executed by:
  • tst_ecmascripttests
199
1097 }-
1098-
1099 ++i;-
1100 it = Runtime::method_getIterator(scope.engine, argv[i], 1);-
1101 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 188 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
72-188
1102 return
executed 72 times by 1 test: return { nullptr, 0 };
Executed by:
  • tst_ecmascripttests
{ nullptr, 0 };
executed 72 times by 1 test: return { nullptr, 0 };
Executed by:
  • tst_ecmascripttests
72
1103 while (1) {-
1104 done = Runtime::method_iteratorNext(scope.engine, it, v);-
1105 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 316 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
72-316
1106 return
executed 72 times by 1 test: return { nullptr, 0 };
Executed by:
  • tst_ecmascripttests
{ nullptr, 0 };
executed 72 times by 1 test: return { nullptr, 0 };
Executed by:
  • tst_ecmascripttests
72
1107 ((done->isBoolean()) ? static_cast<void>(0) : qt_assert("done->isBoolean()", __FILE__, 1317));-
1108 if (done->booleanValue()
done->booleanValue()Description
TRUEevaluated 116 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 200 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
116-200
1109 break;
executed 116 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
116
1110 ++argCount;-
1111 v = scope.alloc<Scope::Uninitialized>();-
1112 }
executed 200 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
200
1113 }
executed 116 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
116
1114 return
executed 116 times by 1 test: return { arguments, argCount };
Executed by:
  • tst_ecmascripttests
{ arguments, argCount };
executed 116 times by 1 test: return { arguments, argCount };
Executed by:
  • tst_ecmascripttests
116
1115}-
1116-
1117ReturnedValue Runtime::method_callWithSpread(ExecutionEngine *engine, const Value &function, const Value &thisObject, Value *argv, int argc)-
1118{-
1119 ((argc >= 1) ? static_cast<void>(0) : qt_assert("argc >= 1", __FILE__, 1329));-
1120 if (!function.isFunctionObject()
!function.isFunctionObject()Description
TRUEnever evaluated
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-100
1121 return
never executed: return engine->throwTypeError();
engine->throwTypeError();
never executed: return engine->throwTypeError();
0
1122-
1123 Scope scope(engine);-
1124 CallArgs arguments = createSpreadArguments(scope, argv, argc);-
1125 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
48-52
1126 return
executed 48 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 48 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
48
1127-
1128 return
executed 52 times by 1 test: return static_cast<const FunctionObject &>(function).call(&thisObject, arguments.argv, arguments.argc);
Executed by:
  • tst_ecmascripttests
static_cast<const FunctionObject &>(function).call(&thisObject, arguments.argv, arguments.argc);
executed 52 times by 1 test: return static_cast<const FunctionObject &>(function).call(&thisObject, arguments.argv, arguments.argc);
Executed by:
  • tst_ecmascripttests
52
1129}-
1130-
1131ReturnedValue Runtime::method_construct(ExecutionEngine *engine, const Value &function, const Value &newTarget, Value *argv, int argc)-
1132{-
1133 if (!function.isFunctionObject()
!function.isFunctionObject()Description
TRUEevaluated 206 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 113560 times by 18 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
)
206-113560
1134 return
executed 206 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
engine->throwTypeError();
executed 206 times by 1 test: return engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
206
1135-
1136 return
executed 113556 times by 18 tests: return static_cast<const FunctionObject &>(function).callAsConstructor(argv, argc, &newTarget);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
static_cast<const FunctionObject &>(function).callAsConstructor(argv, argc, &newTarget);
executed 113556 times by 18 tests: return static_cast<const FunctionObject &>(function).callAsConstructor(argv, argc, &newTarget);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
113556
1137}-
1138-
1139ReturnedValue Runtime::method_constructWithSpread(ExecutionEngine *engine, const Value &function, const Value &newTarget, Value *argv, int argc)-
1140{-
1141 QMessageLogger(__FILE__, 1351, __PRETTY_FUNCTION__).warning("Unimplemented code.");-
1142 if (!function.isFunctionObject()
!function.isFunctionObject()Description
TRUEnever evaluated
FALSEevaluated 160 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-160
1143 return
never executed: return engine->throwTypeError();
engine->throwTypeError();
never executed: return engine->throwTypeError();
0
1144-
1145 Scope scope(engine);-
1146 CallArgs arguments = createSpreadArguments(scope, argv, argc);-
1147 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
64-96
1148 return
executed 96 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 96 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
96
1149-
1150 return
executed 64 times by 1 test: return static_cast<const FunctionObject &>(function).callAsConstructor(arguments.argv, arguments.argc, &newTarget);
Executed by:
  • tst_ecmascripttests
static_cast<const FunctionObject &>(function).callAsConstructor(arguments.argv, arguments.argc, &newTarget);
executed 64 times by 1 test: return static_cast<const FunctionObject &>(function).callAsConstructor(arguments.argv, arguments.argc, &newTarget);
Executed by:
  • tst_ecmascripttests
64
1151}-
1152-
1153void Runtime::method_throwException(ExecutionEngine *engine, const Value &value)-
1154{-
1155 if (!value.isEmpty()
!value.isEmpty()Description
TRUEevaluated 17309 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
FALSEnever evaluated
)
0-17309
1156 engine->throwError(value);
executed 17309 times by 9 tests: engine->throwError(value);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
17309
1157}
executed 17301 times by 9 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
17301
1158-
1159ReturnedValue Runtime::method_typeofValue(ExecutionEngine *engine, const Value &value)-
1160{-
1161 Scope scope(engine);-
1162 ScopedString res(scope);-
1163 switch (value.type()) {-
1164 case
executed 2122 times by 4 tests: case Value::Undefined_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qv4debugger
Value::Undefined_Type:
executed 2122 times by 4 tests: case Value::Undefined_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qv4debugger
2122
1165 res = engine->id_undefined();-
1166 break;
executed 2125 times by 4 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qv4debugger
2125
1167 case
executed 30 times by 5 tests: case Value::Null_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qv4debugger
Value::Null_Type:
executed 30 times by 5 tests: case Value::Null_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qv4debugger
30
1168 res = engine->id_object();-
1169 break;
executed 30 times by 5 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qv4debugger
30
1170 case
executed 148 times by 4 tests: case Value::Boolean_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_signalspy
Value::Boolean_Type:
executed 148 times by 4 tests: case Value::Boolean_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_signalspy
148
1171 res = engine->id_boolean();-
1172 break;
executed 148 times by 4 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_signalspy
148
1173 case
executed 83799 times by 10 tests: case Value::Managed_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
Value::Managed_Type:
executed 83799 times by 10 tests: case Value::Managed_Type:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
83799
1174 if (value.isString()
value.isString()Description
TRUEevaluated 6923 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
FALSEevaluated 76792 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
)
6923-76792
1175 res = engine->id_string();
executed 6918 times by 8 tests: res = engine->id_string();
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
6918
1176 else if (value.isSymbol()
value.isSymbol()Description
TRUEevaluated 212 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 76608 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
)
212-76608
1177 res = engine->id_symbol();
executed 212 times by 1 test: res = engine->id_symbol();
Executed by:
  • tst_ecmascripttests
212
1178 else if (value.objectValue()->as<FunctionObject>()
value.objectVa...ctionObject>()Description
TRUEevaluated 37190 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_signalspy
FALSEevaluated 39445 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
)
37190-39445
1179 res = engine->id_function();
executed 37162 times by 5 tests: res = engine->id_function();
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_signalspy
37162
1180 else-
1181 res = engine->id_object();
executed 39432 times by 7 tests: res = engine->id_object();
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
39432
1182 break;
executed 83723 times by 10 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
83723
1183 default
executed 1432 times by 7 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
:
executed 1432 times by 7 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
1432
1184 res = engine->id_number();-
1185 break;
executed 1432 times by 7 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
1432
1186 }-
1187 return
executed 87355 times by 10 tests: return res.asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
res.asReturnedValue();
executed 87355 times by 10 tests: return res.asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
87355
1188}-
1189-
1190QV4::ReturnedValue Runtime::method_typeofName(ExecutionEngine *engine, int nameIndex)-
1191{-
1192 Scope scope(engine);-
1193 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
1194 ScopedValue prop(scope, static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).getProperty(name));-
1195-
1196 scope.engine->hasException = false;-
1197 return
executed 2895 times by 4 tests: return method_typeofValue(engine, prop);
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_scenegraph
method_typeofValue(engine, prop);
executed 2895 times by 4 tests: return method_typeofValue(engine, prop);
Executed by:
  • tst_ecmascripttests
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_scenegraph
2895
1198}-
1199-
1200ReturnedValue Runtime::method_createWithContext(ExecutionEngine *engine, Value *jsStackFrame)-
1201{-
1202 QV4::Value &accumulator = jsStackFrame[CallData::Accumulator];-
1203 accumulator = accumulator.toObject(engine);-
1204 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 657 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4debugger
)
7-657
1205 return
executed 7 times by 2 tests: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
Encode::undefined();
executed 7 times by 2 tests: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
7
1206 ((accumulator.isObject()) ? static_cast<void>(0) : qt_assert("accumulator.isObject()", __FILE__, 1416));-
1207 const Object &obj = static_cast<const Object &>(accumulator);-
1208 ExecutionContext *context = static_cast<ExecutionContext *>(jsStackFrame + CallData::Context);-
1209 return
executed 659 times by 4 tests: return context->newWithContext(obj.d())->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4debugger
context->newWithContext(obj.d())->asReturnedValue();
executed 659 times by 4 tests: return context->newWithContext(obj.d())->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4debugger
659
1210}-
1211-
1212ReturnedValue Runtime::method_createCatchContext(ExecutionContext *parent, int blockIndex, int exceptionVarNameIndex)-
1213{-
1214 ExecutionEngine *e = parent->engine();-
1215 return
executed 4320786 times by 13 tests: return parent->newCatchContext(e->currentStackFrame, blockIndex, e->currentStackFrame->v4Function->compilationUnit->runtimeStrings[exceptionVarNameIndex])->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
parent->newCatchContext(e->currentStackFrame, blockIndex,
executed 4320786 times by 13 tests: return parent->newCatchContext(e->currentStackFrame, blockIndex, e->currentStackFrame->v4Function->compilationUnit->runtimeStrings[exceptionVarNameIndex])->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
4320786
1216 e->currentStackFrame->v4Function->compilationUnit->runtimeStrings[exceptionVarNameIndex])->asReturnedValue();
executed 4320786 times by 13 tests: return parent->newCatchContext(e->currentStackFrame, blockIndex, e->currentStackFrame->v4Function->compilationUnit->runtimeStrings[exceptionVarNameIndex])->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
4320786
1217}-
1218-
1219ReturnedValue Runtime::method_createBlockContext(ExecutionContext *parent, int index)-
1220{-
1221 ExecutionEngine *e = parent->engine();-
1222 return
executed 562 times by 2 tests: return parent->newBlockContext(e->currentStackFrame, index)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qv4debugger
parent->newBlockContext(e->currentStackFrame, index)->asReturnedValue();
executed 562 times by 2 tests: return parent->newBlockContext(e->currentStackFrame, index)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qv4debugger
562
1223}-
1224-
1225ReturnedValue Runtime::method_cloneBlockContext(ExecutionContext *previous)-
1226{-
1227 return
executed 194 times by 2 tests: return ExecutionContext::cloneBlockContext(static_cast<Heap::CallContext *>(previous->d()))->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qv4debugger
ExecutionContext::cloneBlockContext(static_cast<Heap::CallContext *>(previous->d()))->asReturnedValue();
executed 194 times by 2 tests: return ExecutionContext::cloneBlockContext(static_cast<Heap::CallContext *>(previous->d()))->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qv4debugger
194
1228}-
1229-
1230-
1231ReturnedValue Runtime::method_createScriptContext(ExecutionEngine *engine, int index)-
1232{-
1233 ((engine->currentStackFrame->context()->d()->type == Heap::ExecutionContext::Type_GlobalContext || engine->currentStackFrame->context()->d()->type == Heap::ExecutionContext::Type_QmlContext) ? static_cast<void>(0) : qt_assert("engine->currentStackFrame->context()->d()->type == Heap::ExecutionContext::Type_GlobalContext || engine->currentStackFrame->context()->d()->type == Heap::ExecutionContext::Type_QmlContext",-
1234 __FILE__-
1235 ,-
1236 1444-
1237 ))-
1238 ;-
1239 ReturnedValue c = ExecutionContext::newBlockContext(engine->currentStackFrame, index)->asReturnedValue();-
1240 engine->setScriptContext(c);-
1241 return
executed 5093 times by 2 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
c;
executed 5093 times by 2 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
5093
1242}-
1243-
1244ReturnedValue Runtime::method_popScriptContext(ExecutionEngine *engine)-
1245{-
1246 ReturnedValue root = engine->rootContext()->asReturnedValue();-
1247 engine->setScriptContext(root);-
1248 return
executed 4376 times by 2 tests: return root;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
root;
executed 4376 times by 2 tests: return root;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
4376
1249}-
1250-
1251-
1252void Runtime::method_declareVar(ExecutionEngine *engine, bool deletable, int nameIndex)-
1253{-
1254 Scope scope(engine);-
1255 ScopedString name(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeStrings[nameIndex]);-
1256 static_cast<ExecutionContext &>(engine->currentStackFrame->jsFrame->context).createMutableBinding(name, deletable);-
1257}
executed 517505 times by 21 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
517505
1258-
1259ReturnedValue Runtime::method_arrayLiteral(ExecutionEngine *engine, Value *values, uint length)-
1260{-
1261 return
executed 52683 times by 45 tests: return engine->newArrayObject(values, length)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickellipseextruder
  • tst_qquickfolderlistmodel
  • ...
engine->newArrayObject(values, length)->asReturnedValue();
executed 52683 times by 45 tests: return engine->newArrayObject(values, length)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickellipseextruder
  • tst_qquickfolderlistmodel
  • ...
52683
1262}-
1263-
1264ReturnedValue Runtime::method_objectLiteral(ExecutionEngine *engine, int classId, int argc, const QV4::Value *args)-
1265{-
1266 Scope scope(engine);-
1267 Scoped<InternalClass> klass(scope, engine->currentStackFrame->v4Function->compilationUnit->runtimeClasses[classId]);-
1268 ScopedObject o(scope, engine->newObject(klass->d()));-
1269-
1270 ((uint(argc) >= klass->d()->size) ? static_cast<void>(0) : qt_assert("uint(argc) >= klass->d()->size", __FILE__, 1476));-
1271-
1272 for (uint i = 0; i < klass->d()->size
i < klass->d()->sizeDescription
TRUEevaluated 78656 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
FALSEevaluated 75065 times by 36 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
; ++i)
75065-78656
1273 o->setProperty(i, *args++);
executed 78652 times by 33 tests: o->setProperty(i, *args++);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
78652
1274-
1275 (((argc - klass->d()->size) % 3 == 0) ? static_cast<void>(0) : qt_assert("(argc - klass->d()->size) % 3 == 0", __FILE__, 1481));-
1276 int additionalArgs = (argc - int(klass->d()->size))/3;-
1277-
1278 if (!additionalArgs
!additionalArgsDescription
TRUEevaluated 70740 times by 36 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
FALSEevaluated 4203 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
)
4203-70740
1279 return
executed 70740 times by 36 tests: return o->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
o->asReturnedValue();
executed 70740 times by 36 tests: return o->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
70740
1280-
1281 ScopedPropertyKey name(scope);-
1282 ScopedProperty pd(scope);-
1283 for (int i = 0; i < additionalArgs
i < additionalArgsDescription
TRUEevaluated 9778 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 4228 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
; ++i) {
4228-9778
1284 ((args->isInteger()) ? static_cast<void>(0) : qt_assert("args->isInteger()", __FILE__, 1490));-
1285 ObjectLiteralArgument arg = ObjectLiteralArgument(args->integerValue());-
1286 name = args[1].toPropertyKey(engine);-
1287 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9772 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
)
8-9772
1288 return
executed 8 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 8 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
8
1289 ((arg == ObjectLiteralArgument::Value || args[2].isFunctionObject()) ? static_cast<void>(0) : qt_assert("arg == ObjectLiteralArgument::Value || args[2].isFunctionObject()", __FILE__, 1495));-
1290 if (arg == ObjectLiteralArgument::Value
arg == ObjectL...rgument::ValueDescription
TRUEevaluated 8319 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 1432 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| arg == ObjectLiteralArgument::Getter
arg == ObjectL...gument::GetterDescription
TRUEevaluated 855 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 580 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
580-8319
1291 pd->value = args[2];-
1292 pd->set = Primitive::emptyValue();-
1293 }
executed 9179 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
else {
9179
1294 pd->value = Primitive::emptyValue();-
1295 pd->set = args[2];-
1296 }
executed 579 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
579
1297 bool ok = o->defineOwnProperty(name, pd, (arg == ObjectLiteralArgument::Value ? Attr_Data : Attr_Accessor));-
1298 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 9774 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
)
0-9774
1299 return
never executed: return engine->throwTypeError();
engine->throwTypeError();
never executed: return engine->throwTypeError();
0
1300-
1301 args += 3;-
1302 }
executed 9775 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
9775
1303 return
executed 4230 times by 2 tests: return o.asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
o.asReturnedValue();
executed 4230 times by 2 tests: return o.asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
4230
1304}-
1305-
1306ReturnedValue Runtime::method_createClass(ExecutionEngine *engine, int classIndex, const Value &superClass, const Value *computedNames)-
1307{-
1308 const CompiledData::CompilationUnit *unit = engine->currentStackFrame->v4Function->compilationUnit;-
1309 const QV4::CompiledData::Class *cls = unit->data->classAt(classIndex);-
1310-
1311 Scope scope(engine);-
1312 ScopedObject protoParent(scope, engine->objectPrototype());-
1313 ScopedObject constructorParent(scope, engine->functionPrototype());-
1314 if (!superClass.isEmpty()
!superClass.isEmpty()Description
TRUEevaluated 879 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8126 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
879-8126
1315 if (superClass.isNull()
superClass.isNull()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 850 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
28-850
1316 protoParent = Encode::null();-
1317 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
else {
28
1318-
1319 if (!superClass.isFunctionObject()
!superClass.isFunctionObject()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 836 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
16-836
1320 return
executed 16 times by 1 test: return engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "The superclass is not a function object.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "The superclass is not a function object." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_ecmascripttests
engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "The superclass is not a function object.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "The superclass is not a function object." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 16 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
qstring_literal_temp;
executed 16 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
}()));
executed 16 times by 1 test: return engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "The superclass is not a function object.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "The superclass is not a function object." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_ecmascripttests
16
1321 const FunctionObject *s = static_cast<const FunctionObject *>(&superClass);-
1322 ScopedValue result(scope, s->get(scope.engine->id_prototype()));-
1323 if (!result->isObject()
!result->isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 811 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& !result->isNull()
!result->isNull()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-811
1324 return
executed 16 times by 1 test: return engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "The value of the superclass's prototype property is not an object.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "The value of the superclass's prototype property is not an object." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_ecmascripttests
engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "The value of the superclass's prototype property is not an object.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "The value of the superclass's prototype property is not an object." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 16 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
qstring_literal_temp;
executed 16 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
}()));
executed 16 times by 1 test: return engine->throwTypeError(([]() noexcept -> QString { enum { Size = sizeof(u"" "The value of the superclass's prototype property is not an object.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "The value of the superclass's prototype property is not an object." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_ecmascripttests
16
1325 protoParent = *result;-
1326 constructorParent = superClass;-
1327 }
executed 817 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
817
1328 }-
1329-
1330 ScopedObject proto(scope, engine->newObject());-
1331 proto->setPrototypeUnchecked(protoParent);-
1332 ExecutionContext *current = static_cast<ExecutionContext *>(&engine->currentStackFrame->jsFrame->context);-
1333-
1334 ScopedFunctionObject constructor(scope);-
1335 QV4::Function *f = cls->constructorFunction !=
cls->construct...fff * 2U + 1U)Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8353 times by 1 test
Evaluated by:
  • tst_ecmascripttests
658-8353
1336 (0x7fffffff * 2U + 1U)
cls->construct...fff * 2U + 1U)Description
TRUEevaluated 658 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8353 times by 1 test
Evaluated by:
  • tst_ecmascripttests
658-8353
1337 ? unit->runtimeFunctions[cls->constructorFunction] : nullptr;-
1338 constructor = FunctionObject::createConstructorFunction(current, f, !superClass.isEmpty())->asReturnedValue();-
1339 constructor->setPrototypeUnchecked(constructorParent);-
1340 constructor->defineDefaultProperty(engine->id_prototype(), proto);-
1341 proto->defineDefaultProperty(engine->id_constructor(), constructor);-
1342-
1343 ScopedString name(scope);-
1344 if (cls->nameIndex !=
cls->nameIndex...fff * 2U + 1U)Description
TRUEevaluated 9039 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
0-9039
1345 (0x7fffffff * 2U + 1U)
cls->nameIndex...fff * 2U + 1U)Description
TRUEevaluated 9039 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
0-9039
1346 ) {-
1347 name = unit->runtimeStrings[cls->nameIndex];-
1348 constructor->defineReadonlyConfigurableProperty(engine->id_name(), name);-
1349 }
executed 9011 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
9011
1350-
1351 ScopedObject receiver(scope, *constructor);-
1352 ScopedPropertyKey propertyName(scope);-
1353 ScopedFunctionObject function(scope);-
1354 ScopedProperty property(scope);-
1355 const CompiledData::Method *methods = cls->methodTable();-
1356 for (uint i = 0; i < cls->nStaticMethods + cls->nMethods
i < cls->nStat... cls->nMethodsDescription
TRUEevaluated 7716 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9019 times by 1 test
Evaluated by:
  • tst_ecmascripttests
; ++i) {
7716-9019
1357 if (i == cls->nStaticMethods
i == cls->nStaticMethodsDescription
TRUEevaluated 3512 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4200 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
3512-4200
1358 receiver = proto;
executed 3542 times by 1 test: receiver = proto;
Executed by:
  • tst_ecmascripttests
3542
1359 if (methods[i].name ==
methods[i].nam...fff * 2U + 1U)Description
TRUEevaluated 479 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7239 times by 1 test
Evaluated by:
  • tst_ecmascripttests
479-7239
1360 (0x7fffffff * 2U + 1U)
methods[i].nam...fff * 2U + 1U)Description
TRUEevaluated 479 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7239 times by 1 test
Evaluated by:
  • tst_ecmascripttests
479-7239
1361 ) {-
1362 propertyName = computedNames->toPropertyKey(engine);-
1363 if (engine->hasException
engine->hasExceptionDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 447 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
32-447
1364 return
executed 32 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 32 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
32
1365 ++computedNames;-
1366 }
executed 447 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
else {
447
1367 name = unit->runtimeStrings[methods[i].name];-
1368 propertyName = name->toPropertyKey();-
1369 }
executed 7332 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
7332
1370 QV4::Function *f = unit->runtimeFunctions[methods[i].function];-
1371 ((f) ? static_cast<void>(0) : qt_assert("f", __FILE__, 1571));-
1372 if (f->isGenerator()
f->isGenerator()Description
TRUEevaluated 3043 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4725 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
3043-4725
1373 function = MemberGeneratorFunction::create(current, f);
executed 3047 times by 1 test: function = MemberGeneratorFunction::create(current, f);
Executed by:
  • tst_ecmascripttests
3047
1374 else-
1375 function = FunctionObject::createMemberFunction(current, f);
executed 4720 times by 1 test: function = FunctionObject::createMemberFunction(current, f);
Executed by:
  • tst_ecmascripttests
4720
1376 ((function) ? static_cast<void>(0) : qt_assert("function", __FILE__, 1576));-
1377 PropertyAttributes attributes;-
1378 switch (methods[i].type) {-
1379 case
executed 481 times by 1 test: case CompiledData::Method::Getter:
Executed by:
  • tst_ecmascripttests
CompiledData::Method::Getter:
executed 481 times by 1 test: case CompiledData::Method::Getter:
Executed by:
  • tst_ecmascripttests
481
1380 property->setGetter(function);-
1381 property->set = Primitive::emptyValue();-
1382 attributes = Attr_Accessor|Attr_NotEnumerable;-
1383 break;
executed 475 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
475
1384 case
executed 490 times by 1 test: case CompiledData::Method::Setter:
Executed by:
  • tst_ecmascripttests
CompiledData::Method::Setter:
executed 490 times by 1 test: case CompiledData::Method::Setter:
Executed by:
  • tst_ecmascripttests
490
1385 property->value = Primitive::emptyValue();-
1386 property->setSetter(function);-
1387 attributes = Attr_Accessor|Attr_NotEnumerable;-
1388 break;
executed 489 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
489
1389 default
executed 6776 times by 1 test: default:
Executed by:
  • tst_ecmascripttests
:
executed 6776 times by 1 test: default:
Executed by:
  • tst_ecmascripttests
6776
1390 property->value = function;-
1391 property->set = Primitive::emptyValue();-
1392 attributes = Attr_Data|Attr_NotEnumerable;-
1393 break;
executed 6776 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
6776
1394 }-
1395 receiver->defineOwnProperty(propertyName, property, attributes);-
1396 }
executed 7777 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
7777
1397-
1398 return
executed 9027 times by 1 test: return constructor->asReturnedValue();
Executed by:
  • tst_ecmascripttests
constructor->asReturnedValue();
executed 9027 times by 1 test: return constructor->asReturnedValue();
Executed by:
  • tst_ecmascripttests
9027
1399}-
1400-
1401QV4::ReturnedValue Runtime::method_createMappedArgumentsObject(ExecutionEngine *engine)-
1402{-
1403 ((engine->currentContext()->d()->type == Heap::ExecutionContext::Type_CallContext) ? static_cast<void>(0) : qt_assert("engine->currentContext()->d()->type == Heap::ExecutionContext::Type_CallContext", __FILE__, 1603));-
1404 Heap::InternalClass *ic = engine->internalClasses(EngineBase::Class_ArgumentsObject);-
1405 return
executed 4497 times by 11 tests: return engine->memoryManager->allocObject<ArgumentsObject>(ic, engine->currentStackFrame)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
engine->memoryManager->allocObject<ArgumentsObject>(ic, engine->currentStackFrame)->asReturnedValue();
executed 4497 times by 11 tests: return engine->memoryManager->allocObject<ArgumentsObject>(ic, engine->currentStackFrame)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
4497
1406}-
1407-
1408QV4::ReturnedValue Runtime::method_createUnmappedArgumentsObject(ExecutionEngine *engine)-
1409{-
1410 Heap::InternalClass *ic = engine->internalClasses(EngineBase::Class_StrictArgumentsObject);-
1411 return
executed 3845 times by 2 tests: return engine->memoryManager->allocObject<StrictArgumentsObject>(ic, engine->currentStackFrame)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
engine->memoryManager->allocObject<StrictArgumentsObject>(ic, engine->currentStackFrame)->asReturnedValue();
executed 3845 times by 2 tests: return engine->memoryManager->allocObject<StrictArgumentsObject>(ic, engine->currentStackFrame)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
3845
1412}-
1413-
1414QV4::ReturnedValue Runtime::method_createRestParameter(ExecutionEngine *engine, int argIndex)-
1415{-
1416 const Value *values = engine->currentStackFrame->originalArguments + argIndex;-
1417 int nValues = engine->currentStackFrame->originalArgumentsCount - argIndex;-
1418 if (nValues <= 0
nValues <= 0Description
TRUEevaluated 56 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 87 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
56-87
1419 return
executed 56 times by 1 test: return engine->newArrayObject(0)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
engine->newArrayObject(0)->asReturnedValue();
executed 56 times by 1 test: return engine->newArrayObject(0)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
56
1420 return
executed 87 times by 1 test: return engine->newArrayObject(values, nValues)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
engine->newArrayObject(values, nValues)->asReturnedValue();
executed 87 times by 1 test: return engine->newArrayObject(values, nValues)->asReturnedValue();
Executed by:
  • tst_ecmascripttests
87
1421}-
1422-
1423-
1424ReturnedValue Runtime::method_loadQmlContext(NoThrowEngine *engine)-
1425{-
1426 Heap::QmlContext *ctx = engine->qmlContext();-
1427 ((ctx) ? static_cast<void>(0) : qt_assert("ctx", __FILE__, 1627));-
1428 return
executed 1132860 times by 127 tests: return ctx->asReturnedValue();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
ctx->asReturnedValue();
executed 1132860 times by 127 tests: return ctx->asReturnedValue();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
1132860
1429}-
1430-
1431ReturnedValue Runtime::method_regexpLiteral(ExecutionEngine *engine, int id)-
1432{-
1433 Heap::RegExpObject *ro = engine->newRegExpObject(engine->currentStackFrame->v4Function->compilationUnit->runtimeRegularExpressions[id].as<RegExp>());-
1434 return
executed 1052987 times by 7 tests: return ro->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicktextinput
ro->asReturnedValue();
executed 1052987 times by 7 tests: return ro->asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicktextinput
1052987
1435}-
1436-
1437ReturnedValue Runtime::method_loadQmlScopeObjectProperty(ExecutionEngine *engine, const Value &context, int propertyIndex, bool captureRequired)-
1438{-
1439 const QmlContext &c = static_cast<const QmlContext &>(context);-
1440 return
executed 387980 times by 101 tests: return QV4::QObjectWrapper::getProperty(engine, c.d()->qml()->scopeObject, propertyIndex, captureRequired);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
QV4::QObjectWrapper::getProperty(engine, c.d()->qml()->scopeObject, propertyIndex, captureRequired);
executed 387980 times by 101 tests: return QV4::QObjectWrapper::getProperty(engine, c.d()->qml()->scopeObject, propertyIndex, captureRequired);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
387980
1441}-
1442-
1443ReturnedValue Runtime::method_loadQmlContextObjectProperty(ExecutionEngine *engine, const Value &context, int propertyIndex, bool captureRequired)-
1444{-
1445 const QmlContext &c = static_cast<const QmlContext &>(context);-
1446 return
never executed: return QV4::QObjectWrapper::getProperty(engine, (*c.d()->qml()->context)->contextObject, propertyIndex, captureRequired);
QV4::QObjectWrapper::getProperty(engine, (*c.d()->qml()->context)->contextObject, propertyIndex, captureRequired);
never executed: return QV4::QObjectWrapper::getProperty(engine, (*c.d()->qml()->context)->contextObject, propertyIndex, captureRequired);
0
1447}-
1448-
1449ReturnedValue Runtime::method_loadQmlIdObject(ExecutionEngine *engine, const Value &c, uint index)-
1450{-
1451 const QmlContext &qmlContext = static_cast<const QmlContext &>(c);-
1452 QQmlContextData *context = *qmlContext.d()->qml()->context;-
1453 if (!context
!contextDescription
TRUEnever evaluated
FALSEevaluated 475345 times by 80 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
|| index >= (uint)context->idValueCount
index >= (uint...->idValueCountDescription
TRUEnever evaluated
FALSEevaluated 475345 times by 80 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
)
0-475345
1454 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
1455-
1456 QQmlEnginePrivate *ep = engine->qmlEngine()
engine->qmlEngine()Description
TRUEevaluated 475345 times by 80 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
FALSEnever evaluated
? QQmlEnginePrivate::get(engine->qmlEngine()) : nullptr;
0-475345
1457 if (ep
epDescription
TRUEevaluated 475345 times by 80 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
FALSEnever evaluated
&& ep->propertyCapture
ep->propertyCaptureDescription
TRUEevaluated 442980 times by 66 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • ...
FALSEevaluated 32365 times by 61 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
)
0-475345
1458 ep->propertyCapture->captureProperty(&context->idValues[index].bindings);
executed 442980 times by 66 tests: ep->propertyCapture->captureProperty(&context->idValues[index].bindings);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • ...
442980
1459-
1460 return
executed 475345 times by 80 tests: return QObjectWrapper::wrap(engine, context->idValues[index].data());
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
QObjectWrapper::wrap(engine, context->idValues[index].data());
executed 475345 times by 80 tests: return QObjectWrapper::wrap(engine, context->idValues[index].data());
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
475345
1461}-
1462-
1463void Runtime::method_storeQmlScopeObjectProperty(ExecutionEngine *engine, const Value &context, int propertyIndex, const Value &value)-
1464{-
1465 const QmlContext &c = static_cast<const QmlContext &>(context);-
1466 return
executed 11831 times by 57 tests: return QV4::QObjectWrapper::setProperty(engine, c.d()->qml()->scopeObject, propertyIndex, value);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
QV4::QObjectWrapper::setProperty(engine, c.d()->qml()->scopeObject, propertyIndex, value);
executed 11831 times by 57 tests: return QV4::QObjectWrapper::setProperty(engine, c.d()->qml()->scopeObject, propertyIndex, value);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
11831
1467}-
1468-
1469void Runtime::method_storeQmlContextObjectProperty(ExecutionEngine *engine, const Value &context, int propertyIndex, const Value &value)-
1470{-
1471 const QmlContext &c = static_cast<const QmlContext &>(context);-
1472 return
never executed: return QV4::QObjectWrapper::setProperty(engine, (*c.d()->qml()->context)->contextObject, propertyIndex, value);
QV4::QObjectWrapper::setProperty(engine, (*c.d()->qml()->context)->contextObject, propertyIndex, value);
never executed: return QV4::QObjectWrapper::setProperty(engine, (*c.d()->qml()->context)->contextObject, propertyIndex, value);
0
1473}-
1474-
1475ReturnedValue Runtime::method_loadQmlImportedScripts(NoThrowEngine *engine)-
1476{-
1477 QQmlContextData *context = engine->callingQmlContext();-
1478 if (!context
!contextDescription
TRUEnever evaluated
FALSEevaluated 1132860 times by 127 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
)
0-1132860
1479 return
never executed: return Encode::undefined();
Encode::undefined();
never executed: return Encode::undefined();
0
1480 return
executed 1132860 times by 127 tests: return context->importedScripts.value();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
context->importedScripts.value();
executed 1132860 times by 127 tests: return context->importedScripts.value();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
1132860
1481}-
1482-
1483ReturnedValue Runtime::method_uMinus(const Value &value)-
1484{-
1485 ;-
1486-
1487-
1488 if (value.isInteger()
value.isInteger()Description
TRUEevaluated 45696 times by 20 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 6114 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
&& value.integerValue()
value.integerValue()Description
TRUEevaluated 42547 times by 20 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 3231 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlecmascript
&&
3231-45696
1489 value.integerValue() != std::numeric_limits<int>::min()
value.integerV...ts<int>::min()Description
TRUEevaluated 42597 times by 20 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
)
0-42597
1490 return
executed 42514 times by 20 tests: return Encode(-value.integerValue());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
Encode(-value.integerValue());
executed 42514 times by 20 tests: return Encode(-value.integerValue());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
42514
1491 else {-
1492 double n = RuntimeHelpers::toNumber(value);-
1493 return
executed 9347 times by 9 tests: return Encode(-n);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
Encode(-n);
executed 9347 times by 9 tests: return Encode(-n);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
9347
1494 }-
1495}-
1496-
1497-
1498-
1499-
1500ReturnedValue Runtime::method_add(ExecutionEngine *engine, const Value &left, const Value &right)-
1501{-
1502 ;-
1503-
1504 if (__builtin_expect(!!(left.integerCompatible() && right.integerCompatible()), true)
__builtin_expe...ible()), true)Description
TRUEnever evaluated
FALSEevaluated 58258761 times by 43 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
)
0-58258761
1505 return
never executed: return add_int32(left.integerValue(), right.integerValue());
add_int32(left.integerValue(), right.integerValue());
never executed: return add_int32(left.integerValue(), right.integerValue());
0
1506 if (left.isNumber()
left.isNumber()Description
TRUEevaluated 200473 times by 20 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 58174134 times by 36 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
&& right.isNumber()
right.isNumber()Description
TRUEevaluated 15197 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 185276 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
)
15197-58174134
1507 return
executed 15197 times by 16 tests: return Primitive::fromDouble(left.asDouble() + right.asDouble()).asReturnedValue();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_scenegraph
Primitive::fromDouble(left.asDouble() + right.asDouble()).asReturnedValue();
executed 15197 times by 16 tests: return Primitive::fromDouble(left.asDouble() + right.asDouble()).asReturnedValue();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_scenegraph
15197
1508-
1509 return
executed 58324886 times by 37 tests: return RuntimeHelpers::addHelper(engine, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
RuntimeHelpers::addHelper(engine, left, right);
executed 58324886 times by 37 tests: return RuntimeHelpers::addHelper(engine, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
58324886
1510}-
1511-
1512-
1513ReturnedValue Runtime::method_sub(const Value &left, const Value &right)-
1514{-
1515 ;-
1516-
1517 if (__builtin_expect(!!(left.integerCompatible() && right.integerCompatible()), true)
__builtin_expe...ible()), true)Description
TRUEnever evaluated
FALSEevaluated 10773 times by 19 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
  • tst_qquicktext
)
0-10773
1518 return
never executed: return sub_int32(left.integerValue(), right.integerValue());
sub_int32(left.integerValue(), right.integerValue());
never executed: return sub_int32(left.integerValue(), right.integerValue());
0
1519-
1520 double lval = left.isNumber()
left.isNumber()Description
TRUEevaluated 10355 times by 19 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
  • tst_qquicktext
FALSEevaluated 418 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? left.asDouble() : left.toNumberImpl();
418-10355
1521 double rval = right.isNumber()
right.isNumber()Description
TRUEevaluated 10297 times by 19 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
  • tst_qquicktext
FALSEevaluated 476 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? right.asDouble() : right.toNumberImpl();
476-10297
1522-
1523 return
executed 10773 times by 19 tests: return Primitive::fromDouble(lval - rval).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
  • tst_qquicktext
Primitive::fromDouble(lval - rval).asReturnedValue();
executed 10773 times by 19 tests: return Primitive::fromDouble(lval - rval).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
  • tst_qquicktext
10773
1524}-
1525-
1526ReturnedValue Runtime::method_mul(const Value &left, const Value &right)-
1527{-
1528 ;-
1529-
1530 if (__builtin_expect(!!(left.integerCompatible() && right.integerCompatible()), true)
__builtin_expe...ible()), true)Description
TRUEnever evaluated
FALSEevaluated 18950 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
)
0-18950
1531 return
never executed: return mul_int32(left.integerValue(), right.integerValue());
mul_int32(left.integerValue(), right.integerValue());
never executed: return mul_int32(left.integerValue(), right.integerValue());
0
1532-
1533 double lval = left.isNumber()
left.isNumber()Description
TRUEevaluated 18429 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 521 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? left.asDouble() : left.toNumberImpl();
521-18429
1534 double rval = right.isNumber()
right.isNumber()Description
TRUEevaluated 18467 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 484 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? right.asDouble() : right.toNumberImpl();
484-18467
1535-
1536 return
executed 18950 times by 10 tests: return Primitive::fromDouble(lval * rval).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
Primitive::fromDouble(lval * rval).asReturnedValue();
executed 18950 times by 10 tests: return Primitive::fromDouble(lval * rval).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
18950
1537}-
1538-
1539ReturnedValue Runtime::method_div(const Value &left, const Value &right)-
1540{-
1541 ;-
1542-
1543 if (Value::integerCompatible(left, right)
Value::integer...e(left, right)Description
TRUEevaluated 1195746 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlincubator
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 996134 times by 24 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
  • tst_touchmouse
) {
996134-1195746
1544 int lval = left.integerValue();-
1545 int rval = right.integerValue();-
1546 if (rval != 0
rval != 0Description
TRUEevaluated 1168689 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlincubator
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 28185 times by 1 test
Evaluated by:
  • tst_ecmascripttests
28185-1168689
1547 && (
(lval % rval == 0)Description
TRUEevaluated 1145725 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 23489 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlincubator
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
lval % rval == 0)
(lval % rval == 0)Description
TRUEevaluated 1145725 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 23489 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlincubator
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
23489-1145725
1548 && !(lval == 0
lval == 0Description
TRUEevaluated 39951 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 1106031 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
&& rval < 0
rval < 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 39939 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
))
12-1106031
1549 return
executed 1145210 times by 5 tests: return Encode(int(lval / rval));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
Encode(int(lval / rval));
executed 1145210 times by 5 tests: return Encode(int(lval / rval));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
1145210
1550 else-
1551 return
executed 51684 times by 9 tests: return Encode(double(lval) / rval);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlincubator
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
Encode(double(lval) / rval);
executed 51684 times by 9 tests: return Encode(double(lval) / rval);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlincubator
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
51684
1552 }-
1553-
1554 double lval = left.toNumber();-
1555 double rval = right.toNumber();-
1556 return
executed 996136 times by 24 tests: return Primitive::fromDouble(lval / rval).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
  • tst_touchmouse
Primitive::fromDouble(lval / rval).asReturnedValue();
executed 996136 times by 24 tests: return Primitive::fromDouble(lval / rval).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
  • tst_touchmouse
996136
1557}-
1558-
1559ReturnedValue Runtime::method_mod(const Value &left, const Value &right)-
1560{-
1561 ;-
1562-
1563 if (Value::integerCompatible(left, right)
Value::integer...e(left, right)Description
TRUEevaluated 5609 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEevaluated 31274 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquicklayouts
&& left.integerValue() > 0
left.integerValue() > 0Description
TRUEevaluated 5171 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEevaluated 438 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
&& right.integerValue() > 0
right.integerValue() > 0Description
TRUEevaluated 5139 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
32-31274
1564 int intRes = left.integerValue() % right.integerValue();-
1565 if (intRes != 0
intRes != 0Description
TRUEevaluated 3643 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEevaluated 1496 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
|| left.integerValue() >= 0
left.integerValue() >= 0Description
TRUEevaluated 1496 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
FALSEnever evaluated
)
0-3643
1566 return
executed 5139 times by 6 tests: return Encode(intRes);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
Encode(intRes);
executed 5139 times by 6 tests: return Encode(intRes);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_scenegraph
5139
1567 }
never executed: end of block
0
1568-
1569 double lval = RuntimeHelpers::toNumber(left);-
1570 double rval = RuntimeHelpers::toNumber(right);-
1571-
1572-
1573-
1574 return
executed 31744 times by 8 tests: return Primitive::fromDouble(std::fmod(lval, rval)).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_scenegraph
Primitive::fromDouble(std::fmod(lval, rval)).asReturnedValue();
executed 31744 times by 8 tests: return Primitive::fromDouble(std::fmod(lval, rval)).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_scenegraph
31744
1575}-
1576-
1577ReturnedValue Runtime::method_shl(const Value &left, const Value &right)-
1578{-
1579 ;-
1580-
1581 int lval = left.toInt32();-
1582 int rval = right.toInt32() & 0x1f;-
1583 return
never executed: return Encode((int)(lval << rval));
Encode((int)(lval << rval));
never executed: return Encode((int)(lval << rval));
0
1584}-
1585-
1586ReturnedValue Runtime::method_shr(const Value &left, const Value &right)-
1587{-
1588 ;-
1589-
1590 int lval = left.toInt32();-
1591 unsigned rval = right.toUInt32() & 0x1f;-
1592 return
never executed: return Encode((int)(lval >> rval));
Encode((int)(lval >> rval));
never executed: return Encode((int)(lval >> rval));
0
1593}-
1594-
1595ReturnedValue Runtime::method_ushr(const Value &left, const Value &right)-
1596{-
1597 ;-
1598-
1599 unsigned lval = left.toUInt32();-
1600 unsigned rval = right.toUInt32() & 0x1f;-
1601 uint res = lval >> rval;-
1602-
1603 return
never executed: return Encode(res);
Encode(res);
never executed: return Encode(res);
0
1604}-
1605-
1606-
1607-
1608ReturnedValue Runtime::method_greaterThan(const Value &left, const Value &right)-
1609{-
1610 ;-
1611-
1612 bool r = method_compareGreaterThan(left, right);-
1613 return
never executed: return Encode(r);
Encode(r);
never executed: return Encode(r);
0
1614}-
1615-
1616ReturnedValue Runtime::method_lessThan(const Value &left, const Value &right)-
1617{-
1618 ;-
1619-
1620 bool r = method_compareLessThan(left, right);-
1621 return
never executed: return Encode(r);
Encode(r);
never executed: return Encode(r);
0
1622}-
1623-
1624ReturnedValue Runtime::method_greaterEqual(const Value &left, const Value &right)-
1625{-
1626 ;-
1627-
1628 bool r = method_compareGreaterEqual(left, right);-
1629 return
never executed: return Encode(r);
Encode(r);
never executed: return Encode(r);
0
1630}-
1631-
1632ReturnedValue Runtime::method_lessEqual(const Value &left, const Value &right)-
1633{-
1634 ;-
1635-
1636 bool r = method_compareLessEqual(left, right);-
1637 return
never executed: return Encode(r);
Encode(r);
never executed: return Encode(r);
0
1638}-
1639-
1640struct LazyScope-
1641{-
1642 ExecutionEngine *engine = nullptr;-
1643 Value *stackMark = nullptr;-
1644 ~LazyScope() {-
1645 if (engine
engineDescription
TRUEevaluated 663 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEevaluated 192641 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
)
663-192641
1646 engine->jsStackTop = stackMark;
executed 663 times by 5 tests: engine->jsStackTop = stackMark;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
663
1647 }
executed 193304 times by 33 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
193304
1648 template <typename T>-
1649 void set(Value **scopedValue, T value, ExecutionEngine *e) {-
1650 if (!engine
!engineDescription
TRUEevaluated 662 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEnever evaluated
) {
0-662
1651 engine = e;-
1652 stackMark = engine->jsStackTop;-
1653 }
executed 662 times by 5 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
662
1654 if (!*scopedValue
!*scopedValueDescription
TRUEevaluated 661 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
FALSEnever evaluated
)
0-661
1655 *
executed 662 times by 5 tests: *scopedValue = e->jsAlloca(1);
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
scopedValue = e->jsAlloca(1);
executed 662 times by 5 tests: *scopedValue = e->jsAlloca(1);
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
662
1656 **scopedValue = value;-
1657 }
executed 661 times by 5 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
661
1658};-
1659-
1660Bool Runtime::method_compareEqual(const Value &left, const Value &right)-
1661{-
1662 ;-
1663-
1664 Value lhs = left;-
1665 Value rhs = right;-
1666-
1667-
1668 LazyScope scope;-
1669 Value *lhsGuard = nullptr;-
1670 Value *rhsGuard = nullptr;-
1671-
1672-
1673 redo:
code before this statement executed 193302 times by 33 tests: redo:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
193302
1674 if (lhs.asReturnedValue() == rhs.asReturnedValue()
lhs.asReturned...eturnedValue()Description
TRUEevaluated 2620 times by 17 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 191347 times by 30 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • ...
)
2620-191347
1675 return
executed 2620 times by 17 tests: return !lhs.isNaN();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
!lhs.isNaN();
executed 2620 times by 17 tests: return !lhs.isNaN();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2620
1676-
1677 int lt = lhs.quickType();-
1678 int rt = rhs.quickType();-
1679 if (rt < lt
rt < ltDescription
TRUEevaluated 1040 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
  • tst_qquicklistview
FALSEevaluated 190308 times by 30 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • ...
) {
1040-190308
1680 qSwap(lhs, rhs);-
1681 qSwap(lt, rt);-
1682 }
executed 1040 times by 10 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
  • tst_qquicklistview
1040
1683-
1684 switch (lt) {-
1685 case
executed 188032 times by 29 tests: case QV4::Value::QT_ManagedOrUndefined:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
QV4::Value::QT_ManagedOrUndefined:
executed 188032 times by 29 tests: case QV4::Value::QT_ManagedOrUndefined:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
188032
1686 if (lhs.isUndefined()
lhs.isUndefined()Description
TRUEevaluated 164 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickitem2
FALSEevaluated 187867 times by 29 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
)
164-187867
1687 return
executed 164 times by 4 tests: return rhs.isNullOrUndefined();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickitem2
rhs.isNullOrUndefined();
executed 164 times by 4 tests: return rhs.isNullOrUndefined();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickitem2
164
1688 (void)0;-
1689 case
never executed: case QV4::Value::QT_ManagedOrUndefined1:
code before this statement executed 187867 times by 29 tests: case QV4::Value::QT_ManagedOrUndefined1:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
never executed: case QV4::Value::QT_ManagedOrUndefined1:
QV4::Value::QT_ManagedOrUndefined1:
code before this statement executed 187867 times by 29 tests: case QV4::Value::QT_ManagedOrUndefined1:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
never executed: case QV4::Value::QT_ManagedOrUndefined1:
0-187867
1690 case
never executed: case QV4::Value::QT_ManagedOrUndefined2:
QV4::Value::QT_ManagedOrUndefined2:
never executed: case QV4::Value::QT_ManagedOrUndefined2:
0
1691 case
never executed: case QV4::Value::QT_ManagedOrUndefined3:
QV4::Value::QT_ManagedOrUndefined3:
never executed: case QV4::Value::QT_ManagedOrUndefined3:
0
1692-
1693 switch (rt) {-
1694 case
executed 187127 times by 29 tests: case QV4::Value::QT_ManagedOrUndefined:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
QV4::Value::QT_ManagedOrUndefined:
executed 187127 times by 29 tests: case QV4::Value::QT_ManagedOrUndefined:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
187127
1695 if (rhs.isUndefined()
rhs.isUndefined()Description
TRUEevaluated 70 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qtqmlmodules
FALSEevaluated 187057 times by 28 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
)
70-187057
1696 return
executed 70 times by 7 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qtqmlmodules
false;
executed 70 times by 7 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qtqmlmodules
70
1697 (void)0;-
1698 case
never executed: case QV4::Value::QT_ManagedOrUndefined1:
code before this statement executed 187058 times by 28 tests: case QV4::Value::QT_ManagedOrUndefined1:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
never executed: case QV4::Value::QT_ManagedOrUndefined1:
QV4::Value::QT_ManagedOrUndefined1:
code before this statement executed 187058 times by 28 tests: case QV4::Value::QT_ManagedOrUndefined1:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
never executed: case QV4::Value::QT_ManagedOrUndefined1:
0-187058
1699 case
never executed: case QV4::Value::QT_ManagedOrUndefined2:
QV4::Value::QT_ManagedOrUndefined2:
never executed: case QV4::Value::QT_ManagedOrUndefined2:
0
1700 case
never executed: case QV4::Value::QT_ManagedOrUndefined3:
QV4::Value::QT_ManagedOrUndefined3:
never executed: case QV4::Value::QT_ManagedOrUndefined3:
{
0
1701-
1702-
1703 Heap::Base *l = lhs.m();-
1704 Heap::Base *r = rhs.m();-
1705 ((l) ? static_cast<void>(0) : qt_assert("l", __FILE__, 1905));-
1706 ((r) ? static_cast<void>(0) : qt_assert("r", __FILE__, 1906));-
1707 if (l->internalClass->vtable->isStringOrSymbol == r->internalClass->vtable->isStringOrSymbol
l->internalCla...StringOrSymbolDescription
TRUEevaluated 186756 times by 28 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 302 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
)
302-186756
1708 return
executed 186756 times by 28 tests: return static_cast<QV4::Managed &>(lhs).isEqualTo(&static_cast<QV4::Managed &>(rhs));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
static_cast<QV4::Managed &>(lhs).isEqualTo(&static_cast<QV4::Managed &>(rhs));
executed 186756 times by 28 tests: return static_cast<QV4::Managed &>(lhs).isEqualTo(&static_cast<QV4::Managed &>(rhs));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
186756
1709 if (l->internalClass->vtable->isStringOrSymbol
l->internalCla...StringOrSymbolDescription
TRUEevaluated 84 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
FALSEevaluated 218 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
) {
84-218
1710 scope.set(&rhsGuard, RuntimeHelpers::objectDefaultValue(&static_cast<QV4::Object &>(rhs), PREFERREDTYPE_HINT), r->internalClass->engine);-
1711 rhs = rhsGuard->asReturnedValue();-
1712 break;
executed 84 times by 2 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
84
1713 } else {-
1714 ((r->internalClass->vtable->isStringOrSymbol) ? static_cast<void>(0) : qt_assert("r->internalClass->vtable->isStringOrSymbol", __FILE__, 1914));-
1715 scope.set(&lhsGuard, RuntimeHelpers::objectDefaultValue(&static_cast<QV4::Object &>(lhs), PREFERREDTYPE_HINT), l->internalClass->engine);-
1716 lhs = lhsGuard->asReturnedValue();-
1717 break;
executed 217 times by 5 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
217
1718 }-
1719-
1720 return
dead code: return false;
false;
dead code: return false;
-
1721 }-
1722 case
never executed: case QV4::Value::QT_Empty:
QV4::Value::QT_Empty:
never executed: case QV4::Value::QT_Empty:
0
1723 do { ((false) ? static_cast<void>(0) : qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached", __FILE__, 1923)); __builtin_unreachable(); } while (false);-
1724 case
executed 40 times by 5 tests: case QV4::Value::QT_Null:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
code before this statement never executed: case QV4::Value::QT_Null:
executed 40 times by 5 tests: case QV4::Value::QT_Null:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
QV4::Value::QT_Null:
code before this statement never executed: case QV4::Value::QT_Null:
executed 40 times by 5 tests: case QV4::Value::QT_Null:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
0-40
1725 return
executed 40 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
false;
executed 40 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
40
1726 case
executed 188 times by 2 tests: case QV4::Value::QT_Bool:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
QV4::Value::QT_Bool:
executed 188 times by 2 tests: case QV4::Value::QT_Bool:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
188
1727 case
executed 279 times by 4 tests: case QV4::Value::QT_Int:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
QV4::Value::QT_Int:
executed 279 times by 4 tests: case QV4::Value::QT_Int:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
279
1728 rhs = Primitive::fromDouble(rhs.int_32());-
1729-
1730 default
executed 701 times by 5 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
:
executed 701 times by 5 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
code before this statement executed 467 times by 4 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
467-701
1731-
1732 if (lhs.m()->internalClass->vtable->isStringOrSymbol
lhs.m()->inter...StringOrSymbolDescription
TRUEevaluated 340 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
FALSEevaluated 360 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
) {
340-360
1733 return
executed 340 times by 5 tests: return lhs.m()->internalClass->vtable->isString ? (RuntimeHelpers::toNumber(lhs) == rhs.doubleValue()) : false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
lhs.m()->internalClass->vtable->isString ? (RuntimeHelpers::toNumber(lhs) == rhs.doubleValue()) : false;
executed 340 times by 5 tests: return lhs.m()->internalClass->vtable->isString ? (RuntimeHelpers::toNumber(lhs) == rhs.doubleValue()) : false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
340
1734 } else {-
1735 scope.set(&lhsGuard, RuntimeHelpers::objectDefaultValue(&static_cast<QV4::Object &>(lhs), PREFERREDTYPE_HINT), lhs.m()->internalClass->engine);-
1736 lhs = lhsGuard->asReturnedValue();-
1737 }
executed 361 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
361
1738-
1739-
1740-
1741 }-
1742 goto
executed 662 times by 5 tests: goto redo;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
redo;
executed 662 times by 5 tests: goto redo;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
662
1743 case
never executed: case QV4::Value::QT_Empty:
QV4::Value::QT_Empty:
never executed: case QV4::Value::QT_Empty:
0
1744 do { ((false) ? static_cast<void>(0) : qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached", __FILE__, 1944)); __builtin_unreachable(); } while (false);-
1745 case
executed 44 times by 3 tests: case QV4::Value::QT_Null:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
code before this statement never executed: case QV4::Value::QT_Null:
executed 44 times by 3 tests: case QV4::Value::QT_Null:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
QV4::Value::QT_Null:
code before this statement never executed: case QV4::Value::QT_Null:
executed 44 times by 3 tests: case QV4::Value::QT_Null:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
0-44
1746 return
executed 44 times by 3 tests: return rhs.isNull();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
rhs.isNull();
executed 44 times by 3 tests: return rhs.isNull();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
44
1747 case
executed 2094 times by 10 tests: case QV4::Value::QT_Bool:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
QV4::Value::QT_Bool:
executed 2094 times by 10 tests: case QV4::Value::QT_Bool:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
2094
1748 case
executed 1090 times by 7 tests: case QV4::Value::QT_Int:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquicklayouts
  • tst_qquicklistview
QV4::Value::QT_Int:
executed 1090 times by 7 tests: case QV4::Value::QT_Int:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquicklayouts
  • tst_qquicklistview
1090
1749 switch (rt) {-
1750 case
never executed: case QV4::Value::QT_ManagedOrUndefined:
QV4::Value::QT_ManagedOrUndefined:
never executed: case QV4::Value::QT_ManagedOrUndefined:
0
1751 case
never executed: case QV4::Value::QT_ManagedOrUndefined1:
QV4::Value::QT_ManagedOrUndefined1:
never executed: case QV4::Value::QT_ManagedOrUndefined1:
0
1752 case
never executed: case QV4::Value::QT_ManagedOrUndefined2:
QV4::Value::QT_ManagedOrUndefined2:
never executed: case QV4::Value::QT_ManagedOrUndefined2:
0
1753 case
never executed: case QV4::Value::QT_ManagedOrUndefined3:
QV4::Value::QT_ManagedOrUndefined3:
never executed: case QV4::Value::QT_ManagedOrUndefined3:
0
1754 case
never executed: case QV4::Value::QT_Empty:
QV4::Value::QT_Empty:
never executed: case QV4::Value::QT_Empty:
0
1755 case
never executed: case QV4::Value::QT_Null:
QV4::Value::QT_Null:
never executed: case QV4::Value::QT_Null:
0
1756 do { ((false) ? static_cast<void>(0) : qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached", __FILE__, 1956)); __builtin_unreachable(); } while (false);-
1757 case
executed 1898 times by 10 tests: case QV4::Value::QT_Bool:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
code before this statement never executed: case QV4::Value::QT_Bool:
executed 1898 times by 10 tests: case QV4::Value::QT_Bool:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
QV4::Value::QT_Bool:
code before this statement never executed: case QV4::Value::QT_Bool:
executed 1898 times by 10 tests: case QV4::Value::QT_Bool:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
0-1898
1758 case
executed 114 times by 2 tests: case QV4::Value::QT_Int:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
QV4::Value::QT_Int:
executed 114 times by 2 tests: case QV4::Value::QT_Int:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
114
1759 return
executed 2011 times by 10 tests: return lhs.int_32() == rhs.int_32();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
lhs.int_32() == rhs.int_32();
executed 2011 times by 10 tests: return lhs.int_32() == rhs.int_32();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
2011
1760 default
executed 1173 times by 7 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquicklayouts
  • tst_qquicklistview
:
executed 1173 times by 7 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquicklayouts
  • tst_qquicklistview
1173
1761 return
executed 1173 times by 7 tests: return lhs.int_32() == rhs.doubleValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquicklayouts
  • tst_qquicklistview
lhs.int_32() == rhs.doubleValue();
executed 1173 times by 7 tests: return lhs.int_32() == rhs.doubleValue();
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquicklayouts
  • tst_qquicklistview
1173
1762 }-
1763 default
executed 86 times by 5 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
:
executed 86 times by 5 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
86
1764 ((rhs.isDouble()) ? static_cast<void>(0) : qt_assert("rhs.isDouble()", __FILE__, 1964));-
1765 return
executed 86 times by 5 tests: return lhs.doubleValue() == rhs.doubleValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
lhs.doubleValue() == rhs.doubleValue();
executed 86 times by 5 tests: return lhs.doubleValue() == rhs.doubleValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
86
1766 }-
1767}-
1768-
1769ReturnedValue Runtime::method_equal(const Value &left, const Value &right)-
1770{-
1771 ;-
1772-
1773 bool r = method_compareEqual(left, right);-
1774 return
executed 12 times by 2 tests: return Encode(r);
Executed by:
  • tst_qqmlbinding
  • tst_qquicklistview
Encode(r);
executed 12 times by 2 tests: return Encode(r);
Executed by:
  • tst_qqmlbinding
  • tst_qquicklistview
12
1775}-
1776-
1777ReturnedValue Runtime::method_notEqual(const Value &left, const Value &right)-
1778{-
1779 ;-
1780-
1781 bool r = !method_compareEqual(left, right);-
1782 return
never executed: return Encode(r);
Encode(r);
never executed: return Encode(r);
0
1783}-
1784-
1785ReturnedValue Runtime::method_strictEqual(const Value &left, const Value &right)-
1786{-
1787 ;-
1788-
1789 bool r = RuntimeHelpers::strictEqual(left, right);-
1790 return
executed 132 times by 1 test: return Encode(r);
Executed by:
  • tst_qqmlecmascript
Encode(r);
executed 132 times by 1 test: return Encode(r);
Executed by:
  • tst_qqmlecmascript
132
1791}-
1792-
1793ReturnedValue Runtime::method_strictNotEqual(const Value &left, const Value &right)-
1794{-
1795 ;-
1796-
1797 bool r = ! RuntimeHelpers::strictEqual(left, right);-
1798 return
never executed: return Encode(r);
Encode(r);
never executed: return Encode(r);
0
1799}-
1800-
1801Bool Runtime::method_compareNotEqual(const Value &left, const Value &right)-
1802{-
1803 ;-
1804-
1805 return
executed 1520 times by 4 tests: return !Runtime::method_compareEqual(left, right);
Executed by:
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_signalspy
!Runtime::method_compareEqual(left, right);
executed 1520 times by 4 tests: return !Runtime::method_compareEqual(left, right);
Executed by:
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_signalspy
1520
1806}-
1807-
1808Bool Runtime::method_compareStrictEqual(const Value &left, const Value &right)-
1809{-
1810 ;-
1811-
1812 return
never executed: return RuntimeHelpers::strictEqual(left, right);
RuntimeHelpers::strictEqual(left, right);
never executed: return RuntimeHelpers::strictEqual(left, right);
0
1813}-
1814-
1815Bool Runtime::method_compareStrictNotEqual(const Value &left, const Value &right)-
1816{-
1817 ;-
1818-
1819 return
never executed: return ! RuntimeHelpers::strictEqual(left, right);
! RuntimeHelpers::strictEqual(left, right);
never executed: return ! RuntimeHelpers::strictEqual(left, right);
0
1820}-
1821-
1822}-
1823-
1824-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0