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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 void IteratePromotedObjectPointers(HeapObject* object, Address start, | 1071 void IteratePromotedObjectPointers(HeapObject* object, Address start, |
1072 Address end, bool record_slots, | 1072 Address end, bool record_slots, |
1073 ObjectSlotCallback callback); | 1073 ObjectSlotCallback callback); |
1074 | 1074 |
1075 // =========================================================================== | 1075 // =========================================================================== |
1076 // Store buffer API. ========================================================= | 1076 // Store buffer API. ========================================================= |
1077 // =========================================================================== | 1077 // =========================================================================== |
1078 | 1078 |
1079 // Write barrier support for object[offset] = o; | 1079 // Write barrier support for object[offset] = o; |
1080 inline void RecordWrite(Object* object, int offset, Object* o); | 1080 inline void RecordWrite(Object* object, int offset, Object* o); |
1081 inline void RecordFixedArrayElements(FixedArray* array, int offset, | |
1082 int length); | |
1083 | 1081 |
1084 Address* store_buffer_top_address() { | 1082 Address* store_buffer_top_address() { |
1085 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 1083 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
1086 } | 1084 } |
1087 | 1085 |
1088 void ClearRecordedSlot(HeapObject* object, Object** slot); | 1086 void ClearRecordedSlot(HeapObject* object, Object** slot); |
1089 void ClearRecordedSlotRange(Address start, Address end); | 1087 void ClearRecordedSlotRange(Address start, Address end); |
1090 | 1088 |
1091 // =========================================================================== | 1089 // =========================================================================== |
1092 // Incremental marking API. ================================================== | 1090 // Incremental marking API. ================================================== |
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 friend class LargeObjectSpace; | 2654 friend class LargeObjectSpace; |
2657 friend class NewSpace; | 2655 friend class NewSpace; |
2658 friend class PagedSpace; | 2656 friend class PagedSpace; |
2659 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2657 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2660 }; | 2658 }; |
2661 | 2659 |
2662 } // namespace internal | 2660 } // namespace internal |
2663 } // namespace v8 | 2661 } // namespace v8 |
2664 | 2662 |
2665 #endif // V8_HEAP_HEAP_H_ | 2663 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |