Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 5b4c55c3a78a252502419ac979cf36dca969e0bc..f2f6c06916d547f27903b3967b7373063cc1d65c 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -520,6 +520,7 @@ class Heap { |
int InitialSemiSpaceSize() { return initial_semispace_size_; } |
intptr_t MaxOldGenerationSize() { return max_old_generation_size_; } |
intptr_t MaxExecutableSize() { return max_executable_size_; } |
+ int MaxNewSpaceAllocationSize() { return InitialSemiSpaceSize() * 3/4; } |
// Returns the capacity of the heap in bytes w/o growing. Heap grows when |
// more spaces are needed until it reaches the limit. |