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/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 } | 1329 } |
1330 | 1330 |
1331 void SubBranchOvf(Register dst, Register left, const Operand& right, | 1331 void SubBranchOvf(Register dst, Register left, const Operand& right, |
1332 Label* overflow_label, Label* no_overflow_label, | 1332 Label* overflow_label, Label* no_overflow_label, |
1333 Register scratch = at); | 1333 Register scratch = at); |
1334 | 1334 |
1335 void SubBranchOvf(Register dst, Register left, Register right, | 1335 void SubBranchOvf(Register dst, Register left, Register right, |
1336 Label* overflow_label, Label* no_overflow_label, | 1336 Label* overflow_label, Label* no_overflow_label, |
1337 Register scratch = at); | 1337 Register scratch = at); |
1338 | 1338 |
| 1339 inline void MulBranchOvf(Register dst, Register left, const Operand& right, |
| 1340 Label* overflow_label, Register scratch = at) { |
| 1341 MulBranchOvf(dst, left, right, overflow_label, nullptr, scratch); |
| 1342 } |
| 1343 |
| 1344 inline void MulBranchNoOvf(Register dst, Register left, const Operand& right, |
| 1345 Label* no_overflow_label, Register scratch = at) { |
| 1346 MulBranchOvf(dst, left, right, nullptr, no_overflow_label, scratch); |
| 1347 } |
| 1348 |
| 1349 void MulBranchOvf(Register dst, Register left, const Operand& right, |
| 1350 Label* overflow_label, Label* no_overflow_label, |
| 1351 Register scratch = at); |
| 1352 |
| 1353 void MulBranchOvf(Register dst, Register left, Register right, |
| 1354 Label* overflow_label, Label* no_overflow_label, |
| 1355 Register scratch = at); |
| 1356 |
1339 // ------------------------------------------------------------------------- | 1357 // ------------------------------------------------------------------------- |
1340 // Runtime calls. | 1358 // Runtime calls. |
1341 | 1359 |
1342 // See comments at the beginning of CEntryStub::Generate. | 1360 // See comments at the beginning of CEntryStub::Generate. |
1343 inline void PrepareCEntryArgs(int num_args) { li(a0, num_args); } | 1361 inline void PrepareCEntryArgs(int num_args) { li(a0, num_args); } |
1344 | 1362 |
1345 inline void PrepareCEntryFunction(const ExternalReference& ref) { | 1363 inline void PrepareCEntryFunction(const ExternalReference& ref) { |
1346 li(a1, Operand(ref)); | 1364 li(a1, Operand(ref)); |
1347 } | 1365 } |
1348 | 1366 |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1904 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1922 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1905 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1923 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1906 #else | 1924 #else |
1907 #define ACCESS_MASM(masm) masm-> | 1925 #define ACCESS_MASM(masm) masm-> |
1908 #endif | 1926 #endif |
1909 | 1927 |
1910 } // namespace internal | 1928 } // namespace internal |
1911 } // namespace v8 | 1929 } // namespace v8 |
1912 | 1930 |
1913 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1931 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |