Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index 3f5e437223a57ba246c093ce8ce4d0ea7d061fcc..86500c52d3658eeb31ca19a79500714413b7469d 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -309,7 +309,7 @@ TEST(MemoryAllocator) { |
heap->MaxExecutableSize())); |
int total_pages = 0; |
- OldSpace faked_space(heap, heap->MaxReserved(), OLD_SPACE, NOT_EXECUTABLE); |
+ OldSpace faked_space(heap, OLD_SPACE, NOT_EXECUTABLE); |
Page* first_page = memory_allocator->AllocatePage( |
faked_space.AreaSize(), &faked_space, NOT_EXECUTABLE); |
@@ -379,8 +379,7 @@ TEST(OldSpace) { |
heap->MaxExecutableSize())); |
TestMemoryAllocatorScope test_scope(isolate, memory_allocator); |
- OldSpace* s = new OldSpace(heap, heap->MaxOldGenerationSize(), OLD_SPACE, |
- NOT_EXECUTABLE); |
+ OldSpace* s = new OldSpace(heap, OLD_SPACE, NOT_EXECUTABLE); |
CHECK(s != NULL); |
CHECK(s->SetUp()); |