Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f621df93b2a215e63b364f972583c4b3dc1abed4..c2714b6ca85fc20f86f9923b488bab98e058a69a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15705,6 +15705,10 @@ Maybe<bool> JSObject::HasRealNamedCallbackProperty(Handle<JSObject> object, |
: Nothing<bool>(); |
} |
+int FixedArrayBase::GetMaxLengthForNewSpaceAllocation(ElementsKind kind) { |
+ return ((Page::kMaxRegularHeapObjectSize - FixedArrayBase::kHeaderSize) >> |
+ ElementsKindToShiftSize(kind)); |
+} |
void FixedArray::SwapPairs(FixedArray* numbers, int i, int j) { |
Object* temp = get(i); |