| 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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 : collector_(collector) { | 769 : collector_(collector) { |
| 770 collector_->set_evacuation(true); | 770 collector_->set_evacuation(true); |
| 771 } | 771 } |
| 772 | 772 |
| 773 ~EvacuationScope() { collector_->set_evacuation(false); } | 773 ~EvacuationScope() { collector_->set_evacuation(false); } |
| 774 | 774 |
| 775 private: | 775 private: |
| 776 MarkCompactCollector* collector_; | 776 MarkCompactCollector* collector_; |
| 777 }; | 777 }; |
| 778 | 778 |
| 779 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); | 779 |
| 780 const char* AllocationSpaceName(AllocationSpace space); |
| 780 } // namespace internal | 781 } // namespace internal |
| 781 } // namespace v8 | 782 } // namespace v8 |
| 782 | 783 |
| 783 #endif // V8_HEAP_MARK_COMPACT_H_ | 784 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |