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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 Register scratch = at); | 715 Register scratch = at); |
716 void Dlsa(Register rd, Register rs, Register rt, uint8_t sa, | 716 void Dlsa(Register rd, Register rs, Register rt, uint8_t sa, |
717 Register scratch = at); | 717 Register scratch = at); |
718 | 718 |
719 void Pref(int32_t hint, const MemOperand& rs); | 719 void Pref(int32_t hint, const MemOperand& rs); |
720 | 720 |
721 | 721 |
722 // --------------------------------------------------------------------------- | 722 // --------------------------------------------------------------------------- |
723 // Pseudo-instructions. | 723 // Pseudo-instructions. |
724 | 724 |
| 725 // Change endianness |
| 726 void ByteSwapSigned(Register reg, int operand_size); |
| 727 void ByteSwapUnsigned(Register reg, int operand_size); |
| 728 |
725 void mov(Register rd, Register rt) { or_(rd, rt, zero_reg); } | 729 void mov(Register rd, Register rt) { or_(rd, rt, zero_reg); } |
726 | 730 |
727 void Ulh(Register rd, const MemOperand& rs); | 731 void Ulh(Register rd, const MemOperand& rs); |
728 void Ulhu(Register rd, const MemOperand& rs); | 732 void Ulhu(Register rd, const MemOperand& rs); |
729 void Ush(Register rd, const MemOperand& rs, Register scratch); | 733 void Ush(Register rd, const MemOperand& rs, Register scratch); |
730 | 734 |
731 void Ulw(Register rd, const MemOperand& rs); | 735 void Ulw(Register rd, const MemOperand& rs); |
732 void Ulwu(Register rd, const MemOperand& rs); | 736 void Ulwu(Register rd, const MemOperand& rs); |
733 void Usw(Register rd, const MemOperand& rs); | 737 void Usw(Register rd, const MemOperand& rs); |
734 | 738 |
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2031 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2035 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2032 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2036 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2033 #else | 2037 #else |
2034 #define ACCESS_MASM(masm) masm-> | 2038 #define ACCESS_MASM(masm) masm-> |
2035 #endif | 2039 #endif |
2036 | 2040 |
2037 } // namespace internal | 2041 } // namespace internal |
2038 } // namespace v8 | 2042 } // namespace v8 |
2039 | 2043 |
2040 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 2044 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |