OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
7 | 7 |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
10 | 10 |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 Heap* heap_; | 963 Heap* heap_; |
964 base::VirtualMemory* marking_deque_memory_; | 964 base::VirtualMemory* marking_deque_memory_; |
965 size_t marking_deque_memory_committed_; | 965 size_t marking_deque_memory_committed_; |
966 MarkingDeque marking_deque_; | 966 MarkingDeque marking_deque_; |
967 CodeFlusher* code_flusher_; | 967 CodeFlusher* code_flusher_; |
968 bool have_code_to_deoptimize_; | 968 bool have_code_to_deoptimize_; |
969 | 969 |
970 List<Page*> evacuation_candidates_; | 970 List<Page*> evacuation_candidates_; |
971 | 971 |
972 SmartPointer<FreeList> free_list_old_space_; | 972 SmartPointer<FreeList> free_list_old_space_; |
| 973 SmartPointer<FreeList> free_list_code_space_; |
973 | 974 |
974 friend class Heap; | 975 friend class Heap; |
975 }; | 976 }; |
976 | 977 |
977 | 978 |
978 class MarkBitCellIterator BASE_EMBEDDED { | 979 class MarkBitCellIterator BASE_EMBEDDED { |
979 public: | 980 public: |
980 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { | 981 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { |
981 last_cell_index_ = Bitmap::IndexToCell(Bitmap::CellAlignIndex( | 982 last_cell_index_ = Bitmap::IndexToCell(Bitmap::CellAlignIndex( |
982 chunk_->AddressToMarkbitIndex(chunk_->area_end()))); | 983 chunk_->AddressToMarkbitIndex(chunk_->area_end()))); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 private: | 1029 private: |
1029 MarkCompactCollector* collector_; | 1030 MarkCompactCollector* collector_; |
1030 }; | 1031 }; |
1031 | 1032 |
1032 | 1033 |
1033 const char* AllocationSpaceName(AllocationSpace space); | 1034 const char* AllocationSpaceName(AllocationSpace space); |
1034 } | 1035 } |
1035 } // namespace v8::internal | 1036 } // namespace v8::internal |
1036 | 1037 |
1037 #endif // V8_HEAP_MARK_COMPACT_H_ | 1038 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |