Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/stubs/WTFStubs.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | namespace WTF { | - | ||||||
5 | - | |||||||
6 | void* fastMalloc(size_t size) | - | ||||||
7 | { | - | ||||||
8 | return never executed: malloc(size);return malloc(size); never executed: return malloc(size); | 0 | ||||||
9 | } | - | ||||||
10 | - | |||||||
11 | void* fastRealloc(void* ptr, size_t size) | - | ||||||
12 | { | - | ||||||
13 | return never executed: realloc(ptr, size);return realloc(ptr, size); never executed: return realloc(ptr, size); | 0 | ||||||
14 | } | - | ||||||
15 | - | |||||||
16 | void fastFree(void* ptr) | - | ||||||
17 | { | - | ||||||
18 | free(ptr); | - | ||||||
19 | } never executed: end of block | 0 | ||||||
20 | - | |||||||
21 | uint32_t cryptographicallyRandomNumber() | - | ||||||
22 | { | - | ||||||
23 | return executed 1161586 times by 153 tests: 0;return 0; Executed by:
executed 1161586 times by 153 tests: return 0; Executed by:
| 1161586 | ||||||
24 | } | - | ||||||
25 | - | |||||||
26 | static FilePrintStream* s_dataFile; | - | ||||||
27 | - | |||||||
28 | void setDataFile(FilePrintStream *ps) | - | ||||||
29 | { | - | ||||||
30 | delete s_dataFile; | - | ||||||
31 | s_dataFile = ps; | - | ||||||
32 | } never executed: end of block | 0 | ||||||
33 | - | |||||||
34 | void setDataFile(FILE* f) | - | ||||||
35 | { | - | ||||||
36 | delete s_dataFile; | - | ||||||
37 | s_dataFile = new FilePrintStream(f, FilePrintStream::Borrow); | - | ||||||
38 | } never executed: end of block | 0 | ||||||
39 | - | |||||||
40 | FilePrintStream& dataFile() | - | ||||||
41 | { | - | ||||||
42 | if (!s_dataFile
| 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: *s_dataFile;return *s_dataFile; never executed: return *s_dataFile; | 0 | ||||||
47 | } | - | ||||||
48 | - | |||||||
49 | void 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 | - | |||||||
56 | void 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 | - | |||||||
76 | void dataLogFString(const char* str) | - | ||||||
77 | { | - | ||||||
78 | QMessageLogger(__FILE__, 109, __PRETTY_FUNCTION__).debug("%s", str); | - | ||||||
79 | } never executed: end of block | 0 | ||||||
80 | - | |||||||
81 | } | - | ||||||
82 | - | |||||||
83 | extern "C" { | - | ||||||
84 | - | |||||||
85 | - | |||||||
86 | - | |||||||
87 | - | |||||||
88 | - | |||||||
89 | - | |||||||
90 | void 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 | - | |||||||
97 | void 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 | - | |||||||
106 | void qmlWTFReportBacktrace() | - | ||||||
107 | { | - | ||||||
108 | } | - | ||||||
109 | - | |||||||
110 | void qmlWTFInvokeCrashHook() | - | ||||||
111 | { | - | ||||||
112 | } | - | ||||||
113 | - | |||||||
114 | } | - | ||||||
Switch to Source code | Preprocessed file |