Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 3694955eaf786bc04c07cdf400a4cb06be15ba3d..18a7cf8f2133f344ee7609e91dac8515d8366abd 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2635,7 +2635,9 @@ class DescriptorArray: public FixedArray { |
// fit in a page). |
static const int kMaxNumberOfDescriptors = 1024 + 512; |
- static int SizeFor(int number_of_descriptors) { |
+ // Returns the fixed array length required to hold number_of_descriptors |
+ // descriptors. |
+ static int LengthFor(int number_of_descriptors) { |
return ToKeyIndex(number_of_descriptors); |
} |
@@ -4896,6 +4898,11 @@ class Map: public HeapObject { |
String* name, |
LookupResult* result); |
+ // The size of transition arrays are limited so they do not end up in large |
+ // object space. Otherwise ClearNonLiveTransitions would leak memory while |
+ // applying in-place right trimming. |
+ inline bool CanHaveMoreTransitions(); |
+ |
void SetLastAdded(int index) { |
set_bit_field3(LastAddedBits::update(bit_field3(), index)); |
} |