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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 (V8_TARGET_ARCH_X87) | 864 (V8_TARGET_ARCH_X87) |
865 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; | 865 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; |
866 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; | 866 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; |
867 #else | 867 #else |
868 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; | 868 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; |
869 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; | 869 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; |
870 #endif | 870 #endif |
871 | 871 |
872 const uint64_t kHoleNanInt64 = | 872 const uint64_t kHoleNanInt64 = |
873 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; | 873 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; |
874 | 874 const double kHoleNanDouble = bit_cast<double>(kHoleNanInt64); |
875 | 875 |
876 // ES6 section 20.1.2.6 Number.MAX_SAFE_INTEGER | 876 // ES6 section 20.1.2.6 Number.MAX_SAFE_INTEGER |
877 const double kMaxSafeInteger = 9007199254740991.0; // 2^53-1 | 877 const double kMaxSafeInteger = 9007199254740991.0; // 2^53-1 |
878 | 878 |
879 | 879 |
880 // The order of this enum has to be kept in sync with the predicates below. | 880 // The order of this enum has to be kept in sync with the predicates below. |
881 enum VariableMode { | 881 enum VariableMode { |
882 // User declared variables: | 882 // User declared variables: |
883 VAR, // declared via 'var', and 'function' declarations | 883 VAR, // declared via 'var', and 'function' declarations |
884 | 884 |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 public: | 1156 public: |
1157 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; | 1157 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; |
1158 }; | 1158 }; |
1159 | 1159 |
1160 } // namespace internal | 1160 } // namespace internal |
1161 } // namespace v8 | 1161 } // namespace v8 |
1162 | 1162 |
1163 namespace i = v8::internal; | 1163 namespace i = v8::internal; |
1164 | 1164 |
1165 #endif // V8_GLOBALS_H_ | 1165 #endif // V8_GLOBALS_H_ |
OLD | NEW |