OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 if (!dst.is(src)) { | 228 if (!dst.is(src)) { |
229 mov_d(dst, src); | 229 mov_d(dst, src); |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
233 inline void Move(Register dst_low, Register dst_high, FPURegister src) { | 233 inline void Move(Register dst_low, Register dst_high, FPURegister src) { |
234 mfc1(dst_low, src); | 234 mfc1(dst_low, src); |
235 mfc1(dst_high, FPURegister::from_code(src.code() + 1)); | 235 mfc1(dst_high, FPURegister::from_code(src.code() + 1)); |
236 } | 236 } |
237 | 237 |
238 inline void MoveHigh(Register dst_high, FPURegister src) { | |
Paul Lind
2013/08/14 22:48:39
I think we should rename these FmoveHigh/FmoveLow,
palfia
2013/08/14 23:05:44
Done.
| |
239 mfc1(dst_high, FPURegister::from_code(src.code() + 1)); | |
240 } | |
241 | |
242 inline void MoveLow(Register dst_low, FPURegister src) { | |
243 mfc1(dst_low, src); | |
244 } | |
245 | |
238 inline void Move(FPURegister dst, Register src_low, Register src_high) { | 246 inline void Move(FPURegister dst, Register src_low, Register src_high) { |
239 mtc1(src_low, dst); | 247 mtc1(src_low, dst); |
240 mtc1(src_high, FPURegister::from_code(dst.code() + 1)); | 248 mtc1(src_high, FPURegister::from_code(dst.code() + 1)); |
241 } | 249 } |
242 | 250 |
243 // Conditional move. | 251 // Conditional move. |
244 void Move(FPURegister dst, double imm); | 252 void Move(FPURegister dst, double imm); |
245 void Movz(Register rd, Register rs, Register rt); | 253 void Movz(Register rd, Register rs, Register rt); |
246 void Movn(Register rd, Register rs, Register rt); | 254 void Movn(Register rd, Register rs, Register rt); |
247 void Movt(Register rd, Register rs, uint16_t cc = 0); | 255 void Movt(Register rd, Register rs, uint16_t cc = 0); |
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1573 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1581 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1574 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1582 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1575 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1583 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1576 #else | 1584 #else |
1577 #define ACCESS_MASM(masm) masm-> | 1585 #define ACCESS_MASM(masm) masm-> |
1578 #endif | 1586 #endif |
1579 | 1587 |
1580 } } // namespace v8::internal | 1588 } } // namespace v8::internal |
1581 | 1589 |
1582 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1590 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |