| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4iterator.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | using namespace QV4; | - |
| 3 | - | |
| 4 | void IteratorPrototype::init(ExecutionEngine *engine) | - |
| 5 | { | - |
| 6 | defineDefaultProperty(engine->symbol_iterator(), method_iterator, 0); | - |
| 7 | } executed 98745 times by 153 tests: end of blockExecuted by:
| 98745 |
| 8 | - | |
| 9 | ReturnedValue IteratorPrototype::method_iterator(const FunctionObject *, const Value *thisObject, const Value *, int) | - |
| 10 | { | - |
| 11 | return executed 1535 times by 1 test: thisObject->asReturnedValue();return thisObject->asReturnedValue();Executed by:
executed 1535 times by 1 test: return thisObject->asReturnedValue();Executed by:
| 1535 |
| 12 | } | - |
| 13 | - | |
| 14 | - | |
| 15 | ReturnedValue IteratorPrototype::createIterResultObject(ExecutionEngine *engine, const Value &value, bool done) | - |
| 16 | { | - |
| 17 | Scope scope(engine); | - |
| 18 | ScopedObject obj(scope, engine->newObject()); | - |
| 19 | obj->set(ScopedString(scope, engine->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "value")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "value" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 55900 times by 12 tests: qstring_literal_temp;return qstring_literal_temp;Executed by:
executed 55900 times by 12 tests: }()))), value, Object::DoNotThrow);return qstring_literal_temp;Executed by:
| 55900 |
| 20 | obj->set(ScopedString(scope, engine->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "done")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "done" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return executed 55801 times by 12 tests: qstring_literal_temp;return qstring_literal_temp;Executed by:
executed 55801 times by 12 tests: }()))), Primitive::fromBoolean(done), Object::DoNotThrow);return qstring_literal_temp;Executed by:
| 55801 |
| 21 | return executed 55942 times by 12 tests: obj->asReturnedValue();return obj->asReturnedValue();Executed by:
executed 55942 times by 12 tests: return obj->asReturnedValue();Executed by:
| 55942 |
| 22 | } | - |
| Switch to Source code | Preprocessed file |