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 |
11 // Tests that should have access to private methods of {v8::internal::Heap}. | 11 // Tests that should have access to private methods of {v8::internal::Heap}. |
12 // Those tests need to be defined using HEAP_TEST(Name) { ... }. | 12 // Those tests need to be defined using HEAP_TEST(Name) { ... }. |
13 #define HEAP_TEST_METHODS(V) \ | 13 #define HEAP_TEST_METHODS(V) \ |
14 V(CompactionFullAbortedPage) \ | 14 V(CompactionFullAbortedPage) \ |
15 V(CompactionPartiallyAbortedPage) \ | 15 V(CompactionPartiallyAbortedPage) \ |
16 V(CompactionPartiallyAbortedPageIntraAbortedPointers) \ | 16 V(CompactionPartiallyAbortedPageIntraAbortedPointers) \ |
17 V(CompactionPartiallyAbortedPageWithStoreBufferEntries) \ | 17 V(CompactionPartiallyAbortedPageWithStoreBufferEntries) \ |
18 V(CompactionSpaceDivideMultiplePages) \ | 18 V(CompactionSpaceDivideMultiplePages) \ |
19 V(CompactionSpaceDivideSinglePage) \ | 19 V(CompactionSpaceDivideSinglePage) \ |
| 20 V(TestNewSpaceRefsInCopiedCode) \ |
20 V(GCFlags) \ | 21 V(GCFlags) \ |
21 V(MarkCompactCollector) \ | 22 V(MarkCompactCollector) \ |
22 V(NoPromotion) \ | 23 V(NoPromotion) \ |
23 V(NumberStringCacheSize) \ | 24 V(NumberStringCacheSize) \ |
24 V(ObjectGroups) \ | 25 V(ObjectGroups) \ |
25 V(Promotion) \ | 26 V(Promotion) \ |
26 V(Regression39128) \ | 27 V(Regression39128) \ |
27 V(ResetWeakHandle) \ | 28 V(ResetWeakHandle) \ |
28 V(StressHandles) \ | 29 V(StressHandles) \ |
29 V(TestMemoryReducerSampleJsCalls) \ | 30 V(TestMemoryReducerSampleJsCalls) \ |
(...skipping 28 matching lines...) Expand all Loading... |
58 static Handle<Object> TestAllocateAfterFailures(); | 59 static Handle<Object> TestAllocateAfterFailures(); |
59 | 60 |
60 /* test-api.cc */ | 61 /* test-api.cc */ |
61 static void ResetWeakHandle(bool global_gc); | 62 static void ResetWeakHandle(bool global_gc); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace internal | 65 } // namespace internal |
65 } // namespace v8 | 66 } // namespace v8 |
66 | 67 |
67 #endif // HEAP_HEAP_TESTER_H_ | 68 #endif // HEAP_HEAP_TESTER_H_ |
OLD | NEW |