| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4numberobject_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | namespace QV4 { | - |
| 5 | - | |
| 6 | namespace Heap { | - |
| 7 | - | |
| 8 | struct NumberCtor : FunctionObject { | - |
| 9 | void init(QV4::ExecutionContext *scope); | - |
| 10 | }; | - |
| 11 | - | |
| 12 | } | - |
| 13 | - | |
| 14 | class NumberLocale : public QLocale | - |
| 15 | { | - |
| 16 | public: | - |
| 17 | static const NumberLocale *instance(); | - |
| 18 | const int defaultDoublePrecision; | - |
| 19 | protected: | - |
| 20 | NumberLocale(); | - |
| 21 | }; | - |
| 22 | - | |
| 23 | struct NumberCtor: FunctionObject | - |
| 24 | { | - |
| 25 | private: NumberCtor() = delete; NumberCtor(const NumberCtor &) = delete; NumberCtor &operator=(const NumberCtor &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; } never executed: typedef QV4::Heap::NumberCtor Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of blockexecuted 296979 times by 153 tests: &static_vtbl;return &static_vtbl;Executed by:
executed 296979 times by 153 tests: } void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }return &static_vtbl;Executed by:
never executed: QV4::Heap::NumberCtor *d_unchecked() const { returnend of blockexecuted 198084 times by 153 tests: static_cast<QV4::Heap::NumberCtor *>(m());return static_cast<QV4::Heap::NumberCtor *>(m());Executed by:
executed 198084 times by 153 tests: } QV4::Heap::NumberCtor *d() const { QV4::Heap::NumberCtor *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::NumberCtor *>(m());Executed by:
executed 99115 times by 153 tests: dptr;return dptr;Executed by:
executed 99115 times by 153 tests: } static_assert(bool(std::is_trivial< QV4::Heap::NumberCtor >::value), "std::is_trivial< QV4::Heap::NumberCtor >::value");return dptr;Executed by:
| 0-296979 |
| 26 | - | |
| 27 | static ReturnedValue virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *); | - |
| 28 | static ReturnedValue virtualCall(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 29 | }; | - |
| 30 | - | |
| 31 | struct NumberPrototype: NumberObject | - |
| 32 | { | - |
| 33 | static QV4::Object *defaultPrototype(QV4::ExecutionEngine *e) { return executed 98780 times by 153 tests: e->objectPrototype();return e->objectPrototype();Executed by:
executed 98780 times by 153 tests: }return e->objectPrototype();Executed by:
| 98780 |
| 34 | void init(ExecutionEngine *engine, Object *ctor); | - |
| 35 | - | |
| 36 | static ReturnedValue method_isFinite(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 37 | static ReturnedValue method_isInteger(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 38 | static ReturnedValue method_isSafeInteger(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 39 | static ReturnedValue method_isNaN(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 40 | static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 41 | static ReturnedValue method_toLocaleString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 42 | static ReturnedValue method_valueOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 43 | static ReturnedValue method_toFixed(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 44 | static ReturnedValue method_toExponential(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 45 | static ReturnedValue method_toPrecision(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); | - |
| 46 | }; | - |
| 47 | - | |
| 48 | - | |
| 49 | } | - |
| 50 | - | |
| 51 | - | |
| Switch to Source code | Preprocessed file |