Index: test/cctest/test-mark-compact.cc |
=================================================================== |
--- test/cctest/test-mark-compact.cc (revision 2217) |
+++ test/cctest/test-mark-compact.cc (working copy) |
@@ -86,8 +86,8 @@ |
v8::HandleScope sc; |
// Allocate a fixed array in the new space. |
- int array_size = |
- (Heap::MaxHeapObjectSize() - Array::kHeaderSize) / (kPointerSize * 4); |
+ int array_size = (Heap::MaxObjectSizeInPagedSpace() - Array::kHeaderSize) / |
+ (kPointerSize * 4); |
Object* obj = Heap::AllocateFixedArray(array_size); |
CHECK(!obj->IsFailure()); |
@@ -118,7 +118,8 @@ |
CHECK(Heap::CollectGarbage(0, OLD_POINTER_SPACE)); |
// Allocate a big Fixed array in the new space. |
- int size = (Heap::MaxHeapObjectSize() - Array::kHeaderSize) / kPointerSize; |
+ int size = (Heap::MaxObjectSizeInPagedSpace() - Array::kHeaderSize) / |
+ kPointerSize; |
Object* obj = Heap::AllocateFixedArray(size); |
Handle<FixedArray> array(FixedArray::cast(obj)); |