| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project 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 V8_HEAP_SPACES_H_ | 5 #ifndef V8_HEAP_SPACES_H_ |
| 6 #define V8_HEAP_SPACES_H_ | 6 #define V8_HEAP_SPACES_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <unordered_set> | 10 #include <unordered_set> |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 kSweepingPending, | 310 kSweepingPending, |
| 311 kSweepingInProgress, | 311 kSweepingInProgress, |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 static const intptr_t kAlignment = | 314 static const intptr_t kAlignment = |
| 315 (static_cast<uintptr_t>(1) << kPageSizeBits); | 315 (static_cast<uintptr_t>(1) << kPageSizeBits); |
| 316 | 316 |
| 317 static const intptr_t kAlignmentMask = kAlignment - 1; | 317 static const intptr_t kAlignmentMask = kAlignment - 1; |
| 318 | 318 |
| 319 static const intptr_t kSizeOffset = 0; | 319 static const intptr_t kSizeOffset = 0; |
| 320 static const intptr_t kFlagsOffset = kSizeOffset + kSizetSize; | 320 |
| 321 static const intptr_t kAreaStartOffset = kFlagsOffset + kIntptrSize; | 321 static const intptr_t kFlagsOffset = kSizeOffset + kPointerSize; |
| 322 static const intptr_t kAreaEndOffset = kAreaStartOffset + kPointerSize; | |
| 323 static const intptr_t kReservationOffset = kAreaEndOffset + kPointerSize; | |
| 324 static const intptr_t kOwnerOffset = kReservationOffset + 2 * kPointerSize; | |
| 325 | 322 |
| 326 static const size_t kMinHeaderSize = | 323 static const size_t kMinHeaderSize = |
| 327 kSizeOffset + kSizetSize // size_t size | 324 kSizeOffset + kSizetSize // size_t size |
| 328 + kIntptrSize // Flags flags_ | 325 + kIntptrSize // Flags flags_ |
| 329 + kPointerSize // Address area_start_ | 326 + kPointerSize // Address area_start_ |
| 330 + kPointerSize // Address area_end_ | 327 + kPointerSize // Address area_end_ |
| 331 + 2 * kPointerSize // base::VirtualMemory reservation_ | 328 + 2 * kPointerSize // base::VirtualMemory reservation_ |
| 332 + kPointerSize // Address owner_ | 329 + kPointerSize // Address owner_ |
| 333 + kPointerSize // Heap* heap_ | 330 + kPointerSize // Heap* heap_ |
| 334 + kIntSize // int progress_bar_ | 331 + kIntSize // int progress_bar_ |
| (...skipping 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2905 PageIterator old_iterator_; | 2902 PageIterator old_iterator_; |
| 2906 PageIterator code_iterator_; | 2903 PageIterator code_iterator_; |
| 2907 PageIterator map_iterator_; | 2904 PageIterator map_iterator_; |
| 2908 LargePageIterator lo_iterator_; | 2905 LargePageIterator lo_iterator_; |
| 2909 }; | 2906 }; |
| 2910 | 2907 |
| 2911 } // namespace internal | 2908 } // namespace internal |
| 2912 } // namespace v8 | 2909 } // namespace v8 |
| 2913 | 2910 |
| 2914 #endif // V8_HEAP_SPACES_H_ | 2911 #endif // V8_HEAP_SPACES_H_ |
| OLD | NEW |