Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 92b1f0d0364dab741a21c221b6dac1ca0eba7b61..791138528cbf71020311156f938fb15291737777 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. |
@@ -4180,7 +4180,7 @@ class TypeFeedbackCells: public FixedArray { |
// The object that indicates a monomorphic state of Array with |
// ElementsKind |
- static inline Handle<Object> MonomorphicArraySentinel( |
+ static inline Handle<Object> MonomorphicArraySentinel(Isolate* isolate, |
ElementsKind elements_kind); |
// A raw version of the uninitialized sentinel that's safe to read during |
@@ -7046,8 +7046,6 @@ enum AllocationSiteMode { |
}; |
- |
- |
class AllocationSiteInfo: public Struct { |
public: |
DECL_ACCESSORS(payload, Object) |
@@ -7065,6 +7063,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: |
@@ -8353,7 +8352,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(); |