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(AdjustBytes) \ | |
15 V(CompactionFullAbortedPage) \ | 14 V(CompactionFullAbortedPage) \ |
16 V(CompactionPartiallyAbortedPage) \ | 15 V(CompactionPartiallyAbortedPage) \ |
17 V(CompactionPartiallyAbortedPageIntraAbortedPointers) \ | 16 V(CompactionPartiallyAbortedPageIntraAbortedPointers) \ |
18 V(CompactionPartiallyAbortedPageWithStoreBufferEntries) \ | 17 V(CompactionPartiallyAbortedPageWithStoreBufferEntries) \ |
19 V(CompactionSpaceDivideMultiplePages) \ | 18 V(CompactionSpaceDivideMultiplePages) \ |
20 V(CompactionSpaceDivideSinglePage) \ | 19 V(CompactionSpaceDivideSinglePage) \ |
21 V(TestNewSpaceRefsInCopiedCode) \ | 20 V(TestNewSpaceRefsInCopiedCode) \ |
22 V(GCFlags) \ | 21 V(GCFlags) \ |
23 V(MarkCompactCollector) \ | 22 V(MarkCompactCollector) \ |
24 V(NoPromotion) \ | 23 V(NoPromotion) \ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static Handle<Object> TestAllocateAfterFailures(); | 66 static Handle<Object> TestAllocateAfterFailures(); |
68 | 67 |
69 /* test-api.cc */ | 68 /* test-api.cc */ |
70 static void ResetWeakHandle(bool global_gc); | 69 static void ResetWeakHandle(bool global_gc); |
71 }; | 70 }; |
72 | 71 |
73 } // namespace internal | 72 } // namespace internal |
74 } // namespace v8 | 73 } // namespace v8 |
75 | 74 |
76 #endif // HEAP_HEAP_TESTER_H_ | 75 #endif // HEAP_HEAP_TESTER_H_ |
OLD | NEW |