Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 90d714c7fbe1ce7a8733c9c6bfaf571cc6ef5b1f..f30b9e9462614186ee062ce3858be993ad7066da 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -910,7 +910,8 @@ class Heap : public AllStatic { |
static int linear_allocation_scope_depth_; |
static bool context_disposed_pending_; |
- static const int kMaxMapSpaceSize = 8*MB; |
+ static const int kMaxMapSpaceSize = |
+ (1 << MapWord::kMapPageIndexBits) * Page::kPageSize; |
Lasse Reichstein
2009/11/24 14:21:36
By popular demand: Make it obvious what map space
Mads Ager (chromium)
2009/11/24 14:46:32
by the amount of bits available for map page index
Lasse Reichstein
2009/11/25 08:56:26
Guess I should add a comment to make it more obvio
|
#if defined(V8_TARGET_ARCH_X64) |
static const int kMaxObjectSizeInNewSpace = 512*KB; |