OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 void SweepInParallel(PagedSpace* space, | 684 void SweepInParallel(PagedSpace* space, |
685 FreeList* private_free_list, | 685 FreeList* private_free_list, |
686 FreeList* free_list); | 686 FreeList* free_list); |
687 | 687 |
688 void WaitUntilSweepingCompleted(); | 688 void WaitUntilSweepingCompleted(); |
689 | 689 |
690 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space); | 690 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space); |
691 | 691 |
692 bool AreSweeperThreadsActivated(); | 692 bool AreSweeperThreadsActivated(); |
693 | 693 |
| 694 bool IsConcurrentSweepingInProgress(); |
| 695 |
694 // Parallel marking support. | 696 // Parallel marking support. |
695 void MarkInParallel(); | 697 void MarkInParallel(); |
696 | 698 |
697 void WaitUntilMarkingCompleted(); | 699 void WaitUntilMarkingCompleted(); |
698 | 700 |
699 private: | 701 private: |
700 MarkCompactCollector(); | 702 MarkCompactCollector(); |
701 ~MarkCompactCollector(); | 703 ~MarkCompactCollector(); |
702 | 704 |
703 bool MarkInvalidatedCode(); | 705 bool MarkInvalidatedCode(); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 | 892 |
891 friend class Heap; | 893 friend class Heap; |
892 }; | 894 }; |
893 | 895 |
894 | 896 |
895 const char* AllocationSpaceName(AllocationSpace space); | 897 const char* AllocationSpaceName(AllocationSpace space); |
896 | 898 |
897 } } // namespace v8::internal | 899 } } // namespace v8::internal |
898 | 900 |
899 #endif // V8_MARK_COMPACT_H_ | 901 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |