| 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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
| (...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1259 const Operand& right, Register overflow_dst, | 1259 const Operand& right, Register overflow_dst, |
| 1260 Register scratch); | 1260 Register scratch); |
| 1261 | 1261 |
| 1262 void DadduAndCheckForOverflow(Register dst, Register left, Register right, | 1262 void DadduAndCheckForOverflow(Register dst, Register left, Register right, |
| 1263 Register overflow_dst, Register scratch = at); | 1263 Register overflow_dst, Register scratch = at); |
| 1264 | 1264 |
| 1265 void DadduAndCheckForOverflow(Register dst, Register left, | 1265 void DadduAndCheckForOverflow(Register dst, Register left, |
| 1266 const Operand& right, Register overflow_dst, | 1266 const Operand& right, Register overflow_dst, |
| 1267 Register scratch); | 1267 Register scratch); |
| 1268 | 1268 |
| 1269 inline void DaddBranchOvf(Register dst, Register left, const Operand& right, |
| 1270 Label* overflow_label, Register scratch = at) { |
| 1271 DaddBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |
| 1272 } |
| 1273 |
| 1274 inline void DaddBranchNoOvf(Register dst, Register left, const Operand& right, |
| 1275 Label* no_overflow_label, Register scratch = at) { |
| 1276 DaddBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); |
| 1277 } |
| 1278 |
| 1279 void DaddBranchOvf(Register dst, Register left, const Operand& right, |
| 1280 Label* overflow_label, Label* no_overflow_label, |
| 1281 Register scratch = at); |
| 1282 |
| 1283 void DaddBranchOvf(Register dst, Register left, Register right, |
| 1284 Label* overflow_label, Label* no_overflow_label, |
| 1285 Register scratch = at); |
| 1286 |
| 1269 void DsubuAndCheckForOverflow(Register dst, Register left, Register right, | 1287 void DsubuAndCheckForOverflow(Register dst, Register left, Register right, |
| 1270 Register overflow_dst, Register scratch = at); | 1288 Register overflow_dst, Register scratch = at); |
| 1271 | 1289 |
| 1272 void DsubuAndCheckForOverflow(Register dst, Register left, | 1290 void DsubuAndCheckForOverflow(Register dst, Register left, |
| 1273 const Operand& right, Register overflow_dst, | 1291 const Operand& right, Register overflow_dst, |
| 1274 Register scratch); | 1292 Register scratch); |
| 1275 | 1293 |
| 1294 inline void DsubBranchOvf(Register dst, Register left, const Operand& right, |
| 1295 Label* overflow_label, Register scratch = at) { |
| 1296 DsubBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |
| 1297 } |
| 1298 |
| 1299 inline void DsubBranchNoOvf(Register dst, Register left, const Operand& right, |
| 1300 Label* no_overflow_label, Register scratch = at) { |
| 1301 DsubBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); |
| 1302 } |
| 1303 |
| 1304 void DsubBranchOvf(Register dst, Register left, const Operand& right, |
| 1305 Label* overflow_label, Label* no_overflow_label, |
| 1306 Register scratch = at); |
| 1307 |
| 1308 void DsubBranchOvf(Register dst, Register left, Register right, |
| 1309 Label* overflow_label, Label* no_overflow_label, |
| 1310 Register scratch = at); |
| 1311 |
| 1276 void BranchOnOverflow(Label* label, | 1312 void BranchOnOverflow(Label* label, |
| 1277 Register overflow_check, | 1313 Register overflow_check, |
| 1278 BranchDelaySlot bd = PROTECT) { | 1314 BranchDelaySlot bd = PROTECT) { |
| 1279 Branch(label, lt, overflow_check, Operand(zero_reg), bd); | 1315 Branch(label, lt, overflow_check, Operand(zero_reg), bd); |
| 1280 } | 1316 } |
| 1281 | 1317 |
| 1282 void BranchOnNoOverflow(Label* label, | 1318 void BranchOnNoOverflow(Label* label, |
| 1283 Register overflow_check, | 1319 Register overflow_check, |
| 1284 BranchDelaySlot bd = PROTECT) { | 1320 BranchDelaySlot bd = PROTECT) { |
| 1285 Branch(label, ge, overflow_check, Operand(zero_reg), bd); | 1321 Branch(label, ge, overflow_check, Operand(zero_reg), bd); |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1841 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1877 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1842 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1878 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1843 #else | 1879 #else |
| 1844 #define ACCESS_MASM(masm) masm-> | 1880 #define ACCESS_MASM(masm) masm-> |
| 1845 #endif | 1881 #endif |
| 1846 | 1882 |
| 1847 } // namespace internal | 1883 } // namespace internal |
| 1848 } // namespace v8 | 1884 } // namespace v8 |
| 1849 | 1885 |
| 1850 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1886 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |