| 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_; | |
| 974 | 973 |
| 975 friend class Heap; | 974 friend class Heap; |
| 976 }; | 975 }; |
| 977 | 976 |
| 978 | 977 |
| 979 class MarkBitCellIterator BASE_EMBEDDED { | 978 class MarkBitCellIterator BASE_EMBEDDED { |
| 980 public: | 979 public: |
| 981 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { | 980 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { |
| 982 last_cell_index_ = Bitmap::IndexToCell(Bitmap::CellAlignIndex( | 981 last_cell_index_ = Bitmap::IndexToCell(Bitmap::CellAlignIndex( |
| 983 chunk_->AddressToMarkbitIndex(chunk_->area_end()))); | 982 chunk_->AddressToMarkbitIndex(chunk_->area_end()))); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 private: | 1028 private: |
| 1030 MarkCompactCollector* collector_; | 1029 MarkCompactCollector* collector_; |
| 1031 }; | 1030 }; |
| 1032 | 1031 |
| 1033 | 1032 |
| 1034 const char* AllocationSpaceName(AllocationSpace space); | 1033 const char* AllocationSpaceName(AllocationSpace space); |
| 1035 } | 1034 } |
| 1036 } // namespace v8::internal | 1035 } // namespace v8::internal |
| 1037 | 1036 |
| 1038 #endif // V8_HEAP_MARK_COMPACT_H_ | 1037 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |