| 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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 bc1f(shifted_branch_offset(L), cc); | 1143 bc1f(shifted_branch_offset(L), cc); |
| 1144 } | 1144 } |
| 1145 void bc1t(int16_t offset, uint16_t cc = 0); | 1145 void bc1t(int16_t offset, uint16_t cc = 0); |
| 1146 inline void bc1t(Label* L, uint16_t cc = 0) { | 1146 inline void bc1t(Label* L, uint16_t cc = 0) { |
| 1147 bc1t(shifted_branch_offset(L), cc); | 1147 bc1t(shifted_branch_offset(L), cc); |
| 1148 } | 1148 } |
| 1149 void fcmp(FPURegister src1, const double src2, FPUCondition cond); | 1149 void fcmp(FPURegister src1, const double src2, FPUCondition cond); |
| 1150 | 1150 |
| 1151 // MSA instructions | 1151 // MSA instructions |
| 1152 void bz_v(MSARegister wt, int16_t offset); | 1152 void bz_v(MSARegister wt, int16_t offset); |
| 1153 inline void bz_v(MSARegister wt, Label* L) { |
| 1154 bz_v(wt, shifted_branch_offset(L)); |
| 1155 } |
| 1153 void bz_b(MSARegister wt, int16_t offset); | 1156 void bz_b(MSARegister wt, int16_t offset); |
| 1157 inline void bz_b(MSARegister wt, Label* L) { |
| 1158 bz_b(wt, shifted_branch_offset(L)); |
| 1159 } |
| 1154 void bz_h(MSARegister wt, int16_t offset); | 1160 void bz_h(MSARegister wt, int16_t offset); |
| 1161 inline void bz_h(MSARegister wt, Label* L) { |
| 1162 bz_h(wt, shifted_branch_offset(L)); |
| 1163 } |
| 1155 void bz_w(MSARegister wt, int16_t offset); | 1164 void bz_w(MSARegister wt, int16_t offset); |
| 1165 inline void bz_w(MSARegister wt, Label* L) { |
| 1166 bz_w(wt, shifted_branch_offset(L)); |
| 1167 } |
| 1156 void bz_d(MSARegister wt, int16_t offset); | 1168 void bz_d(MSARegister wt, int16_t offset); |
| 1169 inline void bz_d(MSARegister wt, Label* L) { |
| 1170 bz_d(wt, shifted_branch_offset(L)); |
| 1171 } |
| 1157 void bnz_v(MSARegister wt, int16_t offset); | 1172 void bnz_v(MSARegister wt, int16_t offset); |
| 1173 inline void bnz_v(MSARegister wt, Label* L) { |
| 1174 bnz_v(wt, shifted_branch_offset(L)); |
| 1175 } |
| 1158 void bnz_b(MSARegister wt, int16_t offset); | 1176 void bnz_b(MSARegister wt, int16_t offset); |
| 1177 inline void bnz_b(MSARegister wt, Label* L) { |
| 1178 bnz_b(wt, shifted_branch_offset(L)); |
| 1179 } |
| 1159 void bnz_h(MSARegister wt, int16_t offset); | 1180 void bnz_h(MSARegister wt, int16_t offset); |
| 1181 inline void bnz_h(MSARegister wt, Label* L) { |
| 1182 bnz_h(wt, shifted_branch_offset(L)); |
| 1183 } |
| 1160 void bnz_w(MSARegister wt, int16_t offset); | 1184 void bnz_w(MSARegister wt, int16_t offset); |
| 1185 inline void bnz_w(MSARegister wt, Label* L) { |
| 1186 bnz_w(wt, shifted_branch_offset(L)); |
| 1187 } |
| 1161 void bnz_d(MSARegister wt, int16_t offset); | 1188 void bnz_d(MSARegister wt, int16_t offset); |
| 1189 inline void bnz_d(MSARegister wt, Label* L) { |
| 1190 bnz_d(wt, shifted_branch_offset(L)); |
| 1191 } |
| 1162 | 1192 |
| 1163 void ld_b(MSARegister wd, const MemOperand& rs); | 1193 void ld_b(MSARegister wd, const MemOperand& rs); |
| 1164 void ld_h(MSARegister wd, const MemOperand& rs); | 1194 void ld_h(MSARegister wd, const MemOperand& rs); |
| 1165 void ld_w(MSARegister wd, const MemOperand& rs); | 1195 void ld_w(MSARegister wd, const MemOperand& rs); |
| 1166 void ld_d(MSARegister wd, const MemOperand& rs); | 1196 void ld_d(MSARegister wd, const MemOperand& rs); |
| 1167 void st_b(MSARegister wd, const MemOperand& rs); | 1197 void st_b(MSARegister wd, const MemOperand& rs); |
| 1168 void st_h(MSARegister wd, const MemOperand& rs); | 1198 void st_h(MSARegister wd, const MemOperand& rs); |
| 1169 void st_w(MSARegister wd, const MemOperand& rs); | 1199 void st_w(MSARegister wd, const MemOperand& rs); |
| 1170 void st_d(MSARegister wd, const MemOperand& rs); | 1200 void st_d(MSARegister wd, const MemOperand& rs); |
| 1171 | 1201 |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 static void instr_at_put(byte* pc, Instr instr) { | 1841 static void instr_at_put(byte* pc, Instr instr) { |
| 1812 *reinterpret_cast<Instr*>(pc) = instr; | 1842 *reinterpret_cast<Instr*>(pc) = instr; |
| 1813 } | 1843 } |
| 1814 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } | 1844 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } |
| 1815 void instr_at_put(int pos, Instr instr) { | 1845 void instr_at_put(int pos, Instr instr) { |
| 1816 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; | 1846 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; |
| 1817 } | 1847 } |
| 1818 | 1848 |
| 1819 // Check if an instruction is a branch of some kind. | 1849 // Check if an instruction is a branch of some kind. |
| 1820 static bool IsBranch(Instr instr); | 1850 static bool IsBranch(Instr instr); |
| 1851 static bool IsMsaBranch(Instr instr); |
| 1821 static bool IsBc(Instr instr); | 1852 static bool IsBc(Instr instr); |
| 1822 static bool IsBzc(Instr instr); | 1853 static bool IsBzc(Instr instr); |
| 1823 | 1854 |
| 1824 static bool IsBeq(Instr instr); | 1855 static bool IsBeq(Instr instr); |
| 1825 static bool IsBne(Instr instr); | 1856 static bool IsBne(Instr instr); |
| 1826 static bool IsBeqzc(Instr instr); | 1857 static bool IsBeqzc(Instr instr); |
| 1827 static bool IsBnezc(Instr instr); | 1858 static bool IsBnezc(Instr instr); |
| 1828 static bool IsBeqc(Instr instr); | 1859 static bool IsBeqc(Instr instr); |
| 1829 static bool IsBnec(Instr instr); | 1860 static bool IsBnec(Instr instr); |
| 1830 | 1861 |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2258 public: | 2289 public: |
| 2259 explicit EnsureSpace(Assembler* assembler) { | 2290 explicit EnsureSpace(Assembler* assembler) { |
| 2260 assembler->CheckBuffer(); | 2291 assembler->CheckBuffer(); |
| 2261 } | 2292 } |
| 2262 }; | 2293 }; |
| 2263 | 2294 |
| 2264 } // namespace internal | 2295 } // namespace internal |
| 2265 } // namespace v8 | 2296 } // namespace v8 |
| 2266 | 2297 |
| 2267 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 2298 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |