OpenCoverage

qv4mapobject.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4mapobject.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2using namespace QV4;-
3-
4const QV4::VTable MapCtor::static_vtbl = { (std::is_same<MapCtor::SuperClass, Object>::value) ? nullptr : &MapCtor::SuperClass::static_vtbl, (sizeof(MapCtor::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(MapCtor::Data) + (MapCtor::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(MapCtor::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), MapCtor::IsExecutionContext, MapCtor::IsString, MapCtor::IsObject, MapCtor::IsFunctionObject, MapCtor::IsErrorObject, MapCtor::IsArrayData, MapCtor::IsStringOrSymbol, MapCtor::MyType, { 0, 0, 0, 0 }, "MapCtor", MapCtor::virtualDestroy, MapCtor::Data::markObjects, MapCtor::virtualIsEqualTo, MapCtor::virtualGet, MapCtor::virtualPut, MapCtor::virtualDeleteProperty, MapCtor::virtualHasProperty, MapCtor::virtualGetOwnProperty, MapCtor::virtualDefineOwnProperty, MapCtor::virtualIsExtensible, MapCtor::virtualPreventExtensions, MapCtor::virtualGetPrototypeOf, MapCtor::virtualSetPrototypeOf, MapCtor::virtualGetLength, MapCtor::virtualAdvanceIterator, MapCtor::virtualInstanceOf, MapCtor::virtualCall, MapCtor::virtualCallAsConstructor, };-
5const QV4::VTable MapObject::static_vtbl = { (std::is_same<MapObject::SuperClass, Object>::value) ? nullptr : &MapObject::SuperClass::static_vtbl, (sizeof(MapObject::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(MapObject::Data) + (MapObject::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(MapObject::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), MapObject::IsExecutionContext, MapObject::IsString, MapObject::IsObject, MapObject::IsFunctionObject, MapObject::IsErrorObject, MapObject::IsArrayData, MapObject::IsStringOrSymbol, MapObject::MyType, { 0, 0, 0, 0 }, "MapObject", MapObject::virtualDestroy, MapObject::Data::markObjects, MapObject::virtualIsEqualTo, MapObject::virtualGet, MapObject::virtualPut, MapObject::virtualDeleteProperty, MapObject::virtualHasProperty, MapObject::virtualGetOwnProperty, MapObject::virtualDefineOwnProperty, MapObject::virtualIsExtensible, MapObject::virtualPreventExtensions, MapObject::virtualGetPrototypeOf, MapObject::virtualSetPrototypeOf, MapObject::virtualGetLength, MapObject::virtualAdvanceIterator, MapObject::virtualInstanceOf, MapObject::virtualCall, MapObject::virtualCallAsConstructor, };-
6-
7void Heap::MapCtor::init(QV4::ExecutionContext *scope)-
8{-
9 Heap::FunctionObject::init(scope, ([]() noexcept -> QString { enum { Size = sizeof(u"" "Map")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Map" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98564 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98564 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()));
98564
10}
executed 98827 times by 153 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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
98827
11-
12ReturnedValue MapCtor::virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *)-
13{-
14 Scope scope(f);-
15 Scoped<MapObject> a(scope, scope.engine->memoryManager->allocate<MapObject>());-
16-
17 if (argc > 0
argc > 0Description
TRUEevaluated 146 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 346 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
146-346
18 ScopedValue iterable(scope, argv[0]);-
19-
20-
21-
22-
23-
24-
25 Scoped<MapObject> mapObjectCheck(scope, argv[0]);-
26 Scoped<SetObject> setObjectCheck(scope, argv[0]);-
27-
28 if (!iterable->isUndefined()
!iterable->isUndefined()Description
TRUEevaluated 142 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& !iterable->isNull()
!iterable->isNull()Description
TRUEevaluated 138 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& (mapObjectCheck || setObjectCheck)) {
4-142
29 ScopedFunctionObject adder(scope, a->get(ScopedString(scope, scope.engine->newString(QString::fromLatin1("set")))));-
30 if (!adder
!adderDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
31 return
never executed: return scope.engine->throwTypeError();
scope.engine->throwTypeError();
never executed: return scope.engine->throwTypeError();
0
32 ScopedObject iter(scope, Runtime::method_getIterator(scope.engine, iterable, true));-
33-
34 do { if (scope.hasException()
scope.hasException()Description
TRUEnever evaluated
FALSEnever evaluated
) { return
never executed: return QV4::Encode::undefined();
QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
} } while (false);
0
35 if (!iter
!iterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
36 return
never executed: return a.asReturnedValue();
a.asReturnedValue();
never executed: return a.asReturnedValue();
0
37-
38 Value *nextValue = scope.alloc(1);-
39 ScopedValue done(scope);-
40 for(;;) {-
41 done = Runtime::method_iteratorNext(scope.engine, iter, nextValue);-
42 do { if (scope.hasException()
scope.hasException()Description
TRUEnever evaluated
FALSEnever evaluated
) { return
never executed: return QV4::Encode::undefined();
QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
} } while (false);
0
43 if (done->toBoolean()
done->toBoolean()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
44 return
never executed: return a.asReturnedValue();
a.asReturnedValue();
never executed: return a.asReturnedValue();
0
45-
46 adder->call(a, nextValue, 1);-
47 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
48 ScopedValue falsey(scope, Encode(false));-
49 return
never executed: return Runtime::method_iteratorClose(scope.engine, iter, falsey);
Runtime::method_iteratorClose(scope.engine, iter, falsey);
never executed: return Runtime::method_iteratorClose(scope.engine, iter, falsey);
0
50 }-
51 }
never executed: end of block
0
52 }
never executed: end of block
0
53 }
executed 146 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
146
54 return
executed 492 times by 1 test: return a.asReturnedValue();
Executed by:
  • tst_ecmascripttests
a.asReturnedValue();
executed 492 times by 1 test: return a.asReturnedValue();
Executed by:
  • tst_ecmascripttests
492
55}-
56-
57ReturnedValue MapCtor::virtualCall(const FunctionObject *f, const Value *, const Value *, int)-
58{-
59 Scope scope(f);-
60 return
executed 8 times by 1 test: return scope.engine->throwTypeError(QString::fromLatin1("Map requires new"));
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError(QString::fromLatin1("Map requires new"));
executed 8 times by 1 test: return scope.engine->throwTypeError(QString::fromLatin1("Map requires new"));
Executed by:
  • tst_ecmascripttests
8
61}-
62-
63void MapPrototype::init(ExecutionEngine *engine, Object *ctor)-
64{-
65 Scope scope(engine);-
66 ScopedObject o(scope);-
67 ctor->defineReadonlyConfigurableProperty(engine->id_length(), Primitive::fromInt32(0));-
68 ctor->defineReadonlyProperty(engine->id_prototype(), (o = this));-
69 ctor->addSymbolSpecies();-
70 defineDefaultProperty(engine->id_constructor(), (o = ctor));-
71-
72 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "clear")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "clear" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98918 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98918 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_clear, 0);
98918
73 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "delete")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "delete" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 99001 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 99001 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_delete, 1);
99001
74 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "forEach")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "forEach" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 99100 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 99100 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_forEach, 1);
99100
75 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "get")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "get" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98591 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98591 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_get, 1);
98591
76 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "has")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "has" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98947 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98947 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_has, 1);
98947
77 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "keys")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "keys" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98979 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98979 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_keys, 0);
98979
78 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "set")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "set" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98922 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98922 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_set, 0);
98922
79 defineAccessorProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "size")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "size" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98956 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98956 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_get_size, nullptr);
98956
80 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "values")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "values" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98569 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98569 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), method_values, 0);
98569
81-
82-
83 ScopedString valString(scope, scope.engine->newIdentifier(([]() noexcept -> QString { enum { Size = sizeof(u"" "entries")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "entries" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98859 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98859 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}())));
98859
84 ScopedFunctionObject entriesFn(scope, FunctionObject::createBuiltinFunction(engine, valString, MapPrototype::method_entries, 0));-
85 defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "entries")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "entries" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98760 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
qstring_literal_temp;
executed 98760 times by 153 tests: return qstring_literal_temp;
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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}()), entriesFn);
98760
86 defineDefaultProperty(engine->symbol_iterator(), entriesFn);-
87-
88 ScopedString val(scope, engine->newString(QLatin1String("Map")));-
89 defineReadonlyConfigurableProperty(engine->symbol_toStringTag(), val);-
90}
executed 99047 times by 153 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_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
99047
91-
92void Heap::MapObject::init()-
93{-
94 Object::init();-
95 esTable = new ESTable();-
96}
executed 492 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
492
97-
98void Heap::MapObject::destroy()-
99{-
100 delete esTable;-
101 esTable = 0;-
102}
executed 494 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
494
103-
104void Heap::MapObject::markObjects(Heap::Base *that, MarkStack *markStack)-
105{-
106 MapObject *m = static_cast<MapObject *>(that);-
107 m->esTable->markObjects(markStack);-
108 Object::markObjects(that, markStack);-
109}
never executed: end of block
0
110-
111ReturnedValue MapPrototype::method_clear(const FunctionObject *b, const Value *thisObject, const Value *, int)-
112{-
113 Scope scope(b);-
114 Scoped<MapObject> that(scope, thisObject);-
115 if (!that
!thatDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
36
116 return
executed 36 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 36 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
36
117-
118 that->d()->esTable->clear();-
119 return
executed 36 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 36 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
36
120}-
121-
122ReturnedValue MapPrototype::method_delete(const FunctionObject *b, const Value *thisObject, const Value *argv, int)-
123{-
124 Scope scope(b);-
125 Scoped<MapObject> that(scope, thisObject);-
126 if (!that
!thatDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
36-60
127 return
executed 36 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 36 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
36
128-
129 return
executed 60 times by 1 test: return Encode(that->d()->esTable->remove(argv[0]));
Executed by:
  • tst_ecmascripttests
Encode(that->d()->esTable->remove(argv[0]));
executed 60 times by 1 test: return Encode(that->d()->esTable->remove(argv[0]));
Executed by:
  • tst_ecmascripttests
60
130}-
131-
132ReturnedValue MapPrototype::method_entries(const FunctionObject *b, const Value *thisObject, const Value *, int)-
133{-
134 Scope scope(b);-
135 Scoped<MapObject> that(scope, thisObject);-
136 if (!that
!thatDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 92 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
52-92
137 return
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
52
138-
139 Scoped<MapIteratorObject> ao(scope, scope.engine->newMapIteratorObject(that));-
140 ao->d()->iterationKind = IteratorKind::KeyValueIteratorKind;-
141 return
executed 92 times by 1 test: return ao->asReturnedValue();
Executed by:
  • tst_ecmascripttests
ao->asReturnedValue();
executed 92 times by 1 test: return ao->asReturnedValue();
Executed by:
  • tst_ecmascripttests
92
142}-
143-
144ReturnedValue MapPrototype::method_forEach(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)-
145{-
146 Scope scope(b);-
147 Scoped<MapObject> that(scope, thisObject);-
148 if (!that
!thatDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 66 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
52-66
149 return
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
52
150-
151 ScopedFunctionObject callbackfn(scope, argv[0]);-
152 if (!callbackfn
!callbackfnDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
28-38
153 return
executed 28 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 28 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
28
154-
155 ScopedValue thisArg(scope, Primitive::undefinedValue());-
156 if (argc > 1
argc > 1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-34
157 thisArg = ScopedValue(scope, argv[1]);
executed 4 times by 1 test: thisArg = ScopedValue(scope, argv[1]);
Executed by:
  • tst_ecmascripttests
4
158-
159 Value *arguments = scope.alloc(3);-
160 for (uint i = 0; i < that->d()->esTable->size()
i < that->d()->esTable->size()Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_ecmascripttests
; ++i) {
38-68
161 that->d()->esTable->iterate(i, &arguments[0], &arguments[1]);-
162-
163 arguments[2] = that;-
164 callbackfn->call(thisArg, arguments, 3);-
165 do { if (scope.hasException()
scope.hasException()Description
TRUEnever evaluated
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) { return
never executed: return QV4::Encode::undefined();
QV4::Encode::undefined();
never executed: return QV4::Encode::undefined();
} } while (false);
0-68
166 }
executed 68 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
68
167 return
executed 38 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 38 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
38
168}-
169-
170ReturnedValue MapPrototype::method_get(const FunctionObject *b, const Value *thisObject, const Value *argv, int)-
171{-
172 Scope scope(b);-
173 Scoped<MapObject> that(scope, thisObject);-
174 if (!that
!thatDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
52-76
175 return
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
52
176-
177 return
executed 76 times by 1 test: return that->d()->esTable->get(argv[0]);
Executed by:
  • tst_ecmascripttests
that->d()->esTable->get(argv[0]);
executed 76 times by 1 test: return that->d()->esTable->get(argv[0]);
Executed by:
  • tst_ecmascripttests
76
178}-
179-
180ReturnedValue MapPrototype::method_has(const FunctionObject *b, const Value *thisObject, const Value *argv, int)-
181{-
182 Scope scope(b);-
183 Scoped<MapObject> that(scope, thisObject);-
184 if (!that
!thatDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
52-108
185 return
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
52
186-
187 return
executed 108 times by 1 test: return Encode(that->d()->esTable->has(argv[0]));
Executed by:
  • tst_ecmascripttests
Encode(that->d()->esTable->has(argv[0]));
executed 108 times by 1 test: return Encode(that->d()->esTable->has(argv[0]));
Executed by:
  • tst_ecmascripttests
108
188}-
189-
190ReturnedValue MapPrototype::method_keys(const FunctionObject *b, const Value *thisObject, const Value *, int)-
191{-
192 Scope scope(b);-
193 Scoped<MapObject> that(scope, thisObject);-
194 if (!that
!thatDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
20-52
195 return
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
52
196-
197 Scoped<MapIteratorObject> ao(scope, scope.engine->newMapIteratorObject(that));-
198 ao->d()->iterationKind = IteratorKind::KeyIteratorKind;-
199 return
executed 20 times by 1 test: return ao->asReturnedValue();
Executed by:
  • tst_ecmascripttests
ao->asReturnedValue();
executed 20 times by 1 test: return ao->asReturnedValue();
Executed by:
  • tst_ecmascripttests
20
200}-
201-
202ReturnedValue MapPrototype::method_set(const FunctionObject *b, const Value *thisObject, const Value *argv, int)-
203{-
204 Scope scope(b);-
205 Scoped<MapObject> that(scope, thisObject);-
206 if (!that
!thatDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 419 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
52-419
207 return
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
52
208-
209 that->d()->esTable->set(argv[0], argv[1]);-
210 return
executed 419 times by 1 test: return that.asReturnedValue();
Executed by:
  • tst_ecmascripttests
that.asReturnedValue();
executed 419 times by 1 test: return that.asReturnedValue();
Executed by:
  • tst_ecmascripttests
419
211}-
212-
213ReturnedValue MapPrototype::method_get_size(const FunctionObject *b, const Value *thisObject, const Value *, int)-
214{-
215 Scope scope(b);-
216 Scoped<MapObject> that(scope, thisObject);-
217 if (!that
!thatDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 99 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
36-99
218 return
executed 36 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 36 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
36
219-
220 return
executed 99 times by 1 test: return Encode(that->d()->esTable->size());
Executed by:
  • tst_ecmascripttests
Encode(that->d()->esTable->size());
executed 99 times by 1 test: return Encode(that->d()->esTable->size());
Executed by:
  • tst_ecmascripttests
99
221}-
222-
223ReturnedValue MapPrototype::method_values(const FunctionObject *b, const Value *thisObject, const Value *, int)-
224{-
225 Scope scope(b);-
226 Scoped<MapObject> that(scope, thisObject);-
227 if (!that
!thatDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
28-52
228 return
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 52 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
52
229-
230 Scoped<MapIteratorObject> ao(scope, scope.engine->newMapIteratorObject(that));-
231 ao->d()->iterationKind = IteratorKind::ValueIteratorKind;-
232 return
executed 28 times by 1 test: return ao->asReturnedValue();
Executed by:
  • tst_ecmascripttests
ao->asReturnedValue();
executed 28 times by 1 test: return ao->asReturnedValue();
Executed by:
  • tst_ecmascripttests
28
233}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0