| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 evacuation_candidates_.RemoveElement(page); | 683 evacuation_candidates_.RemoveElement(page); |
| 684 } else { | 684 } else { |
| 685 page->SetFlag(Page::RESCAN_ON_EVACUATION); | 685 page->SetFlag(Page::RESCAN_ON_EVACUATION); |
| 686 } | 686 } |
| 687 } | 687 } |
| 688 | 688 |
| 689 void RecordRelocSlot(RelocInfo* rinfo, Object* target); | 689 void RecordRelocSlot(RelocInfo* rinfo, Object* target); |
| 690 void RecordCodeEntrySlot(Address slot, Code* target); | 690 void RecordCodeEntrySlot(Address slot, Code* target); |
| 691 void RecordCodeTargetPatch(Address pc, Code* target); | 691 void RecordCodeTargetPatch(Address pc, Code* target); |
| 692 | 692 |
| 693 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); | 693 INLINE(void RecordSlot(Object** anchor_slot, |
| 694 Object** slot, |
| 695 Object* object, |
| 696 SlotsBuffer::AdditionMode mode = |
| 697 SlotsBuffer::FAIL_ON_OVERFLOW)); |
| 694 | 698 |
| 695 void MigrateObject(Address dst, | 699 void MigrateObject(Address dst, |
| 696 Address src, | 700 Address src, |
| 697 int size, | 701 int size, |
| 698 AllocationSpace to_old_space); | 702 AllocationSpace to_old_space); |
| 699 | 703 |
| 700 bool TryPromoteObject(HeapObject* object, int object_size); | 704 bool TryPromoteObject(HeapObject* object, int object_size); |
| 701 | 705 |
| 702 inline Object* encountered_weak_collections() { | 706 inline Object* encountered_weak_collections() { |
| 703 return encountered_weak_collections_; | 707 return encountered_weak_collections_; |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 private: | 1036 private: |
| 1033 MarkCompactCollector* collector_; | 1037 MarkCompactCollector* collector_; |
| 1034 }; | 1038 }; |
| 1035 | 1039 |
| 1036 | 1040 |
| 1037 const char* AllocationSpaceName(AllocationSpace space); | 1041 const char* AllocationSpaceName(AllocationSpace space); |
| 1038 | 1042 |
| 1039 } } // namespace v8::internal | 1043 } } // namespace v8::internal |
| 1040 | 1044 |
| 1041 #endif // V8_MARK_COMPACT_H_ | 1045 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |