| 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 #define __STDC_FORMAT_MACROS | 18 #define __STDC_FORMAT_MACROS |
| 19 #include <inttypes.h> | 19 #include <inttypes.h> |
| 20 | 20 |
| 21 | 21 |
| 22 namespace v8 { | 22 namespace v8 { |
| 23 namespace internal { | 23 namespace internal { |
| 24 | 24 |
| 25 | 25 |
| 26 const unsigned kInstructionSize = 4; | 26 const unsigned kInstructionSize = 4; |
| 27 const unsigned kInstructionSizeLog2 = 2; | 27 const unsigned kInstructionSizeLog2 = 2; |
| 28 const unsigned kLiteralEntrySize = 4; | 28 const unsigned kLoadLiteralScaleLog2 = 2; |
| 29 const unsigned kLiteralEntrySizeLog2 = 2; | |
| 30 const unsigned kMaxLoadLiteralRange = 1 * MB; | 29 const unsigned kMaxLoadLiteralRange = 1 * MB; |
| 31 | 30 |
| 32 const unsigned kNumberOfRegisters = 32; | 31 const unsigned kNumberOfRegisters = 32; |
| 33 const unsigned kNumberOfFPRegisters = 32; | 32 const unsigned kNumberOfFPRegisters = 32; |
| 34 // Callee saved registers are x19-x30(lr). | 33 // Callee saved registers are x19-x30(lr). |
| 35 const int kNumberOfCalleeSavedRegisters = 11; | 34 const int kNumberOfCalleeSavedRegisters = 11; |
| 36 const int kFirstCalleeSavedRegisterIndex = 19; | 35 const int kFirstCalleeSavedRegisterIndex = 19; |
| 37 // Callee saved FP registers are d8-d15. | 36 // Callee saved FP registers are d8-d15. |
| 38 const int kNumberOfCalleeSavedFPRegisters = 8; | 37 const int kNumberOfCalleeSavedFPRegisters = 8; |
| 39 const int kFirstCalleeSavedFPRegisterIndex = 8; | 38 const int kFirstCalleeSavedFPRegisterIndex = 8; |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 }; | 1241 }; |
| 1243 | 1242 |
| 1244 enum UnallocatedOp { | 1243 enum UnallocatedOp { |
| 1245 UnallocatedFixed = 0x00000000, | 1244 UnallocatedFixed = 0x00000000, |
| 1246 UnallocatedFMask = 0x00000000 | 1245 UnallocatedFMask = 0x00000000 |
| 1247 }; | 1246 }; |
| 1248 | 1247 |
| 1249 } } // namespace v8::internal | 1248 } } // namespace v8::internal |
| 1250 | 1249 |
| 1251 #endif // V8_ARM64_CONSTANTS_ARM64_H_ | 1250 #endif // V8_ARM64_CONSTANTS_ARM64_H_ |
| OLD | NEW |