OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_CONSTANTS_ARM64_H_ | 5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_ |
6 #define V8_ARM64_CONSTANTS_ARM64_H_ | 6 #define V8_ARM64_CONSTANTS_ARM64_H_ |
7 | 7 |
8 | 8 |
9 // Assert that this is an LP64 system. | 9 // Assert that this is an LP64 system. |
10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof) | 10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof) |
11 STATIC_ASSERT(sizeof(long) == sizeof(int64_t)); // NOLINT(runtime/int) | 11 STATIC_ASSERT(sizeof(long) == sizeof(int64_t)); // NOLINT(runtime/int) |
12 STATIC_ASSERT(sizeof(void *) == sizeof(int64_t)); // NOLINT(runtime/sizeof) | 12 STATIC_ASSERT(sizeof(void *) == sizeof(int64_t)); // NOLINT(runtime/sizeof) |
13 STATIC_ASSERT(sizeof(1) == sizeof(int32_t)); // NOLINT(runtime/sizeof) | 13 STATIC_ASSERT(sizeof(1) == sizeof(int32_t)); // NOLINT(runtime/sizeof) |
14 STATIC_ASSERT(sizeof(1L) == sizeof(int64_t)); // NOLINT(runtime/sizeof) | 14 STATIC_ASSERT(sizeof(1L) == sizeof(int64_t)); // NOLINT(runtime/sizeof) |
15 | 15 |
16 | 16 |
17 // Get the standard printf format macros for C99 stdint types. | 17 // Get the standard printf format macros for C99 stdint types. |
| 18 #ifndef __STDC_FORMAT_MACROS |
18 #define __STDC_FORMAT_MACROS | 19 #define __STDC_FORMAT_MACROS |
| 20 #endif |
19 #include <inttypes.h> | 21 #include <inttypes.h> |
20 | 22 |
21 | 23 |
22 namespace v8 { | 24 namespace v8 { |
23 namespace internal { | 25 namespace internal { |
24 | 26 |
25 | 27 |
26 const unsigned kInstructionSize = 4; | 28 const unsigned kInstructionSize = 4; |
27 const unsigned kInstructionSizeLog2 = 2; | 29 const unsigned kInstructionSizeLog2 = 2; |
28 const unsigned kLoadLiteralScaleLog2 = 2; | 30 const unsigned kLoadLiteralScaleLog2 = 2; |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 }; | 1243 }; |
1242 | 1244 |
1243 enum UnallocatedOp { | 1245 enum UnallocatedOp { |
1244 UnallocatedFixed = 0x00000000, | 1246 UnallocatedFixed = 0x00000000, |
1245 UnallocatedFMask = 0x00000000 | 1247 UnallocatedFMask = 0x00000000 |
1246 }; | 1248 }; |
1247 | 1249 |
1248 } } // namespace v8::internal | 1250 } } // namespace v8::internal |
1249 | 1251 |
1250 #endif // V8_ARM64_CONSTANTS_ARM64_H_ | 1252 #endif // V8_ARM64_CONSTANTS_ARM64_H_ |
OLD | NEW |