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 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 void StartIncrementalMarking( | 1250 void StartIncrementalMarking( |
1251 int gc_flags, GarbageCollectionReason gc_reason, | 1251 int gc_flags, GarbageCollectionReason gc_reason, |
1252 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); | 1252 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); |
1253 | 1253 |
1254 void StartIncrementalMarkingIfAllocationLimitIsReached( | 1254 void StartIncrementalMarkingIfAllocationLimitIsReached( |
1255 int gc_flags, | 1255 int gc_flags, |
1256 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); | 1256 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); |
1257 | 1257 |
1258 void FinalizeIncrementalMarkingIfComplete(GarbageCollectionReason gc_reason); | 1258 void FinalizeIncrementalMarkingIfComplete(GarbageCollectionReason gc_reason); |
1259 | 1259 |
1260 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms, | |
1261 GarbageCollectionReason gc_reason); | |
1262 | |
1263 void RegisterReservationsForBlackAllocation(Reservation* reservations); | 1260 void RegisterReservationsForBlackAllocation(Reservation* reservations); |
1264 | 1261 |
1265 IncrementalMarking* incremental_marking() { return incremental_marking_; } | 1262 IncrementalMarking* incremental_marking() { return incremental_marking_; } |
1266 | 1263 |
1267 // =========================================================================== | 1264 // =========================================================================== |
1268 // Concurrent marking API. =================================================== | 1265 // Concurrent marking API. =================================================== |
1269 // =========================================================================== | 1266 // =========================================================================== |
1270 | 1267 |
1271 ConcurrentMarking* concurrent_marking() { return concurrent_marking_; } | 1268 ConcurrentMarking* concurrent_marking() { return concurrent_marking_; } |
1272 | 1269 |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2659 friend class PagedSpace; | 2656 friend class PagedSpace; |
2660 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2657 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2661 }; | 2658 }; |
2662 | 2659 |
2663 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); | 2660 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); |
2664 | 2661 |
2665 } // namespace internal | 2662 } // namespace internal |
2666 } // namespace v8 | 2663 } // namespace v8 |
2667 | 2664 |
2668 #endif // V8_HEAP_HEAP_H_ | 2665 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |