OpenCoverage

qv4codegen.cpp #1

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/compiler/qv4codegen.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2017 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQml module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qv4codegen_p.h"-
41#include "qv4util_p.h"-
42-
43#include <QtCore/QCoreApplication>-
44#include <QtCore/QStringList>-
45#include <QtCore/QSet>-
46#include <QtCore/QBuffer>-
47#include <QtCore/QBitArray>-
48#include <QtCore/QLinkedList>-
49#include <QtCore/QStack>-
50#include <private/qqmljsast_p.h>-
51#include <private/qv4string_p.h>-
52#include <private/qv4value_p.h>-
53#include <private/qv4compilercontext_p.h>-
54#include <private/qv4compilercontrolflow_p.h>-
55#include <private/qv4bytecodegenerator_p.h>-
56#include <private/qv4compilerscanfunctions_p.h>-
57-
58#include <cmath>-
59#include <iostream>-
60-
61static const bool disable_lookups = false;-
62-
63#ifdef CONST-
64#undef CONST-
65#endif-
66-
67QT_USE_NAMESPACE-
68using namespace QV4;-
69using namespace QV4::Compiler;-
70using namespace QQmlJS::AST;-
71-
72static inline void setJumpOutLocation(QV4::Moth::BytecodeGenerator *bytecodeGenerator,-
73 const Statement *body, const SourceLocation &fallback)-
74{-
75 switch (body->kind) {-
76 // Statements where we might never execute the last line.-
77 // Use the fallback.-
78 case Statement::Kind_ConditionalExpression:
never executed: case Statement::Kind_ConditionalExpression:
0
79 case Statement::Kind_ForEachStatement:
never executed: case Statement::Kind_ForEachStatement:
0
80 case Statement::Kind_ForStatement:
executed 1 time by 1 test: case Statement::Kind_ForStatement:
Executed by:
  • tst_examples
1
81 case Statement::Kind_IfStatement:
executed 36 times by 6 tests: case Statement::Kind_IfStatement:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_qv4debugger
36
82 case Statement::Kind_WhileStatement:
never executed: case Statement::Kind_WhileStatement:
0
83 bytecodeGenerator->setLocation(fallback);-
84 break;
executed 37 times by 6 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_qv4debugger
37
85 default:
executed 29394 times by 32 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • ...
29394
86 bytecodeGenerator->setLocation(body->lastSourceLocation());-
87 break;
executed 29519 times by 32 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • ...
29519
88 }-
89}-
90-
91Codegen::Codegen(QV4::Compiler::JSUnitGenerator *jsUnitGenerator, bool strict)-
92 : _module(nullptr)-
93 , _returnAddress(-1)-
94 , _context(nullptr)-
95 , _labelledStatement(nullptr)-
96 , jsUnitGenerator(jsUnitGenerator)-
97 , _strictMode(strict)-
98 , _fileNameIsUrl(false)-
99 , hasError(false)-
100{-
101 jsUnitGenerator->codeGeneratorName = QStringLiteral("moth");-
102}
executed 2337644 times by 146 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • ...
2337644
103-
104void Codegen::generateFromProgram(const QString &fileName,-
105 const QString &finalUrl,-
106 const QString &sourceCode,-
107 Program *node,-
108 Module *module,-
109 ContextType contextType)-
110{-
111 Q_ASSERT(node);-
112-
113 _module = module;-
114 _context = nullptr;-
115-
116 // ### should be set on the module outside of this method-
117 _module->fileName = fileName;-
118 _module->finalUrl = finalUrl;-
119-
120 ScanFunctions scan(this, sourceCode, contextType);-
121 scan(node);-
122-
123 if (hasError)
hasErrorDescription
TRUEevaluated 803 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 2287541 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • ...
803-2287541
124 return;
executed 804 times by 2 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
804
125-
126 defineFunction(QStringLiteral("%entry"), node, nullptr, node->statements);
executed 2287485 times by 40 tests: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • ...
2287485
127}
executed 2288407 times by 40 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • ...
2288407
128-
129void Codegen::enterContext(Node *node)-
130{-
131 _context = _module->contextMap.value(node);-
132 Q_ASSERT(_context);-
133}
executed 5192762 times by 139 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
5192762
134-
135int Codegen::leaveContext()-
136{-
137 Q_ASSERT(_context);-
138 int functionIndex = _context->functionIndex;-
139 _context = _context->parent;-
140 return functionIndex;
executed 5176091 times by 139 tests: return functionIndex;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
5176091
141}-
142-
143Context *Codegen::enterBlock(Node *node)-
144{-
145 enterContext(node);-
146 return _context;
executed 1789340 times by 76 tests: return _context;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • ...
1789340
147}-
148-
149Codegen::Reference Codegen::unop(UnaryOperation op, const Reference &expr)-
150{-
151 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 272711 times by 59 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • ...
0-272711
152 return _expr.result();
never executed: return _expr.result();
0
153-
154#ifndef V4_BOOTSTRAP-
155 if (expr.isConstant()) {
expr.isConstant()Description
TRUEevaluated 53445 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 219914 times by 55 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
53445-219914
156 auto v = Value::fromReturnedValue(expr.constant);-
157 if (v.isNumber()) {
v.isNumber()Description
TRUEevaluated 53205 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 254 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
254-53205
158 switch (op) {-
159 case Not:
executed 84 times by 2 tests: case Not:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
84
160 return Reference::fromConst(this, Encode(!v.toBoolean()));
executed 84 times by 2 tests: return Reference::fromConst(this, Encode(!v.toBoolean()));
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
84
161 case UMinus:
executed 51680 times by 21 tests: case UMinus:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
51680
162 return Reference::fromConst(this, Runtime::method_uMinus(v));
executed 51648 times by 21 tests: return Reference::fromConst(this, Runtime::method_uMinus(v));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
51648
163 case UPlus:
executed 1116 times by 2 tests: case UPlus:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
1116
164 return expr;
executed 1116 times by 2 tests: return expr;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
1116
165 case Compl:
executed 292 times by 1 test: case Compl:
Executed by:
  • tst_ecmascripttests
292
166 return Reference::fromConst(this, Encode((int)~v.toInt32()));
executed 292 times by 1 test: return Reference::fromConst(this, Encode((int)~v.toInt32()));
Executed by:
  • tst_ecmascripttests
292
167 default:
never executed: default:
0
168 break;
never executed: break;
0
169 }-
170 }-
171 }
executed 254 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
254
172#endif // V4_BOOTSTRAP-
173-
174 switch (op) {-
175 case UMinus: {
executed 3893 times by 10 tests: case UMinus:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_scenegraph
3893
176 expr.loadInAccumulator();-
177 Instruction::UMinus uminus;-
178 bytecodeGenerator->addInstruction(uminus);-
179 return Reference::fromAccumulator(this);
executed 3894 times by 10 tests: return Reference::fromAccumulator(this);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_scenegraph
3894
180 }-
181 case UPlus: {
executed 1793 times by 3 tests: case UPlus:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
1793
182 expr.loadInAccumulator();-
183 Instruction::UPlus uplus;-
184 bytecodeGenerator->addInstruction(uplus);-
185 return Reference::fromAccumulator(this);
executed 1793 times by 3 tests: return Reference::fromAccumulator(this);
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
1793
186 }-
187 case Not: {
executed 192849 times by 33 tests: case Not:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
192849
188 expr.loadInAccumulator();-
189 Instruction::UNot unot;-
190 bytecodeGenerator->addInstruction(unot);-
191 return Reference::fromAccumulator(this);
executed 194851 times by 33 tests: return Reference::fromAccumulator(this);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
194851
192 }-
193 case Compl: {
executed 314 times by 4 tests: case Compl:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
314
194 expr.loadInAccumulator();-
195 Instruction::UCompl ucompl;-
196 bytecodeGenerator->addInstruction(ucompl);-
197 return Reference::fromAccumulator(this);
executed 314 times by 4 tests: return Reference::fromAccumulator(this);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
314
198 }-
199 case PostIncrement:
executed 13004 times by 28 tests: case PostIncrement:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • ...
13004
200 if (!_expr.accept(nx) || requiresReturnValue) {
!_expr.accept(nx)Description
TRUEevaluated 958 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 12046 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktableview
  • ...
requiresReturnValueDescription
TRUEevaluated 1619 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 10429 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktableview
  • ...
958-12046
201 Reference e = expr.asLValue();-
202 e.loadInAccumulator();-
203 Instruction::UPlus uplus;-
204 bytecodeGenerator->addInstruction(uplus);-
205 Reference originalValue = Reference::fromStackSlot(this).storeRetainAccumulator();-
206 Instruction::Increment inc;-
207 bytecodeGenerator->addInstruction(inc);-
208 e.storeConsumeAccumulator();-
209 return originalValue;
executed 2576 times by 9 tests: return originalValue;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
2576
210 } else {-
211 // intentionally fall-through: the result is never used, so it's equivalent to-
212 // "expr += 1", which is what a pre-increment does as well.-
213 Q_FALLTHROUGH();-
214 }
executed 10428 times by 27 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktableview
  • ...
10428
215 case PreIncrement: {
code before this statement executed 10428 times by 27 tests: case PreIncrement:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktableview
  • ...
executed 5126 times by 32 tests: case PreIncrement:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickscreen
  • ...
5126-10428
216 Reference e = expr.asLValue();-
217 e.loadInAccumulator();-
218 Instruction::Increment inc;-
219 bytecodeGenerator->addInstruction(inc);-
220 if (_expr.accept(nx))
_expr.accept(nx)Description
TRUEevaluated 14915 times by 42 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • ...
FALSEevaluated 676 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_signalspy
676-14915
221 return e.storeConsumeAccumulator();
executed 14911 times by 42 tests: return e.storeConsumeAccumulator();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnativeconnector
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • ...
14911
222 else-
223 return e.storeRetainAccumulator();
executed 676 times by 7 tests: return e.storeRetainAccumulator();
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qquickbehaviors
  • tst_signalspy
676
224 }-
225 case PostDecrement:
executed 445 times by 8 tests: case PostDecrement:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
445
226 if (!_expr.accept(nx) || requiresReturnValue) {
!_expr.accept(nx)Description
TRUEevaluated 128 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicklistview
FALSEevaluated 317 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
requiresReturnValueDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 313 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
4-317
227 Reference e = expr.asLValue();-
228 e.loadInAccumulator();-
229 Instruction::UPlus uplus;-
230 bytecodeGenerator->addInstruction(uplus);-
231 Reference originalValue = Reference::fromStackSlot(this).storeRetainAccumulator();-
232 Instruction::Decrement dec;-
233 bytecodeGenerator->addInstruction(dec);-
234 e.storeConsumeAccumulator();-
235 return originalValue;
executed 132 times by 3 tests: return originalValue;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicklistview
132
236 } else {-
237 // intentionally fall-through: the result is never used, so it's equivalent to-
238 // "expr -= 1", which is what a pre-decrement does as well.-
239 Q_FALLTHROUGH();-
240 }
executed 313 times by 7 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
313
241 case PreDecrement: {
code before this statement executed 313 times by 7 tests: case PreDecrement:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
executed 694 times by 10 tests: case PreDecrement:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
313-694
242 Reference e = expr.asLValue();-
243 e.loadInAccumulator();-
244 Instruction::Decrement dec;-
245 bytecodeGenerator->addInstruction(dec);-
246 if (_expr.accept(nx))
_expr.accept(nx)Description
TRUEevaluated 459 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
FALSEevaluated 235 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
235-459
247 return e.storeConsumeAccumulator();
executed 459 times by 10 tests: return e.storeConsumeAccumulator();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
459
248 else-
249 return e.storeRetainAccumulator();
executed 235 times by 4 tests: return e.storeRetainAccumulator();
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
235
250 }-
251 }-
252-
253 Q_UNREACHABLE();-
254}
never executed: end of block
0
255-
256void Codegen::addCJump()-
257{-
258 bytecodeGenerator->addCJumpInstruction(_expr.trueBlockFollowsCondition(),-
259 _expr.iftrue(), _expr.iffalse());-
260}
executed 1021943 times by 52 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • ...
1021943
261-
262void Codegen::accept(Node *node)-
263{-
264 if (hasError)
hasErrorDescription
TRUEevaluated 4847 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 40202378 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
4847-40202378
265 return;
executed 4847 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
4847
266-
267 if (node)
nodeDescription
TRUEevaluated 40283727 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEnever evaluated
0-40283727
268 node->accept(this);
executed 40258802 times by 139 tests: node->accept(this);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
40258802
269}
executed 40125496 times by 139 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
40125496
270-
271void Codegen::statement(Statement *ast)-
272{-
273 RegisterScope scope(this);-
274-
275 bytecodeGenerator->setLocation(ast->firstSourceLocation());-
276-
277 VolatileMemoryLocations vLocs = scanVolatileMemoryLocations(ast);-
278 qSwap(_volatileMemoryLocations, vLocs);-
279 accept(ast);-
280 qSwap(_volatileMemoryLocations, vLocs);-
281}
executed 9968966 times by 139 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
9968966
282-
283void Codegen::statement(ExpressionNode *ast)-
284{-
285 RegisterScope scope(this);-
286-
287 if (! ast) {
! astDescription
TRUEevaluated 1302 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
FALSEevaluated 3579790 times by 96 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • 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
  • ...
1302-3579790
288 return;
executed 1302 times by 3 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
1302
289 } else {-
290 Result r(nx);-
291 qSwap(_expr, r);-
292 VolatileMemoryLocations vLocs = scanVolatileMemoryLocations(ast);-
293 qSwap(_volatileMemoryLocations, vLocs);-
294-
295 accept(ast);-
296-
297 qSwap(_volatileMemoryLocations, vLocs);-
298 qSwap(_expr, r);-
299-
300 if (hasError)
hasErrorDescription
TRUEevaluated 826 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 3573730 times by 96 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • 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
  • ...
826-3573730
301 return;
executed 826 times by 2 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
826
302 if (r.result().loadTriggersSideEffect())
r.result().loa...rsSideEffect()Description
TRUEevaluated 3867 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickdraghandler
  • tst_qquickrepeater
FALSEevaluated 3566835 times by 96 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • 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
  • ...
3867-3566835
303 r.result().loadInAccumulator(); // triggers side effects
executed 3870 times by 9 tests: r.result().loadInAccumulator();
Executed by:
  • tst_ecmascripttests
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickdraghandler
  • tst_qquickrepeater
3870
304 }
executed 3571032 times by 96 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • 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
  • ...
3571032
305}-
306-
307void Codegen::condition(ExpressionNode *ast, const BytecodeGenerator::Label *iftrue,-
308 const BytecodeGenerator::Label *iffalse, bool trueBlockFollowsCondition)-
309{-
310 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1490192 times by 70 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
0-1490192
311 return;
never executed: return;
0
312-
313 if (!ast)
!astDescription
TRUEevaluated 371 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
FALSEevaluated 1490770 times by 70 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
371-1490770
314 return;
executed 371 times by 3 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
371
315-
316 Result r(iftrue, iffalse, trueBlockFollowsCondition);-
317 qSwap(_expr, r);-
318 accept(ast);-
319 qSwap(_expr, r);-
320-
321 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1494532 times by 70 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
0-1494532
322 return;
never executed: return;
0
323-
324 if (r.format() == ex) {
r.format() == exDescription
TRUEevaluated 355515 times by 55 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • ...
FALSEevaluated 1136088 times by 56 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
355515-1136088
325 Q_ASSERT(iftrue == r.iftrue());-
326 Q_ASSERT(iffalse == r.iffalse());-
327 Q_ASSERT(r.result().isValid());-
328 bytecodeGenerator->setLocation(ast->firstSourceLocation());-
329 r.result().loadInAccumulator();-
330 if (r.trueBlockFollowsCondition())
r.trueBlockFollowsCondition()Description
TRUEevaluated 353643 times by 55 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • ...
FALSEevaluated 899 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
899-353643
331 bytecodeGenerator->jumpFalse().link(*r.iffalse());
executed 353982 times by 55 tests: bytecodeGenerator->jumpFalse().link(*r.iffalse());
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • ...
353982
332 else-
333 bytecodeGenerator->jumpTrue().link(*r.iftrue());
executed 900 times by 10 tests: bytecodeGenerator->jumpTrue().link(*r.iftrue());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
900
334 }-
335}
executed 1489266 times by 70 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • ...
1489266
336-
337Codegen::Reference Codegen::expression(ExpressionNode *ast)-
338{-
339 Result r;-
340 if (ast) {
astDescription
TRUEevaluated 24957086 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEnever evaluated
0-24957086
341 qSwap(_expr, r);-
342 accept(ast);-
343 qSwap(_expr, r);-
344 }
executed 24988535 times by 139 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
24988535
345 return r.result();
executed 25005839 times by 139 tests: return r.result();
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
25005839
346}-
347-
348void Codegen::program(Program *ast)-
349{-
350 if (ast) {
astDescription
TRUEnever evaluated
FALSEnever evaluated
0
351 statementList(ast->statements);-
352 }
never executed: end of block
0
353}
never executed: end of block
0
354-
355enum class CompletionState {-
356 Empty,-
357 EmptyAbrupt,-
358 NonEmpty-
359};-
360-
361static CompletionState completionState(StatementList *list)-
362{-
363 for (StatementList *it = list; it; it = it->next) {
itDescription
TRUEevaluated 3261 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
FALSEevaluated 41 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlecmascript
41-3261
364 if (it->statement->kind == Statement::Kind_BreakStatement ||
it->statement-...BreakStatementDescription
TRUEnever evaluated
FALSEevaluated 3261 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
0-3261
365 it->statement->kind == Statement::Kind_ContinueStatement)
it->statement-...tinueStatementDescription
TRUEnever evaluated
FALSEevaluated 3261 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
0-3261
366 return CompletionState::EmptyAbrupt;
never executed: return CompletionState::EmptyAbrupt;
0
367 if (it->statement->kind == Statement::Kind_EmptyStatement ||
it->statement-...EmptyStatementDescription
TRUEnever evaluated
FALSEevaluated 3261 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
0-3261
368 it->statement->kind == Statement::Kind_VariableDeclaration ||
it->statement-...bleDeclarationDescription
TRUEnever evaluated
FALSEevaluated 3261 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
0-3261
369 it->statement->kind == Statement::Kind_FunctionDeclaration)
it->statement-...ionDeclarationDescription
TRUEevaluated 25 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlnotifier
FALSEevaluated 3236 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
25-3236
370 continue;
executed 25 times by 2 tests: continue;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlnotifier
25
371 if (it->statement->kind == Statement::Kind_Block) {
it->statement-...nt::Kind_BlockDescription
TRUEnever evaluated
FALSEevaluated 3236 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
0-3236
372 CompletionState subState = completionState(static_cast<Block *>(it->statement)->statements);-
373 if (subState != CompletionState::Empty)
subState != Co...onState::EmptyDescription
TRUEnever evaluated
FALSEnever evaluated
0
374 return subState;
never executed: return subState;
0
375 continue;
never executed: continue;
0
376 }-
377 return CompletionState::NonEmpty;
executed 3236 times by 23 tests: return CompletionState::NonEmpty;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
3236
378 }-
379 return CompletionState::Empty;
executed 41 times by 4 tests: return CompletionState::Empty;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlecmascript
41
380}-
381-
382static Node *completionStatement(StatementList *list)-
383{-
384 Node *completionStatement = nullptr;-
385 for (StatementList *it = list; it; it = it->next) {
itDescription
TRUEevaluated 3791798 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 2364695 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
2364695-3791798
386 if (it->statement->kind == Statement::Kind_BreakStatement ||
it->statement-...BreakStatementDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3789583 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
32-3789583
387 it->statement->kind == Statement::Kind_ContinueStatement)
it->statement-...tinueStatementDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3793302 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
20-3793302
388 return completionStatement;
executed 52 times by 1 test: return completionStatement;
Executed by:
  • tst_ecmascripttests
52
389 if (it->statement->kind == Statement::Kind_ThrowStatement ||
it->statement-...ThrowStatementDescription
TRUEevaluated 1606 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4debugger
FALSEevaluated 3792251 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
1606-3792251
390 it->statement->kind == Statement::Kind_ReturnStatement)
it->statement-...eturnStatementDescription
TRUEevaluated 2100 times by 6 tests
Evaluated by:
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmlnotifier
FALSEevaluated 3790635 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
2100-3790635
391 return it->statement;
executed 3706 times by 9 tests: return it->statement;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qv4debugger
3706
392 if (it->statement->kind == Statement::Kind_EmptyStatement ||
it->statement-...EmptyStatementDescription
TRUEevaluated 1569 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 3788973 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
1569-3788973
393 it->statement->kind == Statement::Kind_VariableStatement ||
it->statement-...iableStatementDescription
TRUEevaluated 236053 times by 15 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_qv4debugger
FALSEevaluated 3552212 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
236053-3552212
394 it->statement->kind == Statement::Kind_FunctionDeclaration)
it->statement-...ionDeclarationDescription
TRUEevaluated 289306 times by 17 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 3264733 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
289306-3264733
395 continue;
executed 526182 times by 24 tests: continue;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
526182
396 if (it->statement->kind == Statement::Kind_Block) {
it->statement-...nt::Kind_BlockDescription
TRUEevaluated 3277 times by 24 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
FALSEevaluated 3261561 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
3277-3261561
397 CompletionState state = completionState(static_cast<Block *>(it->statement)->statements);-
398 switch (state) {-
399 case CompletionState::Empty:
executed 41 times by 4 tests: case CompletionState::Empty:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlecmascript
41
400 continue;
executed 41 times by 4 tests: continue;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlecmascript
41
401 case CompletionState::EmptyAbrupt:
never executed: case CompletionState::EmptyAbrupt:
0
402 return it->statement;
never executed: return it->statement;
0
403 case CompletionState::NonEmpty:
executed 3236 times by 23 tests: case CompletionState::NonEmpty:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
3236
404 break;
executed 3236 times by 23 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
3236
405 }-
406 }
executed 3236 times by 23 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
3236
407 completionStatement = it->statement;-
408 }
executed 3264811 times by 136 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
3264811
409 return completionStatement;
executed 2364448 times by 136 tests: return completionStatement;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
2364448
410}-
411-
412void Codegen::statementList(StatementList *ast)-
413{-
414 if (!ast)
!astDescription
TRUEevaluated 90872 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 5105446 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
90872-5105446
415 return;
executed 90877 times by 25 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
90877
416-
417 bool _requiresReturnValue = requiresReturnValue;-
418 // ### the next line is pessimizing a bit too much, as there are many cases, where the complietion from the break-
419 // statement will not be used, but it's at least spec compliant-
420 if (!controlFlow || !controlFlow->hasLoop())
!controlFlowDescription
TRUEevaluated 3372188 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 1729220 times by 76 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • ...
!controlFlow->hasLoop()Description
TRUEevaluated 1676537 times by 76 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • ...
FALSEevaluated 64166 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • ...
64166-3372188
421 requiresReturnValue = false;
executed 5043812 times by 139 tests: requiresReturnValue = false;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
5043812
422-
423 Node *needsCompletion = nullptr;-
424-
425 if (_requiresReturnValue && !requiresReturnValue)
_requiresReturnValueDescription
TRUEevaluated 2373080 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 2732010 times by 97 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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
  • ...
!requiresReturnValueDescription
TRUEevaluated 2368095 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 6015 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickworkerscript
6015-2732010
426 needsCompletion = completionStatement(ast);
executed 2368443 times by 136 tests: needsCompletion = completionStatement(ast);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
2368443
427-
428 if (requiresReturnValue && !needsCompletion && !insideSwitch) {
requiresReturnValueDescription
TRUEevaluated 6016 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickworkerscript
FALSEevaluated 5103169 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
!needsCompletionDescription
TRUEevaluated 6013 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickworkerscript
FALSEnever evaluated
!insideSwitchDescription
TRUEevaluated 5466 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickworkerscript
FALSEevaluated 539 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
0-5103169
429 // break or continue is the first real statement, set the return value to undefined-
430 Reference::fromConst(this, Encode::undefined()).storeOnStack(_returnAddress);-
431 }
executed 5467 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickworkerscript
5467
432-
433 bool _insideSwitch = insideSwitch;-
434 insideSwitch = false;-
435-
436 for (StatementList *it = ast; it; it = it->next) {
itDescription
TRUEevaluated 8571141 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 4257606 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
4257606-8571141
437 if (it->statement == needsCompletion)
it->statement ...eedsCompletionDescription
TRUEevaluated 2367178 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 6208315 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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
  • ...
2367178-6208315
438 requiresReturnValue = true;
executed 2368871 times by 136 tests: requiresReturnValue = true;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
2368871
439 if (Statement *s = it->statement->statementCast())
Statement *s =...tatementCast()Description
TRUEevaluated 8268870 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 295556 times by 17 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
295556-8268870
440 statement(s);
executed 8275932 times by 139 tests: statement(s);
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
8275932
441 else-
442 statement(static_cast<ExpressionNode *>(it->statement));
executed 296245 times by 17 tests: statement(static_cast<ExpressionNode *>(it->statement));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
296245
443 if (it->statement == needsCompletion)
it->statement ...eedsCompletionDescription
TRUEevaluated 2368354 times by 136 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
FALSEevaluated 6199777 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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
  • ...
2368354-6199777
444 requiresReturnValue = false;
executed 2367325 times by 136 tests: requiresReturnValue = false;
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
2367325
445 if (it->statement->kind == Statement::Kind_ThrowStatement ||
it->statement-...ThrowStatementDescription
TRUEevaluated 95566 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 8474758 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
95566-8474758
446 it->statement->kind == Statement::Kind_BreakStatement ||
it->statement-...BreakStatementDescription
TRUEevaluated 17011 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 8474583 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
17011-8474583
447 it->statement->kind == Statement::Kind_ContinueStatement ||
it->statement-...tinueStatementDescription
TRUEevaluated 582 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
FALSEevaluated 8466435 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
582-8466435
448 it->statement->kind == Statement::Kind_ReturnStatement)
it->statement-...eturnStatementDescription
TRUEevaluated 750290 times by 47 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
FALSEevaluated 7729644 times by 139 tests
Evaluated 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
750290-7729644
449 // any code after those statements is unreachable-
450 break;
executed 862309 times by 48 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • ...
862309
451 }
executed 7724130 times by 139 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
7724130
452 requiresReturnValue = _requiresReturnValue;-
453 insideSwitch = _insideSwitch;-
454}
executed 5116787 times by 139 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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
5116787
455-
456void Codegen::variableDeclaration(PatternElement *ast)-
457{-
458 RegisterScope scope(this);-
459-
460 if (!ast->initializer)
!ast->initializerDescription
TRUEevaluated 101653 times by 19 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 442360 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
101653-442360
461 return;
executed 101921 times by 19 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
101921
462 initializeAndDestructureBindingElement(ast, Reference(), /*isDefinition*/ true);-
463}
executed 443607 times by 50 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
443607
464-
465void Codegen::variableDeclarationList(VariableDeclarationList *ast)-
466{-
467 for (VariableDeclarationList *it = ast; it; it = it->next) {
itDescription
TRUEevaluated 544798 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
FALSEevaluated 543024 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
543024-544798
468 variableDeclaration(it->declaration);-
469 }
executed 545849 times by 50 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
545849
470}
executed 543441 times by 50 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
543441
471-
472Codegen::Reference Codegen::targetForPatternElement(AST::PatternElement *p)-
473{-
474 if (!p->bindingIdentifier.isNull())
!p->bindingIdentifier.isNull()Description
TRUEevaluated 484679 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
FALSEevaluated 8716 times by 1 test
Evaluated by:
  • tst_ecmascripttests
8716-484679
475 return referenceForName(p->bindingIdentifier.toString(), true);
executed 484371 times by 50 tests: return referenceForName(p->bindingIdentifier.toString(), true);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
484371
476 if (!p->bindingTarget || p->destructuringPattern())
!p->bindingTargetDescription
TRUEnever evaluated
FALSEevaluated 8707 times by 1 test
Evaluated by:
  • tst_ecmascripttests
p->destructuringPattern()Description
TRUEevaluated 8419 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 296 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-8707
477 return Codegen::Reference::fromStackSlot(this);
executed 8417 times by 1 test: return Codegen::Reference::fromStackSlot(this);
Executed by:
  • tst_ecmascripttests
8417
478 Reference lhs = expression(p->bindingTarget);-
479 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 296 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-296
480 return lhs;
never executed: return lhs;
0
481 lhs = lhs.asLValue();-
482 return lhs;
executed 296 times by 1 test: return lhs;
Executed by:
  • tst_ecmascripttests
296
483}-
484-
485void Codegen::initializeAndDestructureBindingElement(AST::PatternElement *e, const Reference &base, bool isDefinition)-
486{-
487 Q_ASSERT(e->type == AST::PatternElement::Binding || e->type == AST::PatternElement::RestElement);-
488 RegisterScope scope(this);-
489 Reference baseRef = (base.isAccumulator()) ? base.storeOnStack() : base;
(base.isAccumulator())Description
TRUEevaluated 2807 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 491426 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
2807-491426
490 Reference varToStore = targetForPatternElement(e);-
491 if (isDefinition)
isDefinitionDescription
TRUEevaluated 462526 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
FALSEevaluated 33452 times by 1 test
Evaluated by:
  • tst_ecmascripttests
33452-462526
492 varToStore.isReferenceToConst = false;
executed 461587 times by 50 tests: varToStore.isReferenceToConst = false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
461587
493 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 494810 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
0-494810
494 return;
never executed: return;
0
495-
496 if (e->initializer) {
e->initializerDescription
TRUEevaluated 460947 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
FALSEevaluated 33710 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
33710-460947
497 if (!baseRef.isValid()) {
!baseRef.isValid()Description
TRUEevaluated 442963 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
FALSEevaluated 17388 times by 1 test
Evaluated by:
  • tst_ecmascripttests
17388-442963
498 // assignment-
499 Reference expr = expression(e->initializer);-
500 if (hasError)
hasErrorDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 444418 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
28-444418
501 return;
executed 28 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
28
502 expr.loadInAccumulator();-
503 varToStore.storeConsumeAccumulator();-
504 } else if (baseRef == varToStore) {
executed 444357 times by 50 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
baseRef == varToStoreDescription
TRUEevaluated 6460 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 10922 times by 1 test
Evaluated by:
  • tst_ecmascripttests
6460-444357
505 baseRef.loadInAccumulator();-
506 BytecodeGenerator::Jump jump = bytecodeGenerator->jumpNotUndefined();-
507 Reference expr = expression(e->initializer);-
508 if (hasError) {
hasErrorDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 6459 times by 1 test
Evaluated by:
  • tst_ecmascripttests
16-6459
509 jump.link();-
510 return;
executed 16 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
16
511 }-
512 expr.loadInAccumulator();-
513 varToStore.storeConsumeAccumulator();-
514 jump.link();-
515 } else {
executed 6441 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
6441
516 baseRef.loadInAccumulator();-
517 BytecodeGenerator::Jump jump = bytecodeGenerator->jumpNotUndefined();-
518 Reference expr = expression(e->initializer);-
519 if (hasError) {
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 10946 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-10946
520 jump.link();-
521 return;
never executed: return;
0
522 }-
523 expr.loadInAccumulator();-
524 jump.link();-
525 varToStore.storeConsumeAccumulator();-
526 }
executed 10953 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
10953
527 } else if (baseRef != varToStore && baseRef.isValid()) {
baseRef != varToStoreDescription
TRUEevaluated 28669 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 4996 times by 1 test
Evaluated by:
  • tst_ecmascripttests
baseRef.isValid()Description
TRUEevaluated 28672 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEnever evaluated
0-28672
528 baseRef.loadInAccumulator();-
529 varToStore.storeConsumeAccumulator();-
530 }
executed 28769 times by 12 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
28769
531 Pattern *p = e->destructuringPattern();-
532 if (!p)
!pDescription
TRUEevaluated 476379 times by 50 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
FALSEevaluated 18266 times by 1 test
Evaluated by:
  • tst_ecmascripttests
18266-476379
533 return;
executed 476001 times by 50 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • ...
476001
534-
535 if (!varToStore.isStackSlot())
!varToStore.isStackSlot()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 18275 times by 1 test
Evaluated by:
  • tst_ecmascripttests
10-18275
536 varToStore = varToStore.storeOnStack();
executed 10 times by 1 test: varToStore = varToStore.storeOnStack();
Executed by:
  • tst_ecmascripttests
10
537 if (PatternElementList *l = e->elementList()) {
PatternElement...>elementList()Description
TRUEevaluated 10574 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7706 times by 1 test
Evaluated by:
  • tst_ecmascripttests
7706-10574
538 destructureElementList(varToStore, l, isDefinition);-
539 } else if (PatternPropertyList *p = e->propertyList()) {
executed 10601 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
PatternPropert...propertyList()Description
TRUEevaluated 6479 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1210 times by 1 test
Evaluated by:
  • tst_ecmascripttests
1210-10601
540 destructurePropertyList(varToStore, p, isDefinition);-
541 } else if (e->bindingTarget) {
executed 6521 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
e->bindingTargetDescription
TRUEevaluated 1212 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
0-6521
542 // empty binding pattern. For spec compatibility, try to coerce the argument to an object-
543 varToStore.loadInAccumulator();-
544 Instruction::ToObject toObject;-
545 bytecodeGenerator->addInstruction(toObject);-
546 return;
executed 1215 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
1215
547 }-
548}
executed 17114 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
17114
549-
550Codegen::Reference Codegen::referenceForPropertyName(const Codegen::Reference &object, AST::PropertyName *name)-
551{-
552 AST::ComputedPropertyName *cname = AST::cast<AST::ComputedPropertyName *>(name);-
553 Reference property;-
554 if (cname) {
cnameDescription
TRUEevaluated 184 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 12341 times by 1 test
Evaluated by:
  • tst_ecmascripttests
184-12341
555 Reference computedName = expression(cname->expression);-
556 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 184 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-184
557 return Reference();
never executed: return Reference();
0
558 computedName = computedName.storeOnStack();-
559 property = Reference::fromSubscript(object, computedName).asLValue();-
560 } else {
executed 184 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
184
561 QString propertyName = name->asString();-
562 property = Reference::fromMember(object, propertyName);-
563 }
executed 12361 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
12361
564 return property;
executed 12556 times by 1 test: return property;
Executed by:
  • tst_ecmascripttests
12556
565}-
566-
567void Codegen::destructurePropertyList(const Codegen::Reference &object, PatternPropertyList *bindingList, bool isDefinition)-
568{-
569 RegisterScope scope(this);-
570-
571 for (PatternPropertyList *it = bindingList; it; it = it->next) {
itDescription
TRUEevaluated 12523 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7094 times by 1 test
Evaluated by:
  • tst_ecmascripttests
7094-12523
572 PatternProperty *p = it->property;-
573 RegisterScope scope(this);-
574 Reference property = referenceForPropertyName(object, p->name);-
575 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 12548 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-12548
576 return;
never executed: return;
0
577 initializeAndDestructureBindingElement(p, property, isDefinition);-
578 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 12562 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-12562
579 return;
never executed: return;
0
580 }
executed 12566 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
12566
581}
executed 7092 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
7092
582-
583void Codegen::destructureElementList(const Codegen::Reference &array, PatternElementList *bindingList, bool isDefinition)-
584{-
585 RegisterScope scope(this);-
586-
587 Reference iterator = Reference::fromStackSlot(this);-
588 Reference iteratorValue = Reference::fromStackSlot(this);-
589 Reference iteratorDone = Reference::fromStackSlot(this);-
590-
591 array.loadInAccumulator();-
592 Instruction::GetIterator iteratorObjInstr;-
593 iteratorObjInstr.iterator = 1; // ForEachType::Of-
594 bytecodeGenerator->addInstruction(iteratorObjInstr);-
595 iterator.storeConsumeAccumulator();-
596-
597 bool hadNext = false;-
598 bool hasRest = false;-
599-
600 BytecodeGenerator::Label end = bytecodeGenerator->newLabel();-
601-
602 for (PatternElementList *p = bindingList; p; p = p->next) {
pDescription
TRUEevaluated 15842 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 11651 times by 1 test
Evaluated by:
  • tst_ecmascripttests
11651-15842
603 PatternElement *e = p->element;-
604 for (Elision *elision = p->elision; elision; elision = elision->next) {
elisionDescription
TRUEevaluated 2049 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 15862 times by 1 test
Evaluated by:
  • tst_ecmascripttests
2049-15862
605 iterator.loadInAccumulator();-
606 Instruction::IteratorNext next;-
607 next.value = iteratorValue.stackSlot();-
608 bytecodeGenerator->addInstruction(next);-
609 hadNext = true;-
610 bool last = !elision->next && !e && !p->next;
!elision->nextDescription
TRUEevaluated 1680 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 371 times by 1 test
Evaluated by:
  • tst_ecmascripttests
!eDescription
TRUEevaluated 1147 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 532 times by 1 test
Evaluated by:
  • tst_ecmascripttests
!p->nextDescription
TRUEevaluated 1148 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
0-1680
611 if (last)
lastDescription
TRUEevaluated 1143 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 903 times by 1 test
Evaluated by:
  • tst_ecmascripttests
903-1143
612 iteratorDone.storeConsumeAccumulator();
executed 1144 times by 1 test: iteratorDone.storeConsumeAccumulator();
Executed by:
  • tst_ecmascripttests
1144
613 }
executed 2051 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
2051
614-
615 if (!e)
!eDescription
TRUEevaluated 1147 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 14674 times by 1 test
Evaluated by:
  • tst_ecmascripttests
1147-14674
616 continue;
executed 1146 times by 1 test: continue;
Executed by:
  • tst_ecmascripttests
1146
617-
618 hadNext = true;-
619 RegisterScope scope(this);-
620 iterator.loadInAccumulator();-
621-
622 if (e->type == PatternElement::RestElement) {
e->type == Pat...t::RestElementDescription
TRUEevaluated 2806 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 11900 times by 1 test
Evaluated by:
  • tst_ecmascripttests
2806-11900
623 bytecodeGenerator->addInstruction(Instruction::DestructureRestElement());-
624 initializeAndDestructureBindingElement(e, Reference::fromAccumulator(this), isDefinition);-
625 hasRest = true;-
626 } else {
executed 2810 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
2810
627 Instruction::IteratorNext next;-
628 next.value = iteratorValue.stackSlot();-
629 bytecodeGenerator->addInstruction(next);-
630 bool last = !p->next || (!p->next->elision && !p->next->element);
!p->nextDescription
TRUEevaluated 7585 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4328 times by 1 test
Evaluated by:
  • tst_ecmascripttests
!p->next->elisionDescription
TRUEevaluated 4265 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 59 times by 1 test
Evaluated by:
  • tst_ecmascripttests
!p->next->elementDescription
TRUEnever evaluated
FALSEevaluated 4265 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-7585
631 if (last)
lastDescription
TRUEevaluated 7588 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4329 times by 1 test
Evaluated by:
  • tst_ecmascripttests
4329-7588
632 iteratorDone.storeConsumeAccumulator();
executed 7572 times by 1 test: iteratorDone.storeConsumeAccumulator();
Executed by:
  • tst_ecmascripttests
7572
633 initializeAndDestructureBindingElement(e, iteratorValue, isDefinition);-
634 if (hasError) {
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 11939 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-11939
635 end.link();-
636 return;
never executed: return;
0
637 }-
638 }
executed 11934 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
11934
639 }-
640-
641 if (!hadNext) {
!hadNextDescription
TRUEevaluated 88 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 11565 times by 1 test
Evaluated by:
  • tst_ecmascripttests
88-11565
642 Reference::storeConstOnStack(this, Encode(false), iteratorDone.stackSlot());-
643 }
executed 88 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
88
644-
645 if (!hasRest) {
!hasRestDescription
TRUEevaluated 8843 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2807 times by 1 test
Evaluated by:
  • tst_ecmascripttests
2807-8843
646 iterator.loadInAccumulator();-
647 Instruction::IteratorClose close;-
648 close.done = iteratorDone.stackSlot();-
649 bytecodeGenerator->addInstruction(close);-
650 }
executed 8847 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
8847
651-
652 end.link();-
653}
executed 11649 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
11649
654-
655void Codegen::destructurePattern(Pattern *p, const Reference &rhs)-
656{-
657 RegisterScope scope(this);-
658 if (auto *o = AST::cast<ObjectPattern *>(p))
auto *o = AST:...tPattern *>(p)Description
TRUEevaluated 577 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1047 times by 1 test
Evaluated by:
  • tst_ecmascripttests
577-1047
659 destructurePropertyList(rhs, o->properties);
executed 577 times by 1 test: destructurePropertyList(rhs, o->properties);
Executed by:
  • tst_ecmascripttests
577
660 else if (auto *a = AST::cast<ArrayPattern *>(p))
auto *a = AST:...yPattern *>(p)Description
TRUEevaluated 1050 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
0-1050
661 destructureElementList(rhs, a->elements);
executed 1047 times by 1 test: destructureElementList(rhs, a->elements);
Executed by:
  • tst_ecmascripttests
1047
662 else-
663 Q_UNREACHABLE();
never executed: end of block
0
664}-
665-
666-
667bool Codegen::visit(ArgumentList *)-
668{-
669 Q_UNREACHABLE();-
670 return false;
never executed: return false;
0
671}-
672-
673bool Codegen::visit(CaseBlock *)-
674{-
675 Q_UNREACHABLE();-
676 return false;
never executed: return false;
0
677}-
678-
679bool Codegen::visit(CaseClause *)-
680{-
681 Q_UNREACHABLE();-
682 return false;
never executed: return false;
0
683}-
684-
685bool Codegen::visit(CaseClauses *)-
686{-
687 Q_UNREACHABLE();-
688 return false;
never executed: return false;
0
689}-
690-
691bool Codegen::visit(Catch *)-
692{-
693 Q_UNREACHABLE();-
694 return false;
never executed: return false;
0
695}-
696-
697bool Codegen::visit(DefaultClause *)-
698{-
699 Q_UNREACHABLE();-
700 return false;
never executed: return false;
0
701}-
702-
703bool Codegen::visit(Elision *)-
704{-
705 Q_UNREACHABLE();-
706 return false;
never executed: return false;
0
707}-
708-
709bool Codegen::visit(Finally *)-
710{-
711 Q_UNREACHABLE();-
712 return false;
never executed: return false;
0
713}-
714-
715bool Codegen::visit(FormalParameterList *)-
716{-
717 Q_UNREACHABLE();-
718 return false;
never executed: return false;
0
719}-
720-
721bool Codegen::visit(Program *)-
722{-
723 Q_UNREACHABLE();-
724 return false;
never executed: return false;
0
725}-
726-
727bool Codegen::visit(PatternElement *)-
728{-
729 Q_UNREACHABLE();-
730 return false;
never executed: return false;
0
731}-
732-
733bool Codegen::visit(PatternElementList *)-
734{-
735 Q_UNREACHABLE();-
736 return false;
never executed: return false;
0
737}-
738-
739bool Codegen::visit(PatternProperty *)-
740{-
741 Q_UNREACHABLE();-
742 return false;
never executed: return false;
0
743}-
744-
745bool Codegen::visit(PatternPropertyList *)-
746{-
747 Q_UNREACHABLE();-
748 return false;
never executed: return false;
0
749}-
750-
751bool Codegen::visit(StatementList *)-
752{-
753 Q_UNREACHABLE();-
754 return false;
never executed: return false;
0
755}-
756-
757bool Codegen::visit(UiArrayMemberList *)-
758{-
759 Q_UNREACHABLE();-
760 return false;
never executed: return false;
0
761}-
762-
763bool Codegen::visit(UiImport *)-
764{-
765 Q_UNREACHABLE();-
766 return false;
never executed: return false;
0
767}-
768-
769bool Codegen::visit(UiHeaderItemList *)-
770{-
771 Q_UNREACHABLE();-
772 return false;
never executed: return false;
0
773}-
774-
775bool Codegen::visit(UiPragma *)-
776{-
777 Q_UNREACHABLE();-
778 return false;
never executed: return false;
0
779}-
780-
781bool Codegen::visit(UiObjectInitializer *)-
782{-
783 Q_UNREACHABLE();-
784 return false;
never executed: return false;
0
785}-
786-
787bool Codegen::visit(UiObjectMemberList *)-
788{-
789 Q_UNREACHABLE();-
790 return false;
never executed: return false;
0
791}-
792-
793bool Codegen::visit(UiParameterList *)-
794{-
795 Q_UNREACHABLE();-
796 return false;
never executed: return false;
0
797}-
798-
799bool Codegen::visit(UiProgram *)-
800{-
801 Q_UNREACHABLE();-
802 return false;
never executed: return false;
0
803}-
804-
805bool Codegen::visit(UiQualifiedId *)-
806{-
807 Q_UNREACHABLE();-
808 return false;
never executed: return false;
0
809}-
810-
811bool Codegen::visit(UiQualifiedPragmaId *)-
812{-
813 Q_UNREACHABLE();-
814 return false;
never executed: return false;
0
815}-
816-
817bool Codegen::visit(VariableDeclarationList *)-
818{-
819 Q_UNREACHABLE();-
820 return false;
never executed: return false;
0
821}-
822-
823bool Codegen::visit(ClassExpression *ast)-
824{-
825 Compiler::Class jsClass;-
826 jsClass.nameIndex = registerString(ast->name.toString());-
827-
828 ClassElementList *constructor = nullptr;-
829 int nComputedNames = 0;-
830 int nStaticComputedNames = 0;-
831-
832 RegisterScope scope(this);-
833 ControlFlowBlock controlFlow(this, ast);-
834-
835 for (auto *member = ast->elements; member; member = member->next) {
memberDescription
TRUEevaluated 8664 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9280 times by 1 test
Evaluated by:
  • tst_ecmascripttests
8664-9280
836 PatternProperty *p = member->property;-
837 FunctionExpression *f = p->initializer->asFunctionDefinition();-
838 Q_ASSERT(f);-
839 AST::ComputedPropertyName *cname = AST::cast<ComputedPropertyName *>(p->name);-
840 if (cname) {
cnameDescription
TRUEevaluated 544 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8111 times by 1 test
Evaluated by:
  • tst_ecmascripttests
544-8111
841 ++nComputedNames;-
842 if (member->isStatic)
member->isStaticDescription
TRUEevaluated 244 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 300 times by 1 test
Evaluated by:
  • tst_ecmascripttests
244-300
843 ++nStaticComputedNames;
executed 244 times by 1 test: ++nStaticComputedNames;
Executed by:
  • tst_ecmascripttests
244
844 }
executed 544 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
544
845 QString name = p->name->asString();-
846 uint nameIndex = cname ? UINT_MAX : registerString(name);
cnameDescription
TRUEevaluated 543 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8181 times by 1 test
Evaluated by:
  • tst_ecmascripttests
543-8181
847 Compiler::Class::Method::Type type = Compiler::Class::Method::Regular;-
848 if (p->type == PatternProperty::Getter)
p->type == Pat...operty::GetterDescription
TRUEevaluated 542 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8149 times by 1 test
Evaluated by:
  • tst_ecmascripttests
542-8149
849 type = Compiler::Class::Method::Getter;
executed 537 times by 1 test: type = Compiler::Class::Method::Getter;
Executed by:
  • tst_ecmascripttests
537
850 else if (p->type == PatternProperty::Setter)
p->type == Pat...operty::SetterDescription
TRUEevaluated 540 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7617 times by 1 test
Evaluated by:
  • tst_ecmascripttests
540-7617
851 type = Compiler::Class::Method::Setter;
executed 540 times by 1 test: type = Compiler::Class::Method::Setter;
Executed by:
  • tst_ecmascripttests
540
852 Compiler::Class::Method m{ nameIndex, type, static_cast<uint>(defineFunction(name, f, f->formals, f->body)) };-
853-
854 if (member->isStatic) {
member->isStaticDescription
TRUEevaluated 3938 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4791 times by 1 test
Evaluated by:
  • tst_ecmascripttests
3938-4791
855 if (name == QStringLiteral("prototype")) {-
856 throwSyntaxError(ast->firstSourceLocation(), QLatin1String("Cannot declare a static method named 'prototype'."));-
857 return false;
never executed: return false;
0
858 }-
859 jsClass.staticMethods << m;
dead code: jsClass.staticMethods << m;
-
860 } else {-
861 if (name == QStringLiteral("constructor")) {-
862 if (constructor) {
constructorDescription
TRUEnever evaluated
FALSEevaluated 807 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-807
863 throwSyntaxError(ast->firstSourceLocation(), QLatin1String("Cannot declare a multiple constructors in a class."));-
864 return false;
never executed: return false;
0
865 }-
866 if (m.type != Compiler::Class::Method::Regular) {
m.type != Comp...ethod::RegularDescription
TRUEnever evaluated
FALSEevaluated 807 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-807
867 throwSyntaxError(ast->firstSourceLocation(), QLatin1String("Cannot declare a getter or setter named 'constructor'."));-
868 return false;
never executed: return false;
0
869 }-
870 constructor = member;-
871 jsClass.constructorIndex = m.functionIndex;-
872 continue;
executed 807 times by 1 test: continue;
Executed by:
  • tst_ecmascripttests
807
873 }-
874-
875 jsClass.methods << m;
dead code: jsClass.methods << m;
-
876 }-
877 }-
878-
879 int classIndex = _module->classes.size();-
880 _module->classes.append(jsClass);-
881-
882 Reference heritage = Reference::fromStackSlot(this);-
883 if (ast->heritage) {
ast->heritageDescription
TRUEevaluated 972 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8304 times by 1 test
Evaluated by:
  • tst_ecmascripttests
972-8304
884 bytecodeGenerator->setLocation(ast->heritage->firstSourceLocation());-
885 Reference r = expression(ast->heritage);-
886 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 970 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-970
887 return false;
never executed: return false;
0
888 r.storeOnStack(heritage.stackSlot());-
889 } else {
executed 971 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
971
890 Reference::fromConst(this, Primitive::emptyValue().asReturnedValue()).loadInAccumulator();-
891 heritage.storeConsumeAccumulator();-
892 }
executed 8296 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
8296
893-
894 int computedNames = nComputedNames ? bytecodeGenerator->newRegisterArray(nComputedNames) : 0;
nComputedNamesDescription
TRUEevaluated 420 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8843 times by 1 test
Evaluated by:
  • tst_ecmascripttests
420-8843
895 int currentStaticName = computedNames;-
896 int currentNonStaticName = computedNames + nStaticComputedNames;-
897-
898 for (auto *member = ast->elements; member; member = member->next) {
memberDescription
TRUEevaluated 8693 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9254 times by 1 test
Evaluated by:
  • tst_ecmascripttests
8693-9254
899 AST::ComputedPropertyName *cname = AST::cast<AST::ComputedPropertyName *>(member->property->name);-
900 if (!cname)
!cnameDescription
TRUEevaluated 8146 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 544 times by 1 test
Evaluated by:
  • tst_ecmascripttests
544-8146
901 continue;
executed 8146 times by 1 test: continue;
Executed by:
  • tst_ecmascripttests
8146
902 RegisterScope scope(this);-
903 bytecodeGenerator->setLocation(cname->firstSourceLocation());-
904 Reference computedName = expression(cname->expression);-
905 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 544 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-544
906 return false;
never executed: return false;
0
907 computedName.storeOnStack(member->isStatic ? currentStaticName++ : currentNonStaticName++);-
908 }
executed 544 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
544
909-
910 Instruction::CreateClass createClass;-
911 createClass.classIndex = classIndex;-
912 createClass.heritage = heritage.stackSlot();-
913 createClass.computedNames = computedNames;-
914-
915 bytecodeGenerator->addInstruction(createClass);-
916-
917 if (!ast->name.isEmpty()) {
!ast->name.isEmpty()Description
TRUEevaluated 9090 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 192 times by 1 test
Evaluated by:
  • tst_ecmascripttests
192-9090
918 Reference ctor = referenceForName(ast->name.toString(), true);-
919 ctor.isReferenceToConst = false; // this is the definition-
920 (void) ctor.storeRetainAccumulator();-
921 }
executed 9076 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
9076
922-
923 _expr.setResult(Reference::fromAccumulator(this));-
924 return false;
executed 9278 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
9278
925}-
926-
927bool Codegen::visit(ClassDeclaration *ast)-
928{-
929 Reference outerVar = referenceForName(ast->name.toString(), true);-
930 visit(static_cast<ClassExpression *>(ast));-
931 (void) outerVar.storeRetainAccumulator();-
932 return false;
executed 4836 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4836
933}-
934-
935bool Codegen::visit(Expression *ast)-
936{-
937 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1974 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qquickdrag
0-1974
938 return false;
never executed: return false;
0
939-
940 statement(ast->left);-
941 accept(ast->right);-
942 return false;
executed 1976 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qquickdrag
1976
943}-
944-
945bool Codegen::visit(ArrayPattern *ast)-
946{-
947 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 44693 times by 46 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
  • ...
0-44693
948 return false;
never executed: return false;
0
949-
950 PatternElementList *it = ast->elements;-
951-
952 int argc = 0;-
953 {-
954 RegisterScope scope(this);-
955-
956 int args = -1;-
957 auto push = [this, &argc, &args](AST::ExpressionNode *arg) {-
958 int temp = bytecodeGenerator->newRegister();-
959 if (args == -1)
args == -1Description
TRUEevaluated 27165 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
FALSEevaluated 105014 times by 37 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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_qquickfriction
  • tst_qquickgridview
  • ...
27165-105014
960 args = temp;
executed 27120 times by 40 tests: args = temp;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
27120
961 if (!arg) {
!argDescription
TRUEevaluated 1248 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
FALSEevaluated 130856 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
1248-130856
962 auto c = Reference::fromConst(this, Primitive::emptyValue().asReturnedValue());-
963 (void) c.storeOnStack(temp);-
964 } else {
executed 1248 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
1248
965 RegisterScope scope(this);-
966 Reference r = expression(arg);-
967 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 131036 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
0-131036
968 return;
never executed: return;
0
969 (void) r.storeOnStack(temp);-
970 }
executed 130927 times by 40 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
130927
971 ++argc;-
972 };
executed 132183 times by 40 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
132183
973-
974 for (; it; it = it->next) {
itDescription
TRUEevaluated 131493 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
FALSEevaluated 44769 times by 46 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
  • ...
44769-131493
975 PatternElement *e = it->element;-
976 if (e && e->type == PatternElement::SpreadElement)
eDescription
TRUEevaluated 130991 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
FALSEevaluated 420 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
e->type == Pat...:SpreadElementDescription
TRUEevaluated 152 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 130856 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
152-130991
977 break;
executed 152 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
152
978 for (Elision *elision = it->elision; elision; elision = elision->next)
elisionDescription
TRUEevaluated 1248 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
FALSEevaluated 131325 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
1248-131325
979 push(nullptr);
executed 1248 times by 3 tests: push(nullptr);
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
1248
980-
981 if (!e)
!eDescription
TRUEevaluated 420 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
FALSEevaluated 130858 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
420-130858
982 continue;
executed 420 times by 3 tests: continue;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
420
983-
984 push(e->initializer);-
985 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 130995 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
0-130995
986 return false;
never executed: return false;
0
987 }
executed 131010 times by 40 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
131010
988-
989 if (args == -1) {
args == -1Description
TRUEevaluated 17604 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 27218 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • 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
  • tst_qquickfriction
  • ...
17604-27218
990 Q_ASSERT(argc == 0);-
991 args = 0;-
992 }
executed 17569 times by 25 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
17569
993-
994 Instruction::DefineArray call;-
995 call.argc = argc;-
996 call.args = Moth::StackSlot::createRegister(args);-
997 bytecodeGenerator->addInstruction(call);-
998 }-
999-
1000 if (!it) {
!itDescription
TRUEevaluated 44766 times by 46 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
  • ...
FALSEevaluated 152 times by 1 test
Evaluated by:
  • tst_ecmascripttests
152-44766
1001 _expr.setResult(Reference::fromAccumulator(this));-
1002 return false;
executed 44669 times by 46 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
  • ...
44669
1003 }-
1004 Q_ASSERT(it->element && it->element->type == PatternElement::SpreadElement);-
1005-
1006 RegisterScope scope(this);-
1007 Reference array = Reference::fromStackSlot(this);-
1008 array.storeConsumeAccumulator();-
1009 Reference index = Reference::storeConstOnStack(this, Encode(argc));-
1010-
1011 auto pushAccumulator = [&]() {-
1012 Reference slot = Reference::fromSubscript(array, index);-
1013 slot.storeConsumeAccumulator();-
1014-
1015 index.loadInAccumulator();-
1016 Instruction::Increment inc;-
1017 bytecodeGenerator->addInstruction(inc);-
1018 index.storeConsumeAccumulator();-
1019 };
executed 156 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
156
1020-
1021 while (it) {
itDescription
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 152 times by 1 test
Evaluated by:
  • tst_ecmascripttests
152-156
1022 for (Elision *elision = it->elision; elision; elision = elision->next) {
elisionDescription
TRUEnever evaluated
FALSEevaluated 156 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-156
1023 Reference::fromConst(this, Primitive::emptyValue().asReturnedValue()).loadInAccumulator();-
1024 pushAccumulator();-
1025 }
never executed: end of block
0
1026-
1027 if (!it->element) {
!it->elementDescription
TRUEnever evaluated
FALSEevaluated 156 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-156
1028 it = it->next;-
1029 continue;
never executed: continue;
0
1030 }-
1031-
1032 // handle spread element-
1033 if (it->element->type == PatternElement::SpreadElement) {
it->element->t...:SpreadElementDescription
TRUEevaluated 152 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
4-152
1034 RegisterScope scope(this);-
1035-
1036 Reference iterator = Reference::fromStackSlot(this);-
1037 Reference lhsValue = Reference::fromStackSlot(this);-
1038-
1039 // There should be a temporal block, so that variables declared in lhs shadow outside vars.-
1040 // This block should define a temporal dead zone for those variables, which is not yet implemented.-
1041 {-
1042 RegisterScope innerScope(this);-
1043 Reference expr = expression(it->element->initializer);-
1044 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 152 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-152
1045 return false;
never executed: return false;
0
1046-
1047 expr.loadInAccumulator();-
1048 Instruction::GetIterator iteratorObjInstr;-
1049 iteratorObjInstr.iterator = /*ForEachType::Of*/ 1;-
1050 bytecodeGenerator->addInstruction(iteratorObjInstr);-
1051 iterator.storeConsumeAccumulator();-
1052 }-
1053-
1054 BytecodeGenerator::Label in = bytecodeGenerator->newLabel();-
1055 BytecodeGenerator::Label end = bytecodeGenerator->newLabel();-
1056 BytecodeGenerator::Label done = bytecodeGenerator->newLabel();-
1057-
1058 {-
1059 ControlFlowLoop flow(this, &end, &in, /*requiresUnwind*/ true);-
1060 bytecodeGenerator->jump().link(in);-
1061-
1062 BytecodeGenerator::Label body = bytecodeGenerator->label();-
1063-
1064 lhsValue.loadInAccumulator();-
1065 pushAccumulator();-
1066-
1067 in.link();-
1068 iterator.loadInAccumulator();-
1069 Instruction::IteratorNext next;-
1070 next.value = lhsValue.stackSlot();-
1071 bytecodeGenerator->addInstruction(next);-
1072 bytecodeGenerator->addJumpInstruction(Instruction::JumpFalse()).link(body);-
1073 bytecodeGenerator->jump().link(done);-
1074 }-
1075-
1076 end.link();-
1077-
1078 Reference iteratorDone = Reference::fromConst(this, Encode(false)).storeOnStack();-
1079 iterator.loadInAccumulator();-
1080 Instruction::IteratorClose close;-
1081 close.done = iteratorDone.stackSlot();-
1082 bytecodeGenerator->addInstruction(close);-
1083-
1084 done.link();-
1085 } else {
executed 150 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
150
1086 RegisterScope innerScope(this);-
1087 Reference expr = expression(it->element->initializer);-
1088 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-4
1089 return false;
never executed: return false;
0
1090-
1091 expr.loadInAccumulator();-
1092 pushAccumulator();-
1093 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
4
1094-
1095 it = it->next;-
1096 }
executed 156 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
156
1097-
1098 array.loadInAccumulator();-
1099 _expr.setResult(Reference::fromAccumulator(this));-
1100-
1101 return false;
executed 151 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
151
1102}-
1103-
1104bool Codegen::visit(ArrayMemberExpression *ast)-
1105{-
1106 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 124967 times by 32 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
0-124967
1107 return false;
never executed: return false;
0
1108-
1109 Reference base = expression(ast->base);-
1110 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 125298 times by 32 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
0-125298
1111 return false;
never executed: return false;
0
1112 if (base.isSuper()) {
base.isSuper()Description
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 125228 times by 32 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
140-125228
1113 Reference index = expression(ast->expression).storeOnStack();-
1114 _expr.setResult(Reference::fromSuperProperty(index));-
1115 return false;
executed 140 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
140
1116 }-
1117 base = base.storeOnStack();-
1118 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 124982 times by 32 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
0-124982
1119 return false;
never executed: return false;
0
1120 if (AST::StringLiteral *str = AST::cast<AST::StringLiteral *>(ast->expression)) {
AST::StringLit...t->expression)Description
TRUEevaluated 3037 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
FALSEevaluated 121829 times by 32 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
3037-121829
1121 QString s = str->value.toString();-
1122 uint arrayIndex = QV4::String::toArrayIndex(s);-
1123 if (arrayIndex == UINT_MAX) {
arrayIndex == ...fff * 2U + 1U)Description
TRUEevaluated 2581 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
FALSEevaluated 456 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
456-2581
1124 _expr.setResult(Reference::fromMember(base, str->value.toString()));-
1125 return false;
executed 2584 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
2584
1126 }-
1127 Reference index = Reference::fromConst(this, QV4::Encode(arrayIndex));-
1128 _expr.setResult(Reference::fromSubscript(base, index));-
1129 return false;
executed 456 times by 2 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
456
1130 }-
1131 Reference index = expression(ast->expression);-
1132 _expr.setResult(Reference::fromSubscript(base, index));-
1133 return false;
executed 121907 times by 32 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
121907
1134}-
1135-
1136static QSOperator::Op baseOp(int op)-
1137{-
1138 switch ((QSOperator::Op) op) {-
1139 case QSOperator::InplaceAnd: return QSOperator::BitAnd;
executed 406 times by 3 tests: return QSOperator::BitAnd;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
executed 406 times by 3 tests: case QSOperator::InplaceAnd:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
406
1140 case QSOperator::InplaceSub: return QSOperator::Sub;
executed 675 times by 8 tests: return QSOperator::Sub;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qv4debugger
executed 675 times by 8 tests: case QSOperator::InplaceSub:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qv4debugger
675
1141 case QSOperator::InplaceDiv: return QSOperator::Div;
executed 403 times by 3 tests: return QSOperator::Div;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
executed 403 times by 3 tests: case QSOperator::InplaceDiv:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
403
1142 case QSOperator::InplaceAdd: return QSOperator::Add;
executed 675598 times by 26 tests: return QSOperator::Add;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
  • ...
executed 674907 times by 26 tests: case QSOperator::InplaceAdd:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
  • ...
674907-675598
1143 case QSOperator::InplaceLeftShift: return QSOperator::LShift;
executed 402 times by 2 tests: return QSOperator::LShift;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
executed 402 times by 2 tests: case QSOperator::InplaceLeftShift:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
402
1144 case QSOperator::InplaceMod: return QSOperator::Mod;
executed 400 times by 2 tests: return QSOperator::Mod;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
executed 400 times by 2 tests: case QSOperator::InplaceMod:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
400
1145 case QSOperator::InplaceExp: return QSOperator::Exp;
executed 4 times by 1 test: return QSOperator::Exp;
Executed by:
  • tst_ecmascripttests
executed 4 times by 1 test: case QSOperator::InplaceExp:
Executed by:
  • tst_ecmascripttests
4
1146 case QSOperator::InplaceMul: return QSOperator::Mul;
executed 483 times by 4 tests: return QSOperator::Mul;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
executed 483 times by 4 tests: case QSOperator::InplaceMul:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
483
1147 case QSOperator::InplaceOr: return QSOperator::BitOr;
executed 412 times by 4 tests: return QSOperator::BitOr;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qquicklistview
executed 412 times by 4 tests: case QSOperator::InplaceOr:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qquicklistview
412
1148 case QSOperator::InplaceRightShift: return QSOperator::RShift;
executed 412 times by 3 tests: return QSOperator::RShift;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
executed 412 times by 3 tests: case QSOperator::InplaceRightShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
412
1149 case QSOperator::InplaceURightShift: return QSOperator::URShift;
executed 1033 times by 2 tests: return QSOperator::URShift;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
executed 1037 times by 2 tests: case QSOperator::InplaceURightShift:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
1033-1037
1150 case QSOperator::InplaceXor: return QSOperator::BitXor;
executed 401 times by 2 tests: return QSOperator::BitXor;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
executed 401 times by 2 tests: case QSOperator::InplaceXor:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
401
1151 default: return QSOperator::Invalid;
never executed: return QSOperator::Invalid;
never executed: default:
0
1152 }-
1153}-
1154-
1155bool Codegen::visit(BinaryExpression *ast)-
1156{-
1157 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 5923498 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
0-5923498
1158 return false;
never executed: return false;
0
1159-
1160 if (ast->op == QSOperator::And) {
ast->op == QSOperator::AndDescription
TRUEevaluated 110637 times by 34 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • ...
FALSEevaluated 5812631 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
110637-5812631
1161 if (_expr.accept(cx)) {
_expr.accept(cx)Description
TRUEevaluated 10408 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 100090 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
10408-100090
1162 auto iftrue = bytecodeGenerator->newLabel();-
1163 condition(ast->left, &iftrue, _expr.iffalse(), true);-
1164 iftrue.link();-
1165 condition(ast->right, _expr.iftrue(), _expr.iffalse(), _expr.trueBlockFollowsCondition());-
1166 } else {
executed 10411 times by 21 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
10411
1167 auto iftrue = bytecodeGenerator->newLabel();-
1168 auto endif = bytecodeGenerator->newLabel();-
1169-
1170 Reference left = expression(ast->left);-
1171 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 100365 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-100365
1172 return false;
never executed: return false;
0
1173 left.loadInAccumulator();-
1174-
1175 bytecodeGenerator->setLocation(ast->operatorToken);-
1176 bytecodeGenerator->jumpFalse().link(endif);-
1177 iftrue.link();-
1178-
1179 Reference right = expression(ast->right);-
1180 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 100421 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-100421
1181 return false;
never executed: return false;
0
1182 right.loadInAccumulator();-
1183-
1184 endif.link();-
1185-
1186 _expr.setResult(Reference::fromAccumulator(this));-
1187 }
executed 100478 times by 25 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
100478
1188 return false;
executed 110356 times by 34 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • ...
110356
1189 } else if (ast->op == QSOperator::Or) {
ast->op == QSOperator::OrDescription
TRUEevaluated 290186 times by 19 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 5520511 times by 98 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
290186-5520511
1190 if (_expr.accept(cx)) {
_expr.accept(cx)Description
TRUEevaluated 106996 times by 18 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 183837 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklayouts
106996-183837
1191 auto iffalse = bytecodeGenerator->newLabel();-
1192 condition(ast->left, _expr.iftrue(), &iffalse, false);-
1193 iffalse.link();-
1194 condition(ast->right, _expr.iftrue(), _expr.iffalse(), _expr.trueBlockFollowsCondition());-
1195 } else {
executed 107680 times by 18 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
107680
1196 auto iffalse = bytecodeGenerator->newLabel();-
1197 auto endif = bytecodeGenerator->newLabel();-
1198-
1199 Reference left = expression(ast->left);-
1200 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 185022 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklayouts
0-185022
1201 return false;
never executed: return false;
0
1202 left.loadInAccumulator();-
1203-
1204 bytecodeGenerator->setLocation(ast->operatorToken);-
1205 bytecodeGenerator->jumpTrue().link(endif);-
1206 iffalse.link();-
1207-
1208 Reference right = expression(ast->right);-
1209 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 185231 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklayouts
0-185231
1210 return false;
never executed: return false;
0
1211 right.loadInAccumulator();-
1212-
1213 endif.link();-
1214-
1215 _expr.setResult(Reference::fromAccumulator(this));-
1216 }
executed 185173 times by 5 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklayouts
185173
1217 return false;
executed 291844 times by 19 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
291844
1218 } else if (ast->op == QSOperator::Assign) {
ast->op == QSOperator::AssignDescription
TRUEevaluated 1147593 times by 88 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 4367132 times by 82 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • ...
1147593-4367132
1219 if (AST::Pattern *p = ast->left->patternCast()) {
AST::Pattern *...>patternCast()Description
TRUEevaluated 819 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1149037 times by 88 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
819-1149037
1220 RegisterScope scope(this);-
1221 Reference right = expression(ast->right).storeOnStack();-
1222 destructurePattern(p, right);-
1223 if (!_expr.accept(nx)) {
!_expr.accept(nx)Description
TRUEevaluated 506 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 312 times by 1 test
Evaluated by:
  • tst_ecmascripttests
312-506
1224 right.loadInAccumulator();-
1225 _expr.setResult(Reference::fromAccumulator(this));-
1226 }
executed 510 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
510
1227 return false;
executed 822 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
822
1228 }-
1229 Reference left = expression(ast->left);-
1230 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1155944 times by 88 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-1155944
1231 return false;
never executed: return false;
0
1232-
1233 if (!left.isLValue()) {
!left.isLValue()Description
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 1148031 times by 88 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
18-1148031
1234 throwReferenceError(ast->operatorToken, QStringLiteral("left-hand side of assignment operator is not an lvalue"));
executed 18 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
18
1235 return false;
executed 18 times by 3 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
18
1236 }-
1237 left = left.asLValue();-
1238 if (throwSyntaxErrorOnEvalOrArgumentsInStrictMode(left, ast->left->lastSourceLocation()))
throwSyntaxErr...rceLocation())Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1152565 times by 88 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
36-1152565
1239 return false;
executed 36 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
36
1240 Reference r = expression(ast->right);-
1241 if (hasError)
hasErrorDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1151321 times by 88 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
12-1151321
1242 return false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
12
1243 r.loadInAccumulator();-
1244 if (_expr.accept(nx))
_expr.accept(nx)Description
TRUEevaluated 1144121 times by 87 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 4570 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • ...
4570-1144121
1245 _expr.setResult(left.storeConsumeAccumulator());
executed 1143773 times by 87 tests: _expr.setResult(left.storeConsumeAccumulator());
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
1143773
1246 else-
1247 _expr.setResult(left.storeRetainAccumulator());
executed 4569 times by 26 tests: _expr.setResult(left.storeRetainAccumulator());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • ...
4569
1248 return false;
executed 1151944 times by 88 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
1151944
1249 }-
1250-
1251 Reference left = expression(ast->left);-
1252 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 4357312 times by 82 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • ...
0-4357312
1253 return false;
never executed: return false;
0
1254-
1255 switch (ast->op) {-
1256 case QSOperator::Or:
never executed: case QSOperator::Or:
0
1257 case QSOperator::And:
never executed: case QSOperator::And:
0
1258 case QSOperator::Assign:
never executed: case QSOperator::Assign:
0
1259 Q_UNREACHABLE(); // handled separately above-
1260 break;
never executed: break;
0
1261-
1262 case QSOperator::InplaceAnd:
executed 411 times by 3 tests: case QSOperator::InplaceAnd:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
411
1263 case QSOperator::InplaceSub:
executed 677 times by 8 tests: case QSOperator::InplaceSub:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qv4debugger
677
1264 case QSOperator::InplaceDiv:
executed 407 times by 3 tests: case QSOperator::InplaceDiv:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
407
1265 case QSOperator::InplaceAdd:
executed 670978 times by 26 tests: case QSOperator::InplaceAdd:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
  • ...
670978
1266 case QSOperator::InplaceLeftShift:
executed 405 times by 2 tests: case QSOperator::InplaceLeftShift:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
405
1267 case QSOperator::InplaceMod:
executed 403 times by 2 tests: case QSOperator::InplaceMod:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
403
1268 case QSOperator::InplaceExp:
executed 4 times by 1 test: case QSOperator::InplaceExp:
Executed by:
  • tst_ecmascripttests
4
1269 case QSOperator::InplaceMul:
executed 485 times by 4 tests: case QSOperator::InplaceMul:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
485
1270 case QSOperator::InplaceOr:
executed 414 times by 4 tests: case QSOperator::InplaceOr:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qquicklistview
414
1271 case QSOperator::InplaceRightShift:
executed 415 times by 3 tests: case QSOperator::InplaceRightShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
415
1272 case QSOperator::InplaceURightShift:
executed 1037 times by 2 tests: case QSOperator::InplaceURightShift:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
1037
1273 case QSOperator::InplaceXor: {
executed 404 times by 2 tests: case QSOperator::InplaceXor:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
404
1274 if (throwSyntaxErrorOnEvalOrArgumentsInStrictMode(left, ast->left->lastSourceLocation()))
throwSyntaxErr...rceLocation())Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 680048 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
  • ...
42-680048
1275 return false;
executed 42 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
42
1276-
1277 if (!left.isLValue()) {
!left.isLValue()Description
TRUEnever evaluated
FALSEevaluated 681322 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
  • ...
0-681322
1278 throwSyntaxError(ast->operatorToken, QStringLiteral("left-hand side of inplace operator is not an lvalue"));
never executed: return qstring_literal_temp;
0
1279 return false;
never executed: return false;
0
1280 }-
1281 left = left.asLValue();-
1282-
1283 Reference tempLeft = left.storeOnStack();-
1284 Reference right = expression(ast->right);-
1285-
1286 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 684365 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
  • ...
0-684365
1287 return false;
never executed: return false;
0
1288-
1289 binopHelper(baseOp(ast->op), tempLeft, right).loadInAccumulator();-
1290 _expr.setResult(left.storeRetainAccumulator());-
1291-
1292 break;
executed 684691 times by 26 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_scenegraph
  • tst_signalspy
  • ...
684691
1293 }-
1294-
1295 case QSOperator::BitAnd:
executed 2207 times by 6 tests: case QSOperator::BitAnd:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickgridview
  • tst_qquickmousearea
2207
1296 case QSOperator::BitOr:
executed 876 times by 9 tests: case QSOperator::BitOr:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickdrag
  • tst_qquicklayouts
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
876
1297 case QSOperator::BitXor:
executed 820 times by 3 tests: case QSOperator::BitXor:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
820
1298 if (left.isConstant()) {
left.isConstant()Description
TRUEevaluated 900 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3002 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickdrag
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
900-3002
1299 Reference right = expression(ast->right);-
1300 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 900 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-900
1301 return false;
never executed: return false;
0
1302 _expr.setResult(binopHelper(static_cast<QSOperator::Op>(ast->op), right, left));-
1303 break;
executed 900 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
900
1304 }-
1305 // intentional fall-through!-
1306 case QSOperator::In:
code before this statement executed 3001 times by 11 tests: case QSOperator::In:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickdrag
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
executed 3589 times by 15 tests: case QSOperator::In:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
  • tst_quicktestmainwithsetup
  • tst_testfiltering
3001-3589
1307 case QSOperator::InstanceOf:
executed 21817 times by 15 tests: case QSOperator::InstanceOf:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
21817
1308 case QSOperator::Equal:
executed 6384 times by 48 tests: case QSOperator::Equal:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
6384
1309 case QSOperator::NotEqual:
executed 2721 times by 29 tests: case QSOperator::NotEqual:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • ...
2721
1310 case QSOperator::Ge:
executed 2461 times by 12 tests: case QSOperator::Ge:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
2461
1311 case QSOperator::Gt:
executed 11342 times by 25 tests: case QSOperator::Gt:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
11342
1312 case QSOperator::Le:
executed 3428 times by 11 tests: case QSOperator::Le:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_quicktestmainwithsetup
  • tst_testfiltering
3428
1313 case QSOperator::Lt:
executed 15501 times by 37 tests: case QSOperator::Lt:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
15501
1314 case QSOperator::StrictEqual:
executed 692281 times by 29 tests: case QSOperator::StrictEqual:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • ...
692281
1315 case QSOperator::StrictNotEqual:
executed 629934 times by 17 tests: case QSOperator::StrictNotEqual:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
629934
1316 case QSOperator::Add:
executed 2036954 times by 55 tests: case QSOperator::Add:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • ...
2036954
1317 case QSOperator::Div:
executed 174786 times by 31 tests: case QSOperator::Div:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlincubator
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • ...
174786
1318 case QSOperator::Exp:
executed 514 times by 1 test: case QSOperator::Exp:
Executed by:
  • tst_ecmascripttests
514
1319 case QSOperator::Mod:
executed 2425 times by 10 tests: case QSOperator::Mod:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_scenegraph
2425
1320 case QSOperator::Mul:
executed 3748 times by 31 tests: case QSOperator::Mul:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • ...
3748
1321 case QSOperator::Sub:
executed 6181 times by 34 tests: case QSOperator::Sub:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
6181
1322 case QSOperator::LShift:
executed 17733 times by 3 tests: case QSOperator::LShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
17733
1323 case QSOperator::RShift:
executed 18093 times by 3 tests: case QSOperator::RShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
18093
1324 case QSOperator::URShift: {
executed 17999 times by 3 tests: case QSOperator::URShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
17999
1325 Reference right;-
1326 if (AST::NumericLiteral *rhs = AST::cast<AST::NumericLiteral *>(ast->right)) {
AST::NumericLi...*>(ast->right)Description
TRUEevaluated 234845 times by 64 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
FALSEevaluated 3447688 times by 70 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
234845-3447688
1327 visit(rhs);-
1328 right = _expr.result();-
1329 } else {
executed 234604 times by 64 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • ...
234604
1330 left = left.storeOnStack(); // force any loads of the lhs, so the rhs won't clobber it-
1331 right = expression(ast->right);-
1332 }
executed 3448959 times by 70 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
3448959
1333 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 3676900 times by 82 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • ...
0-3676900
1334 return false;
never executed: return false;
0
1335