| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 12e8a1b486c1d390a6def22c4c037422c2fcec88..de502db7c2ce83e03f4357d4ce5b6cb089ebd387 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2029,7 +2029,7 @@ class JSObject: public JSReceiver {
|
| ElementsKind to_kind);
|
|
|
| MUST_USE_RESULT MaybeObject* TransitionElementsKind(ElementsKind to_kind);
|
| - MUST_USE_RESULT MaybeObject* PossiblyTransitionArrayBoilerplate(
|
| + MUST_USE_RESULT MaybeObject* UpdateAllocationSiteInfo(
|
| ElementsKind to_kind);
|
|
|
| // Replaces an existing transition with a transition to a map with a FIELD.
|
| @@ -7065,6 +7065,7 @@ class AllocationSiteInfo: public Struct {
|
|
|
| static const int kPayloadOffset = HeapObject::kHeaderSize;
|
| static const int kSize = kPayloadOffset + kPointerSize;
|
| + static const uint32_t kMaximumArrayBytesToPretransition = 8 * 1024;
|
|
|
| bool GetElementsKindPayload(ElementsKind* kind);
|
| private:
|
| @@ -8350,7 +8351,7 @@ class JSArray: public JSObject {
|
| // Initialize the array with the given capacity. The function may
|
| // fail due to out-of-memory situations, but only if the requested
|
| // capacity is non-zero.
|
| - MUST_USE_RESULT MaybeObject* Initialize(int capacity);
|
| + MUST_USE_RESULT MaybeObject* Initialize(int capacity, int length = 0);
|
|
|
| // Initializes the array to a certain length.
|
| inline bool AllowsSetElementsLength();
|
|
|