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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 void IteratePromotedObjectPointers(HeapObject* object, Address start, | 1080 void IteratePromotedObjectPointers(HeapObject* object, Address start, |
1081 Address end, bool record_slots, | 1081 Address end, bool record_slots, |
1082 ObjectSlotCallback callback); | 1082 ObjectSlotCallback callback); |
1083 | 1083 |
1084 // =========================================================================== | 1084 // =========================================================================== |
1085 // Store buffer API. ========================================================= | 1085 // Store buffer API. ========================================================= |
1086 // =========================================================================== | 1086 // =========================================================================== |
1087 | 1087 |
1088 // Write barrier support for object[offset] = o; | 1088 // Write barrier support for object[offset] = o; |
1089 inline void RecordWrite(Object* object, int offset, Object* o); | 1089 inline void RecordWrite(Object* object, int offset, Object* o); |
| 1090 inline void RecordFixedArrayElements(FixedArray* array, int offset, |
| 1091 int length); |
1090 | 1092 |
1091 Address* store_buffer_top_address() { return store_buffer()->top_address(); } | 1093 Address* store_buffer_top_address() { return store_buffer()->top_address(); } |
1092 | 1094 |
1093 void ClearRecordedSlot(HeapObject* object, Object** slot); | 1095 void ClearRecordedSlot(HeapObject* object, Object** slot); |
1094 void ClearRecordedSlotRange(Address start, Address end); | 1096 void ClearRecordedSlotRange(Address start, Address end); |
1095 | 1097 |
1096 // =========================================================================== | 1098 // =========================================================================== |
1097 // Incremental marking API. ================================================== | 1099 // Incremental marking API. ================================================== |
1098 // =========================================================================== | 1100 // =========================================================================== |
1099 | 1101 |
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2661 friend class LargeObjectSpace; | 2663 friend class LargeObjectSpace; |
2662 friend class NewSpace; | 2664 friend class NewSpace; |
2663 friend class PagedSpace; | 2665 friend class PagedSpace; |
2664 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2666 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2665 }; | 2667 }; |
2666 | 2668 |
2667 } // namespace internal | 2669 } // namespace internal |
2668 } // namespace v8 | 2670 } // namespace v8 |
2669 | 2671 |
2670 #endif // V8_HEAP_HEAP_H_ | 2672 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |