OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
774 } | 774 } |
775 | 775 |
776 // --------------------------------------------------------------------- | 776 // --------------------------------------------------------------------- |
777 | 777 |
778 // Page size in bytes. This must be a multiple of the OS page size. | 778 // Page size in bytes. This must be a multiple of the OS page size. |
779 static const int kPageSize = 1 << kPageSizeBits; | 779 static const int kPageSize = 1 << kPageSizeBits; |
780 | 780 |
781 // Object area size in bytes. | 781 // Object area size in bytes. |
782 static const int kNonCodeObjectAreaSize = kPageSize - kObjectStartOffset; | 782 static const int kNonCodeObjectAreaSize = kPageSize - kObjectStartOffset; |
783 | 783 |
784 // Maximum object size that fits in a page. | 784 // Maximum object size that fits in a page. Objects larger than that size |
785 // are allocated in large object space and are never moved in memory. | |
Michael Starzinger
2013/07/24 08:40:08
nit: Can we also mention that this maximum also ap
Hannes Payer (out of office)
2013/07/24 08:49:52
Done.
| |
785 static const int kMaxNonCodeHeapObjectSize = kNonCodeObjectAreaSize; | 786 static const int kMaxNonCodeHeapObjectSize = kNonCodeObjectAreaSize; |
786 | 787 |
787 // Page size mask. | 788 // Page size mask. |
788 static const intptr_t kPageAlignmentMask = (1 << kPageSizeBits) - 1; | 789 static const intptr_t kPageAlignmentMask = (1 << kPageSizeBits) - 1; |
789 | 790 |
790 inline void ClearGCFields(); | 791 inline void ClearGCFields(); |
791 | 792 |
792 static inline Page* Initialize(Heap* heap, | 793 static inline Page* Initialize(Heap* heap, |
793 MemoryChunk* chunk, | 794 MemoryChunk* chunk, |
794 Executability executable, | 795 Executability executable, |
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2874 } | 2875 } |
2875 // Must be small, since an iteration is used for lookup. | 2876 // Must be small, since an iteration is used for lookup. |
2876 static const int kMaxComments = 64; | 2877 static const int kMaxComments = 64; |
2877 }; | 2878 }; |
2878 #endif | 2879 #endif |
2879 | 2880 |
2880 | 2881 |
2881 } } // namespace v8::internal | 2882 } } // namespace v8::internal |
2882 | 2883 |
2883 #endif // V8_SPACES_H_ | 2884 #endif // V8_SPACES_H_ |
OLD | NEW |