Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | namespace QV4 { | - |
5 | | - |
6 | namespace Compiler { | - |
7 | | - |
8 | struct ControlFlow; | - |
9 | | - |
10 | enum class ContextType { | - |
11 | Global, | - |
12 | Function, | - |
13 | Eval, | - |
14 | Binding, | - |
15 | | - |
16 | | - |
17 | | - |
18 | Block | - |
19 | }; | - |
20 | | - |
21 | struct Context; | - |
22 | | - |
23 | struct Class { | - |
24 | struct Method { | - |
25 | enum Type { | - |
26 | Regular, | - |
27 | Getter, | - |
28 | Setter | - |
29 | }; | - |
30 | uint nameIndex; | - |
31 | Type type; | - |
32 | uint functionIndex; | - |
33 | }; | - |
34 | | - |
35 | uint nameIndex; | - |
36 | uint constructorIndex = | - |
37 | (0x7fffffff * 2U + 1U) | - |
38 | ; | - |
39 | QVector<Method> staticMethods; | - |
40 | QVector<Method> methods; | - |
41 | }; | - |
42 | | - |
43 | struct Module { | - |
44 | Module(bool debugMode) | - |
45 | : debugMode(debugMode) | - |
46 | {}executed 2818458 times by 31 tests: end of block 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
- ...
| 2818458 |
47 | ~Module() { | - |
48 | qDeleteAll(contextMap); | - |
49 | }executed 2867507 times by 147 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
- ...
| 2867507 |
50 | | - |
51 | Context *newContext(QQmlJS::AST::Node *node, Context *parent, ContextType compilationMode); | - |
52 | | - |
53 | QHash<QQmlJS::AST::Node *, Context *> contextMap; | - |
54 | QList<Context *> functions; | - |
55 | QList<Context *> blocks; | - |
56 | QVector<Class> classes; | - |
57 | Context *rootContext; | - |
58 | QString fileName; | - |
59 | QString finalUrl; | - |
60 | QDateTime sourceTimeStamp; | - |
61 | uint unitFlags = 0; | - |
62 | bool debugMode = false; | - |
63 | }; | - |
64 | | - |
65 | | - |
66 | struct Context { | - |
67 | Context *parent; | - |
68 | QString name; | - |
69 | int line = 0; | - |
70 | int column = 0; | - |
71 | int registerCountInFunction = 0; | - |
72 | int functionIndex = -1; | - |
73 | int blockIndex = -1; | - |
74 | | - |
75 | enum MemberType { | - |
76 | UndefinedMember, | - |
77 | ThisFunctionName, | - |
78 | VariableDefinition, | - |
79 | VariableDeclaration, | - |
80 | FunctionDefinition | - |
81 | }; | - |
82 | | - |
83 | struct Member { | - |
84 | MemberType type = UndefinedMember; | - |
85 | int index = -1; | - |
86 | QQmlJS::AST::VariableScope scope = QQmlJS::AST::VariableScope::Var; | - |
87 | mutable bool canEscape = false; | - |
88 | QQmlJS::AST::FunctionExpression *function = nullptr; | - |
89 | | - |
90 | bool isLexicallyScoped() const { returnexecuted 1050864 times by 20 tests: return this->scope != QQmlJS::AST::VariableScope::Var; Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlincubator
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
- tst_qquicklayouts
- tst_qquickvisualdatamodel
- tst_qquickworkerscript
- tst_quicktestmainwithsetup
- tst_qv4assembler
- tst_qv4debugger
- tst_testfiltering
this->scope != QQmlJS::AST::VariableScope::Var;executed 1050864 times by 20 tests: return this->scope != QQmlJS::AST::VariableScope::Var; Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlincubator
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
- tst_qquicklayouts
- tst_qquickvisualdatamodel
- tst_qquickworkerscript
- tst_quicktestmainwithsetup
- tst_qv4assembler
- tst_qv4debugger
- tst_testfiltering
} | 1050864 |
91 | }; | - |
92 | typedef QMap<QString, Member> MemberMap; | - |
93 | | - |
94 | MemberMap members; | - |
95 | QSet<QString> usedVariables; | - |
96 | QQmlJS::AST::FormalParameterList *formals = nullptr; | - |
97 | QStringList arguments; | - |
98 | QStringList locals; | - |
99 | QVector<Context *> nestedContexts; | - |
100 | | - |
101 | ControlFlow *controlFlow = nullptr; | - |
102 | QByteArray code; | - |
103 | QVector<CompiledData::CodeOffsetToLine> lineNumberMapping; | - |
104 | | - |
105 | int nRegisters = 0; | - |
106 | int registerOffset = -1; | - |
107 | bool hasDirectEval = false; | - |
108 | bool allVarsEscape = false; | - |
109 | bool hasNestedFunctions = false; | - |
110 | bool isStrict = false; | - |
111 | bool isArrowFunction = false; | - |
112 | bool isGenerator = false; | - |
113 | bool usesThis = false; | - |
114 | bool hasTry = false; | - |
115 | bool returnsClosure = false; | - |
116 | mutable bool argumentsCanEscape = false; | - |
117 | bool requiresExecutionContext = false; | - |
118 | bool isWithBlock = false; | - |
119 | bool isCatchBlock = false; | - |
120 | QString caughtVariable; | - |
121 | | - |
122 | enum UsesArgumentsObject { | - |
123 | ArgumentsObjectUnknown, | - |
124 | ArgumentsObjectNotUsed, | - |
125 | ArgumentsObjectUsed | - |
126 | }; | - |
127 | | - |
128 | UsesArgumentsObject usesArgumentsObject = ArgumentsObjectUnknown; | - |
129 | | - |
130 | ContextType contextType; | - |
131 | | - |
132 | template <typename T> | - |
133 | class SmallSet: public QVarLengthArray<T, 8> | - |
134 | { | - |
135 | public: | - |
136 | void insert(int value) | - |
137 | { | - |
138 | for (auto it : *this) { | - |
139 | if (it == valueTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
140 | return; never executed: return; | 0 |
141 | } never executed: end of block | 0 |
142 | this->append(value); | - |
143 | } never executed: end of block | 0 |
144 | }; | - |
145 | | - |
146 | | - |
147 | struct KeyValuePair | - |
148 | { | - |
149 | quint32 _key = 0; | - |
150 | quint32 _value = 0; | - |
151 | | - |
152 | KeyValuePair() {} | - |
153 | KeyValuePair(quint32 key, quint32 value): _key(key), _value(value) {} never executed: end of block | 0 |
154 | | - |
155 | quint32 key() const { return never executed: return _key; _key;never executed: return _key; } | 0 |
156 | quint32 value() const { return never executed: return _value; _value;never executed: return _value; } | 0 |
157 | }; | - |
158 | | - |
159 | class PropertyDependencyMap: public QVarLengthArray<KeyValuePair, 8> | - |
160 | { | - |
161 | public: | - |
162 | void insert(quint32 key, quint32 value) | - |
163 | { | - |
164 | for (auto it = begin(), eit = end(); it != eitTRUE | never evaluated | FALSE | never evaluated |
; ++it) { | 0 |
165 | if (it->_key == keyTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
166 | it->_value = value; | - |
167 | return; never executed: return; | 0 |
168 | } | - |
169 | } never executed: end of block | 0 |
170 | append(KeyValuePair(key, value)); | - |
171 | } never executed: end of block | 0 |
172 | }; | - |
173 | | - |
174 | | - |
175 | SmallSet<int> idObjectDependencies; | - |
176 | PropertyDependencyMap contextObjectPropertyDependencies; | - |
177 | PropertyDependencyMap scopeObjectPropertyDependencies; | - |
178 | | - |
179 | Context(Context *parent, ContextType type) | - |
180 | : parent(parent) | - |
181 | , contextType(type) | - |
182 | { | - |
183 | if (parentTRUE | evaluated 2906938 times by 139 testsEvaluated 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
- ...
| FALSE | evaluated 2334583 times by 140 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_ecmascripttests
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qjsvalueiterator
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- ...
|
&& parent->isStrictTRUE | evaluated 1394696 times by 3 testsEvaluated by:- tst_ecmascripttests
- tst_qjsengine
- tst_qv4assembler
| FALSE | evaluated 1517684 times by 138 testsEvaluated 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
- ...
|
) | 1394696-2906938 |
184 | isStrict = true;executed 1394637 times by 3 tests: isStrict = true; Executed by:- tst_ecmascripttests
- tst_qjsengine
- tst_qv4assembler
| 1394637 |
185 | }executed 5242758 times by 140 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
- ...
| 5242758 |
186 | | - |
187 | int findArgument(const QString &name) | - |
188 | { | - |
189 | | - |
190 | for (int i = arguments.size() - 1; i >= 0TRUE | evaluated 18472080 times by 58 testsEvaluated 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
- ...
| FALSE | evaluated 7153945 times by 136 testsEvaluated 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
- ...
|
; --i) { | 7153945-18472080 |
191 | if (arguments.at(i) == nameTRUE | evaluated 6944239 times by 58 testsEvaluated 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
- ...
| FALSE | evaluated 11543232 times by 57 testsEvaluated 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_qqmlitemmodels
- tst_qqmllistmodelworkerscript
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlprofilerservice
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlsqldatabase
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickaccessible
- tst_qquickanimatedsprite
- ...
|
) | 6944239-11543232 |
192 | returnexecuted 6922607 times by 58 tests: return i; 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
- ...
i;executed 6922607 times by 58 tests: return i; 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
- ...
| 6922607 |
193 | }executed 11546476 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_qqmlitemmodels
- tst_qqmllistmodelworkerscript
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlprofilerservice
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlsqldatabase
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickaccessible
- tst_qquickanimatedsprite
- ...
| 11546476 |
194 | returnexecuted 7162698 times by 136 tests: return -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_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
- ...
-1;executed 7162698 times by 136 tests: return -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_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
- ...
| 7162698 |
195 | } | - |
196 | | - |
197 | Member findMember(const QString &name) const | - |
198 | { | - |
199 | MemberMap::const_iterator it = members.find(name); | - |
200 | if (it == members.end()TRUE | evaluated 16822718 times by 138 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_ecmascripttests
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qjsvalueiterator
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- ...
| FALSE | evaluated 4196572 times by 52 testsEvaluated 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_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsqldatabase
- ...
|
) | 4196572-16822718 |
201 | returnexecuted 16827897 times by 138 tests: return Member(); 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
- ...
Member();executed 16827897 times by 138 tests: return Member(); 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
- ...
| 16827897 |
202 | ((it->index != -1 || !parent) ? static_cast<void>(0) : qt_assert("it->index != -1 || !parent", __FILE__, 259)); | - |
203 | returnexecuted 4197522 times by 52 tests: return (*it); 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_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsqldatabase
- ...
(*it);executed 4197522 times by 52 tests: return (*it); 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_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmlsqldatabase
- ...
| 4197522 |
204 | } | - |
205 | | - |
206 | bool memberInfo(const QString &name, const Member **m) const | - |
207 | { | - |
208 | ((m) ? static_cast<void>(0) : qt_assert("m", __FILE__, 265)); | - |
209 | MemberMap::const_iterator it = members.find(name); | - |
210 | if (it == members.end()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
211 | *m = nullptr; | - |
212 | return never executed: return false; false;never executed: return false; | 0 |
213 | } | - |
214 | *m = &(*it); | - |
215 | return never executed: return true; true;never executed: return true; | 0 |
216 | } | - |
217 | | - |
218 | bool requiresImplicitReturnValue() const { | - |
219 | returnexecuted 3398543 times by 140 tests: return contextType == ContextType::Binding || contextType == ContextType::Eval || contextType == ContextType::Global; 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
- ...
contextType == ContextType::Binding ||executed 3398543 times by 140 tests: return contextType == ContextType::Binding || contextType == ContextType::Eval || contextType == ContextType::Global; 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
- ...
| 3398543 |
220 | contextType == ContextType::Eval ||executed 3398543 times by 140 tests: return contextType == ContextType::Binding || contextType == ContextType::Eval || contextType == ContextType::Global; 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
- ...
| 3398543 |
221 | contextType == ContextType::Global;executed 3398543 times by 140 tests: return contextType == ContextType::Binding || contextType == ContextType::Eval || contextType == ContextType::Global; 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
- ...
| 3398543 |
222 | } | - |
223 | | - |
224 | void addUsedVariable(const QString &name) { | - |
225 | usedVariables.insert(name); | - |
226 | } never executed: end of block | 0 |
227 | | - |
228 | bool addLocalVar(const QString &name, MemberType contextType, QQmlJS::AST::VariableScope scope, QQmlJS::AST::FunctionExpression *function = nullptr); | - |
229 | | - |
230 | struct ResolvedName { | - |
231 | enum Type { | - |
232 | Unresolved, | - |
233 | Global, | - |
234 | Local, | - |
235 | Stack | - |
236 | }; | - |
237 | Type type = Unresolved; | - |
238 | bool isArgOrEval = false; | - |
239 | bool isConst = false; | - |
240 | int scope = -1; | - |
241 | int index = -1; | - |
242 | bool isValid() const { return never executed: return type != Unresolved; type != Unresolved;never executed: return type != Unresolved; } | 0 |
243 | }; | - |
244 | ResolvedName resolveName(const QString &name); | - |
245 | void emitBlockHeader(Compiler::Codegen *codegen); | - |
246 | void emitBlockFooter(Compiler::Codegen *codegen); | - |
247 | | - |
248 | void setupFunctionIndices(Moth::BytecodeGenerator *bytecodeGenerator); | - |
249 | }; | - |
250 | | - |
251 | | - |
252 | } } | - |
253 | | - |
254 | | - |
| | |