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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 | 651 |
652 inline Object* encountered_weak_maps() { return encountered_weak_maps_; } | 652 inline Object* encountered_weak_maps() { return encountered_weak_maps_; } |
653 inline void set_encountered_weak_maps(Object* weak_map) { | 653 inline void set_encountered_weak_maps(Object* weak_map) { |
654 encountered_weak_maps_ = weak_map; | 654 encountered_weak_maps_ = weak_map; |
655 } | 655 } |
656 | 656 |
657 void InvalidateCode(Code* code); | 657 void InvalidateCode(Code* code); |
658 | 658 |
659 void ClearMarkbits(); | 659 void ClearMarkbits(); |
660 | 660 |
| 661 bool abort_incremental_marking() const { return abort_incremental_marking_; } |
| 662 |
661 bool is_compacting() const { return compacting_; } | 663 bool is_compacting() const { return compacting_; } |
662 | 664 |
663 MarkingParity marking_parity() { return marking_parity_; } | 665 MarkingParity marking_parity() { return marking_parity_; } |
664 | 666 |
665 private: | 667 private: |
666 MarkCompactCollector(); | 668 MarkCompactCollector(); |
667 ~MarkCompactCollector(); | 669 ~MarkCompactCollector(); |
668 | 670 |
669 bool MarkInvalidatedCode(); | 671 bool MarkInvalidatedCode(); |
670 void RemoveDeadInvalidatedCode(); | 672 void RemoveDeadInvalidatedCode(); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 | 857 |
856 friend class Heap; | 858 friend class Heap; |
857 }; | 859 }; |
858 | 860 |
859 | 861 |
860 const char* AllocationSpaceName(AllocationSpace space); | 862 const char* AllocationSpaceName(AllocationSpace space); |
861 | 863 |
862 } } // namespace v8::internal | 864 } } // namespace v8::internal |
863 | 865 |
864 #endif // V8_MARK_COMPACT_H_ | 866 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |