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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 void Sd(Register rd, const MemOperand& rs); | 733 void Sd(Register rd, const MemOperand& rs); |
734 | 734 |
735 void Lwc1(FPURegister fd, const MemOperand& src); | 735 void Lwc1(FPURegister fd, const MemOperand& src); |
736 void Swc1(FPURegister fs, const MemOperand& dst); | 736 void Swc1(FPURegister fs, const MemOperand& dst); |
737 | 737 |
738 void Ldc1(FPURegister fd, const MemOperand& src); | 738 void Ldc1(FPURegister fd, const MemOperand& src); |
739 void Sdc1(FPURegister fs, const MemOperand& dst); | 739 void Sdc1(FPURegister fs, const MemOperand& dst); |
740 | 740 |
741 // Load int32 in the rd register. | 741 // Load int32 in the rd register. |
742 void li(Register rd, Operand j, LiFlags mode = OPTIMIZE_SIZE); | 742 void li(Register rd, Operand j, LiFlags mode = OPTIMIZE_SIZE); |
| 743 void li_optimized(Register rd, Operand j, LiFlags mode = OPTIMIZE_SIZE); |
| 744 static int InstrCountForLi64Bit(int64_t value); |
743 inline void LiLower32BitHelper(Register rd, Operand j); | 745 inline void LiLower32BitHelper(Register rd, Operand j); |
744 inline void li(Register rd, int64_t j, LiFlags mode = OPTIMIZE_SIZE) { | 746 inline void li(Register rd, int64_t j, LiFlags mode = OPTIMIZE_SIZE) { |
745 li(rd, Operand(j), mode); | 747 li(rd, Operand(j), mode); |
746 } | 748 } |
747 void li(Register dst, Handle<Object> value, LiFlags mode = OPTIMIZE_SIZE); | 749 void li(Register dst, Handle<Object> value, LiFlags mode = OPTIMIZE_SIZE); |
748 | 750 |
749 // Push multiple registers on the stack. | 751 // Push multiple registers on the stack. |
750 // Registers are saved in numerical order, with higher numbered registers | 752 // Registers are saved in numerical order, with higher numbered registers |
751 // saved in higher memory addresses. | 753 // saved in higher memory addresses. |
752 void MultiPush(RegList regs); | 754 void MultiPush(RegList regs); |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 dd(GetLabelFunction(index)); | 1976 dd(GetLabelFunction(index)); |
1975 } | 1977 } |
1976 } | 1978 } |
1977 | 1979 |
1978 #define ACCESS_MASM(masm) masm-> | 1980 #define ACCESS_MASM(masm) masm-> |
1979 | 1981 |
1980 } // namespace internal | 1982 } // namespace internal |
1981 } // namespace v8 | 1983 } // namespace v8 |
1982 | 1984 |
1983 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1985 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |