OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 #endif | 194 #endif |
195 | 195 |
196 // Trigger an incremental GCs once the external memory reaches this limit. | 196 // Trigger an incremental GCs once the external memory reaches this limit. |
197 const int kExternalAllocationSoftLimit = 64 * MB; | 197 const int kExternalAllocationSoftLimit = 64 * MB; |
198 | 198 |
199 // Maximum object size that gets allocated into regular pages. Objects larger | 199 // Maximum object size that gets allocated into regular pages. Objects larger |
200 // than that size are allocated in large object space and are never moved in | 200 // than that size are allocated in large object space and are never moved in |
201 // memory. This also applies to new space allocation, since objects are never | 201 // memory. This also applies to new space allocation, since objects are never |
202 // migrated from new space to large object space. Takes double alignment into | 202 // migrated from new space to large object space. Takes double alignment into |
203 // account. | 203 // account. |
204 // | 204 const int kMaxRegularHeapObjectSize = 512 * KB - 512; |
205 // Current value: Page::kAllocatableMemory (on 32-bit arch) - 512 (slack). | |
206 const int kMaxRegularHeapObjectSize = 507136; | |
207 | 205 |
208 STATIC_ASSERT(kPointerSize == (1 << kPointerSizeLog2)); | 206 STATIC_ASSERT(kPointerSize == (1 << kPointerSizeLog2)); |
209 | 207 |
210 const int kBitsPerByte = 8; | 208 const int kBitsPerByte = 8; |
211 const int kBitsPerByteLog2 = 3; | 209 const int kBitsPerByteLog2 = 3; |
212 const int kBitsPerPointer = kPointerSize * kBitsPerByte; | 210 const int kBitsPerPointer = kPointerSize * kBitsPerByte; |
213 const int kBitsPerInt = kIntSize * kBitsPerByte; | 211 const int kBitsPerInt = kIntSize * kBitsPerByte; |
214 | 212 |
215 // IEEE 754 single precision floating point number bit layout. | 213 // IEEE 754 single precision floating point number bit layout. |
216 const uint32_t kBinary32SignMask = 0x80000000u; | 214 const uint32_t kBinary32SignMask = 0x80000000u; |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1173 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, | 1171 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, |
1174 LIVE_EDIT_CURRENTLY_SET_MODE | 1172 LIVE_EDIT_CURRENTLY_SET_MODE |
1175 }; | 1173 }; |
1176 | 1174 |
1177 } // namespace internal | 1175 } // namespace internal |
1178 } // namespace v8 | 1176 } // namespace v8 |
1179 | 1177 |
1180 namespace i = v8::internal; | 1178 namespace i = v8::internal; |
1181 | 1179 |
1182 #endif // V8_GLOBALS_H_ | 1180 #endif // V8_GLOBALS_H_ |
OLD | NEW |