| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 7b64a3b20b4fae0d4cbc2c48651d3cf145fa327b..c43a701e603b6cb2b89abfd4f3312b6a7a201cb2 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -455,6 +455,15 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
|
| }
|
|
|
|
|
| +MaybeObject* Heap::AllocateEmptyJSArrayWithAllocationSite(
|
| + ElementsKind elements_kind,
|
| + Handle<Object> allocation_site_payload) {
|
| + return AllocateJSArrayAndStorageWithAllocationSite(elements_kind, 0, 0,
|
| + allocation_site_payload,
|
| + DONT_INITIALIZE_ARRAY_ELEMENTS);
|
| +}
|
| +
|
| +
|
| bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason) {
|
| const char* collector_reason = NULL;
|
| GarbageCollector collector = SelectGarbageCollector(space, &collector_reason);
|
|
|