Index: test/cctest/heap/test-alloc.cc |
diff --git a/test/cctest/heap/test-alloc.cc b/test/cctest/heap/test-alloc.cc |
index 348ba1979d8448fdccff0a7a48b6fde0db73f430..fb947e933023c05ca6f2850f6356973803440f1d 100644 |
--- a/test/cctest/heap/test-alloc.cc |
+++ b/test/cctest/heap/test-alloc.cc |
@@ -220,12 +220,11 @@ TEST(CodeRange) { |
if (current_allocated < code_range_size / 10) { |
// Allocate a block. |
// Geometrically distributed sizes, greater than |
- // Page::kMaxRegularHeapObjectSize (which is greater than code page area). |
+ // kMaxRegularHeapObjectSize (which is greater than code page area). |
// TODO(gc): instead of using 3 use some contant based on code_range_size |
// kMaxRegularHeapObjectSize. |
- size_t requested = |
- (Page::kMaxRegularHeapObjectSize << (Pseudorandom() % 3)) + |
- Pseudorandom() % 5000 + 1; |
+ size_t requested = (kMaxRegularHeapObjectSize << (Pseudorandom() % 3)) + |
+ Pseudorandom() % 5000 + 1; |
size_t allocated = 0; |
// The request size has to be at least 2 code guard pages larger than the |