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

Unified Diff: test/cctest/heap-tester.h

Issue 1399403002: Reland of "[heap] Divide available memory upon compaction tasks" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/spaces.cc ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap-tester.h
diff --git a/test/cctest/heap-tester.h b/test/cctest/heap-tester.h
index f8cdded3da7b81e48c7b49fbeb3538c009fcf73a..8c07b73383bd7f8a799325dd70d025cac756b41f 100644
--- a/test/cctest/heap-tester.h
+++ b/test/cctest/heap-tester.h
@@ -10,17 +10,19 @@
// Tests that should have access to private methods of {v8::internal::Heap}.
// Those tests need to be defined using HEAP_TEST(Name) { ... }.
-#define HEAP_TEST_METHODS(V) \
- V(GCFlags) \
- V(MarkCompactCollector) \
- V(NoPromotion) \
- V(NumberStringCacheSize) \
- V(ObjectGroups) \
- V(Promotion) \
- V(Regression39128) \
- V(ResetWeakHandle) \
- V(StressHandles) \
- V(TestSizeOfObjects) \
+#define HEAP_TEST_METHODS(V) \
+ V(CompactionSpaceDivideMultiplePages) \
+ V(CompactionSpaceDivideSinglePage) \
+ V(GCFlags) \
+ V(MarkCompactCollector) \
+ V(NoPromotion) \
+ V(NumberStringCacheSize) \
+ V(ObjectGroups) \
+ V(Promotion) \
+ V(Regression39128) \
+ V(ResetWeakHandle) \
+ V(StressHandles) \
+ V(TestSizeOfObjects) \
V(WriteBarriersInCopyJSObject)
@@ -52,6 +54,25 @@ class HeapTester {
/* test-api.cc */
static void ResetWeakHandle(bool global_gc);
+
+ /* test-spaces.cc */
+ static CompactionSpaceCollection** InitializeCompactionSpaces(Heap* heap,
+ int num_spaces);
+ static void DestroyCompactionSpaces(CompactionSpaceCollection** spaces,
+ int num_spaces);
+ static void MergeCompactionSpaces(PagedSpace* space,
+ CompactionSpaceCollection** spaces,
+ int num_spaces);
+ static void AllocateInCompactionSpaces(CompactionSpaceCollection** spaces,
+ AllocationSpace id, int num_spaces,
+ int num_objects, int object_size);
+ static void CompactionStats(CompactionSpaceCollection** spaces,
+ AllocationSpace id, int num_spaces,
+ intptr_t* capacity, intptr_t* size);
+ static void TestCompactionSpaceDivide(int num_additional_objects,
+ int object_size,
+ int num_compaction_spaces,
+ int additional_capacity_in_bytes);
};
} // namespace internal
« no previous file with comments | « src/heap/spaces.cc ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698