| 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 #include "src/globals.h" | 7 #include "src/globals.h" |
| 8 // UNIMPLEMENTED_ macro for MIPS. | 8 // UNIMPLEMENTED_ macro for MIPS. |
| 9 #ifdef DEBUG | 9 #ifdef DEBUG |
| 10 #define UNIMPLEMENTED_MIPS() \ | 10 #define UNIMPLEMENTED_MIPS() \ |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // 'pref' instruction hints | 189 // 'pref' instruction hints |
| 190 const int32_t kPrefHintLoad = 0; | 190 const int32_t kPrefHintLoad = 0; |
| 191 const int32_t kPrefHintStore = 1; | 191 const int32_t kPrefHintStore = 1; |
| 192 const int32_t kPrefHintLoadStreamed = 4; | 192 const int32_t kPrefHintLoadStreamed = 4; |
| 193 const int32_t kPrefHintStoreStreamed = 5; | 193 const int32_t kPrefHintStoreStreamed = 5; |
| 194 const int32_t kPrefHintLoadRetained = 6; | 194 const int32_t kPrefHintLoadRetained = 6; |
| 195 const int32_t kPrefHintStoreRetained = 7; | 195 const int32_t kPrefHintStoreRetained = 7; |
| 196 const int32_t kPrefHintWritebackInvalidate = 25; | 196 const int32_t kPrefHintWritebackInvalidate = 25; |
| 197 const int32_t kPrefHintPrepareForStore = 30; | 197 const int32_t kPrefHintPrepareForStore = 30; |
| 198 | 198 |
| 199 class FloatConstants { |
| 200 public: |
| 201 static const uint32_t kExponentMask = 0x7f800000; |
| 202 static const uint32_t kMantissaMask = 0x007fffff; |
| 203 static const uint32_t kNanTypeMask = 0x00400000; |
| 204 static const uint32_t kSignMask = 0x80000000; |
| 205 }; |
| 206 |
| 207 class DoubleConstants { |
| 208 public: |
| 209 static const uint32_t kExponentMask = 0x7ff00000; |
| 210 static const uint32_t kMantissaMask = 0x000fffff; |
| 211 static const uint32_t kNanTypeMask = 0x00080000; |
| 212 static const uint32_t kSignMask = 0x80000000; |
| 213 }; |
| 214 |
| 199 // Helper functions for converting between register numbers and names. | 215 // Helper functions for converting between register numbers and names. |
| 200 class Registers { | 216 class Registers { |
| 201 public: | 217 public: |
| 202 // Return the name of the register. | 218 // Return the name of the register. |
| 203 static const char* Name(int reg); | 219 static const char* Name(int reg); |
| 204 | 220 |
| 205 // Lookup the register number for the name provided. | 221 // Lookup the register number for the name provided. |
| 206 static int Number(const char* name); | 222 static int Number(const char* name); |
| 207 | 223 |
| 208 struct RegisterAlias { | 224 struct RegisterAlias { |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1230 } | 1246 } |
| 1231 } | 1247 } |
| 1232 } | 1248 } |
| 1233 | 1249 |
| 1234 #undef OpcodeToBitNumber | 1250 #undef OpcodeToBitNumber |
| 1235 #undef FunctionFieldToBitNumber | 1251 #undef FunctionFieldToBitNumber |
| 1236 } // namespace internal | 1252 } // namespace internal |
| 1237 } // namespace v8 | 1253 } // namespace v8 |
| 1238 | 1254 |
| 1239 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1255 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |