| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index df51a47b48b63ff75171b9e6752d764768914270..70619cc6f3c14f9bab8caabcfbf73c75f3c9b2cc 100644
|
| --- a/src/heap.h
|
| +++ b/src/heap.h
|
| @@ -602,8 +602,6 @@ class Heap {
|
| AllocationSiteMode allocation_site_mode = DONT_TRACK_ALLOCATION_SITE,
|
| Handle<Object> *allocation_site_payload = NULL,
|
| PretenureFlag pretenure = NOT_TENURED) {
|
| - // TODO(mvstanton): Danno's original change does something here, but I
|
| - // didn't include it because I don't see why we need it yet.
|
| return AllocateJSArrayAndStorage(elements_kind, 0, 0,
|
| allocation_site_mode,
|
| allocation_site_payload,
|
| @@ -623,6 +621,12 @@ class Heap {
|
| ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS,
|
| PretenureFlag pretenure = NOT_TENURED);
|
|
|
| + MUST_USE_RESULT MaybeObject* AllocateJSArrayStorage(
|
| + JSArray* array,
|
| + int length,
|
| + int capacity,
|
| + ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS);
|
| +
|
| // Allocate a JSArray with no elements
|
| MUST_USE_RESULT MaybeObject* AllocateJSArrayWithElements(
|
| FixedArrayBase* array_base,
|
| @@ -690,11 +694,9 @@ class Heap {
|
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
|
| // failed.
|
| // Please note this function does not perform a garbage collection.
|
| - MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space);
|
| -
|
| - MUST_USE_RESULT MaybeObject* AllocateWithAllocationSiteInfo(Map* map,
|
| - AllocationSpace space,
|
| - Handle<Object>* allocation_site_info_payload);
|
| + MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space,
|
| + AllocationSiteMode mode = DONT_TRACK_ALLOCATION_SITE,
|
| + Handle<Object>* allocation_site_info_payload = NULL);
|
|
|
| // Allocates a JS Map in the heap.
|
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
|
|
|