Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 85e7988e490694a023c51a38aefc4b752e97c678..736e3d1371d5d52ef8c1557ef19064a78c250641 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -3542,8 +3542,8 @@ TEST(Regress169928) { |
// We need filler the size of AllocationMemento object, plus an extra |
// fill pointer value. |
- MaybeObject* maybe_object = CcTest::heap()->AllocateRaw( |
- AllocationMemento::kSize + kPointerSize, NEW_SPACE, OLD_POINTER_SPACE); |
+ MaybeObject* maybe_object = CcTest::heap()->new_space()->AllocateRaw( |
+ AllocationMemento::kSize + kPointerSize); |
Object* obj = NULL; |
CHECK(maybe_object->ToObject(&obj)); |
Address addr_obj = reinterpret_cast<Address>( |