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

Unified Diff: test/cctest/test-mark-compact.cc

Issue 23519010: cleanup cctest generally and remove ctest::context (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: arm fix Created 7 years, 3 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 | « test/cctest/test-log-stack-tracer.cc ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-mark-compact.cc
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
index f975630943acb6fab54305084c4625e04e9d8617..624969f45f09820ee4a22183e77f1431a1619e06 100644
--- a/test/cctest/test-mark-compact.cc
+++ b/test/cctest/test-mark-compact.cc
@@ -77,6 +77,8 @@ TEST(Promotion) {
// skip the entire test.
if (FLAG_never_compact) return;
+ CcTest::InitializeVM();
+
// Ensure that we get a compacting collection so that objects are promoted
// from new space.
FLAG_gc_global = true;
@@ -84,8 +86,6 @@ TEST(Promotion) {
Heap* heap = CcTest::heap();
heap->ConfigureHeap(2*256*KB, 8*MB, 8*MB);
- CcTest::InitializeVM();
-
v8::HandleScope sc(CcTest::isolate());
// Allocate a fixed array in the new space.
@@ -108,12 +108,12 @@ TEST(Promotion) {
TEST(NoPromotion) {
- CcTest::heap()->ConfigureHeap(2*256*KB, 8*MB, 8*MB);
-
// Test the situation that some objects in new space are promoted to
// the old space
CcTest::InitializeVM();
+ CcTest::heap()->ConfigureHeap(2*256*KB, 8*MB, 8*MB);
+
v8::HandleScope sc(CcTest::isolate());
// Do a mark compact GC to shrink the heap.
« no previous file with comments | « test/cctest/test-log-stack-tracer.cc ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698