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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 const int kMaxInt8 = (1 << 7) - 1; | 106 const int kMaxInt8 = (1 << 7) - 1; |
107 const int kMinInt8 = -(1 << 7); | 107 const int kMinInt8 = -(1 << 7); |
108 const int kMaxUInt8 = (1 << 8) - 1; | 108 const int kMaxUInt8 = (1 << 8) - 1; |
109 const int kMinUInt8 = 0; | 109 const int kMinUInt8 = 0; |
110 const int kMaxInt16 = (1 << 15) - 1; | 110 const int kMaxInt16 = (1 << 15) - 1; |
111 const int kMinInt16 = -(1 << 15); | 111 const int kMinInt16 = -(1 << 15); |
112 const int kMaxUInt16 = (1 << 16) - 1; | 112 const int kMaxUInt16 = (1 << 16) - 1; |
113 const int kMinUInt16 = 0; | 113 const int kMinUInt16 = 0; |
114 | 114 |
115 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; | 115 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; |
| 116 const int kMinUInt32 = 0; |
116 | 117 |
117 const int kCharSize = sizeof(char); // NOLINT | 118 const int kCharSize = sizeof(char); // NOLINT |
118 const int kShortSize = sizeof(short); // NOLINT | 119 const int kShortSize = sizeof(short); // NOLINT |
119 const int kIntSize = sizeof(int); // NOLINT | 120 const int kIntSize = sizeof(int); // NOLINT |
120 const int kInt32Size = sizeof(int32_t); // NOLINT | 121 const int kInt32Size = sizeof(int32_t); // NOLINT |
121 const int kInt64Size = sizeof(int64_t); // NOLINT | 122 const int kInt64Size = sizeof(int64_t); // NOLINT |
122 const int kFloatSize = sizeof(float); // NOLINT | 123 const int kFloatSize = sizeof(float); // NOLINT |
123 const int kDoubleSize = sizeof(double); // NOLINT | 124 const int kDoubleSize = sizeof(double); // NOLINT |
124 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 125 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
125 const int kPointerSize = sizeof(void*); // NOLINT | 126 const int kPointerSize = sizeof(void*); // NOLINT |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> | 1027 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> |
1027 kPointerSizeLog2); | 1028 kPointerSizeLog2); |
1028 } | 1029 } |
1029 | 1030 |
1030 } // namespace internal | 1031 } // namespace internal |
1031 } // namespace v8 | 1032 } // namespace v8 |
1032 | 1033 |
1033 namespace i = v8::internal; | 1034 namespace i = v8::internal; |
1034 | 1035 |
1035 #endif // V8_GLOBALS_H_ | 1036 #endif // V8_GLOBALS_H_ |
OLD | NEW |