Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index a85dce5985021bb1145334789d4f900586442252..97f9de996f6cc8abd753072b4c003ac36bb4add9 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -622,7 +622,6 @@ |
} |
size_t size() const { return size_; } |
- void set_size(size_t size) { size_ = size; } |
inline Heap* heap() const { return heap_; } |
@@ -655,7 +654,7 @@ |
bool CommitArea(size_t requested); |
// Approximate amount of physical memory committed for this chunk. |
- size_t CommittedPhysicalMemory(); |
+ size_t CommittedPhysicalMemory() { return high_water_mark_.Value(); } |
Address HighWaterMark() { return address() + high_water_mark_.Value(); } |
@@ -992,10 +991,6 @@ |
} |
inline void set_next_page(LargePage* page) { set_next_chunk(page); } |
- |
- // Uncommit memory that is not in use anymore by the object. If the object |
- // cannot be shrunk 0 is returned. |
- Address GetAddressToShrink(); |
// A limit to guarantee that we do not overflow typed slot offset in |
// the old to old remembered set. |
@@ -1448,7 +1443,6 @@ |
bool CommitMemory(Address addr, size_t size, Executability executable); |
void FreeMemory(base::VirtualMemory* reservation, Executability executable); |
- void PartialFreeMemory(MemoryChunk* chunk, Address start_free); |
void FreeMemory(Address addr, size_t size, Executability executable); |
// Commit a contiguous block of memory from the initial chunk. Assumes that |