OpenCoverage

qv4enginebase_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4enginebase_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4namespace QV4 {-
5-
6struct CppStackFrame;-
7-
8-
9-
10-
11#pragma pack(push, 1)-
12-
13struct __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: return classes[icType];
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
  • ...
classes[icType];
executed 317915048 times by 154 tests: return classes[icType];
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
  • ...
}
317915048
73};-
74-
75#pragma pack(pop)-
76-
77-
78static_assert(bool(std::is_standard_layout<EngineBase>::value), "std::is_standard_layout<EngineBase>::value");-
79static_assert(bool(-
80__builtin_offsetof (-
81EngineBase-
82, -
83currentStackFrame-
84) -
85== 0), "offsetof(EngineBase, currentStackFrame) == 0");-
86static_assert(bool(-
87__builtin_offsetof (-
88EngineBase-
89, -
90jsStackTop-
91) -
92== -
93__builtin_offsetof (-
94EngineBase-
95, -
96currentStackFrame-
97) -
98+ 8), "offsetof(EngineBase, jsStackTop) == offsetof(EngineBase, currentStackFrame) + QT_POINTER_SIZE");-
99static_assert(bool(-
100__builtin_offsetof (-
101EngineBase-
102, -
103hasException-
104) -
105== -
106__builtin_offsetof (-
107EngineBase-
108, -
109jsStackTop-
110) -
111+ 8), "offsetof(EngineBase, hasException) == offsetof(EngineBase, jsStackTop) + QT_POINTER_SIZE");-
112static_assert(bool(-
113__builtin_offsetof (-
114EngineBase-
115, -
116memoryManager-
117) -
118== -
119__builtin_offsetof (-
120EngineBase-
121, -
122hasException-
123) -
124+ 8), "offsetof(EngineBase, memoryManager) == offsetof(EngineBase, hasException) + QT_POINTER_SIZE");-
125static_assert(bool(-
126__builtin_offsetof (-
127EngineBase-
128, -
129runtime-
130) -
131== -
132__builtin_offsetof (-
133EngineBase-
134, -
135memoryManager-
136) -
137+ 8), "offsetof(EngineBase, runtime) == offsetof(EngineBase, memoryManager) + QT_POINTER_SIZE");-
138-
139}-
140-
141-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0