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 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 } | 1380 } |
1381 | 1381 |
1382 void SubBranchOvf(Register dst, Register left, const Operand& right, | 1382 void SubBranchOvf(Register dst, Register left, const Operand& right, |
1383 Label* overflow_label, Label* no_overflow_label, | 1383 Label* overflow_label, Label* no_overflow_label, |
1384 Register scratch = at); | 1384 Register scratch = at); |
1385 | 1385 |
1386 void SubBranchOvf(Register dst, Register left, Register right, | 1386 void SubBranchOvf(Register dst, Register left, Register right, |
1387 Label* overflow_label, Label* no_overflow_label, | 1387 Label* overflow_label, Label* no_overflow_label, |
1388 Register scratch = at); | 1388 Register scratch = at); |
1389 | 1389 |
| 1390 inline void MulBranchOvf(Register dst, Register left, const Operand& right, |
| 1391 Label* overflow_label, Register scratch = at) { |
| 1392 MulBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |
| 1393 } |
| 1394 |
| 1395 inline void MulBranchNoOvf(Register dst, Register left, const Operand& right, |
| 1396 Label* no_overflow_label, Register scratch = at) { |
| 1397 MulBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); |
| 1398 } |
| 1399 |
| 1400 void MulBranchOvf(Register dst, Register left, const Operand& right, |
| 1401 Label* overflow_label, Label* no_overflow_label, |
| 1402 Register scratch = at); |
| 1403 |
| 1404 void MulBranchOvf(Register dst, Register left, Register right, |
| 1405 Label* overflow_label, Label* no_overflow_label, |
| 1406 Register scratch = at); |
| 1407 |
1390 inline void DaddBranchOvf(Register dst, Register left, const Operand& right, | 1408 inline void DaddBranchOvf(Register dst, Register left, const Operand& right, |
1391 Label* overflow_label, Register scratch = at) { | 1409 Label* overflow_label, Register scratch = at) { |
1392 DaddBranchOvf(dst, left, right, overflow_label, nullptr, scratch); | 1410 DaddBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |
1393 } | 1411 } |
1394 | 1412 |
1395 inline void DaddBranchNoOvf(Register dst, Register left, const Operand& right, | 1413 inline void DaddBranchNoOvf(Register dst, Register left, const Operand& right, |
1396 Label* no_overflow_label, Register scratch = at) { | 1414 Label* no_overflow_label, Register scratch = at) { |
1397 DaddBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); | 1415 DaddBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); |
1398 } | 1416 } |
1399 | 1417 |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2063 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2046 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2064 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2047 #else | 2065 #else |
2048 #define ACCESS_MASM(masm) masm-> | 2066 #define ACCESS_MASM(masm) masm-> |
2049 #endif | 2067 #endif |
2050 | 2068 |
2051 } // namespace internal | 2069 } // namespace internal |
2052 } // namespace v8 | 2070 } // namespace v8 |
2053 | 2071 |
2054 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 2072 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |