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_TESTER_H_ | 5 #ifndef HEAP_TESTER_H_ |
6 #define HEAP_TESTER_H_ | 6 #define 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(CompactionSpaceDivideMultiplePages) \ | 14 V(CompactionSpaceDivideMultiplePages) \ |
15 V(CompactionSpaceDivideSinglePage) \ | 15 V(CompactionSpaceDivideSinglePage) \ |
16 V(GCFlags) \ | 16 V(GCFlags) \ |
17 V(MarkCompactCollector) \ | 17 V(MarkCompactCollector) \ |
18 V(NoPromotion) \ | 18 V(NoPromotion) \ |
19 V(NumberStringCacheSize) \ | 19 V(NumberStringCacheSize) \ |
20 V(ObjectGroups) \ | 20 V(ObjectGroups) \ |
21 V(Promotion) \ | 21 V(Promotion) \ |
22 V(Regression39128) \ | 22 V(Regression39128) \ |
23 V(ResetWeakHandle) \ | 23 V(ResetWeakHandle) \ |
24 V(StressHandles) \ | 24 V(StressHandles) \ |
25 V(TestSizeOfObjects) \ | 25 V(TestSizeOfObjects) \ |
26 V(TestMemoryReducerSampleJsCalls) \ | |
Hannes Payer (out of office)
2015/10/28 14:58:08
alphabetic order
ulan
2015/10/29 12:39:25
Done.
| |
26 V(WriteBarriersInCopyJSObject) | 27 V(WriteBarriersInCopyJSObject) |
27 | 28 |
28 | 29 |
29 #define HEAP_TEST(Name) \ | 30 #define HEAP_TEST(Name) \ |
30 CcTest register_test_##Name(v8::internal::HeapTester::Test##Name, __FILE__, \ | 31 CcTest register_test_##Name(v8::internal::HeapTester::Test##Name, __FILE__, \ |
31 #Name, NULL, true, true); \ | 32 #Name, NULL, true, true); \ |
32 void v8::internal::HeapTester::Test##Name() | 33 void v8::internal::HeapTester::Test##Name() |
33 | 34 |
34 | 35 |
35 #define THREADED_HEAP_TEST(Name) \ | 36 #define THREADED_HEAP_TEST(Name) \ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 static void TestCompactionSpaceDivide(int num_additional_objects, | 73 static void TestCompactionSpaceDivide(int num_additional_objects, |
73 int object_size, | 74 int object_size, |
74 int num_compaction_spaces, | 75 int num_compaction_spaces, |
75 int additional_capacity_in_bytes); | 76 int additional_capacity_in_bytes); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace internal | 79 } // namespace internal |
79 } // namespace v8 | 80 } // namespace v8 |
80 | 81 |
81 #endif // HEAP_TESTER_H_ | 82 #endif // HEAP_TESTER_H_ |
OLD | NEW |