| 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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 size_t marking_deque_memory_committed_; | 970 size_t marking_deque_memory_committed_; |
| 971 MarkingDeque marking_deque_; | 971 MarkingDeque marking_deque_; |
| 972 CodeFlusher* code_flusher_; | 972 CodeFlusher* code_flusher_; |
| 973 bool have_code_to_deoptimize_; | 973 bool have_code_to_deoptimize_; |
| 974 | 974 |
| 975 List<Page*> evacuation_candidates_; | 975 List<Page*> evacuation_candidates_; |
| 976 List<Code*> invalidated_code_; | 976 List<Code*> invalidated_code_; |
| 977 | 977 |
| 978 base::SmartPointer<FreeList> free_list_old_space_; | 978 base::SmartPointer<FreeList> free_list_old_space_; |
| 979 base::SmartPointer<FreeList> free_list_code_space_; | 979 base::SmartPointer<FreeList> free_list_code_space_; |
| 980 base::SmartPointer<FreeList> free_list_map_space_; |
| 980 | 981 |
| 981 friend class Heap; | 982 friend class Heap; |
| 982 }; | 983 }; |
| 983 | 984 |
| 984 | 985 |
| 985 class MarkBitCellIterator BASE_EMBEDDED { | 986 class MarkBitCellIterator BASE_EMBEDDED { |
| 986 public: | 987 public: |
| 987 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { | 988 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { |
| 988 last_cell_index_ = Bitmap::IndexToCell(Bitmap::CellAlignIndex( | 989 last_cell_index_ = Bitmap::IndexToCell(Bitmap::CellAlignIndex( |
| 989 chunk_->AddressToMarkbitIndex(chunk_->area_end()))); | 990 chunk_->AddressToMarkbitIndex(chunk_->area_end()))); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 private: | 1036 private: |
| 1036 MarkCompactCollector* collector_; | 1037 MarkCompactCollector* collector_; |
| 1037 }; | 1038 }; |
| 1038 | 1039 |
| 1039 | 1040 |
| 1040 const char* AllocationSpaceName(AllocationSpace space); | 1041 const char* AllocationSpaceName(AllocationSpace space); |
| 1041 } | 1042 } |
| 1042 } // namespace v8::internal | 1043 } // namespace v8::internal |
| 1043 | 1044 |
| 1044 #endif // V8_HEAP_MARK_COMPACT_H_ | 1045 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |