| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 } | 289 } |
| 290 | 290 |
| 291 | 291 |
| 292 inline LanguageMode construct_language_mode(bool strict_bit) { | 292 inline LanguageMode construct_language_mode(bool strict_bit) { |
| 293 return static_cast<LanguageMode>(strict_bit); | 293 return static_cast<LanguageMode>(strict_bit); |
| 294 } | 294 } |
| 295 | 295 |
| 296 // This constant is used as an undefined value when passing source positions. | 296 // This constant is used as an undefined value when passing source positions. |
| 297 const int kNoSourcePosition = -1; | 297 const int kNoSourcePosition = -1; |
| 298 | 298 |
| 299 // This constant is used to indicate missing deoptimization information. |
| 300 const int kNoDeoptimizationId = -1; |
| 301 |
| 299 // Mask for the sign bit in a smi. | 302 // Mask for the sign bit in a smi. |
| 300 const intptr_t kSmiSignMask = kIntptrSignBit; | 303 const intptr_t kSmiSignMask = kIntptrSignBit; |
| 301 | 304 |
| 302 const int kObjectAlignmentBits = kPointerSizeLog2; | 305 const int kObjectAlignmentBits = kPointerSizeLog2; |
| 303 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; | 306 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; |
| 304 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; | 307 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; |
| 305 | 308 |
| 306 // Desired alignment for pointers. | 309 // Desired alignment for pointers. |
| 307 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); | 310 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); |
| 308 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; | 311 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> | 1133 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> |
| 1131 kPointerSizeLog2); | 1134 kPointerSizeLog2); |
| 1132 } | 1135 } |
| 1133 | 1136 |
| 1134 } // namespace internal | 1137 } // namespace internal |
| 1135 } // namespace v8 | 1138 } // namespace v8 |
| 1136 | 1139 |
| 1137 namespace i = v8::internal; | 1140 namespace i = v8::internal; |
| 1138 | 1141 |
| 1139 #endif // V8_GLOBALS_H_ | 1142 #endif // V8_GLOBALS_H_ |
| OLD | NEW |