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_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 // register dst. | 801 // register dst. |
802 void StoreToSafepointRegisterSlot(Register src, Register dst); | 802 void StoreToSafepointRegisterSlot(Register src, Register dst); |
803 // Load the value of the src register from its safepoint stack slot | 803 // Load the value of the src register from its safepoint stack slot |
804 // into register dst. | 804 // into register dst. |
805 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 805 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
806 | 806 |
807 // MIPS32 R2 instruction macro. | 807 // MIPS32 R2 instruction macro. |
808 void Ins(Register rt, Register rs, uint16_t pos, uint16_t size); | 808 void Ins(Register rt, Register rs, uint16_t pos, uint16_t size); |
809 void Ext(Register rt, Register rs, uint16_t pos, uint16_t size); | 809 void Ext(Register rt, Register rs, uint16_t pos, uint16_t size); |
810 | 810 |
| 811 // Int64Lowering instructions |
| 812 void ShlPair(Register dst_low, Register dst_high, Register src_low, |
| 813 Register src_high, Register shift); |
| 814 |
| 815 void ShlPair(Register dst_low, Register dst_high, Register src_low, |
| 816 Register src_high, uint32_t shift); |
| 817 |
| 818 void ShrPair(Register dst_low, Register dst_high, Register src_low, |
| 819 Register src_high, Register shift); |
| 820 |
| 821 void ShrPair(Register dst_low, Register dst_high, Register src_low, |
| 822 Register src_high, uint32_t shift); |
| 823 |
| 824 void SarPair(Register dst_low, Register dst_high, Register src_low, |
| 825 Register src_high, Register shift); |
| 826 |
| 827 void SarPair(Register dst_low, Register dst_high, Register src_low, |
| 828 Register src_high, uint32_t shift); |
| 829 |
811 // --------------------------------------------------------------------------- | 830 // --------------------------------------------------------------------------- |
812 // FPU macros. These do not handle special cases like NaN or +- inf. | 831 // FPU macros. These do not handle special cases like NaN or +- inf. |
813 | 832 |
814 // Convert unsigned word to double. | 833 // Convert unsigned word to double. |
815 void Cvt_d_uw(FPURegister fd, Register rs, FPURegister scratch); | 834 void Cvt_d_uw(FPURegister fd, Register rs, FPURegister scratch); |
816 | 835 |
817 // Convert single to unsigned word. | 836 // Convert single to unsigned word. |
818 void Trunc_uw_s(FPURegister fd, FPURegister fs, FPURegister scratch); | 837 void Trunc_uw_s(FPURegister fd, FPURegister fs, FPURegister scratch); |
819 void Trunc_uw_s(FPURegister fd, Register rs, FPURegister scratch); | 838 void Trunc_uw_s(FPURegister fd, Register rs, FPURegister scratch); |
820 | 839 |
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1842 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1861 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1843 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1862 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1844 #else | 1863 #else |
1845 #define ACCESS_MASM(masm) masm-> | 1864 #define ACCESS_MASM(masm) masm-> |
1846 #endif | 1865 #endif |
1847 | 1866 |
1848 } // namespace internal | 1867 } // namespace internal |
1849 } // namespace v8 | 1868 } // namespace v8 |
1850 | 1869 |
1851 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1870 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |