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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 inline void FmoveLow(Register dst_low, FPURegister src) { | 244 inline void FmoveLow(Register dst_low, FPURegister src) { |
245 mfc1(dst_low, src); | 245 mfc1(dst_low, src); |
246 } | 246 } |
247 | 247 |
248 inline void Move(FPURegister dst, Register src_low, Register src_high) { | 248 inline void Move(FPURegister dst, Register src_low, Register src_high) { |
249 mtc1(src_low, dst); | 249 mtc1(src_low, dst); |
250 Mthc1(src_high, dst); | 250 Mthc1(src_high, dst); |
251 } | 251 } |
252 | 252 |
253 // Conditional move. | 253 // Conditional move. |
254 void Move(FPURegister dst, double imm); | 254 void Move(FPURegister dst, double imm, bool force_load = false); |
255 void Movz(Register rd, Register rs, Register rt); | 255 void Movz(Register rd, Register rs, Register rt); |
256 void Movn(Register rd, Register rs, Register rt); | 256 void Movn(Register rd, Register rs, Register rt); |
257 void Movt(Register rd, Register rs, uint16_t cc = 0); | 257 void Movt(Register rd, Register rs, uint16_t cc = 0); |
258 void Movf(Register rd, Register rs, uint16_t cc = 0); | 258 void Movf(Register rd, Register rs, uint16_t cc = 0); |
259 | 259 |
260 void Clz(Register rd, Register rs); | 260 void Clz(Register rd, Register rs); |
261 | 261 |
262 // Jump unconditionally to given label. | 262 // Jump unconditionally to given label. |
263 // We NEED a nop in the branch delay slot, as it used by v8, for example in | 263 // We NEED a nop in the branch delay slot, as it used by v8, for example in |
264 // CodeGenerator::ProcessDeferred(). | 264 // CodeGenerator::ProcessDeferred(). |
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1718 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1719 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1719 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1720 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1720 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1721 #else | 1721 #else |
1722 #define ACCESS_MASM(masm) masm-> | 1722 #define ACCESS_MASM(masm) masm-> |
1723 #endif | 1723 #endif |
1724 | 1724 |
1725 } } // namespace v8::internal | 1725 } } // namespace v8::internal |
1726 | 1726 |
1727 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1727 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |