OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const unsigned kDRegSizeInBits = 64; | 78 const unsigned kDRegSizeInBits = 64; |
79 const unsigned kDRegSizeInBitsLog2 = 6; | 79 const unsigned kDRegSizeInBitsLog2 = 6; |
80 const unsigned kDRegSize = kDRegSizeInBits >> 3; | 80 const unsigned kDRegSize = kDRegSizeInBits >> 3; |
81 const unsigned kDRegSizeLog2 = kDRegSizeInBitsLog2 - 3; | 81 const unsigned kDRegSizeLog2 = kDRegSizeInBitsLog2 - 3; |
82 const int64_t kWRegMask = 0x00000000ffffffffL; | 82 const int64_t kWRegMask = 0x00000000ffffffffL; |
83 const int64_t kXRegMask = 0xffffffffffffffffL; | 83 const int64_t kXRegMask = 0xffffffffffffffffL; |
84 const int64_t kSRegMask = 0x00000000ffffffffL; | 84 const int64_t kSRegMask = 0x00000000ffffffffL; |
85 const int64_t kDRegMask = 0xffffffffffffffffL; | 85 const int64_t kDRegMask = 0xffffffffffffffffL; |
86 // TODO(all) check if the expression below works on all compilers or if it | 86 // TODO(all) check if the expression below works on all compilers or if it |
87 // triggers an overflow error. | 87 // triggers an overflow error. |
88 const int64_t kDSignMask = 0x1L << 63; | |
89 const int64_t kDSignBit = 63; | 88 const int64_t kDSignBit = 63; |
90 const int64_t kXSignMask = 0x1L << 63; | 89 const int64_t kDSignMask = 0x1L << kDSignBit; |
| 90 const int64_t kSSignBit = 31; |
| 91 const int64_t kSSignMask = 0x1L << kSSignBit; |
91 const int64_t kXSignBit = 63; | 92 const int64_t kXSignBit = 63; |
92 const int64_t kWSignMask = 0x1L << 31; | 93 const int64_t kXSignMask = 0x1L << kXSignBit; |
93 const int64_t kWSignBit = 31; | 94 const int64_t kWSignBit = 31; |
| 95 const int64_t kWSignMask = 0x1L << kWSignBit; |
| 96 const int64_t kDQuietNanBit = 51; |
| 97 const int64_t kDQuietNanMask = 0x1L << kDQuietNanBit; |
| 98 const int64_t kSQuietNanBit = 22; |
| 99 const int64_t kSQuietNanMask = 0x1L << kSQuietNanBit; |
94 const int64_t kByteMask = 0xffL; | 100 const int64_t kByteMask = 0xffL; |
95 const int64_t kHalfWordMask = 0xffffL; | 101 const int64_t kHalfWordMask = 0xffffL; |
96 const int64_t kWordMask = 0xffffffffL; | 102 const int64_t kWordMask = 0xffffffffL; |
97 const uint64_t kXMaxUInt = 0xffffffffffffffffUL; | 103 const uint64_t kXMaxUInt = 0xffffffffffffffffUL; |
98 const uint64_t kWMaxUInt = 0xffffffffUL; | 104 const uint64_t kWMaxUInt = 0xffffffffUL; |
99 const int64_t kXMaxInt = 0x7fffffffffffffffL; | 105 const int64_t kXMaxInt = 0x7fffffffffffffffL; |
100 const int64_t kXMinInt = 0x8000000000000000L; | 106 const int64_t kXMinInt = 0x8000000000000000L; |
101 const int32_t kWMaxInt = 0x7fffffff; | 107 const int32_t kWMaxInt = 0x7fffffff; |
102 const int32_t kWMinInt = 0x80000000; | 108 const int32_t kWMinInt = 0x80000000; |
103 const unsigned kFramePointerRegCode = 29; | 109 const unsigned kFramePointerRegCode = 29; |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 }; | 1259 }; |
1254 | 1260 |
1255 enum UnallocatedOp { | 1261 enum UnallocatedOp { |
1256 UnallocatedFixed = 0x00000000, | 1262 UnallocatedFixed = 0x00000000, |
1257 UnallocatedFMask = 0x00000000 | 1263 UnallocatedFMask = 0x00000000 |
1258 }; | 1264 }; |
1259 | 1265 |
1260 } } // namespace v8::internal | 1266 } } // namespace v8::internal |
1261 | 1267 |
1262 #endif // V8_A64_CONSTANTS_A64_H_ | 1268 #endif // V8_A64_CONSTANTS_A64_H_ |
OLD | NEW |