| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // 'pref' instruction hints | 152 // 'pref' instruction hints |
| 153 const int32_t kPrefHintLoad = 0; | 153 const int32_t kPrefHintLoad = 0; |
| 154 const int32_t kPrefHintStore = 1; | 154 const int32_t kPrefHintStore = 1; |
| 155 const int32_t kPrefHintLoadStreamed = 4; | 155 const int32_t kPrefHintLoadStreamed = 4; |
| 156 const int32_t kPrefHintStoreStreamed = 5; | 156 const int32_t kPrefHintStoreStreamed = 5; |
| 157 const int32_t kPrefHintLoadRetained = 6; | 157 const int32_t kPrefHintLoadRetained = 6; |
| 158 const int32_t kPrefHintStoreRetained = 7; | 158 const int32_t kPrefHintStoreRetained = 7; |
| 159 const int32_t kPrefHintWritebackInvalidate = 25; | 159 const int32_t kPrefHintWritebackInvalidate = 25; |
| 160 const int32_t kPrefHintPrepareForStore = 30; | 160 const int32_t kPrefHintPrepareForStore = 30; |
| 161 | 161 |
| 162 class FloatConstants { |
| 163 public: |
| 164 static const uint64_t kExponentMask = 0x7f800000; |
| 165 static const uint64_t kMantissaMask = 0x007fffff; |
| 166 static const uint64_t kNanTypeMask = 0x00400000; |
| 167 static const uint64_t kSignMask = 0x80000000; |
| 168 }; |
| 169 |
| 170 class DoubleConstants { |
| 171 public: |
| 172 static const uint64_t kExponentMask = 0x7ff0000000000000; |
| 173 static const uint64_t kMantissaMask = 0x000fffffffffffff; |
| 174 static const uint64_t kNanTypeMask = 0x0008000000000000; |
| 175 static const uint64_t kSignMask = 0x8000000000000000; |
| 176 }; |
| 177 |
| 162 // Helper functions for converting between register numbers and names. | 178 // Helper functions for converting between register numbers and names. |
| 163 class Registers { | 179 class Registers { |
| 164 public: | 180 public: |
| 165 // Return the name of the register. | 181 // Return the name of the register. |
| 166 static const char* Name(int reg); | 182 static const char* Name(int reg); |
| 167 | 183 |
| 168 // Lookup the register number for the name provided. | 184 // Lookup the register number for the name provided. |
| 169 static int Number(const char* name); | 185 static int Number(const char* name); |
| 170 | 186 |
| 171 struct RegisterAlias { | 187 struct RegisterAlias { |
| (...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 } | 1316 } |
| 1301 return kUnsupported; | 1317 return kUnsupported; |
| 1302 } | 1318 } |
| 1303 | 1319 |
| 1304 #undef OpcodeToBitNumber | 1320 #undef OpcodeToBitNumber |
| 1305 #undef FunctionFieldToBitNumber | 1321 #undef FunctionFieldToBitNumber |
| 1306 } // namespace internal | 1322 } // namespace internal |
| 1307 } // namespace v8 | 1323 } // namespace v8 |
| 1308 | 1324 |
| 1309 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1325 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |