| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 // pointers to evacuated objects. | 567 // pointers to evacuated objects. |
| 568 if (page->owner()->identity() == OLD_DATA_SPACE) { | 568 if (page->owner()->identity() == OLD_DATA_SPACE) { |
| 569 evacuation_candidates_.RemoveElement(page); | 569 evacuation_candidates_.RemoveElement(page); |
| 570 } else { | 570 } else { |
| 571 page->SetFlag(Page::RESCAN_ON_EVACUATION); | 571 page->SetFlag(Page::RESCAN_ON_EVACUATION); |
| 572 } | 572 } |
| 573 } | 573 } |
| 574 | 574 |
| 575 void RecordRelocSlot(RelocInfo* rinfo, Object* target); | 575 void RecordRelocSlot(RelocInfo* rinfo, Object* target); |
| 576 void RecordCodeEntrySlot(Address slot, Code* target); | 576 void RecordCodeEntrySlot(Address slot, Code* target); |
| 577 void RecordCodeTargetPatch(Address pc, Code* target); |
| 577 | 578 |
| 578 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); | 579 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); |
| 579 | 580 |
| 580 void MigrateObject(Address dst, | 581 void MigrateObject(Address dst, |
| 581 Address src, | 582 Address src, |
| 582 int size, | 583 int size, |
| 583 AllocationSpace to_old_space); | 584 AllocationSpace to_old_space); |
| 584 | 585 |
| 585 bool TryPromoteObject(HeapObject* object, int object_size); | 586 bool TryPromoteObject(HeapObject* object, int object_size); |
| 586 | 587 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 | 795 |
| 795 friend class Heap; | 796 friend class Heap; |
| 796 }; | 797 }; |
| 797 | 798 |
| 798 | 799 |
| 799 const char* AllocationSpaceName(AllocationSpace space); | 800 const char* AllocationSpaceName(AllocationSpace space); |
| 800 | 801 |
| 801 } } // namespace v8::internal | 802 } } // namespace v8::internal |
| 802 | 803 |
| 803 #endif // V8_MARK_COMPACT_H_ | 804 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |