| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_ASSEMBLER_MIPS_H_ | 5 #ifndef VM_ASSEMBLER_MIPS_H_ |
| 6 #define VM_ASSEMBLER_MIPS_H_ | 6 #define VM_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_mips.h directly; use assembler.h instead. | 9 #error Do not include assembler_mips.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 596 |
| 597 void movn(Register rd, Register rs, Register rt) { | 597 void movn(Register rd, Register rs, Register rt) { |
| 598 EmitRType(SPECIAL, rs, rt, rd, 0, MOVN); | 598 EmitRType(SPECIAL, rs, rt, rd, 0, MOVN); |
| 599 } | 599 } |
| 600 | 600 |
| 601 // Move if floating point true. | 601 // Move if floating point true. |
| 602 void movt(Register rd, Register rs) { | 602 void movt(Register rd, Register rs) { |
| 603 EmitRType(SPECIAL, rs, R1, rd, 0, MOVCI); | 603 EmitRType(SPECIAL, rs, R1, rd, 0, MOVCI); |
| 604 } | 604 } |
| 605 | 605 |
| 606 // rd <- (rt == 0) ? rs : rd; |
| 606 void movz(Register rd, Register rs, Register rt) { | 607 void movz(Register rd, Register rs, Register rt) { |
| 607 EmitRType(SPECIAL, rs, rt, rd, 0, MOVZ); | 608 EmitRType(SPECIAL, rs, rt, rd, 0, MOVZ); |
| 608 } | 609 } |
| 609 | 610 |
| 610 void movs(FRegister fd, FRegister fs) { | 611 void movs(FRegister fd, FRegister fs) { |
| 611 EmitFpuRType(COP1, FMT_S, F0, fs, fd, COP1_MOV); | 612 EmitFpuRType(COP1, FMT_S, F0, fs, fd, COP1_MOV); |
| 612 } | 613 } |
| 613 | 614 |
| 614 void mtc1(Register rt, FRegister fs) { | 615 void mtc1(Register rt, FRegister fs) { |
| 615 Emit(COP1 << kOpcodeShift | | 616 Emit(COP1 << kOpcodeShift | |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1354 Register value, | 1355 Register value, |
| 1355 Label* no_update); | 1356 Label* no_update); |
| 1356 | 1357 |
| 1357 DISALLOW_ALLOCATION(); | 1358 DISALLOW_ALLOCATION(); |
| 1358 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1359 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1359 }; | 1360 }; |
| 1360 | 1361 |
| 1361 } // namespace dart | 1362 } // namespace dart |
| 1362 | 1363 |
| 1363 #endif // VM_ASSEMBLER_MIPS_H_ | 1364 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |