Chromium Code Reviews| Index: src/spaces.h |
| diff --git a/src/spaces.h b/src/spaces.h |
| index 9ffa9404892aa937e854d4e19ef76e66b0524c98..4db14dfba38bd7fff584c74a5f4598c2b706e054 100644 |
| --- a/src/spaces.h |
| +++ b/src/spaces.h |
| @@ -243,8 +243,10 @@ class Page { |
| static const int kPageHeaderSize = kPointerSize + kPointerSize + kIntSize + |
| kIntSize + kPointerSize; |
| - // The start offset of the object area in a page. |
| - static const int kObjectStartOffset = MAP_POINTER_ALIGN(kPageHeaderSize); |
| + // The start offset of the object area in a page. Aligned to both maps and |
| + // code alignment to be suitabel for both. |
|
Vitaly Repeshko
2010/09/24 15:45:38
Typo: "suitable".
|
| + static const int kObjectStartOffset = |
| + CODE_POINTER_ALIGN(MAP_POINTER_ALIGN(kPageHeaderSize)); |
| // Object area size in bytes. |
| static const int kObjectAreaSize = kPageSize - kObjectStartOffset; |