| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS_CONSTANTS_H_ | 5 #ifndef V8_MIPS_CONSTANTS_H_ |
| 6 #define V8_MIPS_CONSTANTS_H_ | 6 #define V8_MIPS_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "src/base/logging.h" | 8 #include "src/base/logging.h" |
| 9 #include "src/base/macros.h" | 9 #include "src/base/macros.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const int kNumFPURegisters = 32; | 115 const int kNumFPURegisters = 32; |
| 116 const int kInvalidFPURegister = -1; | 116 const int kInvalidFPURegister = -1; |
| 117 | 117 |
| 118 // Number of MSA registers | 118 // Number of MSA registers |
| 119 const int kNumMSARegisters = 32; | 119 const int kNumMSARegisters = 32; |
| 120 const int kInvalidMSARegister = -1; | 120 const int kInvalidMSARegister = -1; |
| 121 | 121 |
| 122 const int kInvalidMSAControlRegister = -1; | 122 const int kInvalidMSAControlRegister = -1; |
| 123 const int kMSAIRRegister = 0; | 123 const int kMSAIRRegister = 0; |
| 124 const int kMSACSRRegister = 1; | 124 const int kMSACSRRegister = 1; |
| 125 const int kMSARegSize = 128; |
| 126 const int kMSALanesByte = kMSARegSize / 8; |
| 127 const int kMSALanesHalf = kMSARegSize / 16; |
| 128 const int kMSALanesWord = kMSARegSize / 32; |
| 129 const int kMSALanesDword = kMSARegSize / 64; |
| 125 | 130 |
| 126 // FPU (coprocessor 1) control registers. Currently only FCSR is implemented. | 131 // FPU (coprocessor 1) control registers. Currently only FCSR is implemented. |
| 127 const int kFCSRRegister = 31; | 132 const int kFCSRRegister = 31; |
| 128 const int kInvalidFPUControlRegister = -1; | 133 const int kInvalidFPUControlRegister = -1; |
| 129 const uint32_t kFPUInvalidResult = static_cast<uint32_t>(1 << 31) - 1; | 134 const uint32_t kFPUInvalidResult = static_cast<uint32_t>(1 << 31) - 1; |
| 130 const int32_t kFPUInvalidResultNegative = static_cast<int32_t>(1 << 31); | 135 const int32_t kFPUInvalidResultNegative = static_cast<int32_t>(1 << 31); |
| 131 const uint64_t kFPU64InvalidResult = | 136 const uint64_t kFPU64InvalidResult = |
| 132 static_cast<uint64_t>(static_cast<uint64_t>(1) << 63) - 1; | 137 static_cast<uint64_t>(static_cast<uint64_t>(1) << 63) - 1; |
| 133 const int64_t kFPU64InvalidResultNegative = | 138 const int64_t kFPU64InvalidResultNegative = |
| 134 static_cast<int64_t>(static_cast<uint64_t>(1) << 63); | 139 static_cast<int64_t>(static_cast<uint64_t>(1) << 63); |
| (...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1920 } | 1925 } |
| 1921 break; | 1926 break; |
| 1922 default: | 1927 default: |
| 1923 return false; | 1928 return false; |
| 1924 } | 1929 } |
| 1925 } | 1930 } |
| 1926 } // namespace internal | 1931 } // namespace internal |
| 1927 } // namespace v8 | 1932 } // namespace v8 |
| 1928 | 1933 |
| 1929 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1934 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |