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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 mode_trunc = RZ | 787 mode_trunc = RZ |
788 }; | 788 }; |
789 | 789 |
790 const uint32_t kFPURoundingModeMask = 3 << 0; | 790 const uint32_t kFPURoundingModeMask = 3 << 0; |
791 | 791 |
792 enum CheckForInexactConversion { | 792 enum CheckForInexactConversion { |
793 kCheckForInexactConversion, | 793 kCheckForInexactConversion, |
794 kDontCheckForInexactConversion | 794 kDontCheckForInexactConversion |
795 }; | 795 }; |
796 | 796 |
| 797 enum class MaxMinKind : int { kMin = 0, kMax = 1 }; |
797 | 798 |
798 // ----------------------------------------------------------------------------- | 799 // ----------------------------------------------------------------------------- |
799 // Hints. | 800 // Hints. |
800 | 801 |
801 // Branch hints are not used on the MIPS. They are defined so that they can | 802 // Branch hints are not used on the MIPS. They are defined so that they can |
802 // appear in shared function signatures, but will be ignored in MIPS | 803 // appear in shared function signatures, but will be ignored in MIPS |
803 // implementations. | 804 // implementations. |
804 enum Hint { | 805 enum Hint { |
805 no_hint = 0 | 806 no_hint = 0 |
806 }; | 807 }; |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 } | 1218 } |
1218 } | 1219 } |
1219 } | 1220 } |
1220 | 1221 |
1221 #undef OpcodeToBitNumber | 1222 #undef OpcodeToBitNumber |
1222 #undef FunctionFieldToBitNumber | 1223 #undef FunctionFieldToBitNumber |
1223 } // namespace internal | 1224 } // namespace internal |
1224 } // namespace v8 | 1225 } // namespace v8 |
1225 | 1226 |
1226 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1227 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |