| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 const int kMaxUInt16 = (1 << 16) - 1; | 117 const int kMaxUInt16 = (1 << 16) - 1; |
| 118 const int kMinUInt16 = 0; | 118 const int kMinUInt16 = 0; |
| 119 | 119 |
| 120 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; | 120 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; |
| 121 | 121 |
| 122 const int kCharSize = sizeof(char); // NOLINT | 122 const int kCharSize = sizeof(char); // NOLINT |
| 123 const int kShortSize = sizeof(short); // NOLINT | 123 const int kShortSize = sizeof(short); // NOLINT |
| 124 const int kIntSize = sizeof(int); // NOLINT | 124 const int kIntSize = sizeof(int); // NOLINT |
| 125 const int kInt32Size = sizeof(int32_t); // NOLINT | 125 const int kInt32Size = sizeof(int32_t); // NOLINT |
| 126 const int kInt64Size = sizeof(int64_t); // NOLINT | 126 const int kInt64Size = sizeof(int64_t); // NOLINT |
| 127 const int kFloatSize = sizeof(float); // NOLINT |
| 127 const int kDoubleSize = sizeof(double); // NOLINT | 128 const int kDoubleSize = sizeof(double); // NOLINT |
| 128 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 129 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
| 129 const int kPointerSize = sizeof(void*); // NOLINT | 130 const int kPointerSize = sizeof(void*); // NOLINT |
| 130 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT | 131 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT |
| 131 const int kRegisterSize = kPointerSize + kPointerSize; | 132 const int kRegisterSize = kPointerSize + kPointerSize; |
| 132 #else | 133 #else |
| 133 const int kRegisterSize = kPointerSize; | 134 const int kRegisterSize = kPointerSize; |
| 134 #endif | 135 #endif |
| 135 const int kPCOnStackSize = kRegisterSize; | 136 const int kPCOnStackSize = kRegisterSize; |
| 136 const int kFPOnStackSize = kRegisterSize; | 137 const int kFPOnStackSize = kRegisterSize; |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 962 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
| 962 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 963 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
| 963 DCHECK(IsValidFunctionKind(kind)); | 964 DCHECK(IsValidFunctionKind(kind)); |
| 964 return kind; | 965 return kind; |
| 965 } | 966 } |
| 966 } } // namespace v8::internal | 967 } } // namespace v8::internal |
| 967 | 968 |
| 968 namespace i = v8::internal; | 969 namespace i = v8::internal; |
| 969 | 970 |
| 970 #endif // V8_GLOBALS_H_ | 971 #endif // V8_GLOBALS_H_ |
| OLD | NEW |