Changeset 77025 in webkit for trunk/Source/JavaScriptCore/wtf/PageReservation.h
- Timestamp:
- Jan 28, 2011, 4:35:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/PageReservation.h
r76409 r77025 58 58 public: 59 59 PageReservation() 60 : m_writable(false) 60 : m_committed(0) 61 , m_writable(false) 61 62 , m_executable(false) 62 #ifndef NDEBUG63 , m_committed(0)64 #endif65 63 { 66 64 } … … 84 82 ASSERT(contains(start, size)); 85 83 86 #ifndef NDEBUG87 84 m_committed += size; 88 #endif89 85 OSAllocator::commit(start, size, m_writable, m_executable); 90 86 } … … 97 93 ASSERT(contains(start, size)); 98 94 99 #ifndef NDEBUG100 95 m_committed -= size; 101 #endif102 96 OSAllocator::decommit(start, size); 97 } 98 99 size_t committed() 100 { 101 return m_committed; 103 102 } 104 103 … … 127 126 PageReservation(void* base, size_t size, bool writable, bool executable) 128 127 : PageBlock(base, size) 128 , m_committed(0) 129 129 , m_writable(writable) 130 130 , m_executable(executable) 131 #ifndef NDEBUG132 , m_committed(0)133 #endif134 131 { 135 132 } 136 133 134 size_t m_committed; 137 135 bool m_writable; 138 136 bool m_executable; 139 #ifndef NDEBUG140 size_t m_committed;141 #endif142 137 }; 143 138
Note:
See TracChangeset
for help on using the changeset viewer.