| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const unsigned kNumberOfFPRegisters = 32; | 56 const unsigned kNumberOfFPRegisters = 32; |
| 57 // Callee saved registers are x19-x30(lr). | 57 // Callee saved registers are x19-x30(lr). |
| 58 const int kNumberOfCalleeSavedRegisters = 11; | 58 const int kNumberOfCalleeSavedRegisters = 11; |
| 59 const int kFirstCalleeSavedRegisterIndex = 19; | 59 const int kFirstCalleeSavedRegisterIndex = 19; |
| 60 // Callee saved FP registers are d8-d15. | 60 // Callee saved FP registers are d8-d15. |
| 61 const int kNumberOfCalleeSavedFPRegisters = 8; | 61 const int kNumberOfCalleeSavedFPRegisters = 8; |
| 62 const int kFirstCalleeSavedFPRegisterIndex = 8; | 62 const int kFirstCalleeSavedFPRegisterIndex = 8; |
| 63 // Callee saved registers with no specific purpose in JS are x19-x25. | 63 // Callee saved registers with no specific purpose in JS are x19-x25. |
| 64 const unsigned kJSCalleeSavedRegList = 0x03f80000; | 64 const unsigned kJSCalleeSavedRegList = 0x03f80000; |
| 65 // TODO(all): k<Y>RegSize should probably be k<Y>RegSizeInBits. | 65 // TODO(all): k<Y>RegSize should probably be k<Y>RegSizeInBits. |
| 66 const unsigned kWRegSize = 32; | 66 const unsigned kWRegSizeInBits = 32; |
| 67 const unsigned kWRegSizeLog2 = 5; | 67 const unsigned kWRegSizeInBitsLog2 = 5; |
| 68 const unsigned kWRegSizeInBytes = kWRegSize >> 3; | 68 const unsigned kWRegSize = kWRegSizeInBits >> 3; |
| 69 const unsigned kWRegSizeInBytesLog2 = kWRegSizeLog2 - 3; | 69 const unsigned kWRegSizeLog2 = kWRegSizeInBitsLog2 - 3; |
| 70 const unsigned kXRegSize = 64; | 70 const unsigned kXRegSizeInBits = 64; |
| 71 const unsigned kXRegSizeLog2 = 6; | 71 const unsigned kXRegSizeInBitsLog2 = 6; |
| 72 const unsigned kXRegSizeInBytes = kXRegSize >> 3; | 72 const unsigned kXRegSize = kXRegSizeInBits >> 3; |
| 73 const unsigned kXRegSizeInBytesLog2 = kXRegSizeLog2 - 3; | 73 const unsigned kXRegSizeLog2 = kXRegSizeInBitsLog2 - 3; |
| 74 const unsigned kSRegSize = 32; | 74 const unsigned kSRegSizeInBits = 32; |
| 75 const unsigned kSRegSizeLog2 = 5; | 75 const unsigned kSRegSizeInBitsLog2 = 5; |
| 76 const unsigned kSRegSizeInBytes = kSRegSize >> 3; | 76 const unsigned kSRegSize = kSRegSizeInBits >> 3; |
| 77 const unsigned kSRegSizeInBytesLog2 = kSRegSizeLog2 - 3; | 77 const unsigned kSRegSizeLog2 = kSRegSizeInBitsLog2 - 3; |
| 78 const unsigned kDRegSize = 64; | 78 const unsigned kDRegSizeInBits = 64; |
| 79 const unsigned kDRegSizeLog2 = 6; | 79 const unsigned kDRegSizeInBitsLog2 = 6; |
| 80 const unsigned kDRegSizeInBytes = kDRegSize >> 3; | 80 const unsigned kDRegSize = kDRegSizeInBits >> 3; |
| 81 const unsigned kDRegSizeInBytesLog2 = kDRegSizeLog2 - 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 |