OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PageMemory_h | 5 #ifndef PageMemory_h |
6 #define PageMemory_h | 6 #define PageMemory_h |
7 | 7 |
8 #include "platform/heap/HeapPage.h" | 8 #include "platform/heap/HeapPage.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
11 #include "wtf/Compiler.h" | 11 #include "wtf/Compiler.h" |
12 #include "wtf/allocator/PageAllocator.h" | 12 #include "wtf/allocator/Partitions.h" |
13 | 13 |
14 #if OS(POSIX) | 14 #if OS(POSIX) |
15 #include <sys/mman.h> | 15 #include <sys/mman.h> |
16 #include <unistd.h> | 16 #include <unistd.h> |
17 #endif | 17 #endif |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class RegionTree; | 21 class RegionTree; |
22 class RegionTreeNode; | 22 class RegionTreeNode; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 private: | 205 private: |
206 PageMemory(PageMemoryRegion* reserved, const MemoryRegion& writable); | 206 PageMemory(PageMemoryRegion* reserved, const MemoryRegion& writable); |
207 | 207 |
208 PageMemoryRegion* m_reserved; | 208 PageMemoryRegion* m_reserved; |
209 MemoryRegion m_writable; | 209 MemoryRegion m_writable; |
210 }; | 210 }; |
211 | 211 |
212 } // namespace blink | 212 } // namespace blink |
213 | 213 |
214 #endif | 214 #endif |
OLD | NEW |