Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | #include "../jsruntime/qv4profiling_p.h" | - |
10 | #include <QtCore/qbytearray.h> | - |
11 | #include <QtCore/qmetatype.h> | - |
12 | #include <QtCore/QVector> | - |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
14 | #error "The header file 'qv4profiling_p.h' doesn't include <QObject>." | - |
15 | #elif Q_MOC_OUTPUT_REVISION != 67 | - |
16 | #error "This file was generated using the moc from 5.12.0. It" | - |
17 | #error "cannot be used with the include files from this version of Qt." | - |
18 | #error "(The moc has changed too much.)" | - |
19 | #endif | - |
20 | | - |
21 | QT_BEGIN_MOC_NAMESPACE | - |
22 | QT_WARNING_PUSH | - |
23 | QT_WARNING_DISABLE_DEPRECATED | - |
24 | struct qt_meta_stringdata_QV4__Profiling__Profiler_t { | - |
25 | QByteArrayData data[6]; | - |
26 | char stringdata0[173]; | - |
27 | }; | - |
28 | #define QT_MOC_LITERAL(idx, ofs, len) \ | - |
29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ | - |
30 | qptrdiff(offsetof(qt_meta_stringdata_QV4__Profiling__Profiler_t, stringdata0) + ofs \ | - |
31 | - idx * sizeof(QByteArrayData)) \ | - |
32 | ) | - |
33 | static const qt_meta_stringdata_QV4__Profiling__Profiler_t qt_meta_stringdata_QV4__Profiling__Profiler = { | - |
34 | { | - |
35 | QT_MOC_LITERAL(0, 0, 24), | - |
36 | QT_MOC_LITERAL(1, 25, 9), | - |
37 | QT_MOC_LITERAL(2, 35, 0), | - |
38 | QT_MOC_LITERAL(3, 36, 36), | - |
39 | QT_MOC_LITERAL(4, 73, 47), | - |
40 | QT_MOC_LITERAL(5, 121, 51) | - |
41 | | - |
42 | }, | - |
43 | "QV4::Profiling::Profiler\0dataReady\0\0" | - |
44 | "QV4::Profiling::FunctionLocationHash\0" | - |
45 | "QVector<QV4::Profiling::FunctionCallProperties>\0" | - |
46 | "QVector<QV4::Profiling::MemoryAllocationProperties>" | - |
47 | }; | - |
48 | #undef QT_MOC_LITERAL | - |
49 | | - |
50 | static const uint qt_meta_data_QV4__Profiling__Profiler[] = { | - |
51 | | - |
52 | | - |
53 | 7, | - |
54 | 0, | - |
55 | 0, 0, | - |
56 | 1, 14, | - |
57 | 0, 0, | - |
58 | 0, 0, | - |
59 | 0, 0, | - |
60 | 0, | - |
61 | 1, | - |
62 | | - |
63 | | - |
64 | 1, 3, 19, 2, 0x06 , | - |
65 | | - |
66 | | - |
67 | QMetaType::Void, 0x80000000 | 3, 0x80000000 | 4, 0x80000000 | 5, 2, 2, 2, | - |
68 | | - |
69 | 0 | - |
70 | }; | - |
71 | | - |
72 | void QV4::Profiling::Profiler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
73 | { | - |
74 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
75 | Profiler *_t = static_cast<Profiler *>(_o); | - |
76 | Q_UNUSED(_t) | - |
77 | switch (_id) { | - |
78 | case 0: _t->dataReady((*reinterpret_cast< const QV4::Profiling::FunctionLocationHash(*)>(_a[1])),(*reinterpret_cast< const QVector<QV4::Profiling::FunctionCallProperties>(*)>(_a[2])),(*reinterpret_cast< const QVector<QV4::Profiling::MemoryAllocationProperties>(*)>(_a[3]))); break; | - |
79 | default: ; | - |
80 | } | - |
81 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
82 | switch (_id) { | - |
83 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
84 | case 0: | - |
85 | switch (*reinterpret_cast<int*>(_a[1])) { | - |
86 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - |
87 | case 0: | - |
88 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QV4::Profiling::FunctionLocationHash >(); break; | - |
89 | case 1: | - |
90 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<QV4::Profiling::FunctionCallProperties> >(); break; | - |
91 | case 2: | - |
92 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<QV4::Profiling::MemoryAllocationProperties> >(); break; | - |
93 | } | - |
94 | break; | - |
95 | } | - |
96 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
97 | int *result = reinterpret_cast<int *>(_a[0]); | - |
98 | { | - |
99 | using _t = void (Profiler::*)(const QV4::Profiling::FunctionLocationHash & , const QVector<QV4::Profiling::FunctionCallProperties> & , const QVector<QV4::Profiling::MemoryAllocationProperties> & ); | - |
100 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Profiler::dataReady)) { | - |
101 | *result = 0; | - |
102 | return; | - |
103 | } | - |
104 | } | - |
105 | } | - |
106 | } | - |
107 | | - |
108 | QT_INIT_METAOBJECT const QMetaObject QV4::Profiling::Profiler::staticMetaObject = { | - |
109 | { &QObject::staticMetaObject, qt_meta_stringdata_QV4__Profiling__Profiler.data, | - |
110 | qt_meta_data_QV4__Profiling__Profiler, qt_static_metacall, nullptr, nullptr} | - |
111 | }; | - |
112 | | - |
113 | | - |
114 | const QMetaObject *QV4::Profiling::Profiler::metaObject() const | - |
115 | { | - |
116 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
117 | } | - |
118 | | - |
119 | void *QV4::Profiling::Profiler::qt_metacast(const char *_clname) | - |
120 | { | - |
121 | if (!_clname) return nullptr; | - |
122 | if (!strcmp(_clname, qt_meta_stringdata_QV4__Profiling__Profiler.stringdata0)) | - |
123 | return static_cast<void*>(this); | - |
124 | return QObject::qt_metacast(_clname); | - |
125 | } | - |
126 | | - |
127 | int QV4::Profiling::Profiler::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
128 | { | - |
129 | _id = QObject::qt_metacall(_c, _id, _a); | - |
130 | if (_id < 0) | - |
131 | return _id; | - |
132 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
133 | if (_id < 1) | - |
134 | qt_static_metacall(this, _c, _id, _a); | - |
135 | _id -= 1; | - |
136 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
137 | if (_id < 1) | - |
138 | qt_static_metacall(this, _c, _id, _a); | - |
139 | _id -= 1; | - |
140 | } | - |
141 | return _id; | - |
142 | } | - |
143 | | - |
144 | | - |
145 | void QV4::Profiling::Profiler::dataReady(const QV4::Profiling::FunctionLocationHash & _t1, const QVector<QV4::Profiling::FunctionCallProperties> & _t2, const QVector<QV4::Profiling::MemoryAllocationProperties> & _t3) | - |
146 | { | - |
147 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) }; | - |
148 | QMetaObject::activate(this, &staticMetaObject, 0, _a); | - |
149 | }executed 6 times by 1 test: end of block | 6 |
150 | QT_WARNING_POP | - |
151 | QT_END_MOC_NAMESPACE | - |
| | |