| 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 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* target); | 1165 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* target); |
| 1166 void RecordWritesIntoCode(Code* code); | 1166 void RecordWritesIntoCode(Code* code); |
| 1167 inline void RecordFixedArrayElements(FixedArray* array, int offset, | 1167 inline void RecordFixedArrayElements(FixedArray* array, int offset, |
| 1168 int length); | 1168 int length); |
| 1169 | 1169 |
| 1170 inline Address* store_buffer_top_address(); | 1170 inline Address* store_buffer_top_address(); |
| 1171 | 1171 |
| 1172 void ClearRecordedSlot(HeapObject* object, Object** slot); | 1172 void ClearRecordedSlot(HeapObject* object, Object** slot); |
| 1173 void ClearRecordedSlotRange(Address start, Address end); | 1173 void ClearRecordedSlotRange(Address start, Address end); |
| 1174 | 1174 |
| 1175 bool HasRecordedSlot(HeapObject* object, Object** slot); |
| 1176 |
| 1175 // =========================================================================== | 1177 // =========================================================================== |
| 1176 // Incremental marking API. ================================================== | 1178 // Incremental marking API. ================================================== |
| 1177 // =========================================================================== | 1179 // =========================================================================== |
| 1178 | 1180 |
| 1179 // Start incremental marking and ensure that idle time handler can perform | 1181 // Start incremental marking and ensure that idle time handler can perform |
| 1180 // incremental steps. | 1182 // incremental steps. |
| 1181 void StartIdleIncrementalMarking(GarbageCollectionReason gc_reason); | 1183 void StartIdleIncrementalMarking(GarbageCollectionReason gc_reason); |
| 1182 | 1184 |
| 1183 // Starts incremental marking assuming incremental marking is currently | 1185 // Starts incremental marking assuming incremental marking is currently |
| 1184 // stopped. | 1186 // stopped. |
| (...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2643 friend class LargeObjectSpace; | 2645 friend class LargeObjectSpace; |
| 2644 friend class NewSpace; | 2646 friend class NewSpace; |
| 2645 friend class PagedSpace; | 2647 friend class PagedSpace; |
| 2646 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2648 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2647 }; | 2649 }; |
| 2648 | 2650 |
| 2649 } // namespace internal | 2651 } // namespace internal |
| 2650 } // namespace v8 | 2652 } // namespace v8 |
| 2651 | 2653 |
| 2652 #endif // V8_HEAP_HEAP_H_ | 2654 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |