Chromium Code Reviews| 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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 691 bool IsConcurrentSweepingInProgress(); | 691 bool IsConcurrentSweepingInProgress(); |
| 692 | 692 |
| 693 void set_sequential_sweeping(bool sequential_sweeping) { | 693 void set_sequential_sweeping(bool sequential_sweeping) { |
| 694 sequential_sweeping_ = sequential_sweeping; | 694 sequential_sweeping_ = sequential_sweeping; |
| 695 } | 695 } |
| 696 | 696 |
| 697 bool sequential_sweeping() const { | 697 bool sequential_sweeping() const { |
| 698 return sequential_sweeping_; | 698 return sequential_sweeping_; |
| 699 } | 699 } |
| 700 | 700 |
| 701 bool sweeping_pending() const { | |
|
Michael Starzinger
2013/03/11 09:50:26
Drop this in favor of IsConcurrentSweepingInProgre
Hannes Payer (out of office)
2013/03/11 10:14:52
Done.
| |
| 702 return sweeping_pending_; | |
| 703 } | |
| 704 | |
| 701 // Parallel marking support. | 705 // Parallel marking support. |
| 702 void MarkInParallel(); | 706 void MarkInParallel(); |
| 703 | 707 |
| 704 void WaitUntilMarkingCompleted(); | 708 void WaitUntilMarkingCompleted(); |
| 705 | 709 |
| 706 private: | 710 private: |
| 707 MarkCompactCollector(); | 711 MarkCompactCollector(); |
| 708 ~MarkCompactCollector(); | 712 ~MarkCompactCollector(); |
| 709 | 713 |
| 710 bool MarkInvalidatedCode(); | 714 bool MarkInvalidatedCode(); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 921 private: | 925 private: |
| 922 MarkCompactCollector* collector_; | 926 MarkCompactCollector* collector_; |
| 923 }; | 927 }; |
| 924 | 928 |
| 925 | 929 |
| 926 const char* AllocationSpaceName(AllocationSpace space); | 930 const char* AllocationSpaceName(AllocationSpace space); |
| 927 | 931 |
| 928 } } // namespace v8::internal | 932 } } // namespace v8::internal |
| 929 | 933 |
| 930 #endif // V8_MARK_COMPACT_H_ | 934 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |