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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 // jump functions with the overflow_dst register as the second parameter. | 1196 // jump functions with the overflow_dst register as the second parameter. |
1197 | 1197 |
1198 void AdduAndCheckForOverflow(Register dst, | 1198 void AdduAndCheckForOverflow(Register dst, |
1199 Register left, | 1199 Register left, |
1200 Register right, | 1200 Register right, |
1201 Register overflow_dst, | 1201 Register overflow_dst, |
1202 Register scratch = at); | 1202 Register scratch = at); |
1203 | 1203 |
1204 void AdduAndCheckForOverflow(Register dst, Register left, | 1204 void AdduAndCheckForOverflow(Register dst, Register left, |
1205 const Operand& right, Register overflow_dst, | 1205 const Operand& right, Register overflow_dst, |
1206 Register scratch = at); | 1206 Register scratch); |
1207 | 1207 |
1208 void SubuAndCheckForOverflow(Register dst, | 1208 void SubuAndCheckForOverflow(Register dst, |
1209 Register left, | 1209 Register left, |
1210 Register right, | 1210 Register right, |
1211 Register overflow_dst, | 1211 Register overflow_dst, |
1212 Register scratch = at); | 1212 Register scratch = at); |
1213 | 1213 |
1214 void SubuAndCheckForOverflow(Register dst, Register left, | 1214 void SubuAndCheckForOverflow(Register dst, Register left, |
1215 const Operand& right, Register overflow_dst, | 1215 const Operand& right, Register overflow_dst, |
1216 Register scratch = at); | 1216 Register scratch); |
| 1217 |
| 1218 void DadduAndCheckForOverflow(Register dst, Register left, Register right, |
| 1219 Register overflow_dst, Register scratch = at); |
| 1220 |
| 1221 void DadduAndCheckForOverflow(Register dst, Register left, |
| 1222 const Operand& right, Register overflow_dst, |
| 1223 Register scratch); |
| 1224 |
| 1225 void DsubuAndCheckForOverflow(Register dst, Register left, Register right, |
| 1226 Register overflow_dst, Register scratch = at); |
| 1227 |
| 1228 void DsubuAndCheckForOverflow(Register dst, Register left, |
| 1229 const Operand& right, Register overflow_dst, |
| 1230 Register scratch); |
1217 | 1231 |
1218 void BranchOnOverflow(Label* label, | 1232 void BranchOnOverflow(Label* label, |
1219 Register overflow_check, | 1233 Register overflow_check, |
1220 BranchDelaySlot bd = PROTECT) { | 1234 BranchDelaySlot bd = PROTECT) { |
1221 Branch(label, lt, overflow_check, Operand(zero_reg), bd); | 1235 Branch(label, lt, overflow_check, Operand(zero_reg), bd); |
1222 } | 1236 } |
1223 | 1237 |
1224 void BranchOnNoOverflow(Label* label, | 1238 void BranchOnNoOverflow(Label* label, |
1225 Register overflow_check, | 1239 Register overflow_check, |
1226 BranchDelaySlot bd = PROTECT) { | 1240 BranchDelaySlot bd = PROTECT) { |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1811 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1825 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1812 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1826 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1813 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1827 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1814 #else | 1828 #else |
1815 #define ACCESS_MASM(masm) masm-> | 1829 #define ACCESS_MASM(masm) masm-> |
1816 #endif | 1830 #endif |
1817 | 1831 |
1818 } } // namespace v8::internal | 1832 } } // namespace v8::internal |
1819 | 1833 |
1820 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1834 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |