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 526 matching lines...) Loading... |
537 | 537 |
538 inline Object* encountered_weak_maps() { return encountered_weak_maps_; } | 538 inline Object* encountered_weak_maps() { return encountered_weak_maps_; } |
539 inline void set_encountered_weak_maps(Object* weak_map) { | 539 inline void set_encountered_weak_maps(Object* weak_map) { |
540 encountered_weak_maps_ = weak_map; | 540 encountered_weak_maps_ = weak_map; |
541 } | 541 } |
542 | 542 |
543 void InvalidateCode(Code* code); | 543 void InvalidateCode(Code* code); |
544 | 544 |
545 void ClearMarkbits(); | 545 void ClearMarkbits(); |
546 | 546 |
| 547 bool is_compacting() const { return compacting_; } |
| 548 |
547 private: | 549 private: |
548 MarkCompactCollector(); | 550 MarkCompactCollector(); |
549 ~MarkCompactCollector(); | 551 ~MarkCompactCollector(); |
550 | 552 |
551 bool MarkInvalidatedCode(); | 553 bool MarkInvalidatedCode(); |
552 void RemoveDeadInvalidatedCode(); | 554 void RemoveDeadInvalidatedCode(); |
553 void ProcessInvalidatedCode(ObjectVisitor* visitor); | 555 void ProcessInvalidatedCode(ObjectVisitor* visitor); |
554 | 556 |
555 | 557 |
556 #ifdef DEBUG | 558 #ifdef DEBUG |
(...skipping 203 matching lines...) Loading... |
760 | 762 |
761 friend class Heap; | 763 friend class Heap; |
762 }; | 764 }; |
763 | 765 |
764 | 766 |
765 const char* AllocationSpaceName(AllocationSpace space); | 767 const char* AllocationSpaceName(AllocationSpace space); |
766 | 768 |
767 } } // namespace v8::internal | 769 } } // namespace v8::internal |
768 | 770 |
769 #endif // V8_MARK_COMPACT_H_ | 771 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |