Index: src/spaces.cc |
=================================================================== |
--- src/spaces.cc (revision 3473) |
+++ src/spaces.cc (working copy) |
@@ -398,7 +398,7 @@ |
// start+size. Page::kPageSize is a power of two so we can divide by |
// shifting. |
return static_cast<int>((RoundDown(start + size, Page::kPageSize) |
- - RoundUp(start, Page::kPageSize)) >> Page::kPageSizeBits); |
+ - RoundUp(start, Page::kPageSize)) >> kPageSizeBits); |
} |
@@ -412,7 +412,7 @@ |
if (size_ + static_cast<int>(chunk_size) > capacity_) { |
// Request as many pages as we can. |
chunk_size = capacity_ - size_; |
- requested_pages = static_cast<int>(chunk_size >> Page::kPageSizeBits); |
+ requested_pages = static_cast<int>(chunk_size >> kPageSizeBits); |
if (requested_pages <= 0) return Page::FromAddress(NULL); |
} |