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 <deque> | 8 #include <deque> |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 MarkingDeque marking_deque_; | 855 MarkingDeque marking_deque_; |
856 std::vector<std::pair<void*, void*>> wrappers_to_trace_; | 856 std::vector<std::pair<void*, void*>> wrappers_to_trace_; |
857 | 857 |
858 CodeFlusher* code_flusher_; | 858 CodeFlusher* code_flusher_; |
859 | 859 |
860 EmbedderHeapTracer* embedder_heap_tracer_; | 860 EmbedderHeapTracer* embedder_heap_tracer_; |
861 | 861 |
862 bool have_code_to_deoptimize_; | 862 bool have_code_to_deoptimize_; |
863 | 863 |
864 List<Page*> evacuation_candidates_; | 864 List<Page*> evacuation_candidates_; |
865 List<NewSpacePage*> newspace_evacuation_candidates_; | 865 List<Page*> newspace_evacuation_candidates_; |
866 | 866 |
867 // True if we are collecting slots to perform evacuation from evacuation | 867 // True if we are collecting slots to perform evacuation from evacuation |
868 // candidates. | 868 // candidates. |
869 bool compacting_; | 869 bool compacting_; |
870 | 870 |
871 // Semaphore used to synchronize compaction tasks. | 871 // Semaphore used to synchronize compaction tasks. |
872 base::Semaphore pending_compaction_tasks_semaphore_; | 872 base::Semaphore pending_compaction_tasks_semaphore_; |
873 | 873 |
874 bool black_allocation_; | 874 bool black_allocation_; |
875 | 875 |
(...skipping 16 matching lines...) Expand all Loading... |
892 private: | 892 private: |
893 MarkCompactCollector* collector_; | 893 MarkCompactCollector* collector_; |
894 }; | 894 }; |
895 | 895 |
896 | 896 |
897 const char* AllocationSpaceName(AllocationSpace space); | 897 const char* AllocationSpaceName(AllocationSpace space); |
898 } // namespace internal | 898 } // namespace internal |
899 } // namespace v8 | 899 } // namespace v8 |
900 | 900 |
901 #endif // V8_HEAP_MARK_COMPACT_H_ | 901 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |