| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 const int kMaxUInt8 = (1 << 8) - 1; | 134 const int kMaxUInt8 = (1 << 8) - 1; |
| 135 const int kMinUInt8 = 0; | 135 const int kMinUInt8 = 0; |
| 136 const int kMaxInt16 = (1 << 15) - 1; | 136 const int kMaxInt16 = (1 << 15) - 1; |
| 137 const int kMinInt16 = -(1 << 15); | 137 const int kMinInt16 = -(1 << 15); |
| 138 const int kMaxUInt16 = (1 << 16) - 1; | 138 const int kMaxUInt16 = (1 << 16) - 1; |
| 139 const int kMinUInt16 = 0; | 139 const int kMinUInt16 = 0; |
| 140 | 140 |
| 141 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; | 141 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; |
| 142 const int kMinUInt32 = 0; | 142 const int kMinUInt32 = 0; |
| 143 | 143 |
| 144 const int kCharSize = sizeof(char); // NOLINT | 144 const int kCharSize = sizeof(char); |
| 145 const int kShortSize = sizeof(short); // NOLINT | 145 const int kShortSize = sizeof(short); // NOLINT |
| 146 const int kIntSize = sizeof(int); // NOLINT | 146 const int kIntSize = sizeof(int); |
| 147 const int kInt32Size = sizeof(int32_t); // NOLINT | 147 const int kInt32Size = sizeof(int32_t); |
| 148 const int kInt64Size = sizeof(int64_t); // NOLINT | 148 const int kInt64Size = sizeof(int64_t); |
| 149 const int kFloatSize = sizeof(float); // NOLINT | 149 const int kSizetSize = sizeof(size_t); |
| 150 const int kDoubleSize = sizeof(double); // NOLINT | 150 const int kFloatSize = sizeof(float); |
| 151 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 151 const int kDoubleSize = sizeof(double); |
| 152 const int kPointerSize = sizeof(void*); // NOLINT | 152 const int kIntptrSize = sizeof(intptr_t); |
| 153 const int kPointerSize = sizeof(void*); |
| 153 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT | 154 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT |
| 154 const int kRegisterSize = kPointerSize + kPointerSize; | 155 const int kRegisterSize = kPointerSize + kPointerSize; |
| 155 #else | 156 #else |
| 156 const int kRegisterSize = kPointerSize; | 157 const int kRegisterSize = kPointerSize; |
| 157 #endif | 158 #endif |
| 158 const int kPCOnStackSize = kRegisterSize; | 159 const int kPCOnStackSize = kRegisterSize; |
| 159 const int kFPOnStackSize = kRegisterSize; | 160 const int kFPOnStackSize = kRegisterSize; |
| 160 | 161 |
| 161 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 | 162 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 |
| 162 const int kElidedFrameSlots = kPCOnStackSize / kPointerSize; | 163 const int kElidedFrameSlots = kPCOnStackSize / kPointerSize; |
| 163 #else | 164 #else |
| 164 const int kElidedFrameSlots = 0; | 165 const int kElidedFrameSlots = 0; |
| 165 #endif | 166 #endif |
| 166 | 167 |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1267 UNREACHABLE(); | 1268 UNREACHABLE(); |
| 1268 return os; | 1269 return os; |
| 1269 } | 1270 } |
| 1270 | 1271 |
| 1271 } // namespace internal | 1272 } // namespace internal |
| 1272 } // namespace v8 | 1273 } // namespace v8 |
| 1273 | 1274 |
| 1274 namespace i = v8::internal; | 1275 namespace i = v8::internal; |
| 1275 | 1276 |
| 1276 #endif // V8_GLOBALS_H_ | 1277 #endif // V8_GLOBALS_H_ |
| OLD | NEW |