OpenCoverage

qv4argumentsobject_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4argumentsobject_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3namespace QV4 {-
4-
5namespace Heap {-
6-
7-
8-
9-
10struct ArgumentsGetterFunctionOffsetStruct { uint index; }; struct ArgumentsGetterFunctionSizeStruct : FunctionObject, ArgumentsGetterFunctionOffsetStruct {}; struct ArgumentsGetterFunctionData { typedef FunctionObject SuperClass; static constexpr size_t baseOffset = sizeof(ArgumentsGetterFunctionSizeStruct) - sizeof(ArgumentsGetterFunctionOffsetStruct); uint index; }; static_assert(bool(sizeof(ArgumentsGetterFunctionSizeStruct) == sizeof(ArgumentsGetterFunctionData) + ArgumentsGetterFunctionData::baseOffset), "sizeof(ArgumentsGetterFunctionSizeStruct) == sizeof(ArgumentsGetterFunctionData) + ArgumentsGetterFunctionData::baseOffset"); struct ArgumentsGetterFunction : FunctionObject, ArgumentsGetterFunctionData {-
11 static void markObjects(Heap::Base *b, MarkStack *stack) { ArgumentsGetterFunction *o = static_cast<ArgumentsGetterFunction *>(b); ArgumentsGetterFunctionData::SuperClass::markObjects(o, stack); }
never executed: end of block
;
0
12 inline void init(QV4::ExecutionContext *scope, uint index);-
13};-
14-
15-
16-
17-
18struct ArgumentsSetterFunctionOffsetStruct { uint index; }; struct ArgumentsSetterFunctionSizeStruct : FunctionObject, ArgumentsSetterFunctionOffsetStruct {}; struct ArgumentsSetterFunctionData { typedef FunctionObject SuperClass; static constexpr size_t baseOffset = sizeof(ArgumentsSetterFunctionSizeStruct) - sizeof(ArgumentsSetterFunctionOffsetStruct); uint index; }; static_assert(bool(sizeof(ArgumentsSetterFunctionSizeStruct) == sizeof(ArgumentsSetterFunctionData) + ArgumentsSetterFunctionData::baseOffset), "sizeof(ArgumentsSetterFunctionSizeStruct) == sizeof(ArgumentsSetterFunctionData) + ArgumentsSetterFunctionData::baseOffset"); struct ArgumentsSetterFunction : FunctionObject, ArgumentsSetterFunctionData {-
19 static void markObjects(Heap::Base *b, MarkStack *stack) { ArgumentsSetterFunction *o = static_cast<ArgumentsSetterFunction *>(b); ArgumentsSetterFunctionData::SuperClass::markObjects(o, stack); }
never executed: end of block
;
0
20 inline void init(QV4::ExecutionContext *scope, uint index);-
21};-
22-
23-
24-
25-
26-
27-
28-
29struct ArgumentsObjectOffsetStruct { Pointer<CallContext *, 0> context; Pointer<MemberData *, 0> mappedArguments; bool fullyCreated; int nFormals; }; struct ArgumentsObjectSizeStruct : Object, ArgumentsObjectOffsetStruct {}; struct ArgumentsObjectData { typedef Object SuperClass; static constexpr size_t baseOffset = sizeof(ArgumentsObjectSizeStruct) - sizeof(ArgumentsObjectOffsetStruct); Pointer<CallContext *, -
30__builtin_offsetof (-
31ArgumentsObjectOffsetStruct-
32, -
33context-
34) -
35+ baseOffset> context; Pointer<MemberData *, -
36__builtin_offsetof (-
37ArgumentsObjectOffsetStruct-
38, -
39mappedArguments-
40) -
41+ baseOffset> mappedArguments; bool fullyCreated; int nFormals; }; static_assert(bool(sizeof(ArgumentsObjectSizeStruct) == sizeof(ArgumentsObjectData) + ArgumentsObjectData::baseOffset), "sizeof(ArgumentsObjectSizeStruct) == sizeof(ArgumentsObjectData) + ArgumentsObjectData::baseOffset"); struct ArgumentsObject : Object, ArgumentsObjectData {-
42 static void markObjects(Heap::Base *b, MarkStack *stack) { ArgumentsObject *o = static_cast<ArgumentsObject *>(b); ArgumentsObjectData::SuperClass::markObjects(o, stack); if (o->context
o->contextDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicklayouts
FALSEnever evaluated
) o->context.heapObject()->mark(stack);
executed 4 times by 1 test: o->context.heapObject()->mark(stack);
Executed by:
  • tst_qquicklayouts
if (o->mappedArguments
o->mappedArgumentsDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicklayouts
) o->mappedArguments.heapObject()->mark(stack);
never executed: o->mappedArguments.heapObject()->mark(stack);
}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicklayouts
;
0-4
43 enum {-
44 LengthPropertyIndex = 0,-
45 SymbolIteratorPropertyIndex = 1,-
46 CalleePropertyIndex = 2-
47 };-
48 void init(CppStackFrame *frame);-
49};-
50-
51-
52-
53struct StrictArgumentsObjectOffsetStruct { }; struct StrictArgumentsObjectSizeStruct : Object, StrictArgumentsObjectOffsetStruct {}; struct StrictArgumentsObjectData { typedef Object SuperClass; static constexpr size_t baseOffset = sizeof(StrictArgumentsObjectSizeStruct) - sizeof(StrictArgumentsObjectOffsetStruct); }; static_assert(bool(sizeof(StrictArgumentsObjectSizeStruct) == sizeof(StrictArgumentsObjectData) + StrictArgumentsObjectData::baseOffset), "sizeof(StrictArgumentsObjectSizeStruct) == sizeof(StrictArgumentsObjectData) + StrictArgumentsObjectData::baseOffset"); struct StrictArgumentsObject : Object, StrictArgumentsObjectData {-
54 enum {-
55 LengthPropertyIndex = 0,-
56 SymbolIteratorPropertyIndex = 1,-
57 CalleePropertyIndex = 2-
58 };-
59 void init(CppStackFrame *frame);-
60};-
61-
62}-
63-
64struct ArgumentsGetterFunction: FunctionObject-
65{-
66 private: ArgumentsGetterFunction() = delete; ArgumentsGetterFunction(const ArgumentsGetterFunction &) = delete; ArgumentsGetterFunction &operator=(const ArgumentsGetterFunction &) = 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: end of block
typedef QV4::Heap::ArgumentsGetterFunction Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 4694 times by 1 test: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
&static_vtbl;
executed 4694 times by 1 test: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::ArgumentsGetterFunction *d_unchecked() const { return
executed 3223 times by 1 test: return static_cast<QV4::Heap::ArgumentsGetterFunction *>(m());
Executed by:
  • tst_ecmascripttests
static_cast<QV4::Heap::ArgumentsGetterFunction *>(m());
executed 3223 times by 1 test: return static_cast<QV4::Heap::ArgumentsGetterFunction *>(m());
Executed by:
  • tst_ecmascripttests
} QV4::Heap::ArgumentsGetterFunction *d() const { QV4::Heap::ArgumentsGetterFunction *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 1660 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
dptr;
executed 1660 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
} static_assert(bool(std::is_trivial< QV4::Heap::ArgumentsGetterFunction >::value), "std::is_trivial< QV4::Heap::ArgumentsGetterFunction >::value");
0-4694
67-
68 uint index() const { return
executed 96 times by 1 test: return d()->index;
Executed by:
  • tst_ecmascripttests
d()->index;
executed 96 times by 1 test: return d()->index;
Executed by:
  • tst_ecmascripttests
}
96
69 static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc);-
70};-
71-
72inline void-
73Heap::ArgumentsGetterFunction::init(QV4::ExecutionContext *scope, uint index)-
74{-
75 Heap::FunctionObject::init(scope);-
76 this->index = index;-
77}
executed 1565 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
1565
78-
79struct ArgumentsSetterFunction: FunctionObject-
80{-
81 private: ArgumentsSetterFunction() = delete; ArgumentsSetterFunction(const ArgumentsSetterFunction &) = delete; ArgumentsSetterFunction &operator=(const ArgumentsSetterFunction &) = 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: end of block
typedef QV4::Heap::ArgumentsSetterFunction Data; typedef FunctionObject SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 4691 times by 1 test: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
&static_vtbl;
executed 4691 times by 1 test: return &static_vtbl;
Executed by:
  • tst_ecmascripttests
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::ArgumentsSetterFunction *d_unchecked() const { return
executed 3234 times by 1 test: return static_cast<QV4::Heap::ArgumentsSetterFunction *>(m());
Executed by:
  • tst_ecmascripttests
static_cast<QV4::Heap::ArgumentsSetterFunction *>(m());
executed 3234 times by 1 test: return static_cast<QV4::Heap::ArgumentsSetterFunction *>(m());
Executed by:
  • tst_ecmascripttests
} QV4::Heap::ArgumentsSetterFunction *d() const { QV4::Heap::ArgumentsSetterFunction *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 1669 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
dptr;
executed 1669 times by 1 test: return dptr;
Executed by:
  • tst_ecmascripttests
} static_assert(bool(std::is_trivial< QV4::Heap::ArgumentsSetterFunction >::value), "std::is_trivial< QV4::Heap::ArgumentsSetterFunction >::value");
0-4691
82-
83 uint index() const { return
executed 102 times by 1 test: return d()->index;
Executed by:
  • tst_ecmascripttests
d()->index;
executed 102 times by 1 test: return d()->index;
Executed by:
  • tst_ecmascripttests
}
102
84 static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc);-
85};-
86-
87inline void-
88Heap::ArgumentsSetterFunction::init(QV4::ExecutionContext *scope, uint index)-
89{-
90 Heap::FunctionObject::init(scope);-
91 this->index = index;-
92}
executed 1567 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
1567
93-
94-
95struct ArgumentsObject: Object {-
96 private: ArgumentsObject() = delete; ArgumentsObject(const ArgumentsObject &) = delete; ArgumentsObject &operator=(const ArgumentsObject &) = 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; }
executed 30057 times by 36 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
typedef QV4::Heap::ArgumentsObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 169827 times by 153 tests: return &static_vtbl;
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
  • ...
&static_vtbl;
executed 169827 times by 153 tests: return &static_vtbl;
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
  • ...
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::ArgumentsObject *d_unchecked() const { return
executed 11555 times by 4 tests: return static_cast<QV4::Heap::ArgumentsObject *>(m());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
static_cast<QV4::Heap::ArgumentsObject *>(m());
executed 11555 times by 4 tests: return static_cast<QV4::Heap::ArgumentsObject *>(m());
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
} QV4::Heap::ArgumentsObject *d() const { QV4::Heap::ArgumentsObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 11560 times by 4 tests: return dptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
dptr;
executed 11560 times by 4 tests: return dptr;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
} static_assert(bool(std::is_trivial< QV4::Heap::ArgumentsObject >::value), "std::is_trivial< QV4::Heap::ArgumentsObject >::value");
0-169827
97 public: enum { MyType = Type_ArgumentsObject };-
98-
99 Heap::CallContext *context() const { return
executed 4090 times by 4 tests: return d()->context;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
d()->context;
executed 4090 times by 4 tests: return d()->context;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
}
4090
100 bool fullyCreated() const { return
executed 4952 times by 4 tests: return d()->fullyCreated;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
d()->fullyCreated;
executed 4952 times by 4 tests: return d()->fullyCreated;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
}
4952
101-
102 static bool isNonStrictArgumentsObject(Managed *m) {-
103 return
executed 25667 times by 3 tests: return m->vtable() == staticVTable();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
m->vtable() == staticVTable();
executed 25667 times by 3 tests: return m->vtable() == staticVTable();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qqmlecmascript
25667
104 }-
105-
106 static bool virtualDefineOwnProperty(Managed *m, PropertyKey id, const Property *desc, PropertyAttributes attrs);-
107 static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty);-
108 static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver);-
109 static bool virtualDeleteProperty(Managed *m, PropertyKey id);-
110 static PropertyAttributes virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p);-
111 static qint64 virtualGetLength(const Managed *m);-
112-
113 void fullyCreate();-
114-
115};-
116-
117struct StrictArgumentsObject : Object {-
118 private: StrictArgumentsObject() = delete; StrictArgumentsObject(const StrictArgumentsObject &) = delete; StrictArgumentsObject &operator=(const StrictArgumentsObject &) = 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: end of block
typedef QV4::Heap::StrictArgumentsObject Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 110509 times by 153 tests: return &static_vtbl;
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
  • ...
&static_vtbl;
executed 110509 times by 153 tests: return &static_vtbl;
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
  • ...
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::StrictArgumentsObject *d_unchecked() const { return
never executed: return static_cast<QV4::Heap::StrictArgumentsObject *>(m());
static_cast<QV4::Heap::StrictArgumentsObject *>(m());
never executed: return static_cast<QV4::Heap::StrictArgumentsObject *>(m());
} QV4::Heap::StrictArgumentsObject *d() const { QV4::Heap::StrictArgumentsObject *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
never executed: return dptr;
dptr;
never executed: return dptr;
} static_assert(bool(std::is_trivial< QV4::Heap::StrictArgumentsObject >::value), "std::is_trivial< QV4::Heap::StrictArgumentsObject >::value");
0-110509
119 public: enum { MyType = Type_ArgumentsObject };-
120};-
121-
122}-
123-
124-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0