OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 HEAP_HEAP_UTILS_H_ | 5 #ifndef HEAP_HEAP_UTILS_H_ |
6 #define HEAP_HEAP_UTILS_H_ | 6 #define HEAP_HEAP_UTILS_H_ |
7 | 7 |
8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // marking is completed. | 43 // marking is completed. |
44 void SimulateIncrementalMarking(i::Heap* heap, bool force_completion = true); | 44 void SimulateIncrementalMarking(i::Heap* heap, bool force_completion = true); |
45 | 45 |
46 // Helper function that simulates a full old-space in the heap. | 46 // Helper function that simulates a full old-space in the heap. |
47 void SimulateFullSpace(v8::internal::PagedSpace* space); | 47 void SimulateFullSpace(v8::internal::PagedSpace* space); |
48 | 48 |
49 void AbandonCurrentlyFreeMemory(PagedSpace* space); | 49 void AbandonCurrentlyFreeMemory(PagedSpace* space); |
50 | 50 |
51 void GcAndSweep(Heap* heap, AllocationSpace space); | 51 void GcAndSweep(Heap* heap, AllocationSpace space); |
52 | 52 |
| 53 void ForceEvacuationCandidate(Page* page); |
| 54 |
53 } // namespace heap | 55 } // namespace heap |
54 } // namespace internal | 56 } // namespace internal |
55 } // namespace v8 | 57 } // namespace v8 |
56 | 58 |
57 #endif // HEAP_HEAP_UTILS_H_ | 59 #endif // HEAP_HEAP_UTILS_H_ |
OLD | NEW |