OpenCoverage

qv4math_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4math_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11namespace QV4 {-
12-
13static inline __attribute((const)) ReturnedValue add_int32(int a, int b)-
14{-
15 int result;-
16 if (__builtin_expect(!!(add_overflow(a, b, &result)), false)
__builtin_expe...sult)), false)Description
TRUEnever evaluated
FALSEevaluated 72452424 times by 49 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
)
0-72452424
17 return
never executed: return Primitive::fromDouble(static_cast<double>(a) + b).asReturnedValue();
Primitive::fromDouble(static_cast<double>(a) + b).asReturnedValue();
never executed: return Primitive::fromDouble(static_cast<double>(a) + b).asReturnedValue();
0
18 return
executed 72456332 times by 49 tests: return Primitive::fromInt32(result).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
Primitive::fromInt32(result).asReturnedValue();
executed 72456332 times by 49 tests: return Primitive::fromInt32(result).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
72456332
19}-
20-
21static inline __attribute((const)) ReturnedValue sub_int32(int a, int b)-
22{-
23 int result;-
24 if (__builtin_expect(!!(sub_overflow(a, b, &result)), false)
__builtin_expe...sult)), false)Description
TRUEnever evaluated
FALSEevaluated 16842670 times by 14 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qv4debugger
)
0-16842670
25 return
never executed: return Primitive::fromDouble(static_cast<double>(a) - b).asReturnedValue();
Primitive::fromDouble(static_cast<double>(a) - b).asReturnedValue();
never executed: return Primitive::fromDouble(static_cast<double>(a) - b).asReturnedValue();
0
26 return
executed 16844756 times by 14 tests: return Primitive::fromInt32(result).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qv4debugger
Primitive::fromInt32(result).asReturnedValue();
executed 16844756 times by 14 tests: return Primitive::fromInt32(result).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qv4debugger
16844756
27}-
28-
29static inline __attribute((const)) ReturnedValue mul_int32(int a, int b)-
30{-
31 int result;-
32 if (__builtin_expect(!!(mul_overflow(a, b, &result)), false)
__builtin_expe...sult)), false)Description
TRUEevaluated 728 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 24771152 times by 14 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qv4debugger
)
728-24771152
33 return
executed 728 times by 1 test: return Primitive::fromDouble(static_cast<double>(a) * b).asReturnedValue();
Executed by:
  • tst_ecmascripttests
Primitive::fromDouble(static_cast<double>(a) * b).asReturnedValue();
executed 728 times by 1 test: return Primitive::fromDouble(static_cast<double>(a) * b).asReturnedValue();
Executed by:
  • tst_ecmascripttests
728
34 return
executed 24776457 times by 14 tests: return Primitive::fromInt32(result).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qv4debugger
Primitive::fromInt32(result).asReturnedValue();
executed 24776457 times by 14 tests: return Primitive::fromInt32(result).asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qv4debugger
24776457
35}-
36-
37}-
38-
39-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0