| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 86aff1aa34f7d5c5b023bec97a20ed93ef392bef..e11dec87944201fe28215398dff040b3a4342651 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -525,21 +525,13 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
|
| return;
|
| }
|
|
|
| - // TODO(hpayer): temporary debugging code for issue 284577.
|
| - CHECK(object->map() != object->GetHeap()->allocation_memento_map());
|
| + // AllocationMementos are unrooted and shouldn't survive a scavenge
|
| + ASSERT(object->map() != object->GetHeap()->allocation_memento_map());
|
| // Call the slow part of scavenge object.
|
| return ScavengeObjectSlow(p, object);
|
| }
|
|
|
|
|
| -MaybeObject* Heap::AllocateEmptyJSArrayWithAllocationSite(
|
| - ElementsKind elements_kind,
|
| - Handle<AllocationSite> allocation_site) {
|
| - return AllocateJSArrayAndStorageWithAllocationSite(elements_kind, 0, 0,
|
| - allocation_site, DONT_INITIALIZE_ARRAY_ELEMENTS);
|
| -}
|
| -
|
| -
|
| bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason) {
|
| const char* collector_reason = NULL;
|
| GarbageCollector collector = SelectGarbageCollector(space, &collector_reason);
|
|
|