OpenCoverage

WTFStubs.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/stubs/WTFStubs.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4namespace WTF {-
5-
6void* fastMalloc(size_t size)-
7{-
8 return
never executed: return malloc(size);
malloc(size);
never executed: return malloc(size);
0
9}-
10-
11void* fastRealloc(void* ptr, size_t size)-
12{-
13 return
never executed: return realloc(ptr, size);
realloc(ptr, size);
never executed: return realloc(ptr, size);
0
14}-
15-
16void fastFree(void* ptr)-
17{-
18 free(ptr);-
19}
never executed: end of block
0
20-
21uint32_t cryptographicallyRandomNumber()-
22{-
23 return
executed 1161586 times by 153 tests: return 0;
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
  • ...
0;
executed 1161586 times by 153 tests: return 0;
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
  • ...
1161586
24}-
25-
26static FilePrintStream* s_dataFile;-
27-
28void setDataFile(FilePrintStream *ps)-
29{-
30 delete s_dataFile;-
31 s_dataFile = ps;-
32}
never executed: end of block
0
33-
34void setDataFile(FILE* f)-
35{-
36 delete s_dataFile;-
37 s_dataFile = new FilePrintStream(f, FilePrintStream::Borrow);-
38}
never executed: end of block
0
39-
40FilePrintStream& dataFile()-
41{-
42 if (!s_dataFile
!s_dataFileDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
43 s_dataFile = new FilePrintStream(
never executed: s_dataFile = new FilePrintStream( stderr , FilePrintStream::Borrow);
0
44 stderr
never executed: s_dataFile = new FilePrintStream( stderr , FilePrintStream::Borrow);
0
45 , FilePrintStream::Borrow);
never executed: s_dataFile = new FilePrintStream( stderr , FilePrintStream::Borrow);
0
46 return
never executed: return *s_dataFile;
*s_dataFile;
never executed: return *s_dataFile;
0
47}-
48-
49void dataLogFV(const char* format, va_list args)-
50{-
51 char buffer[1024];-
52 qvsnprintf(buffer, sizeof(buffer), format, args);-
53 QMessageLogger(__FILE__, 94, __PRETTY_FUNCTION__).debug("%s", buffer);-
54}
never executed: end of block
0
55-
56void dataLogF(const char* format, ...)-
57{-
58 char buffer[1024];-
59 va_list args;-
60 -
61 __builtin_va_start(-
62 args-
63 ,-
64 format-
65 )-
66 ;-
67 qvsnprintf(buffer, sizeof(buffer), format, args);-
68 -
69 __builtin_va_end(-
70 args-
71 )-
72 ;-
73 QMessageLogger(__FILE__, 104, __PRETTY_FUNCTION__).debug("%s", buffer);-
74}
never executed: end of block
0
75-
76void dataLogFString(const char* str)-
77{-
78 QMessageLogger(__FILE__, 109, __PRETTY_FUNCTION__).debug("%s", str);-
79}
never executed: end of block
0
80-
81}-
82-
83extern "C" {-
84-
85-
86-
87-
88-
89-
90void qmlWTFReportAssertionFailure(const char* file, int line, const char* function, const char*assertion)-
91{-
92 fprintf(-
93 stderr-
94 , "WTF failing assertion in %s, line %d, function %s: %s\n", file, line, function, assertion);-
95}
never executed: end of block
0
96-
97void qmlWTFReportAssertionFailureWithMessage(const char* file, int line, const char* function, const char* assertion, const char* format, ...)-
98{-
99-
100 (void)format;;-
101 fprintf(-
102 stderr-
103 , "WTF failing assertion in %s, line %d, function %s: %s\n", file, line, function, assertion);-
104}
never executed: end of block
0
105-
106void qmlWTFReportBacktrace()-
107{-
108}-
109-
110void qmlWTFInvokeCrashHook()-
111{-
112}-
113-
114}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0