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-
1336 _expr.setResult(binopHelper(static_cast<QSOperator::Op>(ast->op), left, right));-
1337-
1338 break;
executed 3686961 times by 82 tests: break;
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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • ...
3686961
1339 }-
1340-
1341 } // switch-
1342-
1343 return false;
executed 4378375 times by 82 tests: return false;
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_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • ...
4378375
1344}-
1345-
1346Codegen::Reference Codegen::binopHelper(QSOperator::Op oper, Reference &left, Reference &right)-
1347{-
1348 switch (oper) {-
1349 case QSOperator::Add: {
executed 2719432 times by 56 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
  • ...
2719432
1350 //### Todo: when we add type hints, we can generate an Increment when both the lhs is a number and the rhs == 1-
1351 left = left.storeOnStack();-
1352 right.loadInAccumulator();-
1353 Instruction::Add add;-
1354 add.lhs = left.stackSlot();-
1355 bytecodeGenerator->addInstruction(add);-
1356 break;
executed 2724666 times by 56 tests: break;
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
  • ...
2724666
1357 }-
1358 case QSOperator::Sub: {
executed 6858 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
  • ...
6858
1359 if (right.isConstant() && right.constant == Encode(int(1))) {
right.isConstant()Description
TRUEevaluated 3241 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 3616 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
right.constant...Encode(int(1))Description
TRUEevaluated 1848 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qv4debugger
FALSEevaluated 1394 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpincharea
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
1394-3616
1360 left.loadInAccumulator();-
1361 bytecodeGenerator->addInstruction(Instruction::Decrement());-
1362 } else {
executed 1847 times by 13 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qv4debugger
1847
1363 left = left.storeOnStack();-
1364 right.loadInAccumulator();-
1365 Instruction::Sub sub;-
1366 sub.lhs = left.stackSlot();-
1367 bytecodeGenerator->addInstruction(sub);-
1368 }
executed 5012 times by 31 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquicktaphandler
  • ...
5012
1369 break;
executed 6860 times by 34 tests: break;
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
  • ...
6860
1370 }-
1371 case QSOperator::Exp: {
executed 520 times by 1 test: case QSOperator::Exp:
Executed by:
  • tst_ecmascripttests
520
1372 left = left.storeOnStack();-
1373 right.loadInAccumulator();-
1374 Instruction::Exp exp;-
1375 exp.lhs = left.stackSlot();-
1376 bytecodeGenerator->addInstruction(exp);-
1377 break;
executed 519 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
519
1378 }-
1379 case QSOperator::Mul: {
executed 4232 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
  • ...
4232
1380 left = left.storeOnStack();-
1381 right.loadInAccumulator();-
1382 Instruction::Mul mul;-
1383 mul.lhs = left.stackSlot();-
1384 bytecodeGenerator->addInstruction(mul);-
1385 break;
executed 4232 times by 31 tests: break;
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
  • ...
4232
1386 }-
1387 case QSOperator::Div: {
executed 173955 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
  • ...
173955
1388 left = left.storeOnStack();-
1389 right.loadInAccumulator();-
1390 Instruction::Div div;-
1391 div.lhs = left.stackSlot();-
1392 bytecodeGenerator->addInstruction(div);-
1393 break;
executed 175516 times by 31 tests: break;
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
  • ...
175516
1394 }-
1395 case QSOperator::Mod: {
executed 2823 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
2823
1396 left = left.storeOnStack();-
1397 right.loadInAccumulator();-
1398 Instruction::Mod mod;-
1399 mod.lhs = left.stackSlot();-
1400 bytecodeGenerator->addInstruction(mod);-
1401 break;
executed 2823 times by 10 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_scenegraph
2823
1402 }-
1403 case QSOperator::BitAnd:
executed 2612 times by 6 tests: case QSOperator::BitAnd:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickgridview
  • tst_qquickmousearea
2612
1404 if (right.isConstant()) {
right.isConstant()Description
TRUEevaluated 1872 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickgridview
FALSEevaluated 739 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickmousearea
739-1872
1405 int rightAsInt = Primitive::fromReturnedValue(right.constant).toInt32();-
1406 if (left.isConstant()) {
left.isConstant()Description
TRUEevaluated 124 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1746 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickgridview
124-1746
1407 int result = Primitive::fromReturnedValue(left.constant).toInt32() & rightAsInt;-
1408 return Reference::fromConst(this, Encode(result));
executed 124 times by 1 test: return Reference::fromConst(this, Encode(result));
Executed by:
  • tst_ecmascripttests
124
1409 }-
1410 left.loadInAccumulator();-
1411 Instruction::BitAndConst bitAnd;-
1412 bitAnd.rhs = rightAsInt;-
1413 bytecodeGenerator->addInstruction(bitAnd);-
1414 } else {
executed 1746 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickgridview
1746
1415 right.loadInAccumulator();-
1416 Instruction::BitAnd bitAnd;-
1417 bitAnd.lhs = left.stackSlot();-
1418 bytecodeGenerator->addInstruction(bitAnd);-
1419 }
executed 741 times by 5 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickmousearea
741
1420 break;
executed 2489 times by 6 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickgridview
  • tst_qquickmousearea
2489
1421 case QSOperator::BitOr:
executed 1287 times by 10 tests: case QSOperator::BitOr:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickdrag
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
1287
1422 if (right.isConstant()) {
right.isConstant()Description
TRUEevaluated 679 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 606 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickdrag
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
606-679
1423 int rightAsInt = Primitive::fromReturnedValue(right.constant).toInt32();-
1424 if (left.isConstant()) {
left.isConstant()Description
TRUEevaluated 123 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 556 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
123-556
1425 int result = Primitive::fromReturnedValue(left.constant).toInt32() | rightAsInt;-
1426 return Reference::fromConst(this, Encode(result));
executed 123 times by 1 test: return Reference::fromConst(this, Encode(result));
Executed by:
  • tst_ecmascripttests
123
1427 }-
1428 left.loadInAccumulator();-
1429 Instruction::BitOrConst bitOr;-
1430 bitOr.rhs = rightAsInt;-
1431 bytecodeGenerator->addInstruction(bitOr);-
1432 } else {
executed 558 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
558
1433 right.loadInAccumulator();-
1434 Instruction::BitOr bitOr;-
1435 bitOr.lhs = left.stackSlot();-
1436 bytecodeGenerator->addInstruction(bitOr);-
1437 }
executed 607 times by 10 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickdrag
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
607
1438 break;
executed 1165 times by 10 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickdrag
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickscreen
1165
1439 case QSOperator::BitXor:
executed 1221 times by 3 tests: case QSOperator::BitXor:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
1221
1440 if (right.isConstant()) {
right.isConstant()Description
TRUEevaluated 672 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 549 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
549-672
1441 int rightAsInt = Primitive::fromReturnedValue(right.constant).toInt32();-
1442 if (left.isConstant()) {
left.isConstant()Description
TRUEevaluated 124 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 548 times by 1 test
Evaluated by:
  • tst_ecmascripttests
124-548
1443 int result = Primitive::fromReturnedValue(left.constant).toInt32() ^ rightAsInt;-
1444 return Reference::fromConst(this, Encode(result));
executed 124 times by 1 test: return Reference::fromConst(this, Encode(result));
Executed by:
  • tst_ecmascripttests
124
1445 }-
1446 left.loadInAccumulator();-
1447 Instruction::BitXorConst bitXor;-
1448 bitXor.rhs = rightAsInt;-
1449 bytecodeGenerator->addInstruction(bitXor);-
1450 } else {
executed 548 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
548
1451 right.loadInAccumulator();-
1452 Instruction::BitXor bitXor;-
1453 bitXor.lhs = left.stackSlot();-
1454 bytecodeGenerator->addInstruction(bitXor);-
1455 }
executed 549 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
549
1456 break;
executed 1097 times by 3 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
1097
1457 case QSOperator::URShift:
executed 19202 times by 3 tests: case QSOperator::URShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
19202
1458 if (right.isConstant()) {
right.isConstant()Description
TRUEevaluated 18301 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 723 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
723-18301
1459 left.loadInAccumulator();-
1460 Instruction::UShrConst ushr;-
1461 ushr.rhs = Primitive::fromReturnedValue(right.constant).toInt32() & 0x1f;-
1462 bytecodeGenerator->addInstruction(ushr);-
1463 } else {
executed 18400 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
18400
1464 right.loadInAccumulator();-
1465 Instruction::UShr ushr;-
1466 ushr.lhs = left.stackSlot();-
1467 bytecodeGenerator->addInstruction(ushr);-
1468 }
executed 724 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
724
1469 break;
executed 19292 times by 3 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
19292
1470 case QSOperator::RShift:
executed 18518 times by 3 tests: case QSOperator::RShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
18518
1471 if (right.isConstant()) {
right.isConstant()Description
TRUEevaluated 17757 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 748 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
748-17757
1472 left.loadInAccumulator();-
1473 Instruction::ShrConst shr;-
1474 shr.rhs = Primitive::fromReturnedValue(right.constant).toInt32() & 0x1f;-
1475 bytecodeGenerator->addInstruction(shr);-
1476 } else {
executed 17715 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
17715
1477 right.loadInAccumulator();-
1478 Instruction::Shr shr;-
1479 shr.lhs = left.stackSlot();-
1480 bytecodeGenerator->addInstruction(shr);-
1481 }
executed 748 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
748
1482 break;
executed 18460 times by 3 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
18460
1483 case QSOperator::LShift:
executed 18432 times by 3 tests: case QSOperator::LShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
18432
1484 if (right.isConstant()) {
right.isConstant()Description
TRUEevaluated 17401 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 751 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
751-17401
1485 left.loadInAccumulator();-
1486 Instruction::ShlConst shl;-
1487 shl.rhs = Primitive::fromReturnedValue(right.constant).toInt32() & 0x1f;-
1488 bytecodeGenerator->addInstruction(shl);-
1489 } else {
executed 17422 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
17422
1490 right.loadInAccumulator();-
1491 Instruction::Shl shl;-
1492 shl.lhs = left.stackSlot();-
1493 bytecodeGenerator->addInstruction(shl);-
1494 }
executed 751 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
751
1495 break;
executed 18256 times by 3 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
18256
1496 case QSOperator::InstanceOf: {
executed 21897 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
21897
1497 Instruction::CmpInstanceOf binop;-
1498 left = left.storeOnStack();-
1499 right.loadInAccumulator();-
1500 binop.lhs = left.stackSlot();-
1501 bytecodeGenerator->addInstruction(binop);-
1502 break;
executed 22062 times by 15 tests: break;
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
22062
1503 }-
1504 case QSOperator::In: {
executed 590 times by 9 tests: case QSOperator::In:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
590
1505 Instruction::CmpIn binop;-
1506 left = left.storeOnStack();-
1507 right.loadInAccumulator();-
1508 binop.lhs = left.stackSlot();-
1509 bytecodeGenerator->addInstruction(binop);-
1510 break;
executed 590 times by 9 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
590
1511 }-
1512 case QSOperator::StrictEqual: {
executed 695837 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
  • ...
695837
1513 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 604857 times by 17 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlsqldatabase
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 89124 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlstatemachine
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
89124-604857
1514 return jumpBinop(oper, left, right);
executed 604124 times by 17 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlsqldatabase
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
604124
1515-
1516 Instruction::CmpStrictEqual cmp;-
1517 left = left.storeOnStack();-
1518 right.loadInAccumulator();-
1519 cmp.lhs = left.stackSlot();-
1520 bytecodeGenerator->addInstruction(cmp);-
1521 break;
executed 89358 times by 23 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlstatemachine
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
89358
1522 }-
1523 case QSOperator::StrictNotEqual: {
executed 631097 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
631097
1524 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 384698 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
FALSEevaluated 246421 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsvalue
246421-384698
1525 return jumpBinop(oper, left, right);
executed 384594 times by 16 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
384594
1526-
1527 Instruction::CmpStrictNotEqual cmp;-
1528 left = left.storeOnStack();-
1529 right.loadInAccumulator();-
1530 cmp.lhs = left.stackSlot();-
1531 bytecodeGenerator->addInstruction(cmp);-
1532 break;
executed 246867 times by 2 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
246867
1533 }-
1534 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
1535 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 3898 times by 35 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
FALSEevaluated 2486 times by 31 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • ...
2486-3898
1536 return jumpBinop(oper, left, right);
executed 3898 times by 35 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
3898
1537-
1538 Instruction::CmpEq cmp;-
1539 left = left.storeOnStack();-
1540 right.loadInAccumulator();-
1541 cmp.lhs = left.stackSlot();-
1542 bytecodeGenerator->addInstruction(cmp);-
1543 break;
executed 2486 times by 31 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • ...
2486
1544 }-
1545 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
1546 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 1914 times by 24 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • 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
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 807 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qtqmlmodules
807-1914
1547 return jumpBinop(oper, left, right);
executed 1914 times by 24 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • 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
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
1914
1548-
1549 Instruction::CmpNe cmp;-
1550 left = left.storeOnStack();-
1551 right.loadInAccumulator();-
1552 cmp.lhs = left.stackSlot();-
1553 bytecodeGenerator->addInstruction(cmp);-
1554 break;
executed 807 times by 13 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qtqmlmodules
807
1555 }-
1556 case QSOperator::Gt: {
executed 11348 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
11348
1557 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 1072 times by 19 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 10275 times by 15 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicktaphandler
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
1072-10275
1558 return jumpBinop(oper, left, right);
executed 1071 times by 19 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
1071
1559-
1560 Instruction::CmpGt cmp;-
1561 left = left.storeOnStack();-
1562 right.loadInAccumulator();-
1563 cmp.lhs = left.stackSlot();-
1564 bytecodeGenerator->addInstruction(cmp);-
1565 break;
executed 10318 times by 15 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquicktaphandler
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
10318
1566 }-
1567 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
1568 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 1421 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 1040 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklayouts
  • tst_signalspy
1040-1421
1569 return jumpBinop(oper, left, right);
executed 1421 times by 10 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1421
1570-
1571 Instruction::CmpGe cmp;-
1572 left = left.storeOnStack();-
1573 right.loadInAccumulator();-
1574 cmp.lhs = left.stackSlot();-
1575 bytecodeGenerator->addInstruction(cmp);-
1576 break;
executed 1040 times by 6 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquicklayouts
  • tst_signalspy
1040
1577 }-
1578 case QSOperator::Lt: {
executed 15516 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
  • ...
15516
1579 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 14341 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 1171 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquickrepeater
1171-14341
1580 return jumpBinop(oper, left, right);
executed 14337 times by 33 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
14337
1581-
1582 Instruction::CmpLt cmp;-
1583 left = left.storeOnStack();-
1584 right.loadInAccumulator();-
1585 cmp.lhs = left.stackSlot();-
1586 bytecodeGenerator->addInstruction(cmp);-
1587 break;
executed 1174 times by 13 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquicklayouts
  • tst_qquickrepeater
1174
1588 }-
1589 case QSOperator::Le:
executed 3430 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
3430
1590 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 2360 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 1071 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1071-2360
1591 return jumpBinop(oper, left, right);
executed 2360 times by 10 tests: return jumpBinop(oper, left, right);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_quicktestmainwithsetup
  • tst_testfiltering
2360
1592-
1593 Instruction::CmpLe cmp;-
1594 left = left.storeOnStack();-
1595 right.loadInAccumulator();-
1596 cmp.lhs = left.stackSlot();-
1597 bytecodeGenerator->addInstruction(cmp);-
1598 break;
executed 1071 times by 8 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1071
1599 default:
never executed: default:
0
1600 Q_UNREACHABLE();-
1601 }
never executed: end of block
0
1602-
1603 return Reference::fromAccumulator(this);
executed 3348754 times by 77 tests: return Reference::fromAccumulator(this);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlmoduleplugin
  • ...
3348754
1604}-
1605-
1606static QSOperator::Op operatorForSwappedOperands(QSOperator::Op oper)-
1607{-
1608 switch (oper) {-
1609 case QSOperator::StrictEqual: return QSOperator::StrictEqual;
executed 48 times by 1 test: return QSOperator::StrictEqual;
Executed by:
  • tst_ecmascripttests
executed 48 times by 1 test: case QSOperator::StrictEqual:
Executed by:
  • tst_ecmascripttests
48
1610 case QSOperator::StrictNotEqual: return QSOperator::StrictNotEqual;
executed 2446 times by 1 test: return QSOperator::StrictNotEqual;
Executed by:
  • tst_ecmascripttests
executed 2446 times by 1 test: case QSOperator::StrictNotEqual:
Executed by:
  • tst_ecmascripttests
2446
1611 case QSOperator::Equal: return QSOperator::Equal;
executed 5 times by 2 tests: return QSOperator::Equal;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlcontext
executed 5 times by 2 tests: case QSOperator::Equal:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlcontext
5
1612 case QSOperator::NotEqual: return QSOperator::NotEqual;
never executed: return QSOperator::NotEqual;
never executed: case QSOperator::NotEqual:
0
1613 case QSOperator::Gt: return QSOperator::Le;
never executed: return QSOperator::Le;
never executed: case QSOperator::Gt:
0
1614 case QSOperator::Ge: return QSOperator::Lt;
never executed: return QSOperator::Lt;
never executed: case QSOperator::Ge:
0
1615 case QSOperator::Lt: return QSOperator::Ge;
never executed: return QSOperator::Ge;
never executed: case QSOperator::Lt:
0
1616 case QSOperator::Le: return QSOperator::Gt;
never executed: return QSOperator::Gt;
never executed: case QSOperator::Le:
0
1617 default: Q_UNIMPLEMENTED(); return QSOperator::Invalid;
never executed: return QSOperator::Invalid;
never executed: default:
0
1618 }-
1619}-
1620-
1621Codegen::Reference Codegen::jumpBinop(QSOperator::Op oper, Reference &left, Reference &right)-
1622{-
1623 if (left.isConstant()) {
left.isConstant()Description
TRUEevaluated 2475 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlcontext
FALSEevaluated 1011666 times by 52 tests
Evaluated 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
  • ...
2475-1011666
1624 oper = operatorForSwappedOperands(oper);-
1625 qSwap(left, right);-
1626 }
executed 2512 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qqmlcontext
2512
1627-
1628 if (right.isConstant() && (oper == QSOperator::Equal || oper == QSOperator::NotEqual)) {
right.isConstant()Description
TRUEevaluated 238944 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
FALSEevaluated 776593 times by 42 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcustomaffector
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • ...
oper == QSOperator::EqualDescription
TRUEevaluated 2388 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 236922 times by 36 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • ...
oper == QSOperator::NotEqualDescription
TRUEevaluated 834 times by 17 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 236596 times by 32 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • ...
834-776593
1629 Value c = Primitive::fromReturnedValue(right.constant);-
1630 if (c.isNull() || c.isUndefined()) {
c.isNull()Description
TRUEevaluated 319 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_signalspy
FALSEevaluated 2903 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
c.isUndefined()Description
TRUEevaluated 252 times by 1 test
Evaluated by:
  • tst_parserstress
FALSEevaluated 2651 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
252-2903
1631 left.loadInAccumulator();-
1632 if (oper == QSOperator::Equal) {
oper == QSOperator::EqualDescription
TRUEevaluated 491 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
FALSEevaluated 80 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_signalspy
80-491
1633 Instruction::CmpEqNull cmp;-
1634 bytecodeGenerator->addInstruction(cmp);-
1635 addCJump();-
1636 return Reference();
executed 491 times by 6 tests: return Reference();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
491
1637 } else if (oper == QSOperator::NotEqual) {
oper == QSOperator::NotEqualDescription
TRUEevaluated 80 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_signalspy
FALSEnever evaluated
0-80
1638 Instruction::CmpNeNull cmp;-
1639 bytecodeGenerator->addInstruction(cmp);-
1640 addCJump();-
1641 return Reference();
executed 80 times by 7 tests: return Reference();
Executed by:
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_signalspy
80
1642 }-
1643 } else if (c.isInt32()) {
never executed: end of block
c.isInt32()Description
TRUEevaluated 2461 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
FALSEevaluated 190 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
0-2461
1644 left.loadInAccumulator();-
1645 if (oper == QSOperator::Equal) {
oper == QSOperator::EqualDescription
TRUEevaluated 1832 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 629 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_quicktestmainwithsetup
  • tst_testfiltering
629-1832
1646 Instruction::CmpEqInt cmp;-
1647 cmp.lhs = c.int_32();-
1648 bytecodeGenerator->addInstruction(cmp);-
1649 addCJump();-
1650 return Reference();
executed 1832 times by 21 tests: return Reference();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlbinding
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllocale
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
1832
1651 } else if (oper == QSOperator::NotEqual) {
oper == QSOperator::NotEqualDescription
TRUEevaluated 629 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEnever evaluated
0-629
1652 Instruction::CmpNeInt cmp;-
1653 cmp.lhs = c.int_32();-
1654 bytecodeGenerator->addInstruction(cmp);-
1655 addCJump();-
1656 return Reference();
executed 629 times by 16 tests: return Reference();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_quicktestmainwithsetup
  • tst_testfiltering
629
1657 }-
1658-
1659 }
never executed: end of block
0
1660 }
executed 190 times by 12 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickloader
190
1661-
1662 left = left.storeOnStack();-
1663 right.loadInAccumulator();-
1664-
1665 switch (oper) {-
1666 case QSOperator::StrictEqual: {
executed 605905 times by 17 tests: case QSOperator::StrictEqual:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlsqldatabase
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
605905
1667 Instruction::CmpStrictEqual cmp;-
1668 cmp.lhs = left.stackSlot();-
1669 bytecodeGenerator->addInstruction(cmp);-
1670 addCJump();-
1671 break;
executed 606544 times by 17 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlsqldatabase
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
606544
1672 }-
1673 case QSOperator::StrictNotEqual: {
executed 384318 times by 16 tests: case QSOperator::StrictNotEqual:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
384318
1674 Instruction::CmpStrictNotEqual cmp;-
1675 cmp.lhs = left.stackSlot();-
1676 bytecodeGenerator->addInstruction(cmp);-
1677 addCJump();-
1678 break;
executed 384679 times by 16 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • 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
384679
1679 }-
1680 case QSOperator::Equal: {
executed 1575 times by 29 tests: case QSOperator::Equal:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
1575
1681 Instruction::CmpEq cmp;-
1682 cmp.lhs = left.stackSlot();-
1683 bytecodeGenerator->addInstruction(cmp);-
1684 addCJump();-
1685 break;
executed 1575 times by 29 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • ...
1575
1686 }-
1687 case QSOperator::NotEqual: {
executed 1206 times by 24 tests: case QSOperator::NotEqual:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • 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
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
1206
1688 Instruction::CmpNe cmp;-
1689 cmp.lhs = left.stackSlot();-
1690 bytecodeGenerator->addInstruction(cmp);-
1691 addCJump();-
1692 break;
executed 1205 times by 24 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • 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
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
1205
1693 }-
1694 case QSOperator::Gt: {
executed 1073 times by 19 tests: case QSOperator::Gt:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
1073
1695 Instruction::CmpGt cmp;-
1696 cmp.lhs = left.stackSlot();-
1697 bytecodeGenerator->addInstruction(cmp);-
1698 addCJump();-
1699 break;
executed 1073 times by 19 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
1073
1700 }-
1701 case QSOperator::Ge: {
executed 1421 times by 10 tests: case QSOperator::Ge:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1421
1702 Instruction::CmpGe cmp;-
1703 cmp.lhs = left.stackSlot();-
1704 bytecodeGenerator->addInstruction(cmp);-
1705 addCJump();-
1706 break;
executed 1421 times by 10 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1421
1707 }-
1708 case QSOperator::Lt: {
executed 14357 times by 33 tests: case QSOperator::Lt:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
14357
1709 Instruction::CmpLt cmp;-
1710 cmp.lhs = left.stackSlot();-
1711 bytecodeGenerator->addInstruction(cmp);-
1712 addCJump();-
1713 break;
executed 14356 times by 33 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
14356
1714 }-
1715 case QSOperator::Le: {
executed 2362 times by 10 tests: case QSOperator::Le:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_quicktestmainwithsetup
  • tst_testfiltering
2362
1716 Instruction::CmpLe cmp;-
1717 cmp.lhs = left.stackSlot();-
1718 bytecodeGenerator->addInstruction(cmp);-
1719 addCJump();-
1720 break;
executed 2359 times by 10 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_quicktestmainwithsetup
  • tst_testfiltering
2359
1721 }-
1722 default:
never executed: default:
0
1723 Q_UNREACHABLE();-
1724 }
never executed: end of block
0
1725 return Reference();
executed 1013174 times by 50 tests: return Reference();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • 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
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
1013174
1726}-
1727-
1728bool Codegen::visit(CallExpression *ast)-
1729{-
1730 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2550544 times by 86 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-2550544
1731 return false;
never executed: return false;
0
1732-
1733 RegisterScope scope(this);-
1734-
1735 Reference base = expression(ast->base);-
1736-
1737 if (hasError)
hasErrorDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2563896 times by 86 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
24-2563896
1738 return false;
executed 24 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
24
1739 switch (base.type) {-
1740 case Reference::Member:
executed 786720 times by 81 tests: case Reference::Member:
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
786720
1741 case Reference::Subscript:
executed 1112 times by 7 tests: case Reference::Subscript:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1112
1742 case Reference::QmlScopeObject:
executed 3116 times by 2 tests: case Reference::QmlScopeObject:
Executed by:
  • tst_parserstress
  • tst_qqmlecmascript
3116
1743 case Reference::QmlContextObject:
never executed: case Reference::QmlContextObject:
0
1744 base = base.asLValue();-
1745 break;
executed 794233 times by 81 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
794233
1746 case Reference::Name:
executed 1646766 times by 48 tests: case Reference::Name:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
1646766
1747 break;
executed 1648286 times by 48 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
1648286
1748 case Reference::Super:
executed 455 times by 1 test: case Reference::Super:
Executed by:
  • tst_ecmascripttests
455
1749 handleConstruct(base, ast->arguments);-
1750 return false;
executed 456 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
456
1751 default:
executed 112054 times by 16 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
112054
1752 base = base.storeOnStack();-
1753 break;
executed 112528 times by 16 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
112528
1754 }-
1755-
1756 int thisObject = bytecodeGenerator->newRegister();-
1757 int functionObject = bytecodeGenerator->newRegister();-
1758-
1759 auto calldata = pushArgs(ast->arguments);-
1760 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2556685 times by 86 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-2556685
1761 return false;
never executed: return false;
0
1762-
1763 if (calldata.hasSpread) {
calldata.hasSpreadDescription
TRUEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2557933 times by 86 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
108-2557933
1764 Reference baseObject = base.baseObject();-
1765 if (!baseObject.isStackSlot()) {
!baseObject.isStackSlot()Description
TRUEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
0-108
1766 baseObject.storeOnStack(thisObject);-
1767 baseObject = Reference::fromStackSlot(this, thisObject);-
1768 }
executed 108 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
108
1769 if (!base.isStackSlot()) {
!base.isStackSlot()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_ecmascripttests
20-88
1770 base.storeOnStack(functionObject);-
1771 base = Reference::fromStackSlot(this, functionObject);-
1772 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
20
1773-
1774 Instruction::CallWithSpread call;-
1775 call.func = base.stackSlot();-
1776 call.thisObject = baseObject.stackSlot();-
1777 call.argc = calldata.argc;-
1778 call.argv = calldata.argv;-
1779 bytecodeGenerator->addInstruction(call);-
1780-
1781 _expr.setResult(Reference::fromAccumulator(this));-
1782 return false;
executed 108 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
108
1783-
1784 }-
1785-
1786 handleCall(base, calldata);-
1787 return false;
executed 2557922 times by 86 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
2557922
1788}-
1789-
1790void Codegen::handleCall(Reference &base, Arguments calldata)-
1791{-
1792 //### Do we really need all these call instructions? can's we load the callee in a temp?-
1793 if (base.type == Reference::QmlScopeObject) {
base.type == R...QmlScopeObjectDescription
TRUEevaluated 3116 times by 2 tests
Evaluated by:
  • tst_parserstress
  • tst_qqmlecmascript
FALSEevaluated 2545737 times by 86 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
3116-2545737
1794 Instruction::CallScopeObjectProperty call;-
1795 call.base = base.qmlBase.stackSlot();-
1796 call.name = base.qmlCoreIndex;-
1797 call.argc = calldata.argc;-
1798 call.argv = calldata.argv;-
1799 bytecodeGenerator->addInstruction(call);-
1800 } else if (base.type == Reference::QmlContextObject) {
executed 3116 times by 2 tests: end of block
Executed by:
  • tst_parserstress
  • tst_qqmlecmascript
base.type == R...lContextObjectDescription
TRUEnever evaluated
FALSEevaluated 2554170 times by 86 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-2554170
1801 Instruction::CallContextObjectProperty call;-
1802 call.base = base.qmlBase.stackSlot();-
1803 call.name = base.qmlCoreIndex;-
1804 call.argc = calldata.argc;-
1805 call.argv = calldata.argv;-
1806 bytecodeGenerator->addInstruction(call);-
1807 } else if (base.type == Reference::Member) {
never executed: end of block
base.type == Reference::MemberDescription
TRUEevaluated 788434 times by 81 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 1768765 times by 49 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
0-1768765
1808 if (!disable_lookups && useFastLookups) {
!disable_lookupsDescription
TRUEevaluated 786607 times by 81 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEnever evaluated
useFastLookupsDescription
TRUEevaluated 733517 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
FALSEevaluated 55490 times by 81 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-786607
1809 Instruction::CallPropertyLookup call;-
1810 call.base = base.propertyBase.stackSlot();-
1811 call.lookupIndex = registerGetterLookup(base.propertyNameIndex);-
1812 call.argc = calldata.argc;-
1813 call.argv = calldata.argv;-
1814 bytecodeGenerator->addInstruction(call);-
1815 } else {
executed 735114 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
735114
1816 Instruction::CallProperty call;-
1817 call.base = base.propertyBase.stackSlot();-
1818 call.name = base.propertyNameIndex;-
1819 call.argc = calldata.argc;-
1820 call.argv = calldata.argv;-
1821 bytecodeGenerator->addInstruction(call);-
1822 }
executed 55490 times by 81 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
55490
1823 } else if (base.type == Reference::Subscript) {
base.type == R...nce::SubscriptDescription
TRUEevaluated 1113 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 1767134 times by 49 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
1113-1767134
1824 Instruction::CallElement call;-
1825 call.base = base.elementBase;-
1826 call.index = base.elementSubscript.stackSlot();-
1827 call.argc = calldata.argc;-
1828 call.argv = calldata.argv;-
1829 bytecodeGenerator->addInstruction(call);-
1830 } else if (base.type == Reference::Name) {
executed 1113 times by 7 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
base.type == Reference::NameDescription
TRUEevaluated 1652436 times by 48 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
FALSEevaluated 113038 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
1113-1652436
1831 if (base.name == QStringLiteral("eval")) {-
1832 Instruction::CallPossiblyDirectEval call;-
1833 call.argc = calldata.argc;-
1834 call.argv = calldata.argv;-
1835 bytecodeGenerator->addInstruction(call);-
1836 } else if (!disable_lookups && useFastLookups && base.global) {
!disable_lookupsDescription
TRUEevaluated 1634520 times by 48 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
FALSEnever evaluated
useFastLookupsDescription
TRUEevaluated 1601165 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qv4assembler
FALSEevaluated 40500 times by 47 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
base.globalDescription
TRUEevaluated 1600819 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qv4assembler
FALSEevaluated 121 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-1634520
1837 Instruction::CallGlobalLookup call;-
1838 call.index = registerGlobalGetterLookup(base.nameAsIndex());-
1839 call.argc = calldata.argc;-
1840 call.argv = calldata.argv;-
1841 bytecodeGenerator->addInstruction(call);-
1842 } else {
executed 1594540 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qv4assembler
1594540
1843 Instruction::CallName call;-
1844 call.name = base.nameAsIndex();-
1845 call.argc = calldata.argc;-
1846 call.argv = calldata.argv;-
1847 bytecodeGenerator->addInstruction(call);-
1848 }
executed 40621 times by 47 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
40621
1849 } else {-
1850 Q_ASSERT(base.isStackSlot());-
1851 Instruction::CallValue call;-
1852 call.name = base.stackSlot();-
1853 call.argc = calldata.argc;-
1854 call.argv = calldata.argv;-
1855 bytecodeGenerator->addInstruction(call);-
1856 }
executed 112815 times by 16 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
112815
1857-
1858 _expr.setResult(Reference::fromAccumulator(this));-
1859}
executed 2559883 times by 86 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
2559883
1860-
1861Codegen::Arguments Codegen::pushArgs(ArgumentList *args)-
1862{-
1863 bool hasSpread = false;-
1864 int argc = 0;-
1865 for (ArgumentList *it = args; it; it = it->next) {
itDescription
TRUEevaluated 3808509 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 2748690 times by 87 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
2748690-3808509
1866 if (it->isSpreadElement) {
it->isSpreadElementDescription
TRUEevaluated 284 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3809600 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
284-3809600
1867 hasSpread = true;-
1868 ++argc;-
1869 }
executed 284 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
284
1870 ++argc;-
1871 }
executed 3808913 times by 77 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
3808913
1872-
1873 if (!argc)
!argcDescription
TRUEevaluated 163692 times by 68 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
FALSEevaluated 2583641 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
163692-2583641
1874 return { 0, 0, false };
executed 163694 times by 68 tests: return { 0, 0, false };
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • ...
163694
1875-
1876 int calldata = bytecodeGenerator->newRegisterArray(argc);-
1877-
1878 argc = 0;-
1879 for (ArgumentList *it = args; it; it = it->next) {
itDescription
TRUEevaluated 3818703 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 1482885 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
1482885-3818703
1880 if (it->isSpreadElement) {
it->isSpreadElementDescription
TRUEevaluated 284 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3820751 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
284-3820751
1881 Reference::fromConst(this, Primitive::emptyValue().asReturnedValue()).storeOnStack(calldata + argc);-
1882 ++argc;-
1883 }
executed 284 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
284
1884 RegisterScope scope(this);-
1885 Reference e = expression(it->expression);-
1886 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 3821778 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-3821778
1887 break;
never executed: break;
0
1888 if (!argc && !it->next && !hasSpread) {
!argcDescription
TRUEevaluated 2588092 times by 77 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 1227351 times by 58 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
!it->nextDescription
TRUEevaluated 1711729 times by 65 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
FALSEevaluated 878228 times by 58 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • ...
!hasSpreadDescription
TRUEevaluated 1715307 times by 65 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
FALSEnever evaluated
0-2588092
1889 // avoid copy for functions taking a single argument-
1890 if (e.isStackSlot())
e.isStackSlot()Description
TRUEevaluated 1111603 times by 29 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • ...
FALSEevaluated 603668 times by 65 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
603668-1111603
1891 return { 1, e.stackSlot(), hasSpread };
executed 1107306 times by 29 tests: return { 1, e.stackSlot(), hasSpread };
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • ...
1107306
1892 }
executed 603659 times by 65 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
603659
1893 (void) e.storeOnStack(calldata + argc);-
1894 ++argc;-
1895 }
executed 2710346 times by 77 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
2710346
1896-
1897 return { argc, calldata, hasSpread };
executed 1481352 times by 77 tests: return { argc, calldata, hasSpread };
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
1481352
1898}-
1899-
1900Codegen::Arguments Codegen::pushTemplateArgs(TemplateLiteral *args)-
1901{-
1902 int argc = 0;-
1903 for (TemplateLiteral *it = args; it; it = it->next)
itDescription
TRUEevaluated 486 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 306 times by 1 test
Evaluated by:
  • tst_ecmascripttests
306-486
1904 ++argc;
executed 486 times by 1 test: ++argc;
Executed by:
  • tst_ecmascripttests
486
1905-
1906 if (!argc)
!argcDescription
TRUEnever evaluated
FALSEevaluated 306 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-306
1907 return { 0, 0, false };
never executed: return { 0, 0, false };
0
1908-
1909 int calldata = bytecodeGenerator->newRegisterArray(argc);-
1910-
1911 argc = 0;-
1912 for (TemplateLiteral *it = args; it && it->expression; it = it->next) {
itDescription
TRUEevaluated 485 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
it->expressionDescription
TRUEevaluated 180 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 306 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-485
1913 RegisterScope scope(this);-
1914 Reference e = expression(it->expression);-
1915 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 180 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-180
1916 break;
never executed: break;
0
1917 (void) e.storeOnStack(calldata + argc);-
1918 ++argc;-
1919 }
executed 180 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
180
1920-
1921 return { argc, calldata, false };
executed 306 times by 1 test: return { argc, calldata, false };
Executed by:
  • tst_ecmascripttests
306
1922}-
1923-
1924bool Codegen::visit(ConditionalExpression *ast)-
1925{-
1926 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 26391 times by 44 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
0-26391
1927 return true;
never executed: return true;
0
1928-
1929 RegisterScope scope(this);-
1930-
1931 BytecodeGenerator::Label iftrue = bytecodeGenerator->newLabel();-
1932 BytecodeGenerator::Label iffalse = bytecodeGenerator->newLabel();-
1933 condition(ast->expression, &iftrue, &iffalse, true);-
1934-
1935 iftrue.link();-
1936 Reference ok = expression(ast->ok);-
1937 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 26475 times by 44 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
0-26475
1938 return false;
never executed: return false;
0
1939 ok.loadInAccumulator();-
1940 BytecodeGenerator::Jump jump_endif = bytecodeGenerator->jump();-
1941-
1942 iffalse.link();-
1943 Reference ko = expression(ast->ko);-
1944 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 26468 times by 44 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
0-26468
1945 return false;
never executed: return false;
0
1946 ko.loadInAccumulator();-
1947-
1948 jump_endif.link();-
1949 _expr.setResult(Reference::fromAccumulator(this));-
1950-
1951 return false;
executed 26483 times by 44 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
26483
1952}-
1953-
1954bool Codegen::visit(DeleteExpression *ast)-
1955{-
1956 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 19197 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
0-19197
1957 return false;
never executed: return false;
0
1958-
1959 RegisterScope scope(this);-
1960 Reference expr = expression(ast->expression);-
1961 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 19292 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickitem2
0-19292
1962 return false;
never executed: return false;
0
1963-
1964 switch (expr.type) {-
1965 case Reference::SuperProperty:
executed 4 times by 1 test: case Reference::SuperProperty:
Executed by:
  • tst_ecmascripttests
4
1966 // ### this should throw a reference error at runtime.-
1967 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
1968 case Reference::StackSlot:
executed 43 times by 3 tests: case Reference::StackSlot:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickitem2
43
1969 if (!expr.stackSlotIsLocalOrArgument)
!expr.stackSlo...ocalOrArgumentDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 39 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickitem2
4-39
1970 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
4
1971 // fall through-
1972 case Reference::ScopedLocal:
code before this statement executed 39 times by 3 tests: case Reference::ScopedLocal:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickitem2
executed 60 times by 2 tests: case Reference::ScopedLocal:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
39-60
1973 // Trying to delete a function argument might throw.-
1974 if (_context->isStrict) {
_context->isStrictDescription
TRUEnever evaluated
FALSEevaluated 99 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickitem2
0-99
1975 throwSyntaxError(ast->deleteToken, QStringLiteral("Delete of an unqualified identifier in strict mode."));
never executed: return qstring_literal_temp;
0
1976 return false;
never executed: return false;
0
1977 }-
1978 _expr.setResult(Reference::fromConst(this, QV4::Encode(false)));-
1979 return false;
executed 99 times by 3 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qquickitem2
99
1980 case Reference::Name: {
executed 178 times by 4 tests: case Reference::Name:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
178
1981 if (_context->isStrict) {
_context->isStrictDescription
TRUEnever evaluated
FALSEevaluated 177 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
0-177
1982 throwSyntaxError(ast->deleteToken, QStringLiteral("Delete of an unqualified identifier in strict mode."));
never executed: return qstring_literal_temp;
0
1983 return false;
never executed: return false;
0
1984 }-
1985 Instruction::DeleteName del;-
1986 del.name = expr.nameAsIndex();-
1987 bytecodeGenerator->addInstruction(del);-
1988 _expr.setResult(Reference::fromAccumulator(this));-
1989 return false;
executed 178 times by 4 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
178
1990 }-
1991 case Reference::Member: {
executed 1979 times by 5 tests: case Reference::Member:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
1979
1992 //### maybe add a variant where the base can be in the accumulator?-
1993 expr = expr.asLValue();-
1994 Instruction::LoadRuntimeString instr;-
1995 instr.stringId = expr.propertyNameIndex;-
1996 bytecodeGenerator->addInstruction(instr);-
1997 Reference index = Reference::fromStackSlot(this);-
1998 index.storeConsumeAccumulator();-
1999 Instruction::DeleteProperty del;-
2000 del.base = expr.propertyBase.stackSlot();-
2001 del.index = index.stackSlot();-
2002 bytecodeGenerator->addInstruction(del);-
2003 _expr.setResult(Reference::fromAccumulator(this));-
2004 return false;
executed 1983 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
1983
2005 }-
2006 case Reference::Subscript: {
executed 16829 times by 5 tests: case Reference::Subscript:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickgridview
16829
2007 //### maybe add a variant where the index can be in the accumulator?-
2008 expr = expr.asLValue();-
2009 Instruction::DeleteProperty del;-
2010 del.base = expr.elementBase;-
2011 del.index = expr.elementSubscript.stackSlot();-
2012 bytecodeGenerator->addInstruction(del);-
2013 _expr.setResult(Reference::fromAccumulator(this));-
2014 return false;
executed 16893 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickgridview
16893
2015 }-
2016 default:
executed 78 times by 2 tests: default:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
78
2017 break;
executed 78 times by 2 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
78
2018 }-
2019 // [[11.4.1]] Return true if it's not a reference-
2020 _expr.setResult(Reference::fromConst(this, QV4::Encode(true)));-
2021 return false;
executed 82 times by 2 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
82
2022}-
2023-
2024bool Codegen::visit(FalseLiteral *)-
2025{-
2026 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 45763 times by 48 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
0-45763
2027 return false;
never executed: return false;
0
2028-
2029 _expr.setResult(Reference::fromConst(this, QV4::Encode(false)));-
2030 return false;
executed 45693 times by 48 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
45693
2031}-
2032-
2033bool Codegen::visit(SuperLiteral *)-
2034{-
2035 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 883 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-883
2036 return false;
never executed: return false;
0
2037-
2038 _expr.setResult(Reference::fromSuper(this));-
2039 return false;
executed 882 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
882
2040}-
2041-
2042bool Codegen::visit(FieldMemberExpression *ast)-
2043{-
2044 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2701048 times by 112 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
0-2701048
2045 return false;
never executed: return false;
0
2046-
2047 if (AST::IdentifierExpression *id = AST::cast<AST::IdentifierExpression *>(ast->base)) {
AST::Identifie... *>(ast->base)Description
TRUEevaluated 1958264 times by 112 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
FALSEevaluated 747853 times by 53 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
747853-1958264
2048 if (id->name == QLatin1String("new")) {
id->name == QL...1String("new")Description
TRUEevaluated 168 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1965471 times by 112 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
168-1965471
2049 // new.target-
2050 if (ast->name != QLatin1String("target")) {
ast->name != Q...ring("target")Description
TRUEnever evaluated
FALSEevaluated 168 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-168
2051 throwSyntaxError(ast->identifierToken, QLatin1String("Expected 'target' after 'new.'."));-
2052 return false;
never executed: return false;
0
2053 }-
2054 Reference r = Reference::fromStackSlot(this, CallData::NewTarget);-
2055 _expr.setResult(r);-
2056 return false;
executed 168 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
168
2057 }-
2058 }
executed 1958859 times by 112 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_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
1958859
2059-
2060 Reference base = expression(ast->base);-
2061 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2708093 times by 112 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
0-2708093
2062 return false;
never executed: return false;
0
2063 if (base.isSuper()) {
base.isSuper()Description
TRUEevaluated 288 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2714303 times by 112 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
288-2714303
2064 Instruction::LoadRuntimeString load;-
2065 load.stringId = registerString(ast->name.toString());-
2066 bytecodeGenerator->addInstruction(load);-
2067 Reference property = Reference::fromAccumulator(this).storeOnStack();-
2068 _expr.setResult(Reference::fromSuperProperty(property));-
2069 return false;
executed 288 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
288
2070 }-
2071 _expr.setResult(Reference::fromMember(base, ast->name.toString()));-
2072 return false;
executed 2720333 times by 112 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_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
2720333
2073}-
2074-
2075bool Codegen::visit(TaggedTemplate *ast)-
2076{-
2077 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 304 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-304
2078 return false;
never executed: return false;
0
2079-
2080 RegisterScope scope(this);-
2081-
2082 Reference base = expression(ast->base);-
2083 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 305 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-305
2084 return false;
never executed: return false;
0
2085 switch (base.type) {-
2086 case Reference::Member:
executed 24 times by 1 test: case Reference::Member:
Executed by:
  • tst_ecmascripttests
24
2087 case Reference::Subscript:
never executed: case Reference::Subscript:
0
2088 base = base.asLValue();-
2089 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
24
2090 case Reference::Name:
executed 94 times by 1 test: case Reference::Name:
Executed by:
  • tst_ecmascripttests
94
2091 break;
executed 94 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
94
2092 default:
executed 187 times by 1 test: default:
Executed by:
  • tst_ecmascripttests
187
2093 base = base.storeOnStack();-
2094 break;
executed 187 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
187
2095 }-
2096-
2097 int arrayTemp = createTemplateArray(ast->templateLiteral);-
2098 Q_UNUSED(arrayTemp);-
2099 auto calldata = pushTemplateArgs(ast->templateLiteral);-
2100 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 306 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-306
2101 return false;
never executed: return false;
0
2102 ++calldata.argc;-
2103 Q_ASSERT(calldata.argv == arrayTemp + 1);-
2104 --calldata.argv;-
2105-
2106 handleCall(base, calldata);-
2107 return false;
executed 306 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
306
2108-
2109-
2110 return false;
dead code: return false;
-
2111}-
2112-
2113int Codegen::createTemplateArray(TemplateLiteral *t)-
2114{-
2115 int arrayTemp = bytecodeGenerator->newRegister();-
2116-
2117 RegisterScope scope(this);-
2118-
2119 int argc = 0;-
2120 int args = -1;-
2121 auto push = [this, &argc, &args](const QStringRef &arg) {-
2122 int temp = bytecodeGenerator->newRegister();-
2123 if (args == -1)
args == -1Description
TRUEevaluated 306 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 180 times by 1 test
Evaluated by:
  • tst_ecmascripttests
180-306
2124 args = temp;
executed 306 times by 1 test: args = temp;
Executed by:
  • tst_ecmascripttests
306
2125 Instruction::LoadRuntimeString instr;-
2126 instr.stringId = registerString(arg.toString());-
2127 bytecodeGenerator->addInstruction(instr);-
2128 Instruction::StoreReg store;-
2129 store.reg = temp;-
2130 bytecodeGenerator->addInstruction(store);-
2131-
2132 ++argc;-
2133 };
executed 486 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
486
2134-
2135 for (TemplateLiteral *it = t; it; it = it->next)
itDescription
TRUEevaluated 486 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 306 times by 1 test
Evaluated by:
  • tst_ecmascripttests
306-486
2136 push(it->value);
executed 486 times by 1 test: push(it->value);
Executed by:
  • tst_ecmascripttests
486
2137-
2138 if (args == -1) {
args == -1Description
TRUEnever evaluated
FALSEevaluated 306 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-306
2139 Q_ASSERT(argc == 0);-
2140 args = 0;-
2141 }
never executed: end of block
0
2142-
2143 Instruction::DefineArray call;-
2144 call.argc = argc;-
2145 call.args = Moth::StackSlot::createRegister(args);-
2146 bytecodeGenerator->addInstruction(call);-
2147-
2148 Instruction::StoreReg store;-
2149 store.reg = arrayTemp;-
2150 bytecodeGenerator->addInstruction(store);-
2151-
2152 return arrayTemp;
executed 306 times by 1 test: return arrayTemp;
Executed by:
  • tst_ecmascripttests
306
2153}-
2154-
2155bool Codegen::visit(FunctionExpression *ast)-
2156{-
2157 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 746680 times by 28 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickworkerscript
  • ...
0-746680
2158 return false;
never executed: return false;
0
2159-
2160 RegisterScope scope(this);-
2161-
2162 int function = defineFunction(ast->name.toString(), ast, ast->formals, ast->body);-
2163 if (hasError)
hasErrorDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 746932 times by 28 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickworkerscript
  • ...
42-746932
2164 return false;
executed 42 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
42
2165 loadClosure(function);-
2166 _expr.setResult(Reference::fromAccumulator(this));-
2167 return false;
executed 748350 times by 28 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickloader
  • tst_qquickworkerscript
  • ...
748350
2168}-
2169-
2170Codegen::Reference Codegen::referenceForName(const QString &name, bool isLhs)-
2171{-
2172 Context::ResolvedName resolved = _context->resolveName(name);-
2173-
2174 if (resolved.type == Context::ResolvedName::Local || resolved.type == Context::ResolvedName::Stack) {
resolved.type ...vedName::LocalDescription
TRUEevaluated 894383 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 12994110 times by 138 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
  • ...
resolved.type ...vedName::StackDescription
TRUEevaluated 7349313 times by 68 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • ...
FALSEevaluated 5667274 times by 137 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
  • ...
894383-12994110
2175 if (resolved.isArgOrEval && isLhs)
resolved.isArgOrEvalDescription
TRUEevaluated 13316 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 8228138 times by 70 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
isLhsDescription
TRUEnever evaluated
FALSEevaluated 13336 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
0-8228138
2176 // ### add correct source location-
2177 throwSyntaxError(SourceLocation(), QStringLiteral("Variable name may not be eval or arguments in strict mode"));
never executed: throwSyntaxError(SourceLocation(), ([]() noexcept -> QString { enum { Size = sizeof(u"" "Variable name may not be eval or arguments in strict mode")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Variable name may not be eval or arguments in strict mode" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
never executed: return qstring_literal_temp;
0
2178 Reference r = (resolved.type == Context::ResolvedName::Local) ?
(resolved.type...edName::Local)Description
TRUEevaluated 892974 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 7333579 times by 68 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • ...
892974-7333579
2179 Reference::fromScopedLocal(this, resolved.index, resolved.scope) :-
2180 Reference::fromStackSlot(this, resolved.index, true /*isLocal*/);-
2181 if (r.isStackSlot() && _volatileMemoryLocations.isVolatile(name))
r.isStackSlot()Description
TRUEevaluated 7362479 times by 68 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • ...
FALSEevaluated 895782 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
_volatileMemor...Volatile(name)Description
TRUEevaluated 4049278 times by 58 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_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
FALSEevaluated 3294708 times by 61 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • ...
895782-7362479
2182 r.isVolatile = true;
executed 4039537 times by 58 tests: r.isVolatile = 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_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
4039537
2183 r.isArgOrEval = resolved.isArgOrEval;-
2184 r.isReferenceToConst = resolved.isConst;-
2185 return r;
executed 8242388 times by 70 tests: return r;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
8242388
2186 }-
2187-
2188 // This hook allows implementing QML lookup semantics-
2189 Reference fallback = fallbackNameLookup(name);-
2190 if (fallback.type != Reference::Invalid)
fallback.type ...rence::InvalidDescription
TRUEevaluated 181564 times by 129 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
FALSEevaluated 5472930 times by 52 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • ...
181564-5472930
2191 return fallback;
executed 181564 times by 129 tests: return fallback;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • ...
181564
2192-
2193 Reference r = Reference::fromName(this, name);-
2194 r.global = (resolved.type == Context::ResolvedName::Global);-
2195 return r;
executed 5491596 times by 52 tests: return r;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • ...
5491596
2196}-
2197-
2198void Codegen::loadClosure(int closureId)-
2199{-
2200 if (closureId >= 0) {
closureId >= 0Description
TRUEevaluated 1036851 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • ...
FALSEnever evaluated
0-1036851
2201 Instruction::LoadClosure load;-
2202 load.value = closureId;-
2203 bytecodeGenerator->addInstruction(load);-
2204 } else {
executed 1041365 times by 32 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • ...
1041365
2205 Reference::fromConst(this, Encode::undefined()).loadInAccumulator();-
2206 }
never executed: end of block
0
2207}-
2208-
2209Codegen::Reference Codegen::fallbackNameLookup(const QString &name)-
2210{-
2211 Q_UNUSED(name)-
2212 return Reference();
executed 5473444 times by 38 tests: return Reference();
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_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • ...
5473444
2213}-
2214-
2215bool Codegen::visit(IdentifierExpression *ast)-
2216{-
2217 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 11322604 times by 137 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
  • ...
0-11322604
2218 return false;
never executed: return false;
0
2219-
2220 _expr.setResult(referenceForName(ast->name.toString(), false));-
2221 return false;
executed 11397018 times by 137 tests: return 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
  • ...
11397018
2222}-
2223-
2224bool Codegen::visit(NestedExpression *ast)-
2225{-
2226 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 144885 times by 44 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • ...
0-144885
2227 return false;
never executed: return false;
0
2228-
2229 accept(ast->expression);-
2230 return false;
executed 145124 times by 44 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • ...
145124
2231}-
2232-
2233void Codegen::handleConstruct(const Reference &base, ArgumentList *arguments)-
2234{-
2235 Reference constructor;-
2236 if (base.isSuper()) {
base.isSuper()Description
TRUEevaluated 455 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 197218 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
455-197218
2237 Instruction::LoadSuperConstructor super;-
2238 bytecodeGenerator->addInstruction(super);-
2239 constructor = Reference::fromAccumulator(this).storeOnStack();-
2240 } else {
executed 456 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
456
2241 constructor = base.storeOnStack();-
2242 }
executed 197636 times by 22 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
197636
2243-
2244 auto calldata = pushArgs(arguments);-
2245 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 197497 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
0-197497
2246 return;
never executed: return;
0
2247-
2248 if (base.isSuper()) {
base.isSuper()Description
TRUEevaluated 455 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 197297 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
455-197297
2249 Reference::fromStackSlot(this, CallData::Function).loadInAccumulator();-
2250 } else {
executed 456 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
456
2251 constructor.loadInAccumulator();-
2252 }
executed 198350 times by 22 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
198350
2253-
2254 if (calldata.hasSpread) {
calldata.hasSpreadDescription
TRUEevaluated 176 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 197652 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
176-197652
2255 Instruction::ConstructWithSpread create;-
2256 create.func = constructor.stackSlot();-
2257 create.argc = calldata.argc;-
2258 create.argv = calldata.argv;-
2259 bytecodeGenerator->addInstruction(create);-
2260 } else {
executed 176 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
176
2261 Instruction::Construct create;-
2262 create.func = constructor.stackSlot();-
2263 create.argc = calldata.argc;-
2264 create.argv = calldata.argv;-
2265 bytecodeGenerator->addInstruction(create);-
2266 }
executed 198696 times by 22 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
198696
2267 if (base.isSuper())
base.isSuper()Description
TRUEevaluated 456 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 198395 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
456-198395
2268 // set the result up as the thisObject-
2269 Reference::fromAccumulator(this).storeOnStack(CallData::This);
executed 456 times by 1 test: Reference::fromAccumulator(this).storeOnStack(CallData::This);
Executed by:
  • tst_ecmascripttests
456
2270-
2271 _expr.setResult(Reference::fromAccumulator(this));-
2272}
executed 198348 times by 22 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
198348
2273-
2274bool Codegen::visit(NewExpression *ast)-
2275{-
2276 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 944 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
0-944
2277 return false;
never executed: return false;
0
2278-
2279 RegisterScope scope(this);-
2280-
2281 Reference base = expression(ast->expression);-
2282 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 947 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
0-947
2283 return false;
never executed: return false;
0
2284 if (base.isSuper()) {
base.isSuper()Description
TRUEnever evaluated
FALSEevaluated 947 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
0-947
2285 throwSyntaxError(ast->expression->firstSourceLocation(), QStringLiteral("Cannot use new with super."));
never executed: return qstring_literal_temp;
0
2286 return false;
never executed: return false;
0
2287 }-
2288-
2289 handleConstruct(base, nullptr);-
2290 return false;
executed 945 times by 9 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
945
2291}-
2292-
2293bool Codegen::visit(NewMemberExpression *ast)-
2294{-
2295 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 195827 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
0-195827
2296 return false;
never executed: return false;
0
2297-
2298 RegisterScope scope(this);-
2299-
2300 Reference base = expression(ast->base);-
2301 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 196695 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
0-196695
2302 return false;
never executed: return false;
0
2303 if (base.isSuper()) {
base.isSuper()Description
TRUEnever evaluated
FALSEevaluated 197765 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
0-197765
2304 throwSyntaxError(ast->base->firstSourceLocation(), QStringLiteral("Cannot use new with super."));
never executed: return qstring_literal_temp;
0
2305 return false;
never executed: return false;
0
2306 }-
2307-
2308 handleConstruct(base, ast->arguments);-
2309 return false;
executed 196805 times by 21 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
196805
2310}-
2311-
2312bool Codegen::visit(NotExpression *ast)-
2313{-
2314 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 193393 times by 33 tests
Evaluated 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
  • ...
0-193393
2315 return false;
never executed: return false;
0
2316-
2317 _expr.setResult(unop(Not, expression(ast->expression)));-
2318 return false;
executed 194576 times by 33 tests: return false;
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
  • ...
194576
2319}-
2320-
2321bool Codegen::visit(NullExpression *)-
2322{-
2323 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 104560 times by 34 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
0-104560
2324 return false;
never executed: return false;
0
2325-
2326 if (_expr.accept(cx))
_expr.accept(cx)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 104546 times by 34 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
16-104546
2327 bytecodeGenerator->jump().link(*_expr.iffalse());
executed 16 times by 1 test: bytecodeGenerator->jump().link(*_expr.iffalse());
Executed by:
  • tst_ecmascripttests
16
2328 else-
2329 _expr.setResult(Reference::fromConst(this, Encode::null()));
executed 104452 times by 34 tests: _expr.setResult(Reference::fromConst(this, Encode::null()));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
104452
2330-
2331 return false;
executed 105820 times by 34 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
105820
2332}-
2333-
2334bool Codegen::visit(NumericLiteral *ast)-
2335{-
2336 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1000071 times by 90 tests
Evaluated by:
  • 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
0-1000071
2337 return false;
never executed: return false;
0
2338-
2339 _expr.setResult(Reference::fromConst(this, QV4::Encode::smallestNumber(ast->value)));-
2340 return false;
executed 1000268 times by 90 tests: return false;
Executed by:
  • 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
1000268
2341}-
2342-
2343bool Codegen::visit(ObjectPattern *ast)-
2344{-
2345 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 71470 times by 36 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
0-71470
2346 return false;
never executed: return false;
0
2347-
2348 QVector<QPair<Reference, ObjectPropertyValue>> computedProperties;-
2349 QMap<QString, ObjectPropertyValue> valueMap;-
2350-
2351 RegisterScope scope(this);-
2352-
2353 QStringList members;-
2354-
2355 int argc = 0;-
2356 int args = 0;-
2357 auto push = [this, &args, &argc](const Reference &arg) {-
2358 int temp = bytecodeGenerator->newRegister();-
2359 if (argc == 0)
argc == 0Description
TRUEevaluated 48554 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
FALSEevaluated 53323 times by 24 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
48554-53323
2360 args = temp;
executed 48552 times by 33 tests: args = temp;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
48552
2361 (void) arg.storeOnStack(temp);-
2362 ++argc;-
2363 };
executed 101864 times by 33 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
101864
2364-
2365 PatternPropertyList *it = ast->properties;-
2366 for (; it; it = it->next) {
itDescription
TRUEevaluated 77717 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
FALSEevaluated 67292 times by 36 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
67292-77717
2367 PatternProperty *p = it->property;-
2368 AST::ComputedPropertyName *cname = AST::cast<AST::ComputedPropertyName *>(p->name);-
2369 if (cname || p->type == PatternProperty::Getter || p->type == PatternProperty::Setter)
cnameDescription
TRUEevaluated 440 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 77162 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
p->type == Pat...operty::GetterDescription
TRUEevaluated 473 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 76845 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
p->type == Pat...operty::SetterDescription
TRUEevaluated 186 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 76651 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
186-77162
2370 break;
executed 1097 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
1097
2371 QString name = p->name->asString();-
2372 uint arrayIndex = QV4::String::toArrayIndex(name);-
2373 if (arrayIndex != UINT_MAX)
arrayIndex != ...fff * 2U + 1U)Description
TRUEevaluated 3073 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
FALSEevaluated 73560 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
3073-73560
2374 break;
executed 3074 times by 3 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
3074
2375 if (members.contains(name))
members.contains(name)Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 73585 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
18-73585
2376 break;
executed 18 times by 2 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
18
2377 members.append(name);-
2378-
2379 {-
2380 RegisterScope innerScope(this);-
2381 Reference value = expression(p->initializer);-
2382 if (hasError)
hasErrorDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 73597 times by 33 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
4-73597
2383 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
2384 value.loadInAccumulator();-
2385 }-
2386 push(Reference::fromAccumulator(this));-
2387 }
executed 73581 times by 33 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlegroup
  • ...
73581
2388-
2389 int classId = jsUnitGenerator->registerJSClass(members);-
2390-
2391 // handle complex property setters-
2392 for (; it; it = it->next) {
itDescription
TRUEevaluated 9411 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
FALSEevaluated 71570 times by 36 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
9411-71570
2393 PatternProperty *p = it->property;-
2394 AST::ComputedPropertyName *cname = AST::cast<AST::ComputedPropertyName *>(p->name);-
2395 ObjectLiteralArgument argType = ObjectLiteralArgument::Value;-
2396 if (p->type == PatternProperty::Getter)
p->type == Pat...operty::GetterDescription
TRUEevaluated 893 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8518 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
893-8518
2397 argType = ObjectLiteralArgument::Getter;
executed 893 times by 1 test: argType = ObjectLiteralArgument::Getter;
Executed by:
  • tst_ecmascripttests
893
2398 else if (p->type == PatternProperty::Setter)
p->type == Pat...operty::SetterDescription
TRUEevaluated 594 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 7909 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
594-7909
2399 argType = ObjectLiteralArgument::Setter;
executed 594 times by 1 test: argType = ObjectLiteralArgument::Setter;
Executed by:
  • tst_ecmascripttests
594
2400-
2401 Reference::fromConst(this, Encode(int(argType))).loadInAccumulator();-
2402 push(Reference::fromAccumulator(this));-
2403-
2404 if (cname) {
cnameDescription
TRUEevaluated 677 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 8757 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
677-8757
2405 RegisterScope innerScope(this);-
2406 Reference name = expression(cname->expression);-
2407 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 677 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-677
2408 return false;
never executed: return false;
0
2409 name.loadInAccumulator();-
2410 } else {
executed 677 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
677
2411 QString name = p->name->asString();-
2412#if 0-
2413 uint arrayIndex = QV4::String::toArrayIndex(name);-
2414 if (arrayIndex != UINT_MAX) {-
2415 Reference::fromConst(this, Encode(arrayIndex)).loadInAccumulator();-
2416 } else-
2417#endif-
2418 {-
2419 Instruction::LoadRuntimeString instr;-
2420 instr.stringId = registerString(name);-
2421 bytecodeGenerator->addInstruction(instr);-
2422 }-
2423 }
executed 8742 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
8742
2424 push(Reference::fromAccumulator(this));-
2425 {-
2426 RegisterScope innerScope(this);-
2427 Reference value = expression(p->initializer);-
2428 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 9435 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
0-9435
2429 return false;
never executed: return false;
0
2430 value.loadInAccumulator();-
2431 }-
2432 push(Reference::fromAccumulator(this));-
2433 }
executed 9451 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
9451
2434-
2435 Instruction::DefineObjectLiteral call;-
2436 call.internalClassId = classId;-
2437 call.argc = argc;-
2438 call.args = Moth::StackSlot::createRegister(args);-
2439 bytecodeGenerator->addInstruction(call);-
2440 Reference result = Reference::fromAccumulator(this);-
2441 _expr.setResult(result);-
2442 return false;
executed 71480 times by 36 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
71480
2443}-
2444-
2445bool Codegen::visit(PostDecrementExpression *ast)-
2446{-
2447 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 453 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
0-453
2448 return false;
never executed: return false;
0
2449-
2450 Reference expr = expression(ast->base);-
2451 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 453 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
0-453
2452 return false;
never executed: return false;
0
2453 if (!expr.isLValue()) {
!expr.isLValue()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 449 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
4-449
2454 throwReferenceError(ast->base->lastSourceLocation(), QStringLiteral("Invalid left-hand side expression in postfix operation"));
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
4
2455 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
2456 }-
2457 if (throwSyntaxErrorOnEvalOrArgumentsInStrictMode(expr, ast->decrementToken))
throwSyntaxErr...ecrementToken)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 445 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
4-445
2458 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
2459-
2460 _expr.setResult(unop(PostDecrement, expr));-
2461-
2462 return false;
executed 445 times by 8 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
445
2463}-
2464-
2465bool Codegen::visit(PostIncrementExpression *ast)-
2466{-
2467 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 13025 times by 28 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_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • ...
0-13025
2468 return false;
never executed: return false;
0
2469-
2470 Reference expr = expression(ast->base);-
2471 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 13033 times by 28 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_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • ...
0-13033
2472 return false;
never executed: return false;
0
2473 if (!expr.isLValue()) {
!expr.isLValue()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 13029 times by 28 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_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • ...
24-13029
2474 throwReferenceError(ast->base->lastSourceLocation(), QStringLiteral("Invalid left-hand side expression in postfix operation"));
executed 23 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
23
2475 return false;
executed 24 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
24
2476 }-
2477 if (throwSyntaxErrorOnEvalOrArgumentsInStrictMode(expr, ast->incrementToken))
throwSyntaxErr...ncrementToken)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 13023 times by 28 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_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • ...
4-13023
2478 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
2479-
2480 _expr.setResult(unop(PostIncrement, expr));-
2481 return false;
executed 13007 times by 28 tests: return false;
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
  • ...
13007
2482}-
2483-
2484bool Codegen::visit(PreDecrementExpression *ast)-
2485{
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 393 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 393 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
0-393
2486 return false;
never executed: return false;
0
2487-
2488 Reference expr = expression(ast->expression);-
2489 if (hasError)
hasErrorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 391 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
2-391
2490 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmlecmascript
2
2491 if (!expr.isLValue()) {
!expr.isLValue()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 385 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
6-385
2492 throwReferenceError(ast->expression->lastSourceLocation(), QStringLiteral("Prefix ++ operator applied to value that is not a reference."));
executed 6 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
6
2493 return false;
executed 6 times by 2 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
6
2494 }-
2495-
2496 if (throwSyntaxErrorOnEvalOrArgumentsInStrictMode(expr, ast->decrementToken))
throwSyntaxErr...ecrementToken)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 381 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
4-381
2497 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
2498 _expr.setResult(unop(PreDecrement, expr));-
2499 return false;
executed 381 times by 6 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
381
2500}-
2501-
2502bool Codegen::visit(PreIncrementExpression *ast)-
2503{-
2504 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 5138 times by 32 tests
Evaluated 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
  • ...
0-5138
2505 return false;
never executed: return false;
0
2506-
2507 Reference expr = expression(ast->expression);-
2508 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 5159 times by 32 tests
Evaluated 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
  • ...
0-5159
2509 return false;
never executed: return false;
0
2510 if (!expr.isLValue()) {
!expr.isLValue()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 5165 times by 32 tests
Evaluated 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
  • ...
4-5165
2511 throwReferenceError(ast->expression->lastSourceLocation(), QStringLiteral("Prefix ++ operator applied to value that is not a reference."));
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
4
2512 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
2513 }-
2514-
2515 if (throwSyntaxErrorOnEvalOrArgumentsInStrictMode(expr, ast->incrementToken))
throwSyntaxErr...ncrementToken)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 5152 times by 32 tests
Evaluated 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
  • ...
4-5152
2516 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
2517 _expr.setResult(unop(PreIncrement, expr));-
2518 return false;
executed 5171 times by 32 tests: return false;
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
  • ...
5171
2519}-
2520-
2521bool Codegen::visit(RegExpLiteral *ast)-
2522{-
2523 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1055239 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicktextinput
0-1055239
2524 return false;
never executed: return false;
0
2525-
2526 auto r = Reference::fromStackSlot(this);-
2527 r.isReadonly = true;-
2528 _expr.setResult(r);-
2529-
2530 Instruction::MoveRegExp instr;-
2531 instr.regExpId = jsUnitGenerator->registerRegExp(ast);-
2532 instr.destReg = r.stackSlot();-
2533 bytecodeGenerator->addInstruction(instr);-
2534 return false;
executed 1054959 times by 8 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicktextinput
1054959
2535}-
2536-
2537bool Codegen::visit(StringLiteral *ast)-
2538{-
2539 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 3208667 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_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
0-3208667
2540 return false;
never executed: return false;
0
2541-
2542 auto r = Reference::fromAccumulator(this);-
2543 r.isReadonly = true;-
2544 _expr.setResult(r);-
2545-
2546 Instruction::LoadRuntimeString instr;-
2547 instr.stringId = registerString(ast->value.toString());-
2548 bytecodeGenerator->addInstruction(instr);-
2549 return false;
executed 3216259 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_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
3216259
2550}-
2551-
2552bool Codegen::visit(TemplateLiteral *ast)-
2553{-
2554 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 858 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
0-858
2555 return false;
never executed: return false;
0
2556-
2557 Instruction::LoadRuntimeString instr;-
2558 instr.stringId = registerString(ast->value.toString());-
2559 bytecodeGenerator->addInstruction(instr);-
2560-
2561 if (ast->expression) {
ast->expressionDescription
TRUEevaluated 524 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 334 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
334-524
2562 RegisterScope scope(this);-
2563 int temp = bytecodeGenerator->newRegister();-
2564 Instruction::StoreReg store;-
2565 store.reg = temp;-
2566 bytecodeGenerator->addInstruction(store);-
2567-
2568 Reference expr = expression(ast->expression);-
2569-
2570 if (ast->next) {
ast->nextDescription
TRUEevaluated 524 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
0-524
2571 int temp2 = bytecodeGenerator->newRegister();-
2572 expr.storeOnStack(temp2);-
2573 visit(ast->next);-
2574-
2575 Instruction::Add instr;-
2576 instr.lhs = temp2;-
2577 bytecodeGenerator->addInstruction(instr);-
2578 } else {
executed 524 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
524
2579 expr.loadInAccumulator();-
2580 }
never executed: end of block
0
2581-
2582 Instruction::Add instr;-
2583 instr.lhs = temp;-
2584 bytecodeGenerator->addInstruction(instr);-
2585 }
executed 523 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
523
2586-
2587 auto r = Reference::fromAccumulator(this);-
2588 r.isReadonly = true;-
2589-
2590 _expr.setResult(r);-
2591 return false;
executed 858 times by 2 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
858
2592-
2593}-
2594-
2595bool Codegen::visit(ThisExpression *)-
2596{-
2597 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 173195 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
0-173195
2598 return false;
never executed: return false;
0
2599-
2600 _expr.setResult(Reference::fromThis(this));-
2601 return false;
executed 174003 times by 16 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
174003
2602}-
2603-
2604bool Codegen::visit(TildeExpression *ast)-
2605{-
2606 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 603 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
0-603
2607 return false;
never executed: return false;
0
2608-
2609 _expr.setResult(unop(Compl, expression(ast->expression)));-
2610 return false;
executed 606 times by 4 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
606
2611}-
2612-
2613bool Codegen::visit(TrueLiteral *)-
2614{-
2615 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 161660 times by 60 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
0-161660
2616 return false;
never executed: return false;
0
2617-
2618 _expr.setResult(Reference::fromConst(this, QV4::Encode(true)));-
2619 return false;
executed 161513 times by 60 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
161513
2620}-
2621-
2622bool Codegen::visit(TypeOfExpression *ast)-
2623{-
2624 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 189021 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_signalspy
  • tst_testfiltering
0-189021
2625 return false;
never executed: return false;
0
2626-
2627 RegisterScope scope(this);-
2628-
2629 Reference expr = expression(ast->expression);-
2630 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 189805 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_signalspy
  • tst_testfiltering
0-189805
2631 return false;
never executed: return false;
0
2632-
2633 if (expr.type == Reference::Name) {
expr.type == Reference::NameDescription
TRUEevaluated 3179 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_scenegraph
FALSEevaluated 186613 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
3179-186613
2634 // special handling as typeof doesn't throw here-
2635 Instruction::TypeofName instr;-
2636 instr.name = expr.nameAsIndex();-
2637 bytecodeGenerator->addInstruction(instr);-
2638 } else {
executed 3180 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_scenegraph
3180
2639 expr.loadInAccumulator();-
2640 Instruction::TypeofValue instr;-
2641 bytecodeGenerator->addInstruction(instr);-
2642 }
executed 187480 times by 10 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
187480
2643 _expr.setResult(Reference::fromAccumulator(this));-
2644-
2645 return false;
executed 190417 times by 13 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_signalspy
  • tst_testfiltering
190417
2646}-
2647-
2648bool Codegen::visit(UnaryMinusExpression *ast)-
2649{-
2650 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 55500 times by 24 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
0-55500
2651 return false;
never executed: return false;
0
2652-
2653 _expr.setResult(unop(UMinus, expression(ast->expression)));-
2654 return false;
executed 55550 times by 24 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
55550
2655}-
2656-
2657bool Codegen::visit(UnaryPlusExpression *ast)-
2658{-
2659 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2910 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
0-2910
2660 return false;
never executed: return false;
0
2661-
2662 _expr.setResult(unop(UPlus, expression(ast->expression)));-
2663 return false;
executed 2909 times by 3 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
2909
2664}-
2665-
2666bool Codegen::visit(VoidExpression *ast)-
2667{-
2668 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2055 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
0-2055
2669 return false;
never executed: return false;
0
2670-
2671 RegisterScope scope(this);-
2672-
2673 statement(ast->expression);-
2674 _expr.setResult(Reference::fromConst(this, Encode::undefined()));-
2675 return false;
executed 2056 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
2056
2676}-
2677-
2678bool Codegen::visit(FunctionDeclaration * ast)-
2679{-
2680 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 290192 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
0-290192
2681 return false;
never executed: return false;
0
2682-
2683 RegisterScope scope(this);-
2684-
2685 if (_functionContext->contextType == ContextType::Binding)
_functionConte...tType::BindingDescription
TRUEevaluated 2865 times by 2 tests
Evaluated by:
  • tst_parserstress
  • tst_qqmlnotifier
FALSEevaluated 287620 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
2865-287620
2686 referenceForName(ast->name.toString(), true).loadInAccumulator();
executed 2865 times by 2 tests: referenceForName(ast->name.toString(), true).loadInAccumulator();
Executed by:
  • tst_parserstress
  • tst_qqmlnotifier
2865
2687 _expr.accept(nx);-
2688 return false;
executed 290356 times by 17 tests: return false;
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
290356
2689}-
2690-
2691bool Codegen::visit(YieldExpression *ast)-
2692{-
2693 if (ast->isYieldStar) {
ast->isYieldStarDescription
TRUEevaluated 184 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2074 times by 1 test
Evaluated by:
  • tst_ecmascripttests
184-2074
2694 throwSyntaxError(ast->firstSourceLocation(), QLatin1String("yield* is not currently supported"));-
2695 return false;
executed 183 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
183
2696 }-
2697 if (inFormalParameterList) {
inFormalParameterListDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2058 times by 1 test
Evaluated by:
  • tst_ecmascripttests
16-2058
2698 throwSyntaxError(ast->firstSourceLocation(), QLatin1String("yield is not allowed inside parameter lists"));-
2699 return false;
executed 16 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
16
2700 }-
2701-
2702-
2703 Reference result = ast->expression ? expression(ast->expression) : Reference::fromConst(this, Encode::undefined());
ast->expressionDescription
TRUEevaluated 898 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1159 times by 1 test
Evaluated by:
  • tst_ecmascripttests
898-1159
2704 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2059 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-2059
2705 return false;
never executed: return false;
0
2706 result.loadInAccumulator();-
2707 Instruction::Yield yield;-
2708 bytecodeGenerator->addInstruction(yield);-
2709 Instruction::Resume resume;-
2710 BytecodeGenerator::Jump jump = bytecodeGenerator->addJumpInstruction(resume);-
2711 Reference acc = Reference::fromAccumulator(this);-
2712 emitReturn(acc);-
2713 jump.link();-
2714 _expr.setResult(acc);-
2715 return false;
executed 2059 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
2059
2716}-
2717-
2718static bool endsWithReturn(Module *module, Node *node)-
2719{-
2720 if (!node)
!nodeDescription
TRUEevaluated 15262 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • 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 8157094 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
  • ...
15262-8157094
2721 return false;
executed 15268 times by 21 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
15268
2722 if (AST::cast<ReturnStatement *>(node))
AST::cast<Retu...ement *>(node)Description
TRUEevaluated 249667 times by 46 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 7916838 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
  • ...
249667-7916838
2723 return true;
executed 249696 times by 46 tests: return true;
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
  • ...
249696
2724 if (AST::cast<ThrowStatement *>(node))
AST::cast<Thro...ement *>(node)Description
TRUEevaluated 88631 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 7825793 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
  • ...
88631-7825793
2725 return true;
executed 88671 times by 11 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
88671
2726 if (Program *p = AST::cast<Program *>(node))
Program *p = A...ogram *>(node)Description
TRUEnever evaluated
FALSEevaluated 7834854 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
  • ...
0-7834854
2727 return endsWithReturn(module, p->statements);
never executed: return endsWithReturn(module, p->statements);
0
2728 if (StatementList *sl = AST::cast<StatementList *>(node)) {
StatementList ...tList *>(node)Description
TRUEevaluated 3737645 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 4091693 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
  • ...
3737645-4091693
2729 while (sl->next)
sl->nextDescription
TRUEevaluated 3129754 times by 80 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
FALSEevaluated 3734019 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
  • ...
3129754-3734019
2730 sl = sl->next;
executed 3131749 times by 80 tests: sl = sl->next;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • ...
3131749
2731 return endsWithReturn(module, sl->statement);
executed 3734882 times by 139 tests: return endsWithReturn(module, sl->statement);
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
  • ...
3734882
2732 }-
2733 if (Block *b = AST::cast<Block *>(node)) {
Block *b = AST...Block *>(node)Description
TRUEevaluated 352987 times by 74 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • 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
  • tst_qqmlnativeconnector
  • ...
FALSEevaluated 3739922 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
  • ...
352987-3739922
2734 Context *blockContext = module->contextMap.value(node);-
2735 if (blockContext->requiresExecutionContext)
blockContext->...ecutionContextDescription
TRUEevaluated 526 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qv4debugger
FALSEevaluated 354000 times by 73 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • 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
  • tst_qqmlnativeconnector
  • ...
526-354000
2736 // we need to emit a return statement here, because of the-
2737 // unwind handler-
2738 return false;
executed 526 times by 3 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qv4debugger
526
2739 return endsWithReturn(module, b->statements);
executed 354287 times by 73 tests: return endsWithReturn(module, b->statements);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • 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
  • tst_qqmlnativeconnector
  • ...
354287
2740 }-
2741 if (IfStatement *is = AST::cast<IfStatement *>(node))
IfStatement *i...ement *>(node)Description
TRUEevaluated 421723 times by 54 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_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
FALSEevaluated 3315379 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
  • ...
421723-3315379
2742 return is->ko && endsWithReturn(module, is->ok) && endsWithReturn(module, is->ko);
executed 419578 times by 54 tests: return is->ko && endsWithReturn(module, is->ok) && endsWithReturn(module, is->ko);
Executed 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_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
419578
2743 return false;
executed 3318065 times by 139 tests: return 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
  • ...
3318065
2744}-
2745-
2746int Codegen::defineFunction(const QString &name, AST::Node *ast,-
2747 AST::FormalParameterList *formals,-
2748 AST::StatementList *body)-
2749{-
2750 enterContext(ast);-
2751-
2752 if (_context->functionIndex >= 0)
_context->functionIndex >= 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qqmlecmascript
FALSEevaluated 3400086 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
  • ...
1-3400086
2753 // already defined-
2754 return leaveContext();
executed 1 time by 1 test: return leaveContext();
Executed by:
  • tst_qqmlecmascript
1
2755-
2756 _context->name = name;-
2757 _module->functions.append(_context);-
2758 _context->functionIndex = _module->functions.count() - 1;-
2759-
2760 Context *savedFunctionContext = _functionContext;-
2761 _functionContext = _context;-
2762 ControlFlow *savedControlFlow = controlFlow;-
2763 controlFlow = nullptr;-
2764-
2765 if (_context->contextType == ContextType::Global) {
_context->cont...xtType::GlobalDescription
TRUEevaluated 120129 times by 24 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 3282940 times by 138 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_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
  • tst_qqmlinfo
  • ...
120129-3282940
2766 _module->blocks.append(_context);-
2767 _context->blockIndex = _module->blocks.count() - 1;-
2768 }
executed 120247 times by 24 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_qqmlincubator
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
120247
2769 if (_module->debugMode) // allow the debugger to see overwritten arguments
_module->debugModeDescription
TRUEevaluated 176 times by 2 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qv4debugger
FALSEevaluated 3401454 times by 138 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
  • ...
176-3401454
2770 _context->argumentsCanEscape = true;
executed 176 times by 2 tests: _context->argumentsCanEscape = true;
Executed by:
  • tst_qqmldebugjs
  • tst_qv4debugger
176
2771-
2772 // When a user writes the following QML signal binding:-
2773 // onSignal: function() { doSomethingUsefull }-
2774 // we will generate a binding function that just returns the closure. However, that's not useful-
2775 // at all, because if the onSignal is a signal handler, the user is actually making it explicit-
2776 // that the binding is a function, so we should execute that. However, we don't know that during-
2777 // AOT compilation, so mark the surrounding function as only-returning-a-closure.-
2778 _context->returnsClosure = body && body->statement && cast<ExpressionStatement *>(body->statement) && cast<FunctionExpression *>(cast<ExpressionStatement *>(body->statement)->expression);
bodyDescription
TRUEevaluated 3379634 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 15203 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlnotifier
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
body->statementDescription
TRUEevaluated 3377029 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
cast<Expressio...dy->statement)Description
TRUEevaluated 2559708 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 821682 times by 85 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • 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
  • tst_qqmllistmodelworkerscript
  • ...
cast<FunctionE...)->expression)Description
TRUEevaluated 17 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlecmascript
FALSEevaluated 2560331 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
  • ...
0-3379634
2779-
2780 BytecodeGenerator bytecode(_context->line, _module->debugMode);-
2781 BytecodeGenerator *savedBytecodeGenerator;-
2782 savedBytecodeGenerator = bytecodeGenerator;-
2783 bytecodeGenerator = &bytecode;-
2784 bytecodeGenerator->setLocation(ast->firstSourceLocation());-
2785 BytecodeGenerator::Label *savedReturnLabel = _returnLabel;-
2786 _returnLabel = nullptr;-
2787-
2788 bool savedFunctionEndsWithReturn = functionEndsWithReturn;-
2789 functionEndsWithReturn = endsWithReturn(_module, body);-
2790-
2791 // reserve the js stack frame (Context & js Function & accumulator)-
2792 bytecodeGenerator->newRegisterArray(sizeof(CallData)/sizeof(Value) - 1 + _context->arguments.size());-
2793-
2794 bool _inFormalParameterList = false;-
2795 qSwap(_inFormalParameterList, inFormalParameterList);-
2796-
2797 int returnAddress = -1;-
2798 bool _requiresReturnValue = _context->requiresImplicitReturnValue();-
2799 qSwap(requiresReturnValue, _requiresReturnValue);-
2800 returnAddress = bytecodeGenerator->newRegister();-
2801 qSwap(_returnAddress, returnAddress);-
2802-
2803 // register the lexical scope for global code-
2804 if (!_context->parent && _context->requiresExecutionContext) {
!_context->parentDescription
TRUEevaluated 2288236 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
  • ...
FALSEevaluated 1110575 times by 138 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_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
  • tst_qqmlinfo
  • ...
_context->requ...ecutionContextDescription
TRUEevaluated 5213 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
FALSEevaluated 2282822 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
  • ...
5213-2288236
2805 _module->blocks.append(_context);-
2806 _context->blockIndex = _module->blocks.count() - 1;-
2807 }
executed 5213 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
5213
2808-
2809 RegisterScope registerScope(this);-
2810 _context->emitBlockHeader(this);-
2811-
2812 inFormalParameterList = true;-
2813 int argc = 0;-
2814 while (formals) {
formalsDescription
TRUEevaluated 1754625 times by 57 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
FALSEevaluated 3399804 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
  • ...
1754625-3399804
2815 PatternElement *e = formals->element;-
2816 if (!e) {
!eDescription
TRUEnever evaluated
FALSEevaluated 1757412 times by 57 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
0-1757412
2817 if (!formals->next)
!formals->nextDescription
TRUEnever evaluated
FALSEnever evaluated
0
2818 // trailing comma-
2819 break;
never executed: break;
0
2820 Q_UNREACHABLE();-
2821 }
never executed: end of block
0
2822-
2823 Reference arg = referenceForName(e->bindingIdentifier.toString(), true);-
2824 if (e->type == PatternElement::RestElement) {
e->type == Pat...t::RestElementDescription
TRUEevaluated 244 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1753194 times by 57 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
244-1753194
2825 Q_ASSERT(!formals->next);-
2826 Instruction::CreateRestParameter rest;-
2827 rest.argIndex = argc;-
2828 bytecodeGenerator->addInstruction(rest);-
2829 arg.storeConsumeAccumulator();-
2830 } else {
executed 244 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
244
2831 if (e->bindingTarget || e->initializer) {
e->bindingTargetDescription
TRUEevaluated 9865 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1746122 times by 57 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
e->initializerDescription
TRUEevaluated 1617 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1740623 times by 57 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
1617-1746122
2832 initializeAndDestructureBindingElement(e, arg);-
2833 if (hasError)
hasErrorDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 11488 times by 1 test
Evaluated by:
  • tst_ecmascripttests
16-11488
2834 break;
executed 16 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
16
2835 }
executed 11494 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
11494
2836 }
executed 1752306 times by 57 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
1752306
2837 formals = formals->next;-
2838 ++argc;-
2839 }
executed 1758872 times by 57 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • ...
1758872
2840 inFormalParameterList = false;-
2841-
2842 if (_context->isGenerator) {
_context->isGeneratorDescription
TRUEevaluated 9498 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 3385881 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
  • ...
9498-3385881
2843 Instruction::Yield yield;-
2844 bytecodeGenerator->addInstruction(yield);-
2845 }
executed 9508 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
9508
2846-
2847 beginFunctionBodyHook();-
2848-
2849 statementList(body);-
2850-
2851 bytecodeGenerator->setLocation(ast->lastSourceLocation());-
2852 _context->emitBlockFooter(this);-
2853-
2854 if (_returnLabel || hasError || !functionEndsWithReturn) {
_returnLabelDescription
TRUEevaluated 420088 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • ...
FALSEevaluated 2970709 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
  • ...
hasErrorDescription
TRUEevaluated 683 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 2971480 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
  • ...
!functionEndsWithReturnDescription
TRUEevaluated 2729980 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 241196 times by 44 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_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
683-2971480
2855 if (_returnLabel)
_returnLabelDescription
TRUEevaluated 419682 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • ...
FALSEevaluated 2731533 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
  • ...
419682-2731533
2856 _returnLabel->link();
executed 419692 times by 27 tests: _returnLabel->link();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • ...
419692
2857-
2858 if (_returnLabel || requiresReturnValue) {
_returnLabelDescription
TRUEevaluated 421194 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • ...
FALSEevaluated 2731631 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
  • ...
requiresReturnValueDescription
TRUEevaluated 2340087 times by 135 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • ...
FALSEevaluated 390183 times by 91 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
  • ...
390183-2731631
2859 Instruction::LoadReg load;-
2860 load.reg = Moth::StackSlot::createRegister(_returnAddress);-
2861 bytecodeGenerator->addInstruction(load);-
2862 } else {
executed 2763551 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
  • ...
2763551
2863 Reference::fromConst(this, Encode::undefined()).loadInAccumulator();-
2864 }
executed 392426 times by 91 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
  • ...
392426
2865-
2866 bytecodeGenerator->addInstruction(Instruction::Ret());-
2867 }
executed 3159375 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
  • ...
3159375
2868-
2869 Q_ASSERT(_context == _functionContext);-
2870 bytecodeGenerator->finalize(_context);-
2871 _context->registerCountInFunction = bytecodeGenerator->registerCount();-
2872 static const bool showCode = qEnvironmentVariableIsSet("QV4_SHOW_BYTECODE");-
2873 if (showCode) {
showCodeDescription
TRUEnever evaluated
FALSEevaluated 3393044 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
  • ...
0-3393044
2874 qDebug() << "=== Bytecode for" << _context->name << "strict mode" << _context->isStrict-
2875 << "register count" << _context->registerCountInFunction << "implicit return" << requiresReturnValue;-
2876 QV4::Moth::dumpBytecode(_context->code, _context->locals.size(), _context->arguments.size(),-
2877 _context->line, _context->lineNumberMapping);-
2878 qDebug();-
2879 }
never executed: end of block
0
2880-
2881 qSwap(_returnAddress, returnAddress);-
2882 qSwap(requiresReturnValue, _requiresReturnValue);-
2883 qSwap(_inFormalParameterList, inFormalParameterList);-
2884 bytecodeGenerator = savedBytecodeGenerator;-
2885 delete _returnLabel;-
2886 _returnLabel = savedReturnLabel;-
2887 controlFlow = savedControlFlow;-
2888 functionEndsWithReturn = savedFunctionEndsWithReturn;-
2889 _functionContext = savedFunctionContext;-
2890-
2891 return leaveContext();
executed 3395977 times by 139 tests: return leaveContext();
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
  • ...
3395977
2892}-
2893-
2894bool Codegen::visit(Block *ast)-
2895{-
2896 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1615195 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
  • ...
0-1615195
2897 return false;
never executed: return false;
0
2898-
2899 RegisterScope scope(this);-
2900-
2901 ControlFlowBlock controlFlow(this, ast);-
2902 statementList(ast->statements);-
2903 return false;
executed 1612669 times by 76 tests: return false;
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
  • ...
1612669
2904}-
2905-
2906bool Codegen::visit(BreakStatement *ast)-
2907{-
2908 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 17130 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-17130
2909 return false;
never executed: return false;
0
2910-
2911 if (!controlFlow) {
!controlFlowDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 17136 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
32-17136
2912 throwSyntaxError(ast->lastSourceLocation(), QStringLiteral("Break outside of loop"));
executed 32 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
32
2913 return false;
executed 32 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
32
2914 }-
2915-
2916 ControlFlow::UnwindTarget target = controlFlow->unwindTarget(ControlFlow::Break, ast->label.toString());-
2917 if (!target.linkLabel.isValid()) {
!target.linkLabel.isValid()Description
TRUEnever evaluated
FALSEevaluated 17028 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-17028
2918 if (ast->label.isEmpty())
ast->label.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
2919 throwSyntaxError(ast->lastSourceLocation(), QStringLiteral("Break outside of loop"));
never executed: throwSyntaxError(ast->lastSourceLocation(), ([]() noexcept -> QString { enum { Size = sizeof(u"" "Break outside of loop")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Break outside of loop" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
never executed: return qstring_literal_temp;
0
2920 else-
2921 throwSyntaxError(ast->lastSourceLocation(), QStringLiteral("Undefined label '%1'").arg(ast->label.toString()));
never executed: throwSyntaxError(ast->lastSourceLocation(), ([]() noexcept -> QString { enum { Size = sizeof(u"" "Undefined label '%1'")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Undefined label '%1'" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(ast->label.toString()));
never executed: return qstring_literal_temp;
0
2922 return false;
never executed: return false;
0
2923 }-
2924-
2925 bytecodeGenerator->unwindToLabel(target.unwindLevel, target.linkLabel);-
2926-
2927 return false;
executed 17037 times by 9 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
17037
2928}-
2929-
2930bool Codegen::visit(ContinueStatement *ast)-
2931{-
2932 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1004 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-1004
2933 return false;
never executed: return false;
0
2934-
2935 RegisterScope scope(this);-
2936-
2937 if (!controlFlow) {
!controlFlowDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 984 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
20-984
2938 throwSyntaxError(ast->lastSourceLocation(), QStringLiteral("Continue outside of loop"));
executed 20 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
20
2939 return false;
executed 20 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
20
2940 }-
2941-
2942 ControlFlow::UnwindTarget target = controlFlow->unwindTarget(ControlFlow::Continue, ast->label.toString());-
2943 if (!target.linkLabel.isValid()) {
!target.linkLabel.isValid()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 977 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
6-977
2944 if (ast->label.isEmpty())
ast->label.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
2-4
2945 throwSyntaxError(ast->lastSourceLocation(), QStringLiteral("Undefined label '%1'").arg(ast->label.toString()));
executed 4 times by 1 test: throwSyntaxError(ast->lastSourceLocation(), ([]() noexcept -> QString { enum { Size = sizeof(u"" "Undefined label '%1'")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Undefined label '%1'" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(ast->label.toString()));
Executed by:
  • tst_qjsengine
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qjsengine
4
2946 else-
2947 throwSyntaxError(ast->lastSourceLocation(), QStringLiteral("continue outside of loop"));
executed 2 times by 1 test: throwSyntaxError(ast->lastSourceLocation(), ([]() noexcept -> QString { enum { Size = sizeof(u"" "continue outside of loop")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "continue outside of loop" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_qjsengine
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qjsengine
2
2948 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qjsengine
6
2949 }-
2950-
2951 bytecodeGenerator->unwindToLabel(target.unwindLevel, target.linkLabel);-
2952-
2953 return false;
executed 976 times by 9 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
976
2954}-
2955-
2956bool Codegen::visit(DebuggerStatement *)-
2957{-
2958 Q_UNIMPLEMENTED();-
2959 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qjsvalue
2
2960}-
2961-
2962bool Codegen::visit(DoWhileStatement *ast)-
2963{-
2964 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 635 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
0-635
2965 return true;
never executed: return true;
0
2966-
2967 RegisterScope scope(this);-
2968-
2969 BytecodeGenerator::Label body = bytecodeGenerator->label();-
2970 BytecodeGenerator::Label cond = bytecodeGenerator->newLabel();-
2971 BytecodeGenerator::Label end = bytecodeGenerator->newLabel();-
2972-
2973 ControlFlowLoop flow(this, &end, &cond);-
2974-
2975 statement(ast->statement);-
2976 setJumpOutLocation(bytecodeGenerator, ast->statement, ast->semicolonToken);-
2977-
2978 cond.link();-
2979-
2980 if (!AST::cast<FalseLiteral *>(ast->expression)) {
!AST::cast<Fal...t->expression)Description
TRUEevaluated 291 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 347 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlecmascript
291-347
2981 if (AST::cast<TrueLiteral *>(ast->expression))
AST::cast<True...t->expression)Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 267 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
24-267
2982 bytecodeGenerator->jump().link(body);
executed 24 times by 2 tests: bytecodeGenerator->jump().link(body);
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
24
2983 else-
2984 condition(ast->expression, &body, &end, false);
executed 267 times by 10 tests: condition(ast->expression, &body, &end, false);
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
267
2985 }-
2986-
2987 end.link();-
2988-
2989 return false;
executed 638 times by 10 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
638
2990}-
2991-
2992bool Codegen::visit(EmptyStatement *)-
2993{-
2994 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2115 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qquickpathview
0-2115
2995 return true;
never executed: return true;
0
2996-
2997 return false;
executed 2115 times by 7 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qquickpathview
2115
2998}-
2999-
3000bool Codegen::visit(ExpressionStatement *ast)-
3001{-
3002 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 5597512 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
  • ...
0-5597512
3003 return true;
never executed: return true;
0
3004-
3005 RegisterScope scope(this);-
3006-
3007 if (requiresReturnValue) {
requiresReturnValueDescription
TRUEevaluated 2340214 times by 135 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • ...
FALSEevaluated 3251776 times by 95 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
  • ...
2340214-3251776
3008 Reference e = expression(ast->expression);-
3009 if (hasError)
hasErrorDescription
TRUEevaluated 103 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 2340469 times by 135 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • ...
103-2340469
3010 return false;
executed 105 times by 3 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
105
3011 (void) e.storeOnStack(_returnAddress);-
3012 } else {
executed 2340165 times by 135 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • ...
2340165
3013 statement(ast->expression);-
3014 }
executed 3254909 times by 95 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
  • ...
3254909
3015 return false;
executed 5604819 times by 139 tests: return 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
  • ...
5604819
3016}-
3017-
3018bool Codegen::visit(ForEachStatement *ast)-
3019{-
3020 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 13294 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
0-13294
3021 return true;
never executed: return true;
0
3022-
3023 RegisterScope scope(this);-
3024-
3025 Reference iterator = Reference::fromStackSlot(this);-
3026 Reference lhsValue = Reference::fromStackSlot(this);-
3027-
3028 // There should be a temporal block, so that variables declared in lhs shadow outside vars.-
3029 // This block should define a temporal dead zone for those variables, which is not yet implemented.-
3030 {-
3031 RegisterScope innerScope(this);-
3032 ControlFlowBlock controlFlow(this, ast);-
3033 Reference expr = expression(ast->expression);-
3034 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 13368 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
0-13368
3035 return true;
never executed: return true;
0
3036-
3037 expr.loadInAccumulator();-
3038 Instruction::GetIterator iteratorObjInstr;-
3039 iteratorObjInstr.iterator = (ast->type == ForEachType::Of) ? 1 : 0;
(ast->type == ForEachType::Of)Description
TRUEevaluated 2443 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 10922 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
2443-10922
3040 bytecodeGenerator->addInstruction(iteratorObjInstr);-
3041 iterator.storeConsumeAccumulator();-
3042 }-
3043-
3044 BytecodeGenerator::Label in = bytecodeGenerator->newLabel();-
3045 BytecodeGenerator::Label end = bytecodeGenerator->newLabel();-
3046 BytecodeGenerator::Label done = bytecodeGenerator->newLabel();-
3047-
3048 {-
3049 ControlFlowLoop flow(this, &end, &in, /*requiresUnwind*/ true);-
3050 bytecodeGenerator->jump().link(in);-
3051-
3052 BytecodeGenerator::Label body = bytecodeGenerator->label();-
3053-
3054 // each iteration gets it's own context, as per spec-
3055 {-
3056 RegisterScope innerScope(this);-
3057 ControlFlowBlock controlFlow(this, ast);-
3058-
3059 if (ExpressionNode *e = ast->lhs->expressionCast()) {
ExpressionNode...pressionCast()Description
TRUEevaluated 1326 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 11978 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
1326-11978
3060 if (AST::Pattern *p = e->patternCast()) {
AST::Pattern *...>patternCast()Description
TRUEevaluated 810 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 515 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
515-810
3061 RegisterScope scope(this);-
3062 destructurePattern(p, lhsValue);-
3063 } else {
executed 812 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
812
3064 Reference lhs = expression(e);-
3065 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 515 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
0-515
3066 goto error;
never executed: goto error;
0
3067 lhs = lhs.asLValue();-
3068 lhsValue.loadInAccumulator();-
3069 lhs.storeConsumeAccumulator();-
3070 }
executed 515 times by 9 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
515
3071 } else if (PatternElement *p = AST::cast<PatternElement *>(ast->lhs)) {
PatternElement...t *>(ast->lhs)Description
TRUEevaluated 11965 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-11965
3072 initializeAndDestructureBindingElement(p, lhsValue, /*isDefinition =*/ true);-
3073 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 11990 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
0-11990
3074 goto error;
never executed: goto error;
0
3075 } else {
executed 11993 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
11993
3076 Q_UNREACHABLE();-
3077 }
never executed: end of block
0
3078-
3079 statement(ast->statement);-
3080 setJumpOutLocation(bytecodeGenerator, ast->statement, ast->forToken);-
3081-
3082 }-
3083-
3084 error:
code before this statement executed 13339 times by 13 tests: error:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
13339
3085 in.link();-
3086 iterator.loadInAccumulator();-
3087 Instruction::IteratorNext next;-
3088 next.value = lhsValue.stackSlot();-
3089 bytecodeGenerator->addInstruction(next);-
3090 bytecodeGenerator->addJumpInstruction(Instruction::JumpFalse()).link(body);-
3091 bytecodeGenerator->jump().link(done);-
3092 }-
3093-
3094 end.link();-
3095-
3096 if (ast->type == ForEachType::Of) {
ast->type == ForEachType::OfDescription
TRUEevaluated 2449 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 10957 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
2449-10957
3097 Reference iteratorDone = Reference::fromConst(this, Encode(false)).storeOnStack();-
3098 iterator.loadInAccumulator();-
3099 Instruction::IteratorClose close;-
3100 close.done = iteratorDone.stackSlot();-
3101 bytecodeGenerator->addInstruction(close);-
3102 }
executed 2449 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
2449
3103-
3104 done.link();-
3105-
3106 return false;
executed 13398 times by 13 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
13398
3107}-
3108-
3109bool Codegen::visit(ForStatement *ast)-
3110{-
3111 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 14538 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
0-14538
3112 return true;
never executed: return true;
0
3113-
3114 RegisterScope scope(this);-
3115-
3116 ControlFlowBlock controlFlow(this, ast);-
3117-
3118 if (ast->initialiser)
ast->initialiserDescription
TRUEevaluated 1019 times by 11 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 13565 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
1019-13565
3119 statement(ast->initialiser);
executed 1019 times by 11 tests: statement(ast->initialiser);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1019
3120 else if (ast->declarations)
ast->declarationsDescription
TRUEevaluated 13429 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
FALSEevaluated 94 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
94-13429
3121 variableDeclarationList(ast->declarations);
executed 13443 times by 27 tests: variableDeclarationList(ast->declarations);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
13443
3122-
3123 BytecodeGenerator::Label cond = bytecodeGenerator->label();-
3124 BytecodeGenerator::Label body = bytecodeGenerator->newLabel();-
3125 BytecodeGenerator::Label step = bytecodeGenerator->newLabel();-
3126 BytecodeGenerator::Label end = bytecodeGenerator->newLabel();-
3127-
3128 ControlFlowLoop flow(this, &end, &step);-
3129-
3130 condition(ast->condition, &body, &end, true);-
3131-
3132 body.link();-
3133 statement(ast->statement);-
3134 setJumpOutLocation(bytecodeGenerator, ast->statement, ast->forToken);-
3135-
3136 step.link();-
3137 if (_context->requiresExecutionContext) {
_context->requ...ecutionContextDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qv4debugger
FALSEevaluated 14533 times by 26 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • ...
46-14533
3138 Instruction::CloneBlockContext clone;-
3139 bytecodeGenerator->addInstruction(clone);-
3140 }
executed 46 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qv4debugger
46
3141 statement(ast->expression);-
3142 bytecodeGenerator->jump().link(cond);-
3143-
3144 end.link();-
3145-
3146 return false;
executed 14588 times by 27 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • ...
14588
3147}-
3148-
3149bool Codegen::visit(IfStatement *ast)-
3150{-
3151 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1210956 times by 58 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_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
0-1210956
3152 return true;
never executed: return true;
0
3153-
3154 RegisterScope scope(this);-
3155-
3156 BytecodeGenerator::Label trueLabel = bytecodeGenerator->newLabel();-
3157 BytecodeGenerator::Label falseLabel = bytecodeGenerator->newLabel();-
3158 condition(ast->expression, &trueLabel, &falseLabel, true);-
3159-
3160 trueLabel.link();-
3161 statement(ast->ok);-
3162 if (ast->ko) {
ast->koDescription
TRUEevaluated 347698 times by 32 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 862661 times by 53 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_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • ...
347698-862661
3163 if (endsWithReturn(_module, ast)) {
endsWithReturn(_module, ast)Description
TRUEevaluated 781 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_testfiltering
FALSEevaluated 344041 times by 30 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • ...
781-344041
3164 falseLabel.link();-
3165 statement(ast->ko);-
3166 } else {
executed 780 times by 10 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_testfiltering
780
3167 BytecodeGenerator::Jump jump_endif = bytecodeGenerator->jump();-
3168 falseLabel.link();-
3169 statement(ast->ko);-
3170 jump_endif.link();-
3171 }
executed 346162 times by 30 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • ...
346162
3172 } else {-
3173 falseLabel.link();-
3174 }
executed 865742 times by 53 tests: end of block
Executed 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_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • ...
865742
3175-
3176 return false;
executed 1209727 times by 58 tests: return false;
Executed 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_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
1209727
3177}-
3178-
3179bool Codegen::visit(LabelledStatement *ast)-
3180{-
3181 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 605 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
0-605
3182 return true;
never executed: return true;
0
3183-
3184 RegisterScope scope(this);-
3185-
3186 // check that no outer loop contains the label-
3187 ControlFlow *l = controlFlow;-
3188 while (l) {
lDescription
TRUEevaluated 452 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
FALSEevaluated 603 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
452-603
3189 if (l->label() == ast->label) {
l->label() == ast->labelDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qjsengine
FALSEevaluated 450 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
2-450
3190 QString error = QString(QStringLiteral("Label '%1' has already been declared")).arg(ast->label.toString());
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qjsengine
2
3191 throwSyntaxError(ast->firstSourceLocation(), error);-
3192 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qjsengine
2
3193 }-
3194 l = l->parent;-
3195 }
executed 450 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
450
3196 _labelledStatement = ast;-
3197-
3198 if (AST::cast<AST::SwitchStatement *>(ast->statement) ||
AST::cast<AST:...st->statement)Description
TRUEnever evaluated
FALSEevaluated 603 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
0-603
3199 AST::cast<AST::WhileStatement *>(ast->statement) ||
AST::cast<AST:...st->statement)Description
TRUEevaluated 64 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 539 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
64-539
3200 AST::cast<AST::DoWhileStatement *>(ast->statement) ||
AST::cast<AST:...st->statement)Description
TRUEevaluated 148 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 391 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
148-391
3201 AST::cast<AST::ForStatement *>(ast->statement) ||
AST::cast<AST:...st->statement)Description
TRUEevaluated 216 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 175 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
175-216
3202 AST::cast<AST::ForEachStatement *>(ast->statement)) {
AST::cast<AST:...st->statement)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 167 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
8-167
3203 statement(ast->statement); // labelledStatement will be associated with the ast->statement's loop.-
3204 } else {
executed 436 times by 2 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
436
3205 BytecodeGenerator::Label breakLabel = bytecodeGenerator->newLabel();-
3206 ControlFlowLoop flow(this, &breakLabel);-
3207 statement(ast->statement);-
3208 breakLabel.link();-
3209 }
executed 167 times by 5 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
167
3210-
3211 return false;
executed 603 times by 5 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
603
3212}-
3213-
3214void Codegen::emitReturn(const Reference &expr)-
3215{-
3216 ControlFlow::UnwindTarget target = controlFlow ? controlFlow->unwindTarget(ControlFlow::Return) : ControlFlow::UnwindTarget();
controlFlowDescription
TRUEevaluated 501297 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • ...
FALSEevaluated 246178 times by 45 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_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
246178-501297
3217 if (target.linkLabel.isValid() && target.unwindLevel) {
target.linkLabel.isValid()Description
TRUEevaluated 504035 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • ...
FALSEevaluated 245913 times by 45 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_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
target.unwindLevelDescription
TRUEevaluated 82709 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 422855 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
82709-504035
3218 Q_ASSERT(_returnAddress >= 0);-
3219 (void) expr.storeOnStack(_returnAddress);-
3220 bytecodeGenerator->unwindToLabel(target.unwindLevel, target.linkLabel);-
3221 } else {
executed 83152 times by 13 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
83152
3222 expr.loadInAccumulator();-
3223 bytecodeGenerator->addInstruction(Instruction::Ret());-
3224 }
executed 673803 times by 47 tests: end of block
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
  • ...
673803
3225}-
3226-
3227bool Codegen::visit(ReturnStatement *ast)-
3228{-
3229 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 746504 times by 48 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
  • ...
0-746504
3230 return true;
never executed: return true;
0
3231-
3232 if (_functionContext->contextType != ContextType::Function && _functionContext->contextType != ContextType::Binding) {
_functionConte...Type::FunctionDescription
TRUEevaluated 2149 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qquickpositioners
FALSEevaluated 742669 times by 46 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_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • ...
_functionConte...tType::BindingDescription
TRUEnever evaluated
FALSEevaluated 2149 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_parserstress
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qquickpositioners
0-742669
3233 throwSyntaxError(ast->returnToken, QStringLiteral("Return statement outside of function"));
never executed: return qstring_literal_temp;
0
3234 return false;
never executed: return false;
0
3235 }-
3236 Reference expr;-
3237 if (ast->expression) {
ast->expressionDescription
TRUEevaluated 339897 times by 46 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 404298 times by 20 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
339897-404298
3238 expr = expression(ast->expression);-
3239 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 342123 times by 46 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
  • ...
0-342123
3240 return false;
never executed: return false;
0
3241 } else {
executed 341518 times by 46 tests: end of block
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
  • ...
341518
3242 expr = Reference::fromConst(this, Encode::undefined());-
3243 }
executed 405958 times by 20 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_testfiltering
405958
3244-
3245 emitReturn(expr);-
3246-
3247 return false;
executed 751839 times by 48 tests: return false;
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
  • ...
751839
3248}-
3249-
3250bool Codegen::visit(SwitchStatement *ast)-
3251{-
3252 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 748 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
0-748
3253 return true;
never executed: return true;
0
3254-
3255 if (requiresReturnValue)
requiresReturnValueDescription
TRUEevaluated 440 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
FALSEevaluated 304 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
304-440
3256 Reference::fromConst(this, Encode::undefined()).storeOnStack(_returnAddress);
executed 439 times by 4 tests: Reference::fromConst(this, Encode::undefined()).storeOnStack(_returnAddress);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
439
3257-
3258 RegisterScope scope(this);-
3259-
3260 if (ast->block) {
ast->blockDescription
TRUEevaluated 749 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEnever evaluated
0-749
3261 ControlFlowBlock controlFlow(this, ast->block);-
3262-
3263 BytecodeGenerator::Label switchEnd = bytecodeGenerator->newLabel();-
3264-
3265 Reference lhs = expression(ast->expression);-
3266 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 744 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
0-744
3267 return false;
never executed: return false;
0
3268 lhs = lhs.storeOnStack();-
3269-
3270 // set up labels for all clauses-
3271 QHash<Node *, BytecodeGenerator::Label> blockMap;-
3272 for (CaseClauses *it = ast->block->clauses; it; it = it->next)
itDescription
TRUEevaluated 80502 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 747 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
747-80502
3273 blockMap[it->clause] = bytecodeGenerator->newLabel();
executed 80502 times by 6 tests: blockMap[it->clause] = bytecodeGenerator->newLabel();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
80502
3274 if (ast->block->defaultClause)
ast->block->defaultClauseDescription
TRUEevaluated 465 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 285 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
285-465
3275 blockMap[ast->block->defaultClause] = bytecodeGenerator->newLabel();
executed 465 times by 6 tests: blockMap[ast->block->defaultClause] = bytecodeGenerator->newLabel();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
465
3276 for (CaseClauses *it = ast->block->moreClauses; it; it = it->next)
itDescription
TRUEevaluated 424 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 750 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
424-750
3277 blockMap[it->clause] = bytecodeGenerator->newLabel();
executed 424 times by 4 tests: blockMap[it->clause] = bytecodeGenerator->newLabel();
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
424
3278-
3279 // do the switch conditions-
3280 for (CaseClauses *it = ast->block->clauses; it; it = it->next) {
itDescription
TRUEevaluated 80502 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 749 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
749-80502
3281 CaseClause *clause = it->clause;-
3282 Reference rhs = expression(clause->expression);-
3283 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 80502 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
0-80502
3284 return false;
never executed: return false;
0
3285 rhs.loadInAccumulator();-
3286 bytecodeGenerator->jumpStrictEqual(lhs.stackSlot(), blockMap.value(clause));-
3287 }
executed 80502 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
80502
3288-
3289 for (CaseClauses *it = ast->block->moreClauses; it; it = it->next) {
itDescription
TRUEevaluated 423 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 750 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
423-750
3290 CaseClause *clause = it->clause;-
3291 Reference rhs = expression(clause->expression);-
3292 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 424 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
0-424
3293 return false;
never executed: return false;
0
3294 rhs.loadInAccumulator();-
3295 bytecodeGenerator->jumpStrictEqual(lhs.stackSlot(), blockMap.value(clause));-
3296 }
executed 420 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
420
3297-
3298 if (DefaultClause *defaultClause = ast->block->defaultClause)
DefaultClause ...>defaultClauseDescription
TRUEevaluated 465 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 285 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
285-465
3299 bytecodeGenerator->jump().link(blockMap.value(defaultClause));
executed 465 times by 6 tests: bytecodeGenerator->jump().link(blockMap.value(defaultClause));
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
465
3300 else-
3301 bytecodeGenerator->jump().link(switchEnd);
executed 285 times by 6 tests: bytecodeGenerator->jump().link(switchEnd);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
285
3302-
3303 ControlFlowLoop flow(this, &switchEnd);-
3304-
3305 insideSwitch = true;-
3306 for (CaseClauses *it = ast->block->clauses; it; it = it->next) {
itDescription
TRUEevaluated 80502 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 750 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
750-80502
3307 CaseClause *clause = it->clause;-
3308 blockMap[clause].link();-
3309-
3310 statementList(clause->statements);-
3311 }
executed 80502 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
80502
3312-
3313 if (ast->block->defaultClause) {
ast->block->defaultClauseDescription
TRUEevaluated 465 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 285 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
285-465
3314 DefaultClause *clause = ast->block->defaultClause;-
3315 blockMap[clause].link();-
3316-
3317 statementList(clause->statements);-
3318 }
executed 463 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
463
3319-
3320 for (CaseClauses *it = ast->block->moreClauses; it; it = it->next) {
itDescription
TRUEevaluated 421 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 750 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
421-750
3321 CaseClause *clause = it->clause;-
3322 blockMap[clause].link();-
3323-
3324 statementList(clause->statements);-
3325 }
executed 424 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
424
3326 insideSwitch = false;-
3327-
3328 switchEnd.link();-
3329-
3330 }
executed 750 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
750
3331-
3332 return false;
executed 748 times by 6 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
748
3333}-
3334-
3335bool Codegen::visit(ThrowStatement *ast)-
3336{-
3337 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 95388 times by 13 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_signalspy
  • tst_testfiltering
0-95388
3338 return false;
never executed: return false;
0
3339-
3340 RegisterScope scope(this);-
3341-
3342 Reference expr = expression(ast->expression);-
3343 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 96531 times by 13 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_signalspy
  • tst_testfiltering
0-96531
3344 return false;
never executed: return false;
0
3345-
3346 expr.loadInAccumulator();-
3347 Instruction::ThrowException instr;-
3348 bytecodeGenerator->addInstruction(instr);-
3349 return false;
executed 96530 times by 13 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
96530
3350}-
3351-
3352void Codegen::handleTryCatch(TryStatement *ast)-
3353{-
3354 Q_ASSERT(ast);-
3355 RegisterScope scope(this);-
3356 BytecodeGenerator::Label noException = bytecodeGenerator->newLabel();-
3357 {-
3358 ControlFlowCatch catchFlow(this, ast->catchExpression);-
3359 RegisterScope scope(this);-
3360 statement(ast->statement);-
3361 bytecodeGenerator->jump().link(noException);-
3362 }-
3363 noException.link();-
3364}
executed 113342 times by 21 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
113342
3365-
3366void Codegen::handleTryFinally(TryStatement *ast)-
3367{-
3368 RegisterScope scope(this);-
3369 ControlFlowFinally finally(this, ast->finallyExpression);-
3370-
3371 if (ast->catchExpression) {
ast->catchExpressionDescription
TRUEevaluated 444 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 382 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
382-444
3372 handleTryCatch(ast);-
3373 } else {
executed 444 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qqmlecmascript
444
3374 RegisterScope scope(this);-
3375 statement(ast->statement);-
3376 }
executed 382 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
382
3377}-
3378-
3379bool Codegen::visit(TryStatement *ast)-
3380{-
3381 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 112518 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
0-112518
3382 return true;
never executed: return true;
0
3383-
3384 RegisterScope scope(this);-
3385-
3386 if (ast->finallyExpression && ast->finallyExpression->statement) {
ast->finallyExpressionDescription
TRUEevaluated 826 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEevaluated 112314 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
ast->finallyEx...ion->statementDescription
TRUEevaluated 826 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
FALSEnever evaluated
0-112314
3387 handleTryFinally(ast);-
3388 } else {
executed 826 times by 5 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
826
3389 handleTryCatch(ast);-
3390 }
executed 112402 times by 21 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
112402
3391-
3392 return false;
executed 113352 times by 21 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
113352
3393}-
3394-
3395bool Codegen::visit(VariableStatement *ast)-
3396{-
3397 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 527663 times by 48 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-527663
3398 return true;
never executed: return true;
0
3399-
3400 variableDeclarationList(ast->declarations);-
3401 return false;
executed 529250 times by 48 tests: return 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
  • ...
529250
3402}-
3403-
3404bool Codegen::visit(WhileStatement *ast)-
3405{-
3406 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 1054 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
0-1054
3407 return true;
never executed: return true;
0
3408-
3409 if (AST::cast<FalseLiteral *>(ast->expression))
AST::cast<Fals...t->expression)Description
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
FALSEevaluated 1022 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
32-1022
3410 return false;
executed 32 times by 2 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
32
3411-
3412 RegisterScope scope(this);-
3413-
3414 BytecodeGenerator::Label start = bytecodeGenerator->newLabel();-
3415 BytecodeGenerator::Label end = bytecodeGenerator->newLabel();-
3416 BytecodeGenerator::Label cond = bytecodeGenerator->label();-
3417 ControlFlowLoop flow(this, &end, &cond);-
3418-
3419 if (!AST::cast<TrueLiteral *>(ast->expression))
!AST::cast<Tru...t->expression)Description
TRUEevaluated 953 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 66 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
66-953
3420 condition(ast->expression, &start, &end, true);
executed 956 times by 13 tests: condition(ast->expression, &start, &end, true);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
956
3421-
3422 start.link();-
3423 statement(ast->statement);-
3424 setJumpOutLocation(bytecodeGenerator, ast->statement, ast->whileToken);-
3425 bytecodeGenerator->jump().link(cond);-
3426-
3427 end.link();-
3428 return false;
executed 1018 times by 13 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_signalspy
  • tst_testfiltering
1018
3429}-
3430-
3431bool Codegen::visit(WithStatement *ast)-
3432{-
3433 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 818 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4debugger
0-818
3434 return true;
never executed: return true;
0
3435-
3436 RegisterScope scope(this);-
3437-
3438 Reference src = expression(ast->expression);-
3439 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 819 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4debugger
0-819
3440 return false;
never executed: return false;
0
3441 src = src.storeOnStack(); // trigger load before we setup the exception handler, so exceptions here go to the right place-
3442 src.loadInAccumulator();-
3443-
3444 enterContext(ast);-
3445 {-
3446 ControlFlowWith flow(this);-
3447 statement(ast->statement);-
3448 }-
3449 leaveContext();-
3450-
3451 return false;
executed 819 times by 6 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4debugger
819
3452}-
3453-
3454bool Codegen::visit(UiArrayBinding *)-
3455{-
3456 Q_UNIMPLEMENTED();-
3457 return false;
never executed: return false;
0
3458}-
3459-
3460bool Codegen::visit(UiObjectBinding *)-
3461{-
3462 Q_UNIMPLEMENTED();-
3463 return false;
never executed: return false;
0
3464}-
3465-
3466bool Codegen::visit(UiObjectDefinition *)-
3467{-
3468 Q_UNIMPLEMENTED();-
3469 return false;
never executed: return false;
0
3470}-
3471-
3472bool Codegen::visit(UiPublicMember *)-
3473{-
3474 Q_UNIMPLEMENTED();-
3475 return false;
never executed: return false;
0
3476}-
3477-
3478bool Codegen::visit(UiScriptBinding *)-
3479{-
3480 Q_UNIMPLEMENTED();-
3481 return false;
never executed: return false;
0
3482}-
3483-
3484bool Codegen::visit(UiSourceElement *)-
3485{-
3486 Q_UNIMPLEMENTED();-
3487 return false;
never executed: return false;
0
3488}-
3489-
3490bool Codegen::throwSyntaxErrorOnEvalOrArgumentsInStrictMode(const Reference &r, const SourceLocation& loc)-
3491{-
3492 if (!_context->isStrict)
!_context->isStrictDescription
TRUEevaluated 970405 times by 91 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_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
FALSEevaluated 882781 times by 1 test
Evaluated by:
  • tst_ecmascripttests
882781-970405
3493 return false;
executed 971132 times by 91 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_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
971132
3494 bool isArgOrEval = false;-
3495 if (r.type == Reference::Name) {
r.type == Reference::NameDescription
TRUEevaluated 74254 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 808967 times by 1 test
Evaluated by:
  • tst_ecmascripttests
74254-808967
3496 QString str = jsUnitGenerator->stringForIndex(r.nameAsIndex());-
3497 if (str == QLatin1String("eval") || str == QLatin1String("arguments")) {
str == QLatin1String("eval")Description
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 73993 times by 1 test
Evaluated by:
  • tst_ecmascripttests
str == QLatin1...g("arguments")Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 74270 times by 1 test
Evaluated by:
  • tst_ecmascripttests
34-74270
3498 isArgOrEval = true;-
3499 }
executed 86 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
86
3500 } else if (r.type == Reference::ScopedLocal || r.isRegister()) {
executed 74084 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
r.type == Refe...e::ScopedLocalDescription
TRUEevaluated 471 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 808329 times by 1 test
Evaluated by:
  • tst_ecmascripttests
r.isRegister()Description
TRUEevaluated 502629 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 308055 times by 1 test
Evaluated by:
  • tst_ecmascripttests
471-808329
3501 isArgOrEval = r.isArgOrEval;-
3502 }
executed 502485 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
502485
3503 if (isArgOrEval)
isArgOrEvalDescription
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 884759 times by 1 test
Evaluated by:
  • tst_ecmascripttests
96-884759
3504 throwSyntaxError(loc, QStringLiteral("Variable name may not be eval or arguments in strict mode"));
executed 95 times by 1 test: throwSyntaxError(loc, ([]() noexcept -> QString { enum { Size = sizeof(u"" "Variable name may not be eval or arguments in strict mode")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Variable name may not be eval or arguments in strict mode" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_ecmascripttests
executed 96 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
95-96
3505 return isArgOrEval;
executed 885061 times by 1 test: return isArgOrEval;
Executed by:
  • tst_ecmascripttests
885061
3506}-
3507-
3508void Codegen::throwSyntaxError(const SourceLocation &loc, const QString &detail)-
3509{-
3510 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEnever evaluated
0
3511 return;
never executed: return;
0
3512-
3513 hasError = true;-
3514 QQmlJS::DiagnosticMessage error;-
3515 error.message = detail;-
3516 error.loc = loc;-
3517 _errors << error;-
3518}
never executed: end of block
0
3519-
3520void Codegen::throwReferenceError(const SourceLocation &loc, const QString &detail)-
3521{-
3522 if (hasError)
hasErrorDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
0-2
3523 return;
never executed: return;
0
3524-
3525 hasError = true;-
3526 QQmlJS::DiagnosticMessage error;-
3527 error.message = detail;-
3528 error.loc = loc;-
3529 _errors << error;-
3530}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
3531-
3532QList<QQmlJS::DiagnosticMessage> Codegen::errors() const-
3533{-
3534 return _errors;
executed 14 times by 1 test: return _errors;
Executed by:
  • tst_qmlcachegen
14
3535}-
3536-
3537QQmlRefPointer<CompiledData::CompilationUnit> Codegen::generateCompilationUnit(bool generateUnitData)-
3538{-
3539 CompiledData::CompilationUnit *compilationUnit = new CompiledData::CompilationUnit;-
3540 if (generateUnitData)
generateUnitDataDescription
TRUEevaluated 2287813 times by 31 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 48529 times by 141 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • 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
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
48529-2287813
3541 compilationUnit->data = jsUnitGenerator->generateUnit();
executed 2287790 times by 31 tests: compilationUnit->data = jsUnitGenerator->generateUnit();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
2287790
3542-
3543 QQmlRefPointer<CompiledData::CompilationUnit> unit;-
3544 unit.adopt(compilationUnit);-
3545 return unit;
executed 2337107 times by 146 tests: return unit;
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
  • ...
2337107
3546}-
3547-
3548QQmlRefPointer<CompiledData::CompilationUnit> Codegen::createUnitForLoading()-
3549{-
3550 QQmlRefPointer<CompiledData::CompilationUnit> result;-
3551 result.adopt(new CompiledData::CompilationUnit);-
3552 return result;
executed 55377 times by 138 tests: return result;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
55377
3553}-
3554-
3555class Codegen::VolatileMemoryLocationScanner: protected QQmlJS::AST::Visitor-
3556{-
3557 VolatileMemoryLocations locs;-
3558-
3559public:-
3560 Codegen::VolatileMemoryLocations scan(AST::Node *s)-
3561 {-
3562 s->accept(this);-
3563 return locs;
executed 13583449 times by 139 tests: return locs;
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
  • ...
13583449
3564 }-
3565-
3566 bool visit(ArrayMemberExpression *) override-
3567 {-
3568 locs.setAllVolatile();-
3569 return false;
executed 459102 times by 29 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_qqmllistmodelworkerscript
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickscreen
  • tst_qquickvisualdatamodel
  • ...
459102
3570 }-
3571-
3572 bool visit(FieldMemberExpression *) override-
3573 {-
3574 locs.setAllVolatile();-
3575 return false;
executed 5210074 times by 112 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_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
5210074
3576 }-
3577-
3578 bool visit(PostIncrementExpression *e) override-
3579 {-
3580 collectIdentifiers(locs.specificLocations, e->base);-
3581 return false;
executed 41271 times by 28 tests: return false;
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
  • ...
41271
3582 }-
3583-
3584 bool visit(PostDecrementExpression *e) override-
3585 {-
3586 collectIdentifiers(locs.specificLocations, e->base);-
3587 return false;
executed 1202 times by 8 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktableview
1202
3588 }-
3589-
3590 bool visit(PreIncrementExpression *e) override-
3591 {-
3592 collectIdentifiers(locs.specificLocations, e->expression);-
3593 return false;
executed 14317 times by 32 tests: return false;
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
  • ...
14317
3594 }-
3595-
3596 bool visit(PreDecrementExpression *e) override-
3597 {-
3598 collectIdentifiers(locs.specificLocations, e->expression);-
3599 return false;
executed 930 times by 6 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qquickgridview
930
3600 }-
3601-
3602 bool visit(BinaryExpression *e) override-
3603 {-
3604 switch (e->op) {-
3605 case QSOperator::InplaceAnd:
executed 854 times by 3 tests: case QSOperator::InplaceAnd:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
854
3606 case QSOperator::InplaceSub:
executed 2223 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
2223
3607 case QSOperator::InplaceDiv:
executed 839 times by 3 tests: case QSOperator::InplaceDiv:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
839
3608 case QSOperator::InplaceAdd:
executed 3789021 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
  • ...
3789021
3609 case QSOperator::InplaceLeftShift:
executed 834 times by 2 tests: case QSOperator::InplaceLeftShift:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
834
3610 case QSOperator::InplaceMod:
executed 831 times by 2 tests: case QSOperator::InplaceMod:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
831
3611 case QSOperator::InplaceMul:
executed 1123 times by 4 tests: case QSOperator::InplaceMul:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsvalue
1123
3612 case QSOperator::InplaceOr:
executed 877 times by 4 tests: case QSOperator::InplaceOr:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsvalue
  • tst_qquicklistview
877
3613 case QSOperator::InplaceRightShift:
executed 905 times by 3 tests: case QSOperator::InplaceRightShift:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
905
3614 case QSOperator::InplaceURightShift:
executed 3386 times by 2 tests: case QSOperator::InplaceURightShift:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
3386
3615 case QSOperator::InplaceXor:
executed 828 times by 2 tests: case QSOperator::InplaceXor:
Executed by:
  • tst_ecmascripttests
  • tst_qjsvalue
828
3616 collectIdentifiers(locs.specificLocations, e);-
3617 return false;
executed 3805998 times by 26 tests: return false;
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
  • ...
3805998
3618-
3619 default:
executed 15119777 times by 98 tests: default:
Executed 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
  • ...
15119777
3620 return true;
executed 15125028 times by 98 tests: return true;
Executed 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
  • ...
15125028
3621 }-
3622 }-
3623-
3624private:-
3625 void collectIdentifiers(QVector<QStringView> &ids, AST::Node *node) const {-
3626 class Collector: public QQmlJS::AST::Visitor {-
3627 QVector<QStringView> &ids;-
3628 public:-
3629 Collector(QVector<QStringView> &ids): ids(ids) {}
executed 3851476 times by 47 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • 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_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
3851476
3630 virtual bool visit(IdentifierExpression *ie) {-
3631 ids.append(ie->name);-
3632 return false;
executed 8203213 times by 47 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • 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_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
8203213
3633 }-
3634 };-
3635 Collector collector(ids);-
3636 node->accept(&collector);-
3637 }
executed 3861915 times by 47 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • 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_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
3861915
3638};-
3639-
3640Codegen::VolatileMemoryLocations Codegen::scanVolatileMemoryLocations(AST::Node *ast) const-
3641{-
3642 VolatileMemoryLocationScanner scanner;-
3643 return scanner.scan(ast);
executed 13528814 times by 139 tests: return scanner.scan(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
  • ...
13528814
3644}-
3645-
3646-
3647#ifndef V4_BOOTSTRAP-
3648-
3649QList<QQmlError> Codegen::qmlErrors() const-
3650{-
3651 QList<QQmlError> qmlErrors;-
3652-
3653 // Short circuit to avoid costly (de)heap allocation of QUrl if there are no errors.-
3654 if (_errors.size() == 0)
_errors.size() == 0Description
TRUEevaluated 51590 times by 132 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlecmascript
2-51590
3655 return qmlErrors;
executed 51590 times by 132 tests: return qmlErrors;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • 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
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
51590
3656-
3657 qmlErrors.reserve(_errors.size());-
3658-
3659 QUrl url(_fileNameIsUrl ? QUrl(_module->fileName) : QUrl::fromLocalFile(_module->fileName));-
3660 for (const QQmlJS::DiagnosticMessage &msg: qAsConst(_errors)) {-
3661 QQmlError e;-
3662 e.setUrl(url);-
3663 e.setLine(msg.loc.startLine);-
3664 e.setColumn(msg.loc.startColumn);-
3665 e.setDescription(msg.message);-
3666 qmlErrors << e;-
3667 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlecmascript
2
3668-
3669 return qmlErrors;
executed 2 times by 1 test: return qmlErrors;
Executed by:
  • tst_qqmlecmascript
2
3670}-
3671-
3672#endif // V4_BOOTSTRAP-
3673-
3674bool Codegen::RValue::operator==(const RValue &other) const-
3675{-
3676 switch (type) {-
3677 case Accumulator:
never executed: case Accumulator:
0
3678 return other.isAccumulator();
never executed: return other.isAccumulator();
0
3679 case StackSlot:
executed 24 times by 1 test: case StackSlot:
Executed by:
  • tst_ecmascripttests
24
3680 return other.isStackSlot() && theStackSlot == other.theStackSlot;
executed 24 times by 1 test: return other.isStackSlot() && theStackSlot == other.theStackSlot;
Executed by:
  • tst_ecmascripttests
24
3681 case Const:
never executed: case Const:
0
3682 return other.isConst() && constant == other.constant;
never executed: return other.isConst() && constant == other.constant;
0
3683 default:
never executed: default:
0
3684 return false;
never executed: return false;
0
3685 }-
3686}-
3687-
3688Codegen::RValue Codegen::RValue::storeOnStack() const-
3689{-
3690 switch (type) {-
3691 case Accumulator:
executed 1254138 times by 94 tests: case Accumulator:
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
1254138
3692 return RValue::fromStackSlot(codegen, Reference::fromAccumulator(codegen).storeOnStack().stackSlot());
executed 1254169 times by 94 tests: return RValue::fromStackSlot(codegen, Reference::fromAccumulator(codegen).storeOnStack().stackSlot());
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
1254169
3693 case StackSlot:
never executed: case StackSlot:
0
3694 return *this;
never executed: return *this;
0
3695 case Const:
executed 12268 times by 9 tests: case Const:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllocale
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
12268
3696 return RValue::fromStackSlot(codegen, Reference::storeConstOnStack(codegen, constant).stackSlot());
executed 12274 times by 9 tests: return RValue::fromStackSlot(codegen, Reference::storeConstOnStack(codegen, constant).stackSlot());
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllocale
  • tst_qqmlxmlhttprequest
  • tst_qquicklayouts
12274
3697 default:
never executed: default:
0
3698 Q_UNREACHABLE();-
3699 }
never executed: end of block
0
3700}-
3701-
3702void Codegen::RValue::loadInAccumulator() const-
3703{-
3704 switch (type) {-
3705 case Accumulator:
executed 957778 times by 101 tests: case Accumulator:
Executed 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
  • ...
957778
3706 // nothing to do-
3707 return;
executed 958930 times by 101 tests: return;
Executed 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
  • ...
958930
3708 case StackSlot:
executed 423282 times by 48 tests: case StackSlot:
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_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
423282
3709 return Reference::fromStackSlot(codegen, theStackSlot).loadInAccumulator();
executed 423624 times by 48 tests: return Reference::fromStackSlot(codegen, theStackSlot).loadInAccumulator();
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_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickdroparea
  • tst_qquickflickable
  • ...
423624
3710 case Const:
executed 20086 times by 15 tests: case Const:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_signalspy
20086
3711 return Reference::fromConst(codegen, constant).loadInAccumulator();
executed 20122 times by 15 tests: return Reference::fromConst(codegen, constant).loadInAccumulator();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_signalspy
20122
3712 default:
never executed: default:
0
3713 Q_UNREACHABLE();-
3714 }
never executed: end of block
0
3715-
3716}-
3717-
3718Codegen::Reference::Reference(const Codegen::Reference &other)-
3719{-
3720 *this = other;-
3721}
executed 119323237 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
  • ...
119323237
3722-
3723Codegen::Reference &Codegen::Reference::operator =(const Reference &other)-
3724{-
3725 type = other.type;-
3726-
3727 switch (type) {-
3728 case Invalid:
executed 127631135 times by 139 tests: case Invalid:
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
  • ...
127631135
3729 case Accumulator:
executed 41253813 times by 121 tests: case Accumulator:
Executed by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinfo
  • ...
41253813
3730 break;
executed 168607068 times by 139 tests: break;
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
  • ...
168607068
3731 case Super:
executed 3533 times by 1 test: case Super:
Executed by:
  • tst_ecmascripttests
3533
3732 break;
executed 3533 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
3533
3733 case SuperProperty:
executed 1788 times by 1 test: case SuperProperty:
Executed by:
  • tst_ecmascripttests
1788
3734 property = other.property;-
3735 break;
executed 1788 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
1788
3736 case StackSlot:
executed 62961310 times by 138 tests: case StackSlot:
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
  • ...
62961310
3737 theStackSlot = other.theStackSlot;-
3738 break;
executed 62965636 times by 138 tests: break;
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
  • ...
62965636
3739 case ScopedLocal:
executed 3901284 times by 21 tests: case ScopedLocal:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
3901284
3740 index = other.index;-
3741 scope = other.scope;-
3742 break;
executed 3902260 times by 21 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
3902260
3743 case Name:
executed 27219784 times by 107 tests: case Name:
Executed by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinstantiator
  • ...
27219784
3744 name = other.name;-
3745 break;
executed 27311605 times by 107 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinstantiator
  • ...
27311605
3746 case Member:
executed 15295844 times by 112 tests: case Member:
Executed 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
15295844
3747 propertyBase = other.propertyBase;-
3748 propertyNameIndex = other.propertyNameIndex;-
3749 break;
executed 15298639 times by 112 tests: break;
Executed 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
15298639
3750 case Subscript:
executed 629740 times by 32 tests: case Subscript:
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
  • ...
629740
3751 elementBase = other.elementBase;-
3752 elementSubscript = other.elementSubscript;-
3753 break;
executed 629891 times by 32 tests: break;
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
  • ...
629891
3754 case Const:
executed 5640680 times by 98 tests: case Const:
Executed by:
  • 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
5640680
3755 constant = other.constant;-
3756 break;
executed 5641925 times by 98 tests: break;
Executed by:
  • 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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
5641925
3757 case QmlScopeObject:
executed 69185 times by 109 tests: case QmlScopeObject:
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • ...
69185
3758 case QmlContextObject:
never executed: case QmlContextObject:
0
3759 qmlBase = other.qmlBase;-
3760 qmlCoreIndex = other.qmlCoreIndex;-
3761 qmlNotifyIndex = other.qmlNotifyIndex;-
3762 capturePolicy = other.capturePolicy;-
3763 break;
executed 69185 times by 109 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • ...
69185
3764 }-
3765-
3766 // keep loaded reference-
3767 isArgOrEval = other.isArgOrEval;-
3768 codegen = other.codegen;-
3769 isReadonly = other.isReadonly;-
3770 isReferenceToConst = other.isReferenceToConst;-
3771 stackSlotIsLocalOrArgument = other.stackSlotIsLocalOrArgument;-
3772 isVolatile = other.isVolatile;-
3773 global = other.global;-
3774 return *this;
executed 282566282 times by 139 tests: return *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
  • ...
282566282
3775}-
3776-
3777bool Codegen::Reference::operator==(const Codegen::Reference &other) const-
3778{-
3779 if (type != other.type)
type != other.typeDescription
TRUEevaluated 17477 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qv4debugger
FALSEevaluated 33568 times by 10 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
17477-33568
3780 return false;
executed 17482 times by 4 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsengine
  • tst_qv4debugger
17482
3781 switch (type) {-
3782 case Invalid:
never executed: case Invalid:
0
3783 case Accumulator:
never executed: case Accumulator:
0
3784 break;
never executed: break;
0
3785 case Super:
never executed: case Super:
0
3786 return true;
never executed: return true;
0
3787 case SuperProperty:
never executed: case SuperProperty:
0
3788 return property == other.property;
never executed: return property == other.property;
0
3789 case StackSlot:
executed 33363 times by 10 tests: case StackSlot:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
33363
3790 return theStackSlot == other.theStackSlot;
executed 33467 times by 10 tests: return theStackSlot == other.theStackSlot;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
33467
3791 case ScopedLocal:
executed 136 times by 1 test: case ScopedLocal:
Executed by:
  • tst_ecmascripttests
136
3792 return index == other.index && scope == other.scope;
executed 136 times by 1 test: return index == other.index && scope == other.scope;
Executed by:
  • tst_ecmascripttests
136
3793 case Name:
never executed: case Name:
0
3794 return nameAsIndex() == other.nameAsIndex();
never executed: return nameAsIndex() == other.nameAsIndex();
0
3795 case Member:
executed 24 times by 1 test: case Member:
Executed by:
  • tst_ecmascripttests
24
3796 return propertyBase == other.propertyBase && propertyNameIndex == other.propertyNameIndex;
executed 24 times by 1 test: return propertyBase == other.propertyBase && propertyNameIndex == other.propertyNameIndex;
Executed by:
  • tst_ecmascripttests
24
3797 case Subscript:
executed 4 times by 1 test: case Subscript:
Executed by:
  • tst_ecmascripttests
4
3798 return elementBase == other.elementBase && elementSubscript == other.elementSubscript;
executed 4 times by 1 test: return elementBase == other.elementBase && elementSubscript == other.elementSubscript;
Executed by:
  • tst_ecmascripttests
4
3799 case Const:
never executed: case Const:
0
3800 return constant == other.constant;
never executed: return constant == other.constant;
0
3801 case QmlScopeObject:
never executed: case QmlScopeObject:
0
3802 case QmlContextObject:
never executed: case QmlContextObject:
0
3803 return qmlCoreIndex == other.qmlCoreIndex && qmlNotifyIndex == other.qmlNotifyIndex
never executed: return qmlCoreIndex == other.qmlCoreIndex && qmlNotifyIndex == other.qmlNotifyIndex && capturePolicy == other.capturePolicy;
0
3804 && capturePolicy == other.capturePolicy;
never executed: return qmlCoreIndex == other.qmlCoreIndex && qmlNotifyIndex == other.qmlNotifyIndex && capturePolicy == other.capturePolicy;
0
3805 }-
3806 return true;
never executed: return true;
0
3807}-
3808-
3809Codegen::RValue Codegen::Reference::asRValue() const-
3810{-
3811 switch (type) {-
3812 case Invalid:
never executed: case Invalid:
0
3813 Q_UNREACHABLE();-
3814 case Accumulator:
code before this statement never executed: case Accumulator:
executed 107288 times by 80 tests: case Accumulator:
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
0-107288
3815 return RValue::fromAccumulator(codegen);
executed 107339 times by 80 tests: return RValue::fromAccumulator(codegen);
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinfo
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlmoduleplugin
  • tst_qqmlnotifier
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
107339
3816 case StackSlot:
executed 592974 times by 53 tests: case StackSlot:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
592974
3817 return RValue::fromStackSlot(codegen, stackSlot());
executed 593090 times by 53 tests: return RValue::fromStackSlot(codegen, stackSlot());
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
593090
3818 case Const:
executed 32364 times by 17 tests: case Const:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_signalspy
32364
3819 return RValue::fromConst(codegen, constant);
executed 32361 times by 17 tests: return RValue::fromConst(codegen, constant);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_signalspy
32361
3820 default:
executed 2107266 times by 105 tests: default:
Executed 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
2107266
3821 loadInAccumulator();-
3822 return RValue::fromAccumulator(codegen);
executed 2110953 times by 105 tests: return RValue::fromAccumulator(codegen);
Executed 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
2110953
3823 }-
3824}-
3825-
3826Codegen::Reference Codegen::Reference::asLValue() const-
3827{-
3828 switch (type) {-
3829 case Invalid:
never executed: case Invalid:
0
3830 case Accumulator:
never executed: case Accumulator:
0
3831 Q_UNREACHABLE();-
3832 case Super:
code before this statement never executed: case Super:
never executed: case Super:
0
3833 codegen->throwSyntaxError(AST::SourceLocation(), QStringLiteral("Super lvalues not implemented."));
never executed: return qstring_literal_temp;
0
3834 return *this;
never executed: return *this;
0
3835 case Member:
executed 1389659 times by 94 tests: case Member:
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
1389659
3836 if (!propertyBase.isStackSlot()) {
!propertyBase.isStackSlot()Description
TRUEevaluated 1247339 times by 94 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
FALSEevaluated 140869 times by 39 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • ...
140869-1247339
3837 Reference r = *this;-
3838 r.propertyBase = propertyBase.storeOnStack();-
3839 return r;
executed 1255156 times by 94 tests: return r;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • 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_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
1255156
3840 }-
3841 return *this;
executed 140478 times by 39 tests: return *this;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • ...
140478
3842 case Subscript:
executed 51332 times by 17 tests: case Subscript:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
51332
3843 if (!elementSubscript.isStackSlot()) {
!elementSubscr....isStackSlot()Description
TRUEevaluated 18117 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_signalspy
FALSEevaluated 33220 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
18117-33220
3844 Reference r = *this;-
3845 r.elementSubscript = elementSubscript.storeOnStack();-
3846 return r;
executed 18148 times by 13 tests: return r;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_signalspy
18148
3847 }-
3848 return *this;
executed 33272 times by 12 tests: return *this;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_testfiltering
33272
3849 default:
executed 1211420 times by 75 tests: default:
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • ...
1211420
3850 return *this;
executed 1212241 times by 75 tests: return *this;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • ...
1212241
3851 }-
3852}-
3853-
3854Codegen::Reference Codegen::Reference::storeConsumeAccumulator() const-
3855{-
3856 storeAccumulator(); // it doesn't matter what happens here, just do it.-
3857 return Reference();
executed 9228777 times by 139 tests: return Reference();
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
  • ...
9228777
3858}-
3859-
3860Codegen::Reference Codegen::Reference::baseObject() const-
3861{-
3862 if (type == Reference::QmlScopeObject || type == Reference::QmlContextObject) {
type == Refere...QmlScopeObjectDescription
TRUEnever evaluated
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
type == Refere...lContextObjectDescription
TRUEnever evaluated
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-108
3863 return Reference::fromStackSlot(codegen, qmlBase.stackSlot());
never executed: return Reference::fromStackSlot(codegen, qmlBase.stackSlot());
0
3864 } else if (type == Reference::Member) {
type == Reference::MemberDescription
TRUEnever evaluated
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-108
3865 RValue rval = propertyBase;-
3866 if (!rval.isValid())
!rval.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0
3867 return Reference::fromConst(codegen, Encode::undefined());
never executed: return Reference::fromConst(codegen, Encode::undefined());
0
3868 if (rval.isAccumulator())
rval.isAccumulator()Description
TRUEnever evaluated
FALSEnever evaluated
0
3869 return Reference::fromAccumulator(codegen);
never executed: return Reference::fromAccumulator(codegen);
0
3870 if (rval.isStackSlot())
rval.isStackSlot()Description
TRUEnever evaluated
FALSEnever evaluated
0
3871 Reference::fromStackSlot(codegen, rval.stackSlot());
never executed: Reference::fromStackSlot(codegen, rval.stackSlot());
0
3872 if (rval.isConst())
rval.isConst()Description
TRUEnever evaluated
FALSEnever evaluated
0
3873 return Reference::fromConst(codegen, rval.constantValue());
never executed: return Reference::fromConst(codegen, rval.constantValue());
0
3874 Q_UNREACHABLE();-
3875 } else if (type == Reference::Subscript) {
never executed: end of block
type == Reference::SubscriptDescription
TRUEnever evaluated
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-108
3876 return Reference::fromStackSlot(codegen, elementBase.stackSlot());
never executed: return Reference::fromStackSlot(codegen, elementBase.stackSlot());
0
3877 } else {-
3878 return Reference::fromConst(codegen, Encode::undefined());
executed 108 times by 1 test: return Reference::fromConst(codegen, Encode::undefined());
Executed by:
  • tst_ecmascripttests
108
3879 }-
3880}-
3881-
3882Codegen::Reference Codegen::Reference::storeOnStack() const-
3883{
executed 10136287 times by 129 tests: return doStoreOnStack(-1);
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
  • ...
return doStoreOnStack(-1); }
executed 10136287 times by 129 tests: return doStoreOnStack(-1);
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
  • ...
10136287
3884-
3885void Codegen::Reference::storeOnStack(int slotIndex) const-
3886{
executed 5379197 times by 137 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
  • ...
doStoreOnStack(slotIndex); }
executed 5379197 times by 137 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
  • ...
5379197
3887-
3888Codegen::Reference Codegen::Reference::doStoreOnStack(int slotIndex) const-
3889{-
3890 if (isStackSlot() && slotIndex == -1 && !(stackSlotIsLocalOrArgument && isVolatile))
isStackSlot()Description
TRUEevaluated 7670795 times by 123 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_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 7836318 times by 138 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
  • ...
slotIndex == -1Description
TRUEevaluated 5757181 times by 123 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_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
FALSEevaluated 1933595 times by 43 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • ...
stackSlotIsLocalOrArgumentDescription
TRUEevaluated 2035919 times by 37 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
FALSEevaluated 3717425 times by 121 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_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
isVolatileDescription
TRUEevaluated 996605 times by 37 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklayouts
  • ...
FALSEevaluated 1036909 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypeproviders
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
996605-7836318
3891 return *this;
executed 4756364 times by 122 tests: return *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_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • ...
4756364
3892-
3893 if (isStackSlot()) { // temp-to-temp move
isStackSlot()Description
TRUEevaluated 2923035 times by 53 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • ...
FALSEevaluated 7842384 times by 138 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
  • ...
2923035-7842384
3894 Reference dest = Reference::fromStackSlot(codegen, slotIndex);-
3895 Instruction::MoveReg move;-
3896 move.srcReg = stackSlot();-
3897 move.destReg = dest.stackSlot();-
3898 codegen->bytecodeGenerator->addInstruction(move);-
3899 return dest;
executed 2927969 times by 53 tests: return dest;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlprofilerservice
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • ...
2927969
3900 }-
3901-
3902 Reference slot = Reference::fromStackSlot(codegen, slotIndex);-
3903 if (isConstant()) {
isConstant()Description
TRUEevaluated 633263 times by 65 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
FALSEevaluated 7216280 times by 138 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
  • ...
633263-7216280
3904 Instruction::MoveConst move;-
3905 move.constIndex = codegen->registerConstant(constant);-
3906 move.destTemp = slot.stackSlot();-
3907 codegen->bytecodeGenerator->addInstruction(move);-
3908 } else {
executed 633165 times by 65 tests: end of block
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_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • ...
633165
3909 loadInAccumulator();-
3910 slot.storeConsumeAccumulator();-
3911 }
executed 7219569 times by 138 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
  • ...
7219569
3912 return slot;
executed 7854474 times by 138 tests: return slot;
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
  • ...
7854474
3913}-
3914-
3915Codegen::Reference Codegen::Reference::storeRetainAccumulator() const-
3916{-
3917 if (storeWipesAccumulator()) {
storeWipesAccumulator()Description
TRUEevaluated 27372 times by 37 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • ...
FALSEevaluated 673859 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
27372-673859
3918 // a store will-
3919 auto tmp = Reference::fromStackSlot(codegen);-
3920 tmp.storeAccumulator(); // this is safe, and won't destory the accumulator-
3921 storeAccumulator();-
3922 return tmp;
executed 27394 times by 37 tests: return tmp;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • ...
27394
3923 } else {-
3924 // ok, this is safe, just do the store.-
3925 storeAccumulator();-
3926 return *this;
executed 680551 times by 13 tests: return *this;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
680551
3927 }-
3928}-
3929-
3930bool Codegen::Reference::storeWipesAccumulator() const-
3931{-
3932 switch (type) {-
3933 default:
never executed: default:
0
3934 case Invalid:
never executed: case Invalid:
0
3935 case Const:
never executed: case Const:
0
3936 case Accumulator:
never executed: case Accumulator:
0
3937 Q_UNREACHABLE();-
3938 return false;
never executed: return false;
0
3939 case StackSlot:
executed 670155 times by 13 tests: case StackSlot:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
670155
3940 case ScopedLocal:
executed 5373 times by 3 tests: case ScopedLocal:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlsqldatabase
5373
3941 return false;
executed 672540 times by 13 tests: return false;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlsqldatabase
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
672540
3942 case Name:
executed 21094 times by 21 tests: case Name:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_qv4debugger
21094
3943 case Member:
executed 5709 times by 25 tests: case Member:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicksmoothedanimation
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_scenegraph
5709
3944 case Subscript:
executed 391 times by 5 tests: case Subscript:
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qjsvalue
  • tst_qquickgridview
  • tst_qquicklistview
391
3945 case QmlScopeObject:
executed 115 times by 9 tests: case QmlScopeObject:
Executed by:
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickloader
  • tst_signalspy
115
3946 case QmlContextObject:
never executed: case QmlContextObject:
0
3947 return true;
executed 27330 times by 37 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • ...
27330
3948 }-
3949}-
3950-
3951void Codegen::Reference::storeAccumulator() const-
3952{-
3953 if (isReferenceToConst) {
isReferenceToConstDescription
TRUEevaluated 88 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 9943613 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
  • ...
88-9943613
3954 // throw a type error-
3955 RegisterScope scope(codegen);-
3956 Reference r = codegen->referenceForName(QStringLiteral("TypeError"), false);
executed 88 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_ecmascripttests
88
3957 r = r.storeOnStack();-
3958 Instruction::Construct construct;-
3959 construct.func = r.stackSlot();-
3960 construct.argc = 0;-
3961 construct.argv = 0;-
3962 codegen->bytecodeGenerator->addInstruction(construct);-
3963 Instruction::ThrowException throwException;-
3964 codegen->bytecodeGenerator->addInstruction(throwException);-
3965 return;
executed 88 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
88
3966 }-
3967 switch (type) {-
3968 case Super:
never executed: case Super:
0
3969 Q_UNREACHABLE();-
3970 return;
never executed: return;
0
3971 case SuperProperty:
executed 40 times by 1 test: case SuperProperty:
Executed by:
  • tst_ecmascripttests
40
3972 Instruction::StoreSuperProperty store;-
3973 store.property = property.stackSlot();-
3974 codegen->bytecodeGenerator->addInstruction(store);-
3975 return;
executed 40 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
40
3976 case StackSlot: {
executed 8557197 times by 138 tests: case StackSlot:
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
  • ...
8557197
3977 Instruction::StoreReg store;-
3978 store.reg = theStackSlot;-
3979 codegen->bytecodeGenerator->addInstruction(store);-
3980 return;
executed 8590399 times by 138 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • ...
8590399
3981 }-
3982 case ScopedLocal: {
executed 152078 times by 18 tests: case ScopedLocal:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
152078
3983 if (scope == 0) {
scope == 0Description
TRUEevaluated 141001 times by 18 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 11007 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlsqldatabase
  • tst_qv4debugger
11007-141001
3984 Instruction::StoreLocal store;-
3985 store.index = index;-
3986 codegen->bytecodeGenerator->addInstruction(store);-
3987 } else {
executed 141323 times by 18 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
141323
3988 Instruction::StoreScopedLocal store;-
3989 store.index = index;-
3990 store.scope = scope;-
3991 codegen->bytecodeGenerator->addInstruction(store);-
3992 }
executed 11007 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_parserstress
  • tst_qqmlsqldatabase
  • tst_qv4debugger
11007
3993 return;
executed 152326 times by 18 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
152326
3994 }-
3995 case Name: {
executed 584712 times by 49 tests: case Name:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
584712
3996 Context *c = codegen->currentContext();-
3997 if (c->isStrict) {
c->isStrictDescription
TRUEevaluated 286181 times by 4 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4assembler
FALSEevaluated 300434 times by 48 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
286181-300434
3998 Instruction::StoreNameStrict store;-
3999 store.name = nameAsIndex();-
4000 codegen->bytecodeGenerator->addInstruction(store);-
4001 } else {
executed 286682 times by 4 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4assembler
286682
4002 Instruction::StoreNameSloppy store;-
4003 store.name = nameAsIndex();-
4004 codegen->bytecodeGenerator->addInstruction(store);-
4005 }
executed 301357 times by 48 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
301357
4006 } return;
executed 587384 times by 49 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • ...
587384
4007 case Member:
executed 601093 times by 72 tests: case Member:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
601093
4008 if (!disable_lookups && codegen->useFastLookups) {
!disable_lookupsDescription
TRUEevaluated 601516 times by 72 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
FALSEnever evaluated
codegen->useFastLookupsDescription
TRUEevaluated 593300 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 10277 times by 72 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
0-601516
4009 Instruction::SetLookup store;-
4010 store.base = propertyBase.stackSlot();-
4011 store.index = codegen->registerSetterLookup(propertyNameIndex);-
4012 codegen->bytecodeGenerator->addInstruction(store);-
4013 } else {
executed 595031 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
595031
4014 Instruction::StoreProperty store;-
4015 store.base = propertyBase.stackSlot();-
4016 store.name = propertyNameIndex;-
4017 codegen->bytecodeGenerator->addInstruction(store);-
4018 }
executed 10277 times by 72 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
10277
4019 return;
executed 605051 times by 72 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • ...
605051
4020 case Subscript: {
executed 33381 times by 14 tests: case Subscript:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_signalspy
33381
4021 Instruction::StoreElement store;-
4022 store.base = elementBase;-
4023 store.index = elementSubscript.stackSlot();-
4024 codegen->bytecodeGenerator->addInstruction(store);-
4025 } return;
executed 33548 times by 14 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_signalspy
33548
4026 case QmlScopeObject: {
executed 2010 times by 60 tests: case QmlScopeObject:
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
2010
4027 Instruction::StoreScopeObjectProperty store;-
4028 store.base = qmlBase;-
4029 store.propertyIndex = qmlCoreIndex;-
4030 codegen->bytecodeGenerator->addInstruction(store);-
4031 } return;
executed 2010 times by 60 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmoduleplugin
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • ...
2010
4032 case QmlContextObject: {
never executed: case QmlContextObject:
0
4033 Instruction::StoreContextObjectProperty store;-
4034 store.base = qmlBase;-
4035 store.propertyIndex = qmlCoreIndex;-
4036 codegen->bytecodeGenerator->addInstruction(store);-
4037 } return;
never executed: return;
0
4038 case Invalid:
never executed: case Invalid:
0
4039 case Accumulator:
never executed: case Accumulator:
0
4040 case Const:
never executed: case Const:
0
4041 break;
never executed: break;
0
4042 }-
4043-
4044 Q_ASSERT(false);-
4045 Q_UNREACHABLE();-
4046}
never executed: end of block
0
4047-
4048void Codegen::Reference::loadInAccumulator() const-
4049{-
4050 switch (type) {-
4051 case Accumulator:
executed 10748953 times by 121 tests: case Accumulator:
Executed by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinfo
  • ...
10748953
4052 return;
executed 10750396 times by 121 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinfo
  • ...
10750396
4053 case Super:
never executed: case Super:
0
4054 Q_UNREACHABLE();-
4055 return;
never executed: return;
0
4056 case SuperProperty:
executed 328 times by 1 test: case SuperProperty:
Executed by:
  • tst_ecmascripttests
328
4057 Instruction::LoadSuperProperty load;-
4058 load.property = property.stackSlot();-
4059 codegen->bytecodeGenerator->addInstruction(load);-
4060 return;
executed 328 times by 1 test: return;
Executed by:
  • tst_ecmascripttests
328
4061 case Const: {
executed 1810257 times by 102 tests: case Const:
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_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
1810257
4062QT_WARNING_PUSH-
4063QT_WARNING_DISABLE_GCC("-Wmaybe-uninitialized") // the loads below are empty structs.-
4064 if (constant == Encode::null()) {
constant == Encode::null()Description
TRUEevaluated 88874 times by 29 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshadereffect
  • ...
FALSEevaluated 1712234 times by 102 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_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
88874-1712234
4065 Instruction::LoadNull load;-
4066 codegen->bytecodeGenerator->addInstruction(load);-
4067 } else if (constant == Encode(true)) {
executed 90021 times by 29 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshadereffect
  • ...
constant == Encode(true)Description
TRUEevaluated 144352 times by 58 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
FALSEevaluated 1575549 times by 102 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_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
90021-1575549
4068 Instruction::LoadTrue load;-
4069 codegen->bytecodeGenerator->addInstruction(load);-
4070 } else if (constant == Encode(false)) {
executed 144964 times by 58 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
constant == Encode(false)Description
TRUEevaluated 29955 times by 47 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
FALSEevaluated 1549418 times by 101 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_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
29955-1549418
4071 Instruction::LoadFalse load;-
4072 codegen->bytecodeGenerator->addInstruction(load);-
4073 } else if (constant == Encode::undefined()) {
executed 29984 times by 47 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmltimer
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickflickable
  • tst_qquickgridview
  • ...
constant == En...e::undefined()Description
TRUEevaluated 1080266 times by 91 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
  • ...
FALSEevaluated 468107 times by 79 tests
Evaluated by:
  • 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_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
29984-1080266
4074 Instruction::LoadUndefined load;-
4075 codegen->bytecodeGenerator->addInstruction(load);-
4076 } else {
executed 1083094 times by 91 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
  • ...
1083094
4077 Value p = Primitive::fromReturnedValue(constant);-
4078 if (p.isNumber()) {
p.isNumber()Description
TRUEevaluated 458512 times by 79 tests
Evaluated by:
  • 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_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 8297 times by 1 test
Evaluated by:
  • tst_ecmascripttests
8297-458512
4079 double d = p.asDouble();-
4080 int i = static_cast<int>(d);-
4081 if (d == i && (d != 0 || !std::signbit(d))) {
d == iDescription
TRUEevaluated 450062 times by 79 tests
Evaluated by:
  • 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_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 9305 times by 23 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
d != 0Description
TRUEevaluated 285724 times by 78 tests
Evaluated by:
  • 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_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
FALSEevaluated 164340 times by 47 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
!std::signbit(d)Description
TRUEevaluated 163651 times by 47 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
FALSEevaluated 988 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_parserstress
988-450062
4082 if (!i) {
!iDescription
TRUEevaluated 163704 times by 47 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
FALSEevaluated 285933 times by 78 tests
Evaluated by:
  • 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_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
163704-285933
4083 Instruction::LoadZero load;-
4084 codegen->bytecodeGenerator->addInstruction(load);-
4085 return;
executed 163751 times by 47 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
163751
4086 }-
4087 Instruction::LoadInt load;-
4088 load.value = Primitive::fromReturnedValue(constant).toInt32();-
4089 codegen->bytecodeGenerator->addInstruction(load);-
4090 return;
executed 285429 times by 78 tests: return;
Executed by:
  • 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_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
285429
4091 }-
4092 }
executed 10289 times by 23 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
10289
4093 Instruction::LoadConst load;-
4094 load.index = codegen->registerConstant(constant);-
4095 codegen->bytecodeGenerator->addInstruction(load);-
4096 }
executed 18609 times by 23 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_quicktestmainwithsetup
  • tst_scenegraph
  • tst_testfiltering
18609
4097QT_WARNING_POP-
4098 } return;
executed 1365574 times by 93 tests: return;
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
  • ...
1365574
4099 case StackSlot: {
executed 1718795 times by 56 tests: case StackSlot:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
1718795
4100 Instruction::LoadReg load;-
4101 load.reg = stackSlot();-
4102 codegen->bytecodeGenerator->addInstruction(load);-
4103 } return;
executed 1722859 times by 56 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • ...
1722859
4104 case ScopedLocal: {
executed 709948 times by 20 tests: case ScopedLocal:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
709948
4105 if (!scope) {
!scopeDescription
TRUEevaluated 684448 times by 20 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 24948 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
  • tst_qv4debugger
24948-684448
4106 Instruction::LoadLocal load;-
4107 load.index = index;-
4108 codegen->bytecodeGenerator->addInstruction(load);-
4109 } else {
executed 685774 times by 20 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
685774
4110 Instruction::LoadScopedLocal load;-
4111 load.index = index;-
4112 load.scope = scope;-
4113 codegen->bytecodeGenerator->addInstruction(load);-
4114 }
executed 24948 times by 8 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
  • tst_qv4debugger
24948
4115 return;
executed 710728 times by 20 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
710728
4116 }-
4117 case Name:
executed 3432370 times by 103 tests: case Name:
Executed by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinstantiator
  • ...
3432370
4118 if (global) {
globalDescription
TRUEevaluated 2192503 times by 25 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 1233421 times by 101 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • 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
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • ...
1233421-2192503
4119 // these value properties of the global object are immutable, we we can directly convert them-
4120 // to their numeric value here-
4121 if (name == QStringLiteral("undefined")) {-
4122 Reference::fromConst(codegen, Encode::undefined()).loadInAccumulator();-
4123 return;
executed 361225 times by 7 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickdroparea
361225
4124 } else if (name == QStringLiteral("Infinity")) {
dead code: else
dead code: if (name == ([]() noexcept
-
4125 Reference::fromConst(codegen, Encode(qInf())).loadInAccumulator();-
4126 return;
executed 3609 times by 2 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
3609
4127 } else if (name == QStringLiteral("Nan")) {
dead code: else
dead code: if (name == ([]() noexcept
-
4128 Reference::fromConst(codegen, Encode(qQNaN())).loadInAccumulator();-
4129 return;
never executed: return;
0
4130 }-
4131 }-
4132 if (!disable_lookups && codegen->useFastLookups && global) {
!disable_lookupsDescription
TRUEevaluated 3068424 times by 103 tests
Evaluated by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinstantiator
  • ...
FALSEnever evaluated
codegen->useFastLookupsDescription
TRUEevaluated 1808416 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
FALSEevaluated 1269091 times by 103 tests
Evaluated by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinstantiator
  • ...
globalDescription
TRUEevaluated 1801859 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
FALSEevaluated 2272 times by 1 test
Evaluated by:
  • tst_ecmascripttests
0-3068424
4133 Instruction::LoadGlobalLookup load;-
4134 load.index = codegen->registerGlobalGetterLookup(nameAsIndex());-
4135 codegen->bytecodeGenerator->addInstruction(load);-
4136 } else {
executed 1800275 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
1800275
4137 Instruction::LoadName load;-
4138 load.name = nameAsIndex();-
4139 codegen->bytecodeGenerator->addInstruction(load);-
4140 }
executed 1271360 times by 103 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_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
  • tst_qqmlinstantiator
  • ...
1271360
4141 return;
executed 3071976 times by 103 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • 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
  • tst_qqmlinstantiator
  • ...
3071976
4142 case Member:
executed 1329202 times by 104 tests: case Member:
Executed 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
  • ...
1329202
4143 if (!disable_lookups && codegen->useFastLookups) {
!disable_lookupsDescription
TRUEevaluated 1329756 times by 104 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
  • ...
FALSEnever evaluated
codegen->useFastLookupsDescription
TRUEevaluated 1176605 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
FALSEevaluated 155996 times by 104 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
  • ...
0-1329756
4144 propertyBase.loadInAccumulator();-
4145 Instruction::GetLookup load;-
4146 load.index = codegen->registerGetterLookup(propertyNameIndex);-
4147 codegen->bytecodeGenerator->addInstruction(load);-
4148 } else {
executed 1178240 times by 7 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquickworkerscript
1178240
4149 propertyBase.loadInAccumulator();-
4150 Instruction::LoadProperty load;-
4151 load.name = propertyNameIndex;-
4152 codegen->bytecodeGenerator->addInstruction(load);-
4153 }
executed 155996 times by 104 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_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
  • ...
155996
4154 return;
executed 1334498 times by 104 tests: return;
Executed 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
  • ...
1334498
4155 case Subscript: {
executed 71392 times by 31 tests: case Subscript:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • 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
  • tst_qquickrepeater
  • ...
71392
4156 elementSubscript.loadInAccumulator();-
4157 Instruction::LoadElement load;-
4158 load.base = elementBase;-
4159 codegen->bytecodeGenerator->addInstruction(load);-
4160 } return;
executed 71729 times by 31 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • 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
  • tst_qquickrepeater
  • ...
71729
4161 case QmlScopeObject: {
executed 6799 times by 104 tests: case QmlScopeObject:
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • ...
6799
4162 Instruction::LoadScopeObjectProperty load;-
4163 load.base = qmlBase;-
4164 load.propertyIndex = qmlCoreIndex;-
4165 load.captureRequired = capturePolicy == CaptureAtRuntime;-
4166 codegen->bytecodeGenerator->addInstruction(load);-
4167 if (capturePolicy == CaptureAheadOfTime)
capturePolicy ...ureAheadOfTimeDescription
TRUEnever evaluated
FALSEevaluated 6799 times by 104 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • ...
0-6799
4168 codegen->_context->scopeObjectPropertyDependencies.insert(qmlCoreIndex, qmlNotifyIndex);
never executed: codegen->_context->scopeObjectPropertyDependencies.insert(qmlCoreIndex, qmlNotifyIndex);
0
4169 } return;
executed 6799 times by 104 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltimer
  • ...
6799
4170 case QmlContextObject: {
never executed: case QmlContextObject:
0
4171 Instruction::LoadContextObjectProperty load;-
4172 load.base = qmlBase;-
4173 load.propertyIndex = qmlCoreIndex;-
4174 load.captureRequired = capturePolicy == CaptureAtRuntime;-
4175 codegen->bytecodeGenerator->addInstruction(load);-
4176 if (capturePolicy == CaptureAheadOfTime)
capturePolicy ...ureAheadOfTimeDescription
TRUEnever evaluated
FALSEnever evaluated
0
4177 codegen->_context->contextObjectPropertyDependencies.insert(qmlCoreIndex, qmlNotifyIndex);
never executed: codegen->_context->contextObjectPropertyDependencies.insert(qmlCoreIndex, qmlNotifyIndex);
0
4178 } return;
never executed: return;
0
4179 case Invalid:
never executed: case Invalid:
0
4180 break;
never executed: break;
0
4181 }-
4182 Q_ASSERT(false);-
4183 Q_UNREACHABLE();-
4184}
never executed: end of block
0
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0