| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 const size_t kMaximalCodeRangeSize = 0 * MB; | 189 const size_t kMaximalCodeRangeSize = 0 * MB; |
| 190 const size_t kMinimumCodeRangeSize = 0 * MB; | 190 const size_t kMinimumCodeRangeSize = 0 * MB; |
| 191 const size_t kCodeRangeAreaAlignment = 4 * KB; // OS page. | 191 const size_t kCodeRangeAreaAlignment = 4 * KB; // OS page. |
| 192 #endif | 192 #endif |
| 193 const size_t kReservedCodeRangePages = 0; | 193 const size_t kReservedCodeRangePages = 0; |
| 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 |
| 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 |
| 202 // migrated from new space to large object space. Takes double alignment into |
| 203 // account. |
| 204 const int kMaxRegularHeapObjectSize = 512 * KB - 512; |
| 205 |
| 199 STATIC_ASSERT(kPointerSize == (1 << kPointerSizeLog2)); | 206 STATIC_ASSERT(kPointerSize == (1 << kPointerSizeLog2)); |
| 200 | 207 |
| 201 const int kBitsPerByte = 8; | 208 const int kBitsPerByte = 8; |
| 202 const int kBitsPerByteLog2 = 3; | 209 const int kBitsPerByteLog2 = 3; |
| 203 const int kBitsPerPointer = kPointerSize * kBitsPerByte; | 210 const int kBitsPerPointer = kPointerSize * kBitsPerByte; |
| 204 const int kBitsPerInt = kIntSize * kBitsPerByte; | 211 const int kBitsPerInt = kIntSize * kBitsPerByte; |
| 205 | 212 |
| 206 // IEEE 754 single precision floating point number bit layout. | 213 // IEEE 754 single precision floating point number bit layout. |
| 207 const uint32_t kBinary32SignMask = 0x80000000u; | 214 const uint32_t kBinary32SignMask = 0x80000000u; |
| 208 const uint32_t kBinary32ExponentMask = 0x7f800000u; | 215 const uint32_t kBinary32ExponentMask = 0x7f800000u; |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, | 1171 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, |
| 1165 LIVE_EDIT_CURRENTLY_SET_MODE | 1172 LIVE_EDIT_CURRENTLY_SET_MODE |
| 1166 }; | 1173 }; |
| 1167 | 1174 |
| 1168 } // namespace internal | 1175 } // namespace internal |
| 1169 } // namespace v8 | 1176 } // namespace v8 |
| 1170 | 1177 |
| 1171 namespace i = v8::internal; | 1178 namespace i = v8::internal; |
| 1172 | 1179 |
| 1173 #endif // V8_GLOBALS_H_ | 1180 #endif // V8_GLOBALS_H_ |
| OLD | NEW |