Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index e8d2eb07c1bda56c6a33bbde8c668e6dbbf9852c..80f36d89de31ea8a837676f6bff75a2fcba4d710 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -196,6 +196,13 @@ const size_t kReservedCodeRangePages = 0; |
// Trigger an incremental GCs once the external memory reaches this limit. |
const int kExternalAllocationSoftLimit = 64 * MB; |
+// Maximum object size that gets allocated into regular pages. Objects larger |
+// than that size are allocated in large object space and are never moved in |
+// memory. This also applies to new space allocation, since objects are never |
+// migrated from new space to large object space. Takes double alignment into |
+// account. |
+const int kMaxRegularHeapObjectSize = 512 * KB - 512; |
+ |
STATIC_ASSERT(kPointerSize == (1 << kPointerSizeLog2)); |
const int kBitsPerByte = 8; |