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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
731 bool IsConcurrentSweepingInProgress(); | 731 bool IsConcurrentSweepingInProgress(); |
732 | 732 |
733 void set_sequential_sweeping(bool sequential_sweeping) { | 733 void set_sequential_sweeping(bool sequential_sweeping) { |
734 sequential_sweeping_ = sequential_sweeping; | 734 sequential_sweeping_ = sequential_sweeping; |
735 } | 735 } |
736 | 736 |
737 bool sequential_sweeping() const { | 737 bool sequential_sweeping() const { |
738 return sequential_sweeping_; | 738 return sequential_sweeping_; |
739 } | 739 } |
740 | 740 |
741 bool CanMoveObjectStart(HeapObject* object); | |
Michael Starzinger
2014/03/24 12:21:35
nit: Shouldn't this actually be a predicate on the
Hannes Payer (out of office)
2014/03/25 11:41:08
Done.
| |
742 | |
741 // Mark the global table which maps weak objects to dependent code without | 743 // Mark the global table which maps weak objects to dependent code without |
742 // marking its contents. | 744 // marking its contents. |
743 void MarkWeakObjectToCodeTable(); | 745 void MarkWeakObjectToCodeTable(); |
744 | 746 |
745 // Special case for processing weak references in a full collection. We need | 747 // Special case for processing weak references in a full collection. We need |
746 // to artifically keep AllocationSites alive for a time. | 748 // to artifically keep AllocationSites alive for a time. |
747 void MarkAllocationSite(AllocationSite* site); | 749 void MarkAllocationSite(AllocationSite* site); |
748 | 750 |
749 private: | 751 private: |
750 class SweeperTask; | 752 class SweeperTask; |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1035 private: | 1037 private: |
1036 MarkCompactCollector* collector_; | 1038 MarkCompactCollector* collector_; |
1037 }; | 1039 }; |
1038 | 1040 |
1039 | 1041 |
1040 const char* AllocationSpaceName(AllocationSpace space); | 1042 const char* AllocationSpaceName(AllocationSpace space); |
1041 | 1043 |
1042 } } // namespace v8::internal | 1044 } } // namespace v8::internal |
1043 | 1045 |
1044 #endif // V8_MARK_COMPACT_H_ | 1046 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |