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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 ObjectSlotCallback callback); | 1122 ObjectSlotCallback callback); |
1123 | 1123 |
1124 // =========================================================================== | 1124 // =========================================================================== |
1125 // Store buffer API. ========================================================= | 1125 // Store buffer API. ========================================================= |
1126 // =========================================================================== | 1126 // =========================================================================== |
1127 | 1127 |
1128 // Write barrier support for object[offset] = o; | 1128 // Write barrier support for object[offset] = o; |
1129 inline void RecordWrite(Object* object, int offset, Object* o); | 1129 inline void RecordWrite(Object* object, int offset, Object* o); |
1130 inline void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* target); | 1130 inline void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* target); |
1131 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* target); | 1131 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* target); |
| 1132 void RecordWritesIntoCode(Code* code); |
1132 inline void RecordFixedArrayElements(FixedArray* array, int offset, | 1133 inline void RecordFixedArrayElements(FixedArray* array, int offset, |
1133 int length); | 1134 int length); |
1134 | 1135 |
1135 inline Address* store_buffer_top_address(); | 1136 inline Address* store_buffer_top_address(); |
1136 | 1137 |
1137 void ClearRecordedSlot(HeapObject* object, Object** slot); | 1138 void ClearRecordedSlot(HeapObject* object, Object** slot); |
1138 void ClearRecordedSlotRange(Address start, Address end); | 1139 void ClearRecordedSlotRange(Address start, Address end); |
1139 | 1140 |
1140 // =========================================================================== | 1141 // =========================================================================== |
1141 // Incremental marking API. ================================================== | 1142 // Incremental marking API. ================================================== |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 friend class LargeObjectSpace; | 2698 friend class LargeObjectSpace; |
2698 friend class NewSpace; | 2699 friend class NewSpace; |
2699 friend class PagedSpace; | 2700 friend class PagedSpace; |
2700 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2701 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2701 }; | 2702 }; |
2702 | 2703 |
2703 } // namespace internal | 2704 } // namespace internal |
2704 } // namespace v8 | 2705 } // namespace v8 |
2705 | 2706 |
2706 #endif // V8_HEAP_HEAP_H_ | 2707 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |