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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 mode_trunc = RZ | 812 mode_trunc = RZ |
813 }; | 813 }; |
814 | 814 |
815 const uint32_t kFPURoundingModeMask = 3 << 0; | 815 const uint32_t kFPURoundingModeMask = 3 << 0; |
816 | 816 |
817 enum CheckForInexactConversion { | 817 enum CheckForInexactConversion { |
818 kCheckForInexactConversion, | 818 kCheckForInexactConversion, |
819 kDontCheckForInexactConversion | 819 kDontCheckForInexactConversion |
820 }; | 820 }; |
821 | 821 |
| 822 enum class MaxMinKind : int { kMin = 0, kMax = 1 }; |
822 | 823 |
823 // ----------------------------------------------------------------------------- | 824 // ----------------------------------------------------------------------------- |
824 // Hints. | 825 // Hints. |
825 | 826 |
826 // Branch hints are not used on the MIPS. They are defined so that they can | 827 // Branch hints are not used on the MIPS. They are defined so that they can |
827 // appear in shared function signatures, but will be ignored in MIPS | 828 // appear in shared function signatures, but will be ignored in MIPS |
828 // implementations. | 829 // implementations. |
829 enum Hint { | 830 enum Hint { |
830 no_hint = 0 | 831 no_hint = 0 |
831 }; | 832 }; |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 } | 1278 } |
1278 return kUnsupported; | 1279 return kUnsupported; |
1279 } | 1280 } |
1280 | 1281 |
1281 #undef OpcodeToBitNumber | 1282 #undef OpcodeToBitNumber |
1282 #undef FunctionFieldToBitNumber | 1283 #undef FunctionFieldToBitNumber |
1283 } // namespace internal | 1284 } // namespace internal |
1284 } // namespace v8 | 1285 } // namespace v8 |
1285 | 1286 |
1286 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1287 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |