| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HEAP_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
| 6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
| 7 | 7 |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
| 10 | 10 |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 } | 641 } |
| 642 | 642 |
| 643 void RecordRelocSlot(RelocInfo* rinfo, Object* target); | 643 void RecordRelocSlot(RelocInfo* rinfo, Object* target); |
| 644 void RecordCodeEntrySlot(Address slot, Code* target); | 644 void RecordCodeEntrySlot(Address slot, Code* target); |
| 645 void RecordCodeTargetPatch(Address pc, Code* target); | 645 void RecordCodeTargetPatch(Address pc, Code* target); |
| 646 | 646 |
| 647 INLINE(void RecordSlot( | 647 INLINE(void RecordSlot( |
| 648 Object** anchor_slot, Object** slot, Object* object, | 648 Object** anchor_slot, Object** slot, Object* object, |
| 649 SlotsBuffer::AdditionMode mode = SlotsBuffer::FAIL_ON_OVERFLOW)); | 649 SlotsBuffer::AdditionMode mode = SlotsBuffer::FAIL_ON_OVERFLOW)); |
| 650 | 650 |
| 651 void MigrateMixedObjectEpilog(HeapObject* dst); |
| 652 |
| 651 void MigrateObject(HeapObject* dst, HeapObject* src, int size, | 653 void MigrateObject(HeapObject* dst, HeapObject* src, int size, |
| 652 AllocationSpace to_old_space); | 654 AllocationSpace to_old_space); |
| 653 | 655 |
| 654 bool TryPromoteObject(HeapObject* object, int object_size); | 656 bool TryPromoteObject(HeapObject* object, int object_size); |
| 655 | 657 |
| 656 void InvalidateCode(Code* code); | 658 void InvalidateCode(Code* code); |
| 657 | 659 |
| 658 void ClearMarkbits(); | 660 void ClearMarkbits(); |
| 659 | 661 |
| 660 bool abort_incremental_marking() const { return abort_incremental_marking_; } | 662 bool abort_incremental_marking() const { return abort_incremental_marking_; } |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 private: | 1007 private: |
| 1006 MarkCompactCollector* collector_; | 1008 MarkCompactCollector* collector_; |
| 1007 }; | 1009 }; |
| 1008 | 1010 |
| 1009 | 1011 |
| 1010 const char* AllocationSpaceName(AllocationSpace space); | 1012 const char* AllocationSpaceName(AllocationSpace space); |
| 1011 } | 1013 } |
| 1012 } // namespace v8::internal | 1014 } // namespace v8::internal |
| 1013 | 1015 |
| 1014 #endif // V8_HEAP_MARK_COMPACT_H_ | 1016 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |