Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 2069933003: Implement byte swapping instructions on MIPS32 and MIPS64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/disasm-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 // may be clobbered. 680 // may be clobbered.
681 void Lsa(Register rd, Register rs, Register rt, uint8_t sa, 681 void Lsa(Register rd, Register rs, Register rt, uint8_t sa,
682 Register scratch = at); 682 Register scratch = at);
683 683
684 void Pref(int32_t hint, const MemOperand& rs); 684 void Pref(int32_t hint, const MemOperand& rs);
685 685
686 686
687 // --------------------------------------------------------------------------- 687 // ---------------------------------------------------------------------------
688 // Pseudo-instructions. 688 // Pseudo-instructions.
689 689
690 // Change endianness
691 void ByteSwapSigned(Register reg, int operand_size);
692 void ByteSwapUnsigned(Register reg, int operand_size);
693
690 void mov(Register rd, Register rt) { or_(rd, rt, zero_reg); } 694 void mov(Register rd, Register rt) { or_(rd, rt, zero_reg); }
691 695
692 void Ulh(Register rd, const MemOperand& rs); 696 void Ulh(Register rd, const MemOperand& rs);
693 void Ulhu(Register rd, const MemOperand& rs); 697 void Ulhu(Register rd, const MemOperand& rs);
694 void Ush(Register rd, const MemOperand& rs, Register scratch); 698 void Ush(Register rd, const MemOperand& rs, Register scratch);
695 699
696 void Ulw(Register rd, const MemOperand& rs); 700 void Ulw(Register rd, const MemOperand& rs);
697 void Usw(Register rd, const MemOperand& rs); 701 void Usw(Register rd, const MemOperand& rs);
698 702
699 void Ulwc1(FPURegister fd, const MemOperand& rs, Register scratch); 703 void Ulwc1(FPURegister fd, const MemOperand& rs, Register scratch);
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1891 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1888 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1892 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1889 #else 1893 #else
1890 #define ACCESS_MASM(masm) masm-> 1894 #define ACCESS_MASM(masm) masm->
1891 #endif 1895 #endif
1892 1896
1893 } // namespace internal 1897 } // namespace internal
1894 } // namespace v8 1898 } // namespace v8
1895 1899
1896 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1900 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/disasm-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698