Version 2.0.5
Extended to upper limit of map space to allow for 7 times as many map to be allocated (issue 524).
Improved performance of code using closures.
Improved performance of some binary operations involving doubles.
git-svn-id: http://v8.googlecode.com/svn/trunk@3490 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/spaces.cc b/src/spaces.cc
index f3b6b9f..f4d0cb0 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -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);
}