Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4enginebase_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | namespace QV4 { | - |
5 | - | |
6 | struct CppStackFrame; | - |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | #pragma pack(push, 1) | - |
12 | - | |
13 | struct __attribute__((visibility("default"))) EngineBase { | - |
14 | - | |
15 | CppStackFrame *currentStackFrame = nullptr; | - |
16 | - | |
17 | Value *jsStackTop = nullptr; | - |
18 | quint8 hasException = false; | - |
19 | quint8 writeBarrierActive = false; | - |
20 | quint16 unused = 0; | - |
21 | - | |
22 | quint8 padding[4]; | - |
23 | - | |
24 | MemoryManager *memoryManager = nullptr; | - |
25 | Runtime runtime; | - |
26 | - | |
27 | qint32 callDepth = 0; | - |
28 | Value *jsStackLimit = nullptr; | - |
29 | Value *jsStackBase = nullptr; | - |
30 | - | |
31 | IdentifierTable *identifierTable = nullptr; | - |
32 | Object *globalObject = nullptr; | - |
33 | - | |
34 | - | |
35 | Value *exceptionValue = nullptr; | - |
36 | - | |
37 | enum InternalClassType { | - |
38 | Class_Empty, | - |
39 | Class_String, | - |
40 | Class_MemberData, | - |
41 | Class_SimpleArrayData, | - |
42 | Class_SparseArrayData, | - |
43 | Class_ExecutionContext, | - |
44 | Class_CallContext, | - |
45 | Class_QmlContext, | - |
46 | Class_Object, | - |
47 | Class_ArrayObject, | - |
48 | Class_FunctionObject, | - |
49 | Class_GeneratorFunction, | - |
50 | Class_GeneratorObject, | - |
51 | Class_StringObject, | - |
52 | Class_SymbolObject, | - |
53 | Class_ScriptFunction, | - |
54 | Class_ConstructorFunction, | - |
55 | Class_MemberFunction, | - |
56 | Class_MemberGeneratorFunction, | - |
57 | Class_ObjectProto, | - |
58 | Class_RegExp, | - |
59 | Class_RegExpObject, | - |
60 | Class_RegExpExecArray, | - |
61 | Class_ArgumentsObject, | - |
62 | Class_StrictArgumentsObject, | - |
63 | Class_ErrorObject, | - |
64 | Class_ErrorObjectWithMessage, | - |
65 | Class_ErrorProto, | - |
66 | Class_QmlContextWrapper, | - |
67 | Class_ProxyObject, | - |
68 | Class_Symbol, | - |
69 | NClasses | - |
70 | }; | - |
71 | Heap::InternalClass *classes[NClasses]; | - |
72 | Heap::InternalClass *internalClasses(InternalClassType icType) { return executed 317915048 times by 154 tests: classes[icType];return classes[icType]; Executed by:
executed 317915048 times by 154 tests: }return classes[icType]; Executed by:
| 317915048 |
73 | }; | - |
74 | - | |
75 | #pragma pack(pop) | - |
76 | - | |
77 | - | |
78 | static_assert(bool(std::is_standard_layout<EngineBase>::value), "std::is_standard_layout<EngineBase>::value"); | - |
79 | static_assert(bool( | - |
80 | __builtin_offsetof ( | - |
81 | EngineBase | - |
82 | , | - |
83 | currentStackFrame | - |
84 | ) | - |
85 | == 0), "offsetof(EngineBase, currentStackFrame) == 0"); | - |
86 | static_assert(bool( | - |
87 | __builtin_offsetof ( | - |
88 | EngineBase | - |
89 | , | - |
90 | jsStackTop | - |
91 | ) | - |
92 | == | - |
93 | __builtin_offsetof ( | - |
94 | EngineBase | - |
95 | , | - |
96 | currentStackFrame | - |
97 | ) | - |
98 | + 8), "offsetof(EngineBase, jsStackTop) == offsetof(EngineBase, currentStackFrame) + QT_POINTER_SIZE"); | - |
99 | static_assert(bool( | - |
100 | __builtin_offsetof ( | - |
101 | EngineBase | - |
102 | , | - |
103 | hasException | - |
104 | ) | - |
105 | == | - |
106 | __builtin_offsetof ( | - |
107 | EngineBase | - |
108 | , | - |
109 | jsStackTop | - |
110 | ) | - |
111 | + 8), "offsetof(EngineBase, hasException) == offsetof(EngineBase, jsStackTop) + QT_POINTER_SIZE"); | - |
112 | static_assert(bool( | - |
113 | __builtin_offsetof ( | - |
114 | EngineBase | - |
115 | , | - |
116 | memoryManager | - |
117 | ) | - |
118 | == | - |
119 | __builtin_offsetof ( | - |
120 | EngineBase | - |
121 | , | - |
122 | hasException | - |
123 | ) | - |
124 | + 8), "offsetof(EngineBase, memoryManager) == offsetof(EngineBase, hasException) + QT_POINTER_SIZE"); | - |
125 | static_assert(bool( | - |
126 | __builtin_offsetof ( | - |
127 | EngineBase | - |
128 | , | - |
129 | runtime | - |
130 | ) | - |
131 | == | - |
132 | __builtin_offsetof ( | - |
133 | EngineBase | - |
134 | , | - |
135 | memoryManager | - |
136 | ) | - |
137 | + 8), "offsetof(EngineBase, runtime) == offsetof(EngineBase, memoryManager) + QT_POINTER_SIZE"); | - |
138 | - | |
139 | } | - |
140 | - | |
141 | - | |
Switch to Source code | Preprocessed file |