| Index: src/compiler/zone-stats.cc
|
| diff --git a/src/compiler/zone-stats.cc b/src/compiler/zone-stats.cc
|
| index 8942df5555c55542530cc250f12f5db8bac79076..626ad4072cdb44e272cf9b6b39fe9b2a2e259ca4 100644
|
| --- a/src/compiler/zone-stats.cc
|
| +++ b/src/compiler/zone-stats.cc
|
| @@ -68,11 +68,11 @@ ZoneStats::~ZoneStats() {
|
| DCHECK(stats_.empty());
|
| }
|
|
|
| -size_t ZoneStats::GetMaxAllocatedBytes() {
|
| +size_t ZoneStats::GetMaxAllocatedBytes() const {
|
| return std::max(max_allocated_bytes_, GetCurrentAllocatedBytes());
|
| }
|
|
|
| -size_t ZoneStats::GetCurrentAllocatedBytes() {
|
| +size_t ZoneStats::GetCurrentAllocatedBytes() const {
|
| size_t total = 0;
|
| for (Zone* zone : zones_) {
|
| total += static_cast<size_t>(zone->allocation_size());
|
| @@ -80,7 +80,7 @@ size_t ZoneStats::GetCurrentAllocatedBytes() {
|
| return total;
|
| }
|
|
|
| -size_t ZoneStats::GetTotalAllocatedBytes() {
|
| +size_t ZoneStats::GetTotalAllocatedBytes() const {
|
| return total_deleted_bytes_ + GetCurrentAllocatedBytes();
|
| }
|
|
|
|
|