Chromium Code Reviews| Index: src/spaces.h |
| diff --git a/src/spaces.h b/src/spaces.h |
| index 4fbabd6349d43364e9fe387c3ad0352e6ed42462..16e535348fba1fbc827a2c9e1e5219629749c286 100644 |
| --- a/src/spaces.h |
| +++ b/src/spaces.h |
| @@ -503,6 +503,14 @@ class MemoryChunk { |
| } |
| } |
| + bool IsAheadOfProgressBar(Object** slot) { |
|
Michael Starzinger
2012/11/22 21:13:22
Apparently we have a different understanding of th
Hannes Payer (out of office)
2012/11/23 10:12:49
Done.
|
| + ASSERT(reinterpret_cast<Address>(slot) > reinterpret_cast<Address>(this)); |
| + if (reinterpret_cast<Address>(slot) - reinterpret_cast<Address>(this) < |
|
Michael Starzinger
2012/11/22 21:13:22
The pointer arithmetic is off. The progress bar ac
Hannes Payer (out of office)
2012/11/23 10:12:49
Done.
|
| + progress_bar()) { |
| + return true; |
| + } |
| + return false; |
| + } |
| static void IncrementLiveBytesFromGC(Address address, int by) { |
| MemoryChunk::FromAddress(address)->IncrementLiveBytes(by); |