OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_TESTER_H_ | 5 #ifndef HEAP_HEAP_TESTER_H_ |
6 #define HEAP_HEAP_TESTER_H_ | 6 #define HEAP_HEAP_TESTER_H_ |
7 | 7 |
8 #include "src/handles.h" | 8 #include "src/handles.h" |
9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 HEAP_TEST_METHODS(DECLARE_STATIC) | 53 HEAP_TEST_METHODS(DECLARE_STATIC) |
54 #undef HEAP_TEST_METHODS | 54 #undef HEAP_TEST_METHODS |
55 | 55 |
56 /* test-alloc.cc */ | 56 /* test-alloc.cc */ |
57 static AllocationResult AllocateAfterFailures(); | 57 static AllocationResult AllocateAfterFailures(); |
58 static Handle<Object> TestAllocateAfterFailures(); | 58 static Handle<Object> TestAllocateAfterFailures(); |
59 | 59 |
60 /* test-api.cc */ | 60 /* test-api.cc */ |
61 static void ResetWeakHandle(bool global_gc); | 61 static void ResetWeakHandle(bool global_gc); |
| 62 |
| 63 /* test-spaces.cc */ |
| 64 static CompactionSpaceCollection** InitializeCompactionSpaces(Heap* heap, |
| 65 int num_spaces); |
| 66 static void DestroyCompactionSpaces(CompactionSpaceCollection** spaces, |
| 67 int num_spaces); |
| 68 static void MergeCompactionSpaces(PagedSpace* space, |
| 69 CompactionSpaceCollection** spaces, |
| 70 int num_spaces); |
| 71 static void AllocateInCompactionSpaces(CompactionSpaceCollection** spaces, |
| 72 AllocationSpace id, int num_spaces, |
| 73 int num_objects, int object_size); |
| 74 static void CompactionStats(CompactionSpaceCollection** spaces, |
| 75 AllocationSpace id, int num_spaces, |
| 76 intptr_t* capacity, intptr_t* size); |
| 77 static void TestCompactionSpaceDivide(int num_additional_objects, |
| 78 int object_size, |
| 79 int num_compaction_spaces, |
| 80 int additional_capacity_in_bytes); |
62 }; | 81 }; |
63 | 82 |
64 } // namespace internal | 83 } // namespace internal |
65 } // namespace v8 | 84 } // namespace v8 |
66 | 85 |
67 #endif // HEAP_HEAP_TESTER_H_ | 86 #endif // HEAP_HEAP_TESTER_H_ |
OLD | NEW |