Changeset 77090 in webkit for trunk/Source/JavaScriptCore/wtf/PageReservation.h
- Timestamp:
- Jan 30, 2011, 11:54:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/PageReservation.h
r77025 r77090 58 58 public: 59 59 PageReservation() 60 : m_committed(0) 61 , m_writable(false) 60 : m_writable(false) 62 61 , m_executable(false) 62 #ifndef NDEBUG 63 , m_committed(0) 64 #endif 63 65 { 64 66 } … … 82 84 ASSERT(contains(start, size)); 83 85 86 #ifndef NDEBUG 84 87 m_committed += size; 88 #endif 85 89 OSAllocator::commit(start, size, m_writable, m_executable); 86 90 } … … 93 97 ASSERT(contains(start, size)); 94 98 99 #ifndef NDEBUG 95 100 m_committed -= size; 101 #endif 96 102 OSAllocator::decommit(start, size); 97 }98 99 size_t committed()100 {101 return m_committed;102 103 } 103 104 … … 126 127 PageReservation(void* base, size_t size, bool writable, bool executable) 127 128 : PageBlock(base, size) 128 , m_committed(0)129 129 , m_writable(writable) 130 130 , m_executable(executable) 131 #ifndef NDEBUG 132 , m_committed(0) 133 #endif 131 134 { 132 135 } 133 136 134 size_t m_committed;135 137 bool m_writable; 136 138 bool m_executable; 139 #ifndef NDEBUG 140 size_t m_committed; 141 #endif 137 142 }; 138 143
Note:
See TracChangeset
for help on using the changeset viewer.