| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/heap/heap.h" | 5 #include "src/heap/heap.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/assembler-inl.h" | 9 #include "src/assembler-inl.h" |
| 10 #include "src/ast/context-slot-cache.h" | 10 #include "src/ast/context-slot-cache.h" |
| (...skipping 4540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4551 } | 4551 } |
| 4552 | 4552 |
| 4553 | 4553 |
| 4554 // This function expects that NewSpace's allocated objects histogram is | 4554 // This function expects that NewSpace's allocated objects histogram is |
| 4555 // populated (via a call to CollectStatistics or else as a side effect of a | 4555 // populated (via a call to CollectStatistics or else as a side effect of a |
| 4556 // just-completed scavenge collection). | 4556 // just-completed scavenge collection). |
| 4557 void Heap::ReportHeapStatistics(const char* title) { | 4557 void Heap::ReportHeapStatistics(const char* title) { |
| 4558 USE(title); | 4558 USE(title); |
| 4559 PrintF(">>>>>> =============== %s (%d) =============== >>>>>>\n", title, | 4559 PrintF(">>>>>> =============== %s (%d) =============== >>>>>>\n", title, |
| 4560 gc_count_); | 4560 gc_count_); |
| 4561 PrintF("old_generation_allocation_limit_ %" V8PRIdPTR "\n", | 4561 PrintF("old_generation_allocation_limit_ %" PRIuS "\n", |
| 4562 old_generation_allocation_limit_); | 4562 old_generation_allocation_limit_); |
| 4563 | 4563 |
| 4564 PrintF("\n"); | 4564 PrintF("\n"); |
| 4565 PrintF("Number of handles : %d\n", HandleScope::NumberOfHandles(isolate_)); | 4565 PrintF("Number of handles : %d\n", HandleScope::NumberOfHandles(isolate_)); |
| 4566 isolate_->global_handles()->PrintStats(); | 4566 isolate_->global_handles()->PrintStats(); |
| 4567 PrintF("\n"); | 4567 PrintF("\n"); |
| 4568 | 4568 |
| 4569 PrintF("Heap statistics : "); | 4569 PrintF("Heap statistics : "); |
| 4570 memory_allocator()->ReportStatistics(); | 4570 memory_allocator()->ReportStatistics(); |
| 4571 PrintF("To space : "); | 4571 PrintF("To space : "); |
| (...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6350 } | 6350 } |
| 6351 | 6351 |
| 6352 | 6352 |
| 6353 // static | 6353 // static |
| 6354 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6354 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6355 return StaticVisitorBase::GetVisitorId(map); | 6355 return StaticVisitorBase::GetVisitorId(map); |
| 6356 } | 6356 } |
| 6357 | 6357 |
| 6358 } // namespace internal | 6358 } // namespace internal |
| 6359 } // namespace v8 | 6359 } // namespace v8 |
| OLD | NEW |