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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 255 |
256 inline void Move(Register dst_low, Register dst_high, FPURegister src) { | 256 inline void Move(Register dst_low, Register dst_high, FPURegister src) { |
257 mfc1(dst_low, src); | 257 mfc1(dst_low, src); |
258 mfhc1(dst_high, src); | 258 mfhc1(dst_high, src); |
259 } | 259 } |
260 | 260 |
261 inline void FmoveHigh(Register dst_high, FPURegister src) { | 261 inline void FmoveHigh(Register dst_high, FPURegister src) { |
262 mfhc1(dst_high, src); | 262 mfhc1(dst_high, src); |
263 } | 263 } |
264 | 264 |
| 265 inline void FmoveHigh(FPURegister dst, Register src_high) { |
| 266 mthc1(src_high, dst); |
| 267 } |
| 268 |
265 inline void FmoveLow(Register dst_low, FPURegister src) { | 269 inline void FmoveLow(Register dst_low, FPURegister src) { |
266 mfc1(dst_low, src); | 270 mfc1(dst_low, src); |
267 } | 271 } |
268 | 272 |
| 273 void FmoveLow(FPURegister dst, Register src_low); |
| 274 |
269 inline void Move(FPURegister dst, Register src_low, Register src_high) { | 275 inline void Move(FPURegister dst, Register src_low, Register src_high) { |
270 mtc1(src_low, dst); | 276 mtc1(src_low, dst); |
271 mthc1(src_high, dst); | 277 mthc1(src_high, dst); |
272 } | 278 } |
273 | 279 |
274 void Move(FPURegister dst, float imm); | 280 void Move(FPURegister dst, float imm); |
275 void Move(FPURegister dst, double imm); | 281 void Move(FPURegister dst, double imm); |
276 | 282 |
277 // Conditional move. | 283 // Conditional move. |
278 void Movz(Register rd, Register rs, Register rt); | 284 void Movz(Register rd, Register rs, Register rt); |
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1783 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1778 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1784 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1779 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1785 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1780 #else | 1786 #else |
1781 #define ACCESS_MASM(masm) masm-> | 1787 #define ACCESS_MASM(masm) masm-> |
1782 #endif | 1788 #endif |
1783 | 1789 |
1784 } } // namespace v8::internal | 1790 } } // namespace v8::internal |
1785 | 1791 |
1786 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1792 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |