Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index a744bb79a7d4658acd5209158b021a4095d8c48e..5da7d9e50612be9c7a776a4501089ebc657ccc62 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -507,8 +507,8 @@ TEST(CompactionSpaceUsingExternalMemory) { |
CHECK_EQ(compaction_space->CountTotalPages(), 0); |
CHECK_EQ(compaction_space->Capacity(), 0); |
// Make the rest of memory available for compaction. |
- compaction_space->AddExternalMemory(HeapObject::cast(chunk)->address(), |
- static_cast<int>(rest)); |
+ compaction_space->AddMemory(HeapObject::cast(chunk)->address(), |
+ static_cast<int>(rest)); |
CHECK_EQ(compaction_space->CountTotalPages(), 0); |
CHECK_EQ(compaction_space->Capacity(), rest); |
while (num_rest_objects-- > 0) { |