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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1232 void ClearRecordedSlotRange(Address start, Address end); | 1232 void ClearRecordedSlotRange(Address start, Address end); |
1233 | 1233 |
1234 bool HasRecordedSlot(HeapObject* object, Object** slot); | 1234 bool HasRecordedSlot(HeapObject* object, Object** slot); |
1235 | 1235 |
1236 // =========================================================================== | 1236 // =========================================================================== |
1237 // Incremental marking API. ================================================== | 1237 // Incremental marking API. ================================================== |
1238 // =========================================================================== | 1238 // =========================================================================== |
1239 | 1239 |
1240 // Start incremental marking and ensure that idle time handler can perform | 1240 // Start incremental marking and ensure that idle time handler can perform |
1241 // incremental steps. | 1241 // incremental steps. |
1242 void StartIdleIncrementalMarking(GarbageCollectionReason gc_reason); | 1242 void StartIdleIncrementalMarking( |
| 1243 GarbageCollectionReason gc_reason, |
| 1244 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); |
1243 | 1245 |
1244 // Starts incremental marking assuming incremental marking is currently | 1246 // Starts incremental marking assuming incremental marking is currently |
1245 // stopped. | 1247 // stopped. |
1246 void StartIncrementalMarking( | 1248 void StartIncrementalMarking( |
1247 int gc_flags, GarbageCollectionReason gc_reason, | 1249 int gc_flags, GarbageCollectionReason gc_reason, |
1248 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); | 1250 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); |
1249 | 1251 |
1250 void StartIncrementalMarkingIfAllocationLimitIsReached( | 1252 void StartIncrementalMarkingIfAllocationLimitIsReached( |
1251 int gc_flags, | 1253 int gc_flags, |
1252 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); | 1254 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); |
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2652 friend class PagedSpace; | 2654 friend class PagedSpace; |
2653 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2655 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2654 }; | 2656 }; |
2655 | 2657 |
2656 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); | 2658 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); |
2657 | 2659 |
2658 } // namespace internal | 2660 } // namespace internal |
2659 } // namespace v8 | 2661 } // namespace v8 |
2660 | 2662 |
2661 #endif // V8_HEAP_HEAP_H_ | 2663 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |