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) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const int64_t kXMaxInt = 0x7fffffffffffffffL; | 82 const int64_t kXMaxInt = 0x7fffffffffffffffL; |
83 const int64_t kXMinInt = 0x8000000000000000L; | 83 const int64_t kXMinInt = 0x8000000000000000L; |
84 const int32_t kWMaxInt = 0x7fffffff; | 84 const int32_t kWMaxInt = 0x7fffffff; |
85 const int32_t kWMinInt = 0x80000000; | 85 const int32_t kWMinInt = 0x80000000; |
86 const unsigned kFramePointerRegCode = 29; | 86 const unsigned kFramePointerRegCode = 29; |
87 const unsigned kLinkRegCode = 30; | 87 const unsigned kLinkRegCode = 30; |
88 const unsigned kZeroRegCode = 31; | 88 const unsigned kZeroRegCode = 31; |
89 const unsigned kJSSPCode = 28; | 89 const unsigned kJSSPCode = 28; |
90 const unsigned kSPRegInternalCode = 63; | 90 const unsigned kSPRegInternalCode = 63; |
91 const unsigned kRegCodeMask = 0x1f; | 91 const unsigned kRegCodeMask = 0x1f; |
| 92 const unsigned kShiftAmountWRegMask = 0x1f; |
| 93 const unsigned kShiftAmountXRegMask = 0x3f; |
92 // Standard machine types defined by AAPCS64. | 94 // Standard machine types defined by AAPCS64. |
93 const unsigned kByteSize = 8; | 95 const unsigned kByteSize = 8; |
94 const unsigned kByteSizeInBytes = kByteSize >> 3; | 96 const unsigned kByteSizeInBytes = kByteSize >> 3; |
95 const unsigned kHalfWordSize = 16; | 97 const unsigned kHalfWordSize = 16; |
96 const unsigned kHalfWordSizeLog2 = 4; | 98 const unsigned kHalfWordSizeLog2 = 4; |
97 const unsigned kHalfWordSizeInBytes = kHalfWordSize >> 3; | 99 const unsigned kHalfWordSizeInBytes = kHalfWordSize >> 3; |
98 const unsigned kHalfWordSizeInBytesLog2 = kHalfWordSizeLog2 - 3; | 100 const unsigned kHalfWordSizeInBytesLog2 = kHalfWordSizeLog2 - 3; |
99 const unsigned kWordSize = 32; | 101 const unsigned kWordSize = 32; |
100 const unsigned kWordSizeLog2 = 5; | 102 const unsigned kWordSizeLog2 = 5; |
101 const unsigned kWordSizeInBytes = kWordSize >> 3; | 103 const unsigned kWordSizeInBytes = kWordSize >> 3; |
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 }; | 1242 }; |
1241 | 1243 |
1242 enum UnallocatedOp { | 1244 enum UnallocatedOp { |
1243 UnallocatedFixed = 0x00000000, | 1245 UnallocatedFixed = 0x00000000, |
1244 UnallocatedFMask = 0x00000000 | 1246 UnallocatedFMask = 0x00000000 |
1245 }; | 1247 }; |
1246 | 1248 |
1247 } } // namespace v8::internal | 1249 } } // namespace v8::internal |
1248 | 1250 |
1249 #endif // V8_ARM64_CONSTANTS_ARM64_H_ | 1251 #endif // V8_ARM64_CONSTANTS_ARM64_H_ |
OLD | NEW |