Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: test/cctest/heap/heap-tester.h

Issue 1511933002: [cctest] Add tests for aborting compaction of pages (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Workaround FLAG_concurrent_sweeping not being respected after heap initialization Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/heap/test-compaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(CompactionSpaceDivideMultiplePages) \ 14 V(CompactionFullAbortedPage) \
15 V(CompactionSpaceDivideSinglePage) \ 15 V(CompactionPartiallyAbortedPage) \
16 V(GCFlags) \ 16 V(CompactionPartiallyAbortedPageIntraAbortedPointers) \
17 V(MarkCompactCollector) \ 17 V(CompactionPartiallyAbortedPageWithStoreBufferEntries) \
18 V(NoPromotion) \ 18 V(CompactionSpaceDivideMultiplePages) \
19 V(NumberStringCacheSize) \ 19 V(CompactionSpaceDivideSinglePage) \
20 V(ObjectGroups) \ 20 V(GCFlags) \
21 V(Promotion) \ 21 V(MarkCompactCollector) \
22 V(Regression39128) \ 22 V(NoPromotion) \
23 V(ResetWeakHandle) \ 23 V(NumberStringCacheSize) \
24 V(StressHandles) \ 24 V(ObjectGroups) \
25 V(TestMemoryReducerSampleJsCalls) \ 25 V(Promotion) \
26 V(TestSizeOfObjects) \ 26 V(Regression39128) \
27 V(ResetWeakHandle) \
28 V(StressHandles) \
29 V(TestMemoryReducerSampleJsCalls) \
30 V(TestSizeOfObjects) \
27 V(WriteBarriersInCopyJSObject) 31 V(WriteBarriersInCopyJSObject)
28 32
29 33
30 #define HEAP_TEST(Name) \ 34 #define HEAP_TEST(Name) \
31 CcTest register_test_##Name(v8::internal::HeapTester::Test##Name, __FILE__, \ 35 CcTest register_test_##Name(v8::internal::HeapTester::Test##Name, __FILE__, \
32 #Name, NULL, true, true); \ 36 #Name, NULL, true, true); \
33 void v8::internal::HeapTester::Test##Name() 37 void v8::internal::HeapTester::Test##Name()
34 38
35 39
36 #define THREADED_HEAP_TEST(Name) \ 40 #define THREADED_HEAP_TEST(Name) \
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 static void TestCompactionSpaceDivide(int num_additional_objects, 77 static void TestCompactionSpaceDivide(int num_additional_objects,
74 int object_size, 78 int object_size,
75 int num_compaction_spaces, 79 int num_compaction_spaces,
76 int additional_capacity_in_bytes); 80 int additional_capacity_in_bytes);
77 }; 81 };
78 82
79 } // namespace internal 83 } // namespace internal
80 } // namespace v8 84 } // namespace v8
81 85
82 #endif // HEAP_HEAP_TESTER_H_ 86 #endif // HEAP_HEAP_TESTER_H_
OLDNEW
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/heap/test-compaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698