| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 void EnableCodeFlushing(bool enable); | 552 void EnableCodeFlushing(bool enable); |
| 553 | 553 |
| 554 enum SweeperType { | 554 enum SweeperType { |
| 555 CONCURRENT_SWEEPING, | 555 CONCURRENT_SWEEPING, |
| 556 SEQUENTIAL_SWEEPING | 556 SEQUENTIAL_SWEEPING |
| 557 }; | 557 }; |
| 558 | 558 |
| 559 enum SweepingParallelism { SWEEP_ON_MAIN_THREAD, SWEEP_IN_PARALLEL }; | 559 enum SweepingParallelism { SWEEP_ON_MAIN_THREAD, SWEEP_IN_PARALLEL }; |
| 560 | 560 |
| 561 #ifdef VERIFY_HEAP | 561 #ifdef VERIFY_HEAP |
| 562 void VerifyValidStoreAndSlotsBufferEntries(); |
| 562 void VerifyMarkbitsAreClean(); | 563 void VerifyMarkbitsAreClean(); |
| 563 static void VerifyMarkbitsAreClean(PagedSpace* space); | 564 static void VerifyMarkbitsAreClean(PagedSpace* space); |
| 564 static void VerifyMarkbitsAreClean(NewSpace* space); | 565 static void VerifyMarkbitsAreClean(NewSpace* space); |
| 565 void VerifyWeakEmbeddedObjectsInCode(); | 566 void VerifyWeakEmbeddedObjectsInCode(); |
| 566 void VerifyOmittedMapChecks(); | 567 void VerifyOmittedMapChecks(); |
| 567 #endif | 568 #endif |
| 568 | 569 |
| 569 INLINE(static bool ShouldSkipEvacuationSlotRecording(Object* host)) { | 570 INLINE(static bool ShouldSkipEvacuationSlotRecording(Object* host)) { |
| 570 return Page::FromAddress(reinterpret_cast<Address>(host)) | 571 return Page::FromAddress(reinterpret_cast<Address>(host)) |
| 571 ->ShouldSkipEvacuationSlotRecording(); | 572 ->ShouldSkipEvacuationSlotRecording(); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 private: | 963 private: |
| 963 MarkCompactCollector* collector_; | 964 MarkCompactCollector* collector_; |
| 964 }; | 965 }; |
| 965 | 966 |
| 966 | 967 |
| 967 const char* AllocationSpaceName(AllocationSpace space); | 968 const char* AllocationSpaceName(AllocationSpace space); |
| 968 } | 969 } |
| 969 } // namespace v8::internal | 970 } // namespace v8::internal |
| 970 | 971 |
| 971 #endif // V8_HEAP_MARK_COMPACT_H_ | 972 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |