OpenCoverage

qv4context.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4context.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4using namespace QV4;-
5-
6const QV4::VTable ExecutionContext::static_vtbl = { 0, (sizeof(ExecutionContext::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(ExecutionContext::Data) + (ExecutionContext::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(ExecutionContext::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), ExecutionContext::IsExecutionContext, ExecutionContext::IsString, ExecutionContext::IsObject, ExecutionContext::IsFunctionObject, ExecutionContext::IsErrorObject, ExecutionContext::IsArrayData, ExecutionContext::IsStringOrSymbol, ExecutionContext::MyType, { 0, 0, 0, 0 }, "ExecutionContext", ExecutionContext::virtualDestroy, ExecutionContext::Data::markObjects, ExecutionContext::virtualIsEqualTo, ExecutionContext::virtualGet, ExecutionContext::virtualPut, ExecutionContext::virtualDeleteProperty, ExecutionContext::virtualHasProperty, ExecutionContext::virtualGetOwnProperty, ExecutionContext::virtualDefineOwnProperty, ExecutionContext::virtualIsExtensible, ExecutionContext::virtualPreventExtensions, ExecutionContext::virtualGetPrototypeOf, ExecutionContext::virtualSetPrototypeOf, ExecutionContext::virtualGetLength, ExecutionContext::virtualAdvanceIterator, ExecutionContext::virtualInstanceOf, ExecutionContext::virtualCall, ExecutionContext::virtualCallAsConstructor, };-
7const QV4::VTable CallContext::static_vtbl = { 0, (sizeof(CallContext::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(CallContext::Data) + (CallContext::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(CallContext::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), CallContext::IsExecutionContext, CallContext::IsString, CallContext::IsObject, CallContext::IsFunctionObject, CallContext::IsErrorObject, CallContext::IsArrayData, CallContext::IsStringOrSymbol, CallContext::MyType, { 0, 0, 0, 0 }, "CallContext", CallContext::virtualDestroy, CallContext::Data::markObjects, CallContext::virtualIsEqualTo, CallContext::virtualGet, CallContext::virtualPut, CallContext::virtualDeleteProperty, CallContext::virtualHasProperty, CallContext::virtualGetOwnProperty, CallContext::virtualDefineOwnProperty, CallContext::virtualIsExtensible, CallContext::virtualPreventExtensions, CallContext::virtualGetPrototypeOf, CallContext::virtualSetPrototypeOf, CallContext::virtualGetLength, CallContext::virtualAdvanceIterator, CallContext::virtualInstanceOf, CallContext::virtualCall, CallContext::virtualCallAsConstructor, };-
8-
9Heap::CallContext *ExecutionContext::newBlockContext(CppStackFrame *frame, int blockIndex)-
10{-
11 Function *function = frame->v4Function;-
12-
13 Heap::InternalClass *ic = function->compilationUnit->runtimeBlocks.at(blockIndex);-
14 uint nLocals = ic->size;-
15 size_t requiredMemory = sizeof(CallContext::Data) - sizeof(Value) + sizeof(Value) * nLocals;-
16-
17 ExecutionEngine *v4 = function->internalClass->engine;-
18 Heap::CallContext *c = v4->memoryManager->allocManaged<CallContext>(requiredMemory, ic);-
19 c->init();-
20 c->type = Heap::ExecutionContext::Type_BlockContext;-
21-
22 Heap::ExecutionContext *outer = static_cast<Heap::ExecutionContext *>(frame->context()->m());-
23 c->outer.set(v4, outer);-
24 c->function.set(v4, static_cast<Heap::FunctionObject *>(frame->jsFrame->function.m()));-
25-
26 c->locals.size = nLocals;-
27 c->locals.alloc = nLocals;-
28-
29 return
executed 4346263 times by 13 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
c;
executed 4346263 times by 13 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
4346263
30}-
31-
32Heap::CallContext *ExecutionContext::cloneBlockContext(Heap::CallContext *context)-
33{-
34 uint nLocals = context->locals.alloc;-
35 size_t requiredMemory = sizeof(CallContext::Data) - sizeof(Value) + sizeof(Value) * nLocals;-
36-
37 ExecutionEngine *v4 = context->internalClass->engine;-
38 Heap::CallContext *c = v4->memoryManager->allocManaged<CallContext>(requiredMemory, context->internalClass);-
39 memcpy(c, context, requiredMemory);-
40-
41 return
executed 194 times by 2 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qv4debugger
c;
executed 194 times by 2 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qv4debugger
194
42-
43}-
44-
45Heap::CallContext *ExecutionContext::newCallContext(CppStackFrame *frame)-
46{-
47 Function *function = frame->v4Function;-
48 Heap::ExecutionContext *outer = static_cast<Heap::ExecutionContext *>(frame->context()->m());-
49-
50 uint nFormals = qMax(static_cast<uint>(frame->originalArgumentsCount), function->nFormals);-
51 uint localsAndFormals = function->compiledFunction->nLocals + nFormals;-
52 size_t requiredMemory = sizeof(CallContext::Data) - sizeof(Value) + sizeof(Value) * (localsAndFormals);-
53-
54 ExecutionEngine *v4 = outer->internalClass->engine;-
55 Heap::CallContext *c = v4->memoryManager->allocManaged<CallContext>(requiredMemory, function->internalClass);-
56 c->init();-
57-
58 c->outer.set(v4, outer);-
59 c->function.set(v4, static_cast<Heap::FunctionObject *>(frame->jsFrame->function.m()));-
60-
61 const CompiledData::Function *compiledFunction = function->compiledFunction;-
62 uint nLocals = compiledFunction->nLocals;-
63 c->locals.size = nLocals;-
64 c->locals.alloc = localsAndFormals;-
65-
66 ((Primitive::undefinedValue().asReturnedValue() == 0) ? static_cast<void>(0) : qt_assert("Primitive::undefinedValue().asReturnedValue() == 0", __FILE__, 115));-
67-
68 Value *args = c->locals.values + nLocals;-
69 ::memcpy(args, frame->originalArguments, frame->originalArgumentsCount * sizeof(Value));-
70 c->nArgs = frame->originalArgumentsCount;-
71 for (uint i = frame->originalArgumentsCount; i < function->nFormals
i < function->nFormalsDescription
TRUEevaluated 2412 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
FALSEevaluated 17898 times by 27 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • ...
; ++i)
2412-17898
72 args[i] = Encode::undefined();
executed 2411 times by 8 tests: args[i] = Encode::undefined();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
2411
73-
74 return
executed 17894 times by 27 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • ...
c;
executed 17894 times by 27 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • ...
17894
75}-
76-
77Heap::ExecutionContext *ExecutionContext::newWithContext(Heap::Object *with)-
78{-
79 Heap::ExecutionContext *c = engine()->memoryManager->alloc<ExecutionContext>(Heap::ExecutionContext::Type_WithContext);-
80 c->outer.set(engine(), d());-
81 c->activation.set(engine(), with);-
82-
83 return
executed 657 times by 4 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4debugger
c;
executed 657 times by 4 tests: return c;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qv4debugger
657
84}-
85-
86Heap::ExecutionContext *ExecutionContext::newCatchContext(CppStackFrame *frame, int blockIndex, Heap::String *exceptionVarName)-
87{-
88 Scope scope(frame->context());-
89 ScopedString name(scope, exceptionVarName);-
90 ScopedValue val(scope, scope.engine->catchException(nullptr));-
91 ScopedContext ctx(scope, newBlockContext(frame, blockIndex));-
92 ctx->setProperty(name, val);-
93 return
executed 4372343 times by 13 tests: return ctx->d();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
ctx->d();
executed 4372343 times by 13 tests: return ctx->d();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
4372343
94}-
95-
96void ExecutionContext::createMutableBinding(String *name, bool deletable)-
97{-
98 Scope scope(this);-
99-
100-
101 ScopedObject activation(scope);-
102 ScopedContext ctx(scope, this);-
103 while (ctx
ctxDescription
TRUEevaluated 542086 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
FALSEevaluated 517053 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
) {
517053-542086
104 switch (ctx->d()->type) {-
105 case
executed 157 times by 1 test: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
Heap::ExecutionContext::Type_CallContext:
executed 157 times by 1 test: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
157
106 if (!activation
!activationDescription
TRUEevaluated 129 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
28-129
107 Heap::CallContext *c = static_cast<Heap::CallContext *>(ctx->d());-
108 if (!c->activation
!c->activationDescription
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
2-127
109 c->activation.set(scope.engine, scope.engine->newObject());
executed 127 times by 1 test: c->activation.set(scope.engine, scope.engine->newObject());
Executed by:
  • tst_ecmascripttests
127
110 activation = c->activation;-
111 }
executed 130 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
130
112 break;
executed 158 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
158
113 case
executed 1484 times by 15 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
Heap::ExecutionContext::Type_QmlContext:
executed 1484 times by 15 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
{
1484
114-
115-
116 activation = ctx->d()->activation;-
117 break;
executed 1484 times by 15 tests: break;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
1484
118 }-
119 case
executed 516251 times by 21 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
Heap::ExecutionContext::Type_GlobalContext:
executed 516251 times by 21 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
{
516251
120 ((scope.engine->globalObject->d() == ctx->d()->activation) ? static_cast<void>(0) : qt_assert("scope.engine->globalObject->d() == ctx->d()->activation", __FILE__, 169));-
121 if (!activation
!activationDescription
TRUEevaluated 514605 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
FALSEevaluated 1614 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_testfiltering
)
1614-514605
122 activation = ctx->d()->activation;
executed 514575 times by 7 tests: activation = ctx->d()->activation;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
514575
123 break;
executed 516465 times by 21 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
516465
124 }-
125 case
executed 24308 times by 2 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
Heap::ExecutionContext::Type_BlockContext:
executed 24308 times by 2 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
24308
126-
127 default
never executed: default:
:
never executed: default:
0
128 break;
executed 24304 times by 2 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
24304
129 }-
130 ctx = ctx->d()->outer;-
131 }
executed 543040 times by 21 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
543040
132-
133 PropertyKey id = name->toPropertyKey();-
134 if (activation->getOwnProperty(id) != Attr_Invalid
activation->ge...= Attr_InvalidDescription
TRUEevaluated 384 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 517358 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
)
384-517358
135 return;
executed 384 times by 2 tests: return;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
384
136 ScopedProperty desc(scope);-
137 PropertyAttributes attrs(Attr_Data);-
138 attrs.setConfigurable(deletable);-
139 if (!activation->defineOwnProperty(id, desc, attrs)
!activation->d..., desc, attrs)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 517187 times by 21 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
)
4-517187
140 scope.engine->throwTypeError();
executed 4 times by 1 test: scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
4
141}
executed 517200 times by 21 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4assembler
  • tst_qv4debugger
  • tst_testfiltering
517200
142-
143bool ExecutionContext::deleteProperty(String *name)-
144{-
145 PropertyKey id = name->toPropertyKey();-
146-
147 Heap::ExecutionContext *ctx = d();-
148 for (; ctx
ctxDescription
TRUEevaluated 144 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_ecmascripttests
; ctx = ctx->outer) {
10-144
149 switch (ctx->type) {-
150 case
never executed: case Heap::ExecutionContext::Type_BlockContext:
Heap::ExecutionContext::Type_BlockContext:
never executed: case Heap::ExecutionContext::Type_BlockContext:
0
151 case
executed 8 times by 1 test: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
Heap::ExecutionContext::Type_CallContext:
executed 8 times by 1 test: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
{
8
152 Heap::CallContext *c = static_cast<Heap::CallContext *>(ctx);-
153 uint index = c->internalClass->find(id);-
154 if (index <
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
4
155 (0x7fffffff * 2U + 1U)
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
4
156 )-
157-
158 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_ecmascripttests
4
159 (void)0;-
160 }-
161 case
executed 75 times by 1 test: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
Heap::ExecutionContext::Type_WithContext:
executed 75 times by 1 test: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
code before this statement executed 4 times by 1 test: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
4-75
162 case
executed 61 times by 2 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
Heap::ExecutionContext::Type_GlobalContext:
executed 61 times by 2 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
{
61
163 if (ctx->activation
ctx->activationDescription
TRUEevaluated 141 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEnever evaluated
) {
0-141
164 Scope scope(this);-
165 ScopedObject object(scope, ctx->activation);-
166 if (object && object->hasProperty(name->toPropertyKey())
object->hasPro...PropertyKey())Description
TRUEevaluated 129 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
12-129
167 return
executed 128 times by 2 tests: return object->deleteProperty(name->toPropertyKey());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
object->deleteProperty(name->toPropertyKey());
executed 128 times by 2 tests: return object->deleteProperty(name->toPropertyKey());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
128
168 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
12
169 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_ecmascripttests
12
170 }-
171 case
never executed: case Heap::ExecutionContext::Type_QmlContext:
Heap::ExecutionContext::Type_QmlContext:
never executed: case Heap::ExecutionContext::Type_QmlContext:
0
172-
173 break;
never executed: break;
0
174 }-
175 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
12
176-
177 return
executed 10 times by 1 test: return !engine()->currentStackFrame->v4Function->isStrict();
Executed by:
  • tst_ecmascripttests
!engine()->currentStackFrame->v4Function->isStrict();
executed 10 times by 1 test: return !engine()->currentStackFrame->v4Function->isStrict();
Executed by:
  • tst_ecmascripttests
10
178}-
179-
180ExecutionContext::Error ExecutionContext::setProperty(String *name, const Value &value)-
181{-
182 PropertyKey id = name->toPropertyKey();-
183-
184 QV4::ExecutionEngine *v4 = engine();-
185 Heap::ExecutionContext *ctx = d();-
186-
187 for (; ctx
ctxDescription
TRUEevaluated 77414331 times by 45 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • ...
FALSEevaluated 788 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
; ctx = ctx->outer) {
788-77414331
188 switch (ctx->type) {-
189 case
executed 1531 times by 2 tests: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
Heap::ExecutionContext::Type_WithContext:
executed 1531 times by 2 tests: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
{
1531
190 Scope scope(v4);-
191 ScopedObject w(scope, ctx->activation);-
192 if (w->hasProperty(name->toPropertyKey())
w->hasProperty...PropertyKey())Description
TRUEevaluated 320 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
FALSEevaluated 1209 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
) {
320-1209
193 if (!w->put(name, value)
!w->put(name, value)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 318 times by 2 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
)
2-318
194 return
executed 2 times by 1 test: return TypeError;
Executed by:
  • tst_ecmascripttests
TypeError;
executed 2 times by 1 test: return TypeError;
Executed by:
  • tst_ecmascripttests
2
195 return
executed 318 times by 2 tests: return NoError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
NoError;
executed 318 times by 2 tests: return NoError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
318
196 }-
197 break;
executed 1207 times by 2 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
1207
198 }-
199 case
executed 4415313 times by 13 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
Heap::ExecutionContext::Type_BlockContext:
executed 4415313 times by 13 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
4415313
200 case
executed 1618 times by 8 tests: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
Heap::ExecutionContext::Type_CallContext:
executed 1618 times by 8 tests: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
{
1618
201 Heap::CallContext *c = static_cast<Heap::CallContext *>(ctx);-
202 uint index = c->internalClass->find(id);-
203 if (index <
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 4361107 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
FALSEevaluated 30452 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qv4debugger
30452-4361107
204 (0x7fffffff * 2U + 1U)
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 4361107 times by 13 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
FALSEevaluated 30452 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qv4debugger
30452-4361107
205 ) {-
206 static_cast<Heap::CallContext *>(c)->locals.set(v4, index, value);-
207 return
executed 4373543 times by 13 tests: return NoError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
NoError;
executed 4373543 times by 13 tests: return NoError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickworkerscript
  • tst_qtqmlmodules
  • tst_qv4debugger
4373543
208 }-
209 }-
210 (void)0;-
211 case
executed 73171035 times by 7 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
Heap::ExecutionContext::Type_GlobalContext:
executed 73171035 times by 7 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
code before this statement executed 30443 times by 9 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qv4debugger
30443-73171035
212 if (ctx->activation
ctx->activationDescription
TRUEevaluated 73043228 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
FALSEevaluated 30227 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qv4debugger
) {
30227-73043228
213 uint member = ctx->activation->internalClass->find(id);-
214 if (member <
member < (0x7f...fff * 2U + 1U)Description
TRUEevaluated 73174503 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
FALSEevaluated 870 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
870-73174503
215 (0x7fffffff * 2U + 1U)
member < (0x7f...fff * 2U + 1U)Description
TRUEevaluated 73174503 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
FALSEevaluated 870 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
870-73174503
216 ) {-
217 Scope scope(v4);-
218 ScopedObject a(scope, ctx->activation);-
219 if (!a->putValue(member, value)
!a->putValue(member, value)Description
TRUEevaluated 240 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 72948698 times by 7 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
)
240-72948698
220 return
executed 240 times by 1 test: return TypeError;
Executed by:
  • tst_ecmascripttests
TypeError;
executed 240 times by 1 test: return TypeError;
Executed by:
  • tst_ecmascripttests
240
221 return
executed 72956395 times by 7 tests: return NoError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
NoError;
executed 72956395 times by 7 tests: return NoError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qv4assembler
  • tst_qv4debugger
72956395
222 }-
223 }
executed 870 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
870
224 break;
executed 31118 times by 11 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qv4debugger
31118
225 case
executed 42756 times by 36 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
Heap::ExecutionContext::Type_QmlContext:
executed 42756 times by 36 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • ...
{
42756
226 Scope scope(v4);-
227 ScopedObject activation(scope, ctx->activation);-
228 if (!activation->put(name, value)
!activation->put(name, value)Description
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qquickworkerscript
FALSEevaluated 42742 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
)
14-42742
229 return
executed 14 times by 3 tests: return TypeError;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qquickworkerscript
TypeError;
executed 14 times by 3 tests: return TypeError;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qquickworkerscript
14
230 return
executed 42742 times by 35 tests: return NoError;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
NoError;
executed 42742 times by 35 tests: return NoError;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • ...
42742
231 }-
232 }-
233-
234 }
executed 32337 times by 11 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qv4debugger
32337
235-
236 return
executed 787 times by 3 tests: return RangeError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
RangeError;
executed 787 times by 3 tests: return RangeError;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
787
237}-
238-
239ReturnedValue ExecutionContext::getProperty(String *name)-
240{-
241 PropertyKey id = name->toPropertyKey();-
242-
243 Heap::ExecutionContext *ctx = d();-
244 for (; ctx
ctxDescription
TRUEevaluated 5539835 times by 89 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
FALSEevaluated 532 times by 14 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlqt
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qv4debugger
; ctx = ctx->outer) {
532-5539835
245 switch (ctx->type) {-
246 case
executed 1160 times by 8 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickitem2
  • tst_qv4debugger
Heap::ExecutionContext::Type_BlockContext:
executed 1160 times by 8 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickitem2
  • tst_qv4debugger
1160
247 case
executed 7349 times by 22 tests: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
Heap::ExecutionContext::Type_CallContext:
executed 7349 times by 22 tests: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
{
7349
248 Heap::CallContext *c = static_cast<Heap::CallContext *>(ctx);-
249-
250 uint index = c->internalClass->find(id);-
251 if (index <
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 2500 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qv4debugger
FALSEevaluated 6012 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
2500-6012
252 (0x7fffffff * 2U + 1U)
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 2500 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qv4debugger
FALSEevaluated 6012 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
2500-6012
253 )-
254 return
executed 2499 times by 6 tests: return c->locals[index].asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qv4debugger
c->locals[index].asReturnedValue();
executed 2499 times by 6 tests: return c->locals[index].asReturnedValue();
Executed by:
  • tst_ecmascripttests
  • tst_qmlcachegen
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qv4debugger
2499
255 (void)0;-
256 }-
257 case
executed 7588 times by 22 tests: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
Heap::ExecutionContext::Type_WithContext:
executed 7588 times by 22 tests: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
code before this statement executed 6012 times by 22 tests: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
6012-7588
258 case
executed 3149933 times by 21 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_qv4debugger
Heap::ExecutionContext::Type_GlobalContext:
executed 3149933 times by 21 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_qv4debugger
3149933
259 case
executed 2379820 times by 84 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
Heap::ExecutionContext::Type_QmlContext:
executed 2379820 times by 84 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlnotifier
  • tst_qqmlprofilerservice
  • ...
{
2379820
260 if (ctx->activation
ctx->activationDescription
TRUEevaluated 5531473 times by 89 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
FALSEevaluated 5876 times by 22 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
  • tst_quicktestmainwithsetup
  • tst_qv4debugger
) {
5876-5531473
261 Scope scope(this);-
262 ScopedObject activation(scope, ctx->activation);-
263 bool hasProperty = false;-
264 ReturnedValue v = activation->get(id, nullptr, &hasProperty);-
265 if (hasProperty
hasPropertyDescription
TRUEevaluated 5529962 times by 89 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
FALSEevaluated 1518 times by 16 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_qv4debugger
)
1518-5529962
266 return
executed 5529964 times by 89 tests: return v;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
v;
executed 5529964 times by 89 tests: return v;
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
5529964
267 }
executed 1518 times by 16 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_qv4debugger
1518
268 break;
executed 7393 times by 28 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • ...
7393
269 }-
270 }-
271 }
executed 7394 times by 28 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlxmlhttprequest
  • tst_qquickapplication
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • ...
7394
272 return
executed 532 times by 14 tests: return engine()->throwReferenceError(*name);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlqt
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qv4debugger
engine()->throwReferenceError(*name);
executed 532 times by 14 tests: return engine()->throwReferenceError(*name);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlqt
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_qv4debugger
532
273}-
274-
275ReturnedValue ExecutionContext::getPropertyAndBase(String *name, Value *base)-
276{-
277 base->setM(nullptr);-
278 PropertyKey id = name->toPropertyKey();-
279-
280 Heap::ExecutionContext *ctx = d();-
281 for (; ctx
ctxDescription
TRUEevaluated 1640850 times by 42 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • ...
FALSEevaluated 20 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
; ctx = ctx->outer) {
20-1640850
282 switch (ctx->type) {-
283 case
executed 224 times by 2 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
Heap::ExecutionContext::Type_BlockContext:
executed 224 times by 2 tests: case Heap::ExecutionContext::Type_BlockContext:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
224
284 case
executed 5475 times by 12 tests: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
Heap::ExecutionContext::Type_CallContext:
executed 5475 times by 12 tests: case Heap::ExecutionContext::Type_CallContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
{
5475
285 Heap::CallContext *c = static_cast<Heap::CallContext *>(ctx);-
286-
287 uint index = c->internalClass->find(id);-
288 if (index <
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 5696 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
2-5696
289 (0x7fffffff * 2U + 1U)
index < (0x7fffffff * 2U + 1U)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 5696 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
2-5696
290 )-
291 return
executed 2 times by 1 test: return c->locals[index].asReturnedValue();
Executed by:
  • tst_ecmascripttests
c->locals[index].asReturnedValue();
executed 2 times by 1 test: return c->locals[index].asReturnedValue();
Executed by:
  • tst_ecmascripttests
2
292 (void)0;-
293 }-
294 case
executed 1582175 times by 8 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickworkerscript
  • tst_qv4debugger
Heap::ExecutionContext::Type_GlobalContext:
executed 1582175 times by 8 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickworkerscript
  • tst_qv4debugger
code before this statement executed 5697 times by 12 tests: case Heap::ExecutionContext::Type_GlobalContext:
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
{
5697-1582175
295 if (ctx->activation
ctx->activationDescription
TRUEevaluated 1582539 times by 8 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickworkerscript
  • tst_qv4debugger
FALSEevaluated 5294 times by 12 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
) {
5294-1582539
296 Scope scope(this);-
297 ScopedObject activation(scope, ctx->activation);-
298 bool hasProperty = false;-
299 ReturnedValue v = activation->get(name, &hasProperty);-
300 if (hasProperty
hasPropertyDescription
TRUEevaluated 1582391 times by 5 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qv4debugger
FALSEevaluated 28 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
)
28-1582391
301 return
executed 1582183 times by 5 tests: return v;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qv4debugger
v;
executed 1582183 times by 5 tests: return v;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qv4debugger
1582183
302 }
executed 28 times by 6 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
28
303 break;
executed 5317 times by 13 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
5317
304 }-
305 case
executed 444 times by 2 tests: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
Heap::ExecutionContext::Type_WithContext:
executed 444 times by 2 tests: case Heap::ExecutionContext::Type_WithContext:
Executed by:
  • tst_ecmascripttests
  • tst_qqmlecmascript
444
306 case
executed 52216 times by 39 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem
  • ...
Heap::ExecutionContext::Type_QmlContext:
executed 52216 times by 39 tests: case Heap::ExecutionContext::Type_QmlContext:
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem
  • ...
{
52216
307 Scope scope(this);-
308 ScopedObject o(scope, ctx->activation);-
309 bool hasProperty = false;-
310 ReturnedValue v = o->get(id, nullptr, &hasProperty);-
311 if (hasProperty
hasPropertyDescription
TRUEevaluated 50562 times by 40 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • ...
FALSEevaluated 2099 times by 6 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickworkerscript
) {
2099-50562
312 base->setM(o->d());-
313 return
executed 50562 times by 40 tests: return v;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • ...
v;
executed 50562 times by 40 tests: return v;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltimer
  • tst_qqmltranslation
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickbehaviors
  • tst_qquickgridview
  • ...
50562
314 }-
315 break;
executed 2099 times by 6 tests: break;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickworkerscript
2099
316 }-
317 }-
318 }
executed 7417 times by 13 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlconsole
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickworkerscript
7417
319 return
executed 20 times by 6 tests: return engine()->throwReferenceError(*name);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
engine()->throwReferenceError(*name);
executed 20 times by 6 tests: return engine()->throwReferenceError(*name);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qquickworkerscript
20
320}-
321-
322void Heap::CallContext::setArg(uint index, Value v)-
323{-
324 locals.set(internalClass->engine, locals.size + index, v);-
325}
executed 67 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
67
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0