Chromium Code Reviews| Index: src/spaces.h |
| diff --git a/src/spaces.h b/src/spaces.h |
| index 4fbabd6349d43364e9fe387c3ad0352e6ed42462..3eb65b9c120a5878e00dd98f69f1580a16a3c874 100644 |
| --- a/src/spaces.h |
| +++ b/src/spaces.h |
| @@ -503,6 +503,11 @@ class MemoryChunk { |
| } |
| } |
| + bool IsLeftOfProgressBar(Object** slot) { |
| + ASSERT(reinterpret_cast<Address>(slot) > reinterpret_cast<Address>(this)); |
| + return reinterpret_cast<Address>(slot) - (reinterpret_cast<Address>(this) + |
|
Michael Starzinger
2012/11/26 15:10:26
Used the address() helper instead of "reinterpret_
Hannes Payer (out of office)
2012/11/26 16:14:35
Done.
|
| + kObjectStartOffset) < progress_bar(); |
| + } |
| static void IncrementLiveBytesFromGC(Address address, int by) { |
| MemoryChunk::FromAddress(address)->IncrementLiveBytes(by); |