Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/wtf/PageAllocation.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | namespace WTF { | - |
8 | class PageAllocation : private PageBlock { | - |
9 | public: | - |
10 | PageAllocation() | - |
11 | { | - |
12 | } | - |
13 | - | |
14 | using PageBlock::size; | - |
15 | using PageBlock::base; | - |
16 | - | |
17 | - | |
18 | using PageBlock::operator bool; | - |
19 | - | |
20 | - | |
21 | - | |
22 | - | |
23 | - | |
24 | bool operator<(const PageAllocation &b) { return never executed: base() < b.base();return base() < b.base(); never executed: }return base() < b.base(); | 0 |
25 | - | |
26 | static PageAllocation allocate(size_t size, | - |
27 | OSAllocator::Usage usage = OSAllocator::UnknownUsage, | - |
28 | bool writable = true, bool executable = false, | - |
29 | bool includesGuardPages = false) | - |
30 | { | - |
31 | (!(isPageAligned(size)) ? (qmlWTFReportAssertionFailure(__FILE__, 96, __PRETTY_FUNCTION__, "isPageAligned(size)"), (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap())) : (void)0); | - |
32 | return executed 505426 times by 153 tests: PageAllocation(OSAllocator::reserveAndCommit(size, usage, writable, executable,return PageAllocation(OSAllocator::reserveAndCommit(size, usage, writable, executable, includesGuardPages), size, includesGuardPages); Executed by:
executed 505426 times by 153 tests: return PageAllocation(OSAllocator::reserveAndCommit(size, usage, writable, executable, includesGuardPages), size, includesGuardPages); Executed by:
| 505426 |
33 | includesGuardPages), size, executed 505426 times by 153 tests: return PageAllocation(OSAllocator::reserveAndCommit(size, usage, writable, executable, includesGuardPages), size, includesGuardPages); Executed by:
| 505426 |
34 | includesGuardPages); executed 505426 times by 153 tests: return PageAllocation(OSAllocator::reserveAndCommit(size, usage, writable, executable, includesGuardPages), size, includesGuardPages); Executed by:
| 505426 |
35 | } | - |
36 | - | |
37 | void deallocate() | - |
38 | { | - |
39 | - | |
40 | - | |
41 | PageAllocation tmp; | - |
42 | std::swap(tmp, *this); | - |
43 | - | |
44 | (!(tmp) ? (qmlWTFReportAssertionFailure(__FILE__, 109, __PRETTY_FUNCTION__, "tmp"), (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap())) : (void)0); | - |
45 | (!(!*this) ? (qmlWTFReportAssertionFailure(__FILE__, 110, __PRETTY_FUNCTION__, "!*this"), (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap())) : (void)0); | - |
46 | - | |
47 | OSAllocator::decommitAndRelease(tmp.realBase(), tmp.realSize()); | - |
48 | } executed 505824 times by 153 tests: end of block Executed by:
| 505824 |
49 | - | |
50 | private: | - |
51 | PageAllocation(void* base, size_t size, bool includesGuardPages = false) | - |
52 | : PageBlock(base, size, includesGuardPages) | - |
53 | { | - |
54 | } executed 506359 times by 153 tests: end of block Executed by:
| 506359 |
55 | }; | - |
56 | - | |
57 | } | - |
58 | - | |
59 | using WTF::PageAllocation; | - |
Switch to Source code | Preprocessed file |