Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 78386c44eb8fbb70a1e50de44cbc3924c2f7a573..a8102cabc7c5093b97bc59c45298c22fcb06ac72 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -612,6 +612,12 @@ class MemoryChunk { |
return live_byte_count_; |
} |
+ void SetLiveBytes(int live_bytes) { |
+ DCHECK_GE(live_bytes, 0); |
+ DCHECK_LE(static_cast<unsigned>(live_bytes), size_); |
+ live_byte_count_ = live_bytes; |
+ } |
+ |
int write_barrier_counter() { |
return static_cast<int>(write_barrier_counter_); |
} |