| 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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 void JumpIfNotSmi(Register value, | 1499 void JumpIfNotSmi(Register value, |
| 1500 Label* not_smi_label, | 1500 Label* not_smi_label, |
| 1501 Register scratch = at, | 1501 Register scratch = at, |
| 1502 BranchDelaySlot bd = PROTECT); | 1502 BranchDelaySlot bd = PROTECT); |
| 1503 | 1503 |
| 1504 // Jump if either of the registers contain a non-smi. | 1504 // Jump if either of the registers contain a non-smi. |
| 1505 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); | 1505 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); |
| 1506 // Jump if either of the registers contain a smi. | 1506 // Jump if either of the registers contain a smi. |
| 1507 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); | 1507 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); |
| 1508 | 1508 |
| 1509 // Abort execution if argument is a number, enabled via --debug-code. |
| 1510 void AssertNotNumber(Register object); |
| 1511 |
| 1509 // Abort execution if argument is a smi, enabled via --debug-code. | 1512 // Abort execution if argument is a smi, enabled via --debug-code. |
| 1510 void AssertNotSmi(Register object); | 1513 void AssertNotSmi(Register object); |
| 1511 void AssertSmi(Register object); | 1514 void AssertSmi(Register object); |
| 1512 | 1515 |
| 1513 // Abort execution if argument is not a string, enabled via --debug-code. | 1516 // Abort execution if argument is not a string, enabled via --debug-code. |
| 1514 void AssertString(Register object); | 1517 void AssertString(Register object); |
| 1515 | 1518 |
| 1516 // Abort execution if argument is not a name, enabled via --debug-code. | 1519 // Abort execution if argument is not a name, enabled via --debug-code. |
| 1517 void AssertName(Register object); | 1520 void AssertName(Register object); |
| 1518 | 1521 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1823 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1821 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1824 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1822 #else | 1825 #else |
| 1823 #define ACCESS_MASM(masm) masm-> | 1826 #define ACCESS_MASM(masm) masm-> |
| 1824 #endif | 1827 #endif |
| 1825 | 1828 |
| 1826 } // namespace internal | 1829 } // namespace internal |
| 1827 } // namespace v8 | 1830 } // namespace v8 |
| 1828 | 1831 |
| 1829 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1832 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |