| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 // Never use the int16_t b(l)cond version with a branch offset | 748 // Never use the int16_t b(l)cond version with a branch offset |
| 749 // instead of using the Label* version. | 749 // instead of using the Label* version. |
| 750 | 750 |
| 751 // Jump targets must be in the current 256 MB-aligned region. i.e. 28 bits. | 751 // Jump targets must be in the current 256 MB-aligned region. i.e. 28 bits. |
| 752 void j(int32_t target); | 752 void j(int32_t target); |
| 753 void jal(int32_t target); | 753 void jal(int32_t target); |
| 754 void jalr(Register rs, Register rd = ra); | 754 void jalr(Register rs, Register rd = ra); |
| 755 void jr(Register target); | 755 void jr(Register target); |
| 756 void j_or_jr(int32_t target, Register rs); | 756 void j_or_jr(int32_t target, Register rs); |
| 757 void jal_or_jalr(int32_t target, Register rs); | 757 void jal_or_jalr(int32_t target, Register rs); |
| 758 void jic(Register rt, int16_t offset); |
| 759 void jialc(Register rt, int16_t offset); |
| 758 | 760 |
| 759 | 761 |
| 760 // -------Data-processing-instructions--------- | 762 // -------Data-processing-instructions--------- |
| 761 | 763 |
| 762 // Arithmetic. | 764 // Arithmetic. |
| 763 void addu(Register rd, Register rs, Register rt); | 765 void addu(Register rd, Register rs, Register rt); |
| 764 void subu(Register rd, Register rs, Register rt); | 766 void subu(Register rd, Register rs, Register rt); |
| 765 void mult(Register rs, Register rt); | 767 void mult(Register rs, Register rt); |
| 766 void multu(Register rs, Register rt); | 768 void multu(Register rs, Register rt); |
| 767 void div(Register rs, Register rt); | 769 void div(Register rs, Register rt); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 void lw(Register rd, const MemOperand& rs); | 814 void lw(Register rd, const MemOperand& rs); |
| 813 void lwl(Register rd, const MemOperand& rs); | 815 void lwl(Register rd, const MemOperand& rs); |
| 814 void lwr(Register rd, const MemOperand& rs); | 816 void lwr(Register rd, const MemOperand& rs); |
| 815 void sb(Register rd, const MemOperand& rs); | 817 void sb(Register rd, const MemOperand& rs); |
| 816 void sh(Register rd, const MemOperand& rs); | 818 void sh(Register rd, const MemOperand& rs); |
| 817 void sw(Register rd, const MemOperand& rs); | 819 void sw(Register rd, const MemOperand& rs); |
| 818 void swl(Register rd, const MemOperand& rs); | 820 void swl(Register rd, const MemOperand& rs); |
| 819 void swr(Register rd, const MemOperand& rs); | 821 void swr(Register rd, const MemOperand& rs); |
| 820 | 822 |
| 821 | 823 |
| 824 // ---------PC-Relative-instructions----------- |
| 825 |
| 826 void addiupc(Register rs, int32_t imm19); |
| 827 void lwpc(Register rs, int32_t offset19); |
| 828 // void auipc(Register rs, int16_t imm16); |
| 829 void aluipc(Register rs, int16_t imm16); |
| 830 |
| 831 |
| 822 // ----------------Prefetch-------------------- | 832 // ----------------Prefetch-------------------- |
| 823 | 833 |
| 824 void pref(int32_t hint, const MemOperand& rs); | 834 void pref(int32_t hint, const MemOperand& rs); |
| 825 | 835 |
| 826 | 836 |
| 827 // -------------Misc-instructions-------------- | 837 // -------------Misc-instructions-------------- |
| 828 | 838 |
| 829 // Break / Trap instructions. | 839 // Break / Trap instructions. |
| 830 void break_(uint32_t code, bool break_as_stop = false); | 840 void break_(uint32_t code, bool break_as_stop = false); |
| 831 void stop(const char* msg, uint32_t code = kMaxStopCode); | 841 void stop(const char* msg, uint32_t code = kMaxStopCode); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 void movt_d(FPURegister fd, FPURegister fs, uint16_t cc); | 882 void movt_d(FPURegister fd, FPURegister fs, uint16_t cc); |
| 873 void movf_s(FPURegister fd, FPURegister fs, uint16_t cc); | 883 void movf_s(FPURegister fd, FPURegister fs, uint16_t cc); |
| 874 void movf_d(FPURegister fd, FPURegister fs, uint16_t cc); | 884 void movf_d(FPURegister fd, FPURegister fs, uint16_t cc); |
| 875 void movn_s(FPURegister fd, FPURegister fs, Register rt); | 885 void movn_s(FPURegister fd, FPURegister fs, Register rt); |
| 876 void movn_d(FPURegister fd, FPURegister fs, Register rt); | 886 void movn_d(FPURegister fd, FPURegister fs, Register rt); |
| 877 // Bit twiddling. | 887 // Bit twiddling. |
| 878 void clz(Register rd, Register rs); | 888 void clz(Register rd, Register rs); |
| 879 void ins_(Register rt, Register rs, uint16_t pos, uint16_t size); | 889 void ins_(Register rt, Register rs, uint16_t pos, uint16_t size); |
| 880 void ext_(Register rt, Register rs, uint16_t pos, uint16_t size); | 890 void ext_(Register rt, Register rs, uint16_t pos, uint16_t size); |
| 881 void bitswap(Register rd, Register rt); | 891 void bitswap(Register rd, Register rt); |
| 892 void align(Register rd, Register rs, Register rt, uint8_t bp); |
| 882 | 893 |
| 883 // --------Coprocessor-instructions---------------- | 894 // --------Coprocessor-instructions---------------- |
| 884 | 895 |
| 885 // Load, store, and move. | 896 // Load, store, and move. |
| 886 void lwc1(FPURegister fd, const MemOperand& src); | 897 void lwc1(FPURegister fd, const MemOperand& src); |
| 887 void ldc1(FPURegister fd, const MemOperand& src); | 898 void ldc1(FPURegister fd, const MemOperand& src); |
| 888 | 899 |
| 889 void swc1(FPURegister fs, const MemOperand& dst); | 900 void swc1(FPURegister fs, const MemOperand& dst); |
| 890 void sdc1(FPURegister fs, const MemOperand& dst); | 901 void sdc1(FPURegister fs, const MemOperand& dst); |
| 891 | 902 |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 Register rt, | 1348 Register rt, |
| 1338 int32_t j); | 1349 int32_t j); |
| 1339 void GenInstrImmediate(Opcode opcode, | 1350 void GenInstrImmediate(Opcode opcode, |
| 1340 Register rs, | 1351 Register rs, |
| 1341 SecondaryField SF, | 1352 SecondaryField SF, |
| 1342 int32_t j); | 1353 int32_t j); |
| 1343 void GenInstrImmediate(Opcode opcode, | 1354 void GenInstrImmediate(Opcode opcode, |
| 1344 Register r1, | 1355 Register r1, |
| 1345 FPURegister r2, | 1356 FPURegister r2, |
| 1346 int32_t j); | 1357 int32_t j); |
| 1358 void GenInstrImmediate(Opcode opcode, Register rs, int32_t j); |
| 1347 | 1359 |
| 1348 | 1360 |
| 1349 void GenInstrJump(Opcode opcode, | 1361 void GenInstrJump(Opcode opcode, |
| 1350 uint32_t address); | 1362 uint32_t address); |
| 1351 | 1363 |
| 1352 // Helpers. | 1364 // Helpers. |
| 1353 void LoadRegPlusOffsetToAt(const MemOperand& src); | 1365 void LoadRegPlusOffsetToAt(const MemOperand& src); |
| 1354 | 1366 |
| 1355 // Labels. | 1367 // Labels. |
| 1356 void print(Label* L); | 1368 void print(Label* L); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 class EnsureSpace BASE_EMBEDDED { | 1453 class EnsureSpace BASE_EMBEDDED { |
| 1442 public: | 1454 public: |
| 1443 explicit EnsureSpace(Assembler* assembler) { | 1455 explicit EnsureSpace(Assembler* assembler) { |
| 1444 assembler->CheckBuffer(); | 1456 assembler->CheckBuffer(); |
| 1445 } | 1457 } |
| 1446 }; | 1458 }; |
| 1447 | 1459 |
| 1448 } } // namespace v8::internal | 1460 } } // namespace v8::internal |
| 1449 | 1461 |
| 1450 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1462 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |