| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 2271ae875585b7d4c1493cc66cb463013a3ad5a1..f89191a6c29d6bd253134b0cc871caaaacd2479b 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -79,6 +79,9 @@ Heap::Heap()
|
| lo_space_(NULL),
|
| gc_state_(NOT_IN_GC),
|
| gc_post_processing_depth_(0),
|
| + allocations_count_(0),
|
| + raw_allocations_hash_(0),
|
| + dump_allocations_hash_countdown_(FLAG_dump_allocations_digest_at_alloc),
|
| ms_count_(0),
|
| gc_count_(0),
|
| remembered_unmapped_pages_index_(0),
|
| @@ -3338,8 +3341,7 @@ AllocationResult Heap::AllocateFixedTypedArray(int length,
|
| }
|
|
|
|
|
| -AllocationResult Heap::AllocateCode(int object_size,
|
| - bool immovable) {
|
| +AllocationResult Heap::AllocateCode(int object_size, bool immovable) {
|
| ASSERT(IsAligned(static_cast<intptr_t>(object_size), kCodeAlignment));
|
| AllocationResult allocation;
|
| // Large code objects and code objects which should stay at a fixed address
|
| @@ -5317,6 +5319,10 @@ void Heap::TearDown() {
|
| PrintF("\n\n");
|
| }
|
|
|
| + if (FLAG_allocations_digest) {
|
| + PrintAlloctionsHash();
|
| + }
|
| +
|
| TearDownArrayBuffers();
|
|
|
| isolate_->global_handles()->TearDown();
|
|
|