| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 static const intptr_t kPageAlignmentMask = (1 << kPageSizeBits) - 1; | 307 static const intptr_t kPageAlignmentMask = (1 << kPageSizeBits) - 1; |
| 308 | 308 |
| 309 // The start offset of the object area in a page. Aligned to both maps and | 309 // The start offset of the object area in a page. Aligned to both maps and |
| 310 // code alignment to be suitable for both. | 310 // code alignment to be suitable for both. |
| 311 static const int kObjectStartOffset = kBodyOffset; | 311 static const int kObjectStartOffset = kBodyOffset; |
| 312 | 312 |
| 313 // Object area size in bytes. | 313 // Object area size in bytes. |
| 314 static const int kObjectAreaSize = kPageSize - kObjectStartOffset; | 314 static const int kObjectAreaSize = kPageSize - kObjectStartOffset; |
| 315 | 315 |
| 316 // Maximum object size that fits in a page. | 316 // Maximum object size that fits in a page. |
| 317 static const int kMaxHeapObjectSize = kObjectAreaSize; | 317 static const int kMaxHeapObjectSize = kObjectAreaSize >> 4; |
| 318 | 318 |
| 319 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER | 319 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER |
| 320 static const int kDirtyFlagOffset = 2 * kPointerSize; | 320 static const int kDirtyFlagOffset = 2 * kPointerSize; |
| 321 static const int kRegionSizeLog2 = 8; | 321 static const int kRegionSizeLog2 = 8; |
| 322 static const int kRegionSize = 1 << kRegionSizeLog2; | 322 static const int kRegionSize = 1 << kRegionSizeLog2; |
| 323 static const intptr_t kRegionAlignmentMask = (kRegionSize - 1); | 323 static const intptr_t kRegionAlignmentMask = (kRegionSize - 1); |
| 324 | 324 |
| 325 STATIC_CHECK(kRegionSize == kPageSize / kBitsPerInt); | 325 STATIC_CHECK(kRegionSize == kPageSize / kBitsPerInt); |
| 326 #endif | 326 #endif |
| 327 | 327 |
| (...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2093 | 2093 |
| 2094 private: | 2094 private: |
| 2095 LargePage* current_; | 2095 LargePage* current_; |
| 2096 HeapObjectCallback size_func_; | 2096 HeapObjectCallback size_func_; |
| 2097 }; | 2097 }; |
| 2098 | 2098 |
| 2099 | 2099 |
| 2100 } } // namespace v8::internal | 2100 } } // namespace v8::internal |
| 2101 | 2101 |
| 2102 #endif // V8_SPACES_H_ | 2102 #endif // V8_SPACES_H_ |
| OLD | NEW |