Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index a6dd83054b27a9f00f067d25cf45327133b859c8..f29d43e9dcb446f2df299db149fda322ce838837 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -820,7 +820,7 @@ TEST(Iteration) { |
FACTORY->NewStringFromAscii(CStrVector("abcdefghij"), TENURED); |
// Allocate a large string (for large object space). |
- int large_size = HEAP->MaxObjectSizeInPagedSpace() + 1; |
+ int large_size = Page::kMaxNonCodeHeapObjectSize + 1; |
char* str = new char[large_size]; |
for (int i = 0; i < large_size - 1; ++i) str[i] = 'a'; |
str[large_size - 1] = '\0'; |