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_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 void RepairFreeListsAfterDeserialization(); | 740 void RepairFreeListsAfterDeserialization(); |
741 | 741 |
742 // Move len elements within a given array from src_index index to dst_index | 742 // Move len elements within a given array from src_index index to dst_index |
743 // index. | 743 // index. |
744 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); | 744 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); |
745 | 745 |
746 // Initialize a filler object to keep the ability to iterate over the heap | 746 // Initialize a filler object to keep the ability to iterate over the heap |
747 // when introducing gaps within pages. If slots could have been recorded in | 747 // when introducing gaps within pages. If slots could have been recorded in |
748 // the freed area, then pass ClearRecordedSlots::kYes as the mode. Otherwise, | 748 // the freed area, then pass ClearRecordedSlots::kYes as the mode. Otherwise, |
749 // pass ClearRecordedSlots::kNo. | 749 // pass ClearRecordedSlots::kNo. |
750 void CreateFillerObjectAt(Address addr, int size, ClearRecordedSlots mode); | 750 HeapObject* CreateFillerObjectAt(Address addr, int size, |
| 751 ClearRecordedSlots mode); |
751 | 752 |
752 bool CanMoveObjectStart(HeapObject* object); | 753 bool CanMoveObjectStart(HeapObject* object); |
753 | 754 |
754 // Maintain consistency of live bytes during incremental marking. | 755 // Maintain consistency of live bytes during incremental marking. |
755 void AdjustLiveBytes(HeapObject* object, int by); | 756 void AdjustLiveBytes(HeapObject* object, int by); |
756 | 757 |
757 // Trim the given array from the left. Note that this relocates the object | 758 // Trim the given array from the left. Note that this relocates the object |
758 // start and hence is only valid if there is only a single reference to it. | 759 // start and hence is only valid if there is only a single reference to it. |
759 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); | 760 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); |
760 | 761 |
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2694 friend class LargeObjectSpace; | 2695 friend class LargeObjectSpace; |
2695 friend class NewSpace; | 2696 friend class NewSpace; |
2696 friend class PagedSpace; | 2697 friend class PagedSpace; |
2697 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2698 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2698 }; | 2699 }; |
2699 | 2700 |
2700 } // namespace internal | 2701 } // namespace internal |
2701 } // namespace v8 | 2702 } // namespace v8 |
2702 | 2703 |
2703 #endif // V8_HEAP_HEAP_H_ | 2704 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |