OpenCoverage

qv4reflect.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4reflect.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3using namespace QV4;-
4-
5const QV4::VTable Reflect::static_vtbl = { (std::is_same<Reflect::SuperClass, Object>::value) ? nullptr : &Reflect::SuperClass::static_vtbl, (sizeof(Reflect::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), (sizeof(Reflect::Data) + (Reflect::NInlineProperties*sizeof(QV4::Value)) + QV4::Chunk::SlotSize - 1)/QV4::Chunk::SlotSize*QV4::Chunk::SlotSize/sizeof(QV4::Value) - (sizeof(Reflect::Data) + sizeof(QV4::Value) - 1)/sizeof(QV4::Value), Reflect::IsExecutionContext, Reflect::IsString, Reflect::IsObject, Reflect::IsFunctionObject, Reflect::IsErrorObject, Reflect::IsArrayData, Reflect::IsStringOrSymbol, Reflect::MyType, { 0, 0, 0, 0 }, "Reflect", Reflect::virtualDestroy, Reflect::Data::markObjects, Reflect::virtualIsEqualTo, Reflect::virtualGet, Reflect::virtualPut, Reflect::virtualDeleteProperty, Reflect::virtualHasProperty, Reflect::virtualGetOwnProperty, Reflect::virtualDefineOwnProperty, Reflect::virtualIsExtensible, Reflect::virtualPreventExtensions, Reflect::virtualGetPrototypeOf, Reflect::virtualSetPrototypeOf, Reflect::virtualGetLength, Reflect::virtualAdvanceIterator, Reflect::virtualInstanceOf, Reflect::virtualCall, Reflect::virtualCallAsConstructor, };-
6-
7void Heap::Reflect::init()-
8{-
9 Object::init();-
10 Scope scope(internalClass->engine);-
11 ScopedObject r(scope, this);-
12-
13 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "apply")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "apply" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 97863 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 97863 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
  • ...
}()), QV4::Reflect::method_apply, 3);
97863
14 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "construct")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "construct" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98489 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 98489 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
  • ...
}()), QV4::Reflect::method_construct, 2);
98489
15 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "defineProperty")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "defineProperty" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98386 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 98386 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
  • ...
}()), QV4::Reflect::method_defineProperty, 3);
98386
16 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "deleteProperty")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "deleteProperty" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98460 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 98460 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
  • ...
}()), QV4::Reflect::method_deleteProperty, 2);
98460
17 r->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 98628 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 98628 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
  • ...
}()), QV4::Reflect::method_get, 2);
98628
18 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "getOwnPropertyDescriptor")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "getOwnPropertyDescriptor" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98454 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 98454 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
  • ...
}()), QV4::Reflect::method_getOwnPropertyDescriptor, 2);
98454
19 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "getPrototypeOf")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "getPrototypeOf" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98677 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 98677 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
  • ...
}()), QV4::Reflect::method_getPrototypeOf, 1);
98677
20 r->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 98814 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 98814 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
  • ...
}()), QV4::Reflect::method_has, 2);
98814
21 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "isExtensible")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "isExtensible" }; 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
  • ...
}()), QV4::Reflect::method_isExtensible, 1);
98760
22 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "ownKeys")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "ownKeys" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98529 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 98529 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
  • ...
}()), QV4::Reflect::method_ownKeys, 1);
98529
23 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "preventExtensions")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "preventExtensions" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98612 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 98612 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
  • ...
}()), QV4::Reflect::method_preventExtensions, 1);
98612
24 r->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 98838 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 98838 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
  • ...
}()), QV4::Reflect::method_set, 3);
98838
25 r->defineDefaultProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "setPrototypeOf")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "setPrototypeOf" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 98611 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 98611 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
  • ...
}()), QV4::Reflect::method_setPrototypeOf, 2);
98611
26}
executed 99044 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
  • ...
99044
27-
28struct CallArgs {-
29 Value *argv;-
30 int argc;-
31};-
32-
33static CallArgs createListFromArrayLike(Scope &scope, const Object *o)-
34{-
35 int len = o->getLength();-
36 Value *arguments = scope.alloc(len);-
37-
38 for (int i = 0; i < len
i < lenDescription
TRUEevaluated 242 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 304 times by 1 test
Evaluated by:
  • tst_ecmascripttests
; ++i) {
242-304
39 arguments[i] = o->get(i);-
40 if (scope.hasException()
scope.hasException()Description
TRUEnever evaluated
FALSEevaluated 243 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-243
41 return
never executed: return { nullptr, 0 };
{ nullptr, 0 };
never executed: return { nullptr, 0 };
0
42 }
executed 243 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
243
43 return
executed 304 times by 1 test: return { arguments, len };
Executed by:
  • tst_ecmascripttests
{ arguments, len };
executed 304 times by 1 test: return { arguments, len };
Executed by:
  • tst_ecmascripttests
304
44}-
45-
46ReturnedValue Reflect::method_apply(const FunctionObject *f, const Value *, const Value *argv, int argc)-
47{-
48 Scope scope(f);-
49 if (argc < 3
argc < 3Description
TRUEnever evaluated
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isFunctionObject()
!argv[0].isFunctionObject()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[2].isObject()
!argv[2].isObject()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-32
50 return
executed 16 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 16 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
16
51-
52 const Object *o = static_cast<const Object *>(argv + 2);-
53 CallArgs arguments = createListFromArrayLike(scope, o);-
54 if (scope.hasException()
scope.hasException()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-12
55 return
executed 4 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 4 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
4
56-
57 return
executed 12 times by 1 test: return static_cast<const FunctionObject &>(argv[0]).call(&argv[1], arguments.argv, arguments.argc);
Executed by:
  • tst_ecmascripttests
static_cast<const FunctionObject &>(argv[0]).call(&argv[1], arguments.argv, arguments.argc);
executed 12 times by 1 test: return static_cast<const FunctionObject &>(argv[0]).call(&argv[1], arguments.argv, arguments.argc);
Executed by:
  • tst_ecmascripttests
12
58}-
59-
60ReturnedValue Reflect::method_construct(const FunctionObject *f, const Value *, const Value *argv, int argc)-
61{-
62 Scope scope(f);-
63 if (argc < 2
argc < 2Description
TRUEnever evaluated
FALSEevaluated 320 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isFunctionObject()
!argv[0].isFunctionObject()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 292 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[1].isObject()
!argv[1].isObject()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 288 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-320
64 return
executed 32 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 32 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
32
65-
66 const Object *o = static_cast<const Object *>(argv + 1);-
67 CallArgs arguments = createListFromArrayLike(scope, o);-
68 if (scope.hasException()
scope.hasException()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 284 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-284
69 return
executed 4 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 4 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
4
70-
71 return
executed 284 times by 1 test: return static_cast<const FunctionObject &>(argv[0]).callAsConstructor(arguments.argv, arguments.argc);
Executed by:
  • tst_ecmascripttests
static_cast<const FunctionObject &>(argv[0]).callAsConstructor(arguments.argv, arguments.argc);
executed 284 times by 1 test: return static_cast<const FunctionObject &>(argv[0]).callAsConstructor(arguments.argv, arguments.argc);
Executed by:
  • tst_ecmascripttests
284
72}-
73-
74ReturnedValue Reflect::method_defineProperty(const FunctionObject *f, const Value *, const Value *argv, int argc)-
75{-
76 Scope scope(f);-
77 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 1079 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1060 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-1079
78 return
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
79-
80 ScopedObject O(scope, argv[0]);-
81 ScopedPropertyKey name(scope, (argc > 1 ? argv[1] : Primitive::undefinedValue()).toPropertyKey(scope.engine));-
82 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1055 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-1055
83 return
executed 4 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_ecmascripttests
QV4::Encode::undefined();
executed 4 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_ecmascripttests
4
84-
85 ScopedValue attributes(scope, argc > 2 ? argv[2] : Primitive::undefinedValue());-
86 ScopedProperty pd(scope);-
87 PropertyAttributes attrs;-
88 ObjectPrototype::toPropertyDescriptor(scope.engine, attributes, pd, &attrs);-
89 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1051 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-1051
90 return
executed 4 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_ecmascripttests
QV4::Encode::undefined();
executed 4 times by 1 test: return QV4::Encode::undefined();
Executed by:
  • tst_ecmascripttests
4
91-
92 bool result = O->defineOwnProperty(name, pd, attrs);-
93-
94 return
executed 1052 times by 1 test: return Encode(result);
Executed by:
  • tst_ecmascripttests
Encode(result);
executed 1052 times by 1 test: return Encode(result);
Executed by:
  • tst_ecmascripttests
1052
95}-
96-
97ReturnedValue Reflect::method_deleteProperty(const FunctionObject *f, const Value *, const Value *argv, int argc)-
98{-
99 ExecutionEngine *e = f->engine();-
100 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-64
101 return
executed 20 times by 1 test: return e->throwTypeError();
Executed by:
  • tst_ecmascripttests
e->throwTypeError();
executed 20 times by 1 test: return e->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
102-
103 bool result = Runtime::method_deleteProperty(e, argv[0], argc > 1 ? argv[1] : Primitive::undefinedValue());-
104 return
executed 44 times by 1 test: return Encode(result);
Executed by:
  • tst_ecmascripttests
Encode(result);
executed 44 times by 1 test: return Encode(result);
Executed by:
  • tst_ecmascripttests
44
105}-
106-
107ReturnedValue Reflect::method_get(const FunctionObject *f, const Value *, const Value *argv, int argc)-
108{-
109 Scope scope(f);-
110 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-68
111 return
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
112-
113 ScopedObject o(scope, static_cast<const Object *>(argv));-
114 Value undef = Primitive::undefinedValue();-
115 const Value *index = argc > 1
argc > 1Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
? &argv[1] : &undef;
0-48
116 ScopedPropertyKey name(scope, index->toPropertyKey(scope.engine));-
117 if (scope.hasException()
scope.hasException()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-44
118 return
executed 4 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
Encode::undefined();
executed 4 times by 1 test: return Encode::undefined();
Executed by:
  • tst_ecmascripttests
4
119 ScopedValue receiver(scope, argc > 2 ? argv[2] : *o);-
120-
121 return
executed 44 times by 1 test: return Encode(o->get(name, receiver));
Executed by:
  • tst_ecmascripttests
Encode(o->get(name, receiver));
executed 44 times by 1 test: return Encode(o->get(name, receiver));
Executed by:
  • tst_ecmascripttests
44
122}-
123-
124ReturnedValue Reflect::method_getOwnPropertyDescriptor(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc)-
125{-
126 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 148 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 128 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-148
127 return
executed 20 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
f->engine()->throwTypeError();
executed 20 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
128-
129 return
executed 128 times by 1 test: return ObjectPrototype::method_getOwnPropertyDescriptor(f, thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
ObjectPrototype::method_getOwnPropertyDescriptor(f, thisObject, argv, argc);
executed 128 times by 1 test: return ObjectPrototype::method_getOwnPropertyDescriptor(f, thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
128
130}-
131-
132ReturnedValue Reflect::method_getPrototypeOf(const FunctionObject *f, const Value *, const Value *argv, int argc)-
133{-
134 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-36
135 return
executed 20 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
f->engine()->throwTypeError();
executed 20 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
136-
137 const Object *o = static_cast<const Object *>(argv);-
138 Heap::Object *p = o->getPrototypeOf();-
139 return
executed 16 times by 1 test: return (p ? p->asReturnedValue() : Encode::null());
Executed by:
  • tst_ecmascripttests
(p ? p->asReturnedValue() : Encode::null());
executed 16 times by 1 test: return (p ? p->asReturnedValue() : Encode::null());
Executed by:
  • tst_ecmascripttests
16
140}-
141-
142ReturnedValue Reflect::method_has(const FunctionObject *f, const Value *, const Value *argv, int argc)-
143{-
144 Scope scope(f);-
145 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 1067 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1048 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-1067
146 return
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
147-
148 ScopedObject o(scope, static_cast<const Object *>(argv));-
149 Value undef = Primitive::undefinedValue();-
150 const Value *index = argc > 1
argc > 1Description
TRUEevaluated 1047 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
? &argv[1] : &undef;
0-1047
151-
152 ScopedPropertyKey name(scope, index->toPropertyKey(scope.engine));-
153 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 1044 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-1044
154 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
155-
156 bool hasProperty = false;-
157 (void) o->get(name, nullptr, &hasProperty);-
158 return
executed 1044 times by 1 test: return Encode(hasProperty);
Executed by:
  • tst_ecmascripttests
Encode(hasProperty);
executed 1044 times by 1 test: return Encode(hasProperty);
Executed by:
  • tst_ecmascripttests
1044
159}-
160-
161ReturnedValue Reflect::method_isExtensible(const FunctionObject *f, const Value *, const Value *argv, int argc)-
162{-
163 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-52
164 return
executed 40 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
f->engine()->throwTypeError();
executed 40 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
40
165-
166 const Object *o = static_cast<const Object *>(argv);-
167 return
executed 12 times by 1 test: return Encode(o->isExtensible());
Executed by:
  • tst_ecmascripttests
Encode(o->isExtensible());
executed 12 times by 1 test: return Encode(o->isExtensible());
Executed by:
  • tst_ecmascripttests
12
168}-
169-
170-
171ReturnedValue Reflect::method_ownKeys(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc)-
172{-
173 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-72
174 return
executed 20 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
f->engine()->throwTypeError();
executed 20 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
175-
176 return
executed 52 times by 1 test: return ObjectPrototype::method_getOwnPropertyNames(f, thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
ObjectPrototype::method_getOwnPropertyNames(f, thisObject, argv, argc);
executed 52 times by 1 test: return ObjectPrototype::method_getOwnPropertyNames(f, thisObject, argv, argc);
Executed by:
  • tst_ecmascripttests
52
177}-
178-
179ReturnedValue Reflect::method_preventExtensions(const FunctionObject *f, const Value *, const Value *argv, int argc)-
180{-
181 Scope scope(f);-
182 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEnever evaluated
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-44
183 return
never executed: return scope.engine->throwTypeError();
scope.engine->throwTypeError();
never executed: return scope.engine->throwTypeError();
0
184-
185 ScopedObject o(scope, static_cast<const Object *>(argv));-
186 return
executed 44 times by 1 test: return Encode(o->preventExtensions());
Executed by:
  • tst_ecmascripttests
Encode(o->preventExtensions());
executed 44 times by 1 test: return Encode(o->preventExtensions());
Executed by:
  • tst_ecmascripttests
44
187}-
188-
189ReturnedValue Reflect::method_set(const FunctionObject *f, const Value *, const Value *argv, int argc)-
190{-
191 Scope scope(f);-
192 if (!argc
!argcDescription
TRUEnever evaluated
FALSEevaluated 855 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 836 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-855
193 return
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
scope.engine->throwTypeError();
executed 20 times by 1 test: return scope.engine->throwTypeError();
Executed by:
  • tst_ecmascripttests
20
194-
195 ScopedObject o(scope, static_cast<const Object *>(argv));-
196 Value undef = Primitive::undefinedValue();-
197 const Value *index = argc > 1
argc > 1Description
TRUEevaluated 835 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
? &argv[1] : &undef;
0-835
198 const Value &val = argc > 2
argc > 2Description
TRUEevaluated 831 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? argv[2] : undef;
4-831
199 ScopedValue receiver(scope, argc >3 ? argv[3] : argv[0]);-
200-
201 ScopedPropertyKey propertyKey(scope, index->toPropertyKey(scope.engine));-
202 if (scope.engine->hasException
scope.engine->hasExceptionDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 831 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
4-831
203 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
204 bool result = o->put(propertyKey, val, receiver);-
205 return
executed 832 times by 1 test: return Encode(result);
Executed by:
  • tst_ecmascripttests
Encode(result);
executed 832 times by 1 test: return Encode(result);
Executed by:
  • tst_ecmascripttests
832
206}-
207-
208ReturnedValue Reflect::method_setPrototypeOf(const FunctionObject *f, const Value *, const Value *argv, int argc)-
209{-
210 if (argc < 2
argc < 2Description
TRUEnever evaluated
FALSEevaluated 180 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| !argv[0].isObject()
!argv[0].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 160 times by 1 test
Evaluated by:
  • tst_ecmascripttests
|| (!argv[1].isNull()
!argv[1].isNull()Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
&& !argv[1].isObject()
!argv[1].isObject()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_ecmascripttests
))
0-180
211 return
executed 40 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
f->engine()->throwTypeError();
executed 40 times by 1 test: return f->engine()->throwTypeError();
Executed by:
  • tst_ecmascripttests
40
212-
213 Scope scope(f);-
214 ScopedObject o(scope, static_cast<const Object *>(argv));-
215 const Object *proto = argv[1].isNull()
argv[1].isNull()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_ecmascripttests
? nullptr : static_cast<const Object *>(argv + 1);
16-124
216 return
executed 140 times by 1 test: return Encode(o->setPrototypeOf(proto));
Executed by:
  • tst_ecmascripttests
Encode(o->setPrototypeOf(proto));
executed 140 times by 1 test: return Encode(o->setPrototypeOf(proto));
Executed by:
  • tst_ecmascripttests
140
217}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0