| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 | 866 |
| 867 // Check if a double can be exactly represented as a signed 32-bit integer. | 867 // Check if a double can be exactly represented as a signed 32-bit integer. |
| 868 // CR_EQ in cr7 is set if true. | 868 // CR_EQ in cr7 is set if true. |
| 869 void TestDoubleIsInt32(DoubleRegister double_input, Register scratch1, | 869 void TestDoubleIsInt32(DoubleRegister double_input, Register scratch1, |
| 870 Register scratch2, DoubleRegister double_scratch); | 870 Register scratch2, DoubleRegister double_scratch); |
| 871 | 871 |
| 872 // Check if a double is equal to -0.0. | 872 // Check if a double is equal to -0.0. |
| 873 // CR_EQ in cr7 holds the result. | 873 // CR_EQ in cr7 holds the result. |
| 874 void TestDoubleIsMinusZero(DoubleRegister input, Register scratch1, | 874 void TestDoubleIsMinusZero(DoubleRegister input, Register scratch1, |
| 875 Register scratch2); | 875 Register scratch2); |
| 876 void TestHeapNumberIsMinusZero(Register input, Register scratch1, | |
| 877 Register scratch2); | |
| 878 | 876 |
| 879 // Check the sign of a double. | 877 // Check the sign of a double. |
| 880 // CR_LT in cr7 holds the result. | 878 // CR_LT in cr7 holds the result. |
| 881 void TestDoubleSign(DoubleRegister input, Register scratch); | 879 void TestDoubleSign(DoubleRegister input, Register scratch); |
| 882 void TestHeapNumberSign(Register input, Register scratch); | 880 void TestHeapNumberSign(Register input, Register scratch); |
| 883 | 881 |
| 884 // Try to convert a double to a signed 32-bit integer. | 882 // Try to convert a double to a signed 32-bit integer. |
| 885 // CR_EQ in cr7 is set and result assigned if the conversion is exact. | 883 // CR_EQ in cr7 is set and result assigned if the conversion is exact. |
| 886 void TryDoubleToInt32Exact(Register result, DoubleRegister double_input, | 884 void TryDoubleToInt32Exact(Register result, DoubleRegister double_input, |
| 887 Register scratch, DoubleRegister double_scratch); | 885 Register scratch, DoubleRegister double_scratch); |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1606 #define ACCESS_MASM(masm) \ | 1604 #define ACCESS_MASM(masm) \ |
| 1607 masm->stop(__FILE_LINE__); \ | 1605 masm->stop(__FILE_LINE__); \ |
| 1608 masm-> | 1606 masm-> |
| 1609 #else | 1607 #else |
| 1610 #define ACCESS_MASM(masm) masm-> | 1608 #define ACCESS_MASM(masm) masm-> |
| 1611 #endif | 1609 #endif |
| 1612 } // namespace internal | 1610 } // namespace internal |
| 1613 } // namespace v8 | 1611 } // namespace v8 |
| 1614 | 1612 |
| 1615 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1613 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |