| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index fae20831746354eda611664a88b04013497a7224..fb15ff41b34c7d82741f42d57fbe5ba0347693de 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -1713,6 +1713,8 @@ class JSObject: public JSReceiver {
|
| bool HasDictionaryArgumentsElements();
|
| inline SeededNumberDictionary* element_dictionary(); // Gets slow elements.
|
|
|
| + inline bool ShouldTrackAllocationInfo();
|
| +
|
| inline void set_map_and_elements(
|
| Map* map,
|
| FixedArrayBase* value,
|
| @@ -7190,9 +7192,9 @@ class AllocationSiteInfo: public Struct {
|
|
|
| // Returns NULL if no AllocationSiteInfo is available for object.
|
| static AllocationSiteInfo* FindForJSObject(JSObject* object);
|
| -
|
| - static AllocationSiteMode GetMode(ElementsKind boilerplate_elements_kind);
|
| - static AllocationSiteMode GetMode(ElementsKind from, ElementsKind to);
|
| + static inline AllocationSiteMode GetMode(
|
| + ElementsKind boilerplate_elements_kind);
|
| + static inline AllocationSiteMode GetMode(ElementsKind from, ElementsKind to);
|
|
|
| static const int kPayloadOffset = HeapObject::kHeaderSize;
|
| static const int kSize = kPayloadOffset + kPointerSize;
|
| @@ -8612,6 +8614,10 @@ class JSArray: public JSObject {
|
| };
|
|
|
|
|
| +MUST_USE_RESULT MaybeObject* CacheInitialJSArrayMaps(
|
| + Context* native_context, Map* initial_map);
|
| +
|
| +
|
| // JSRegExpResult is just a JSArray with a specific initial map.
|
| // This initial map adds in-object properties for "index" and "input"
|
| // properties, as assigned by RegExp.prototype.exec, which allows
|
|
|