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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 // a double, storing the result to |double_dst| | 380 // a double, storing the result to |double_dst| |
381 void ConvertUnsignedIntToDouble(Register src, DoubleRegister double_dst); | 381 void ConvertUnsignedIntToDouble(Register src, DoubleRegister double_dst); |
382 | 382 |
383 // Converts the integer (untagged smi) in |src| to | 383 // Converts the integer (untagged smi) in |src| to |
384 // a float, storing the result in |dst| | 384 // a float, storing the result in |dst| |
385 // Warning: The value in |int_scrach| will be changed in the process! | 385 // Warning: The value in |int_scrach| will be changed in the process! |
386 void ConvertIntToFloat(const DoubleRegister dst, const Register src, | 386 void ConvertIntToFloat(const DoubleRegister dst, const Register src, |
387 const Register int_scratch); | 387 const Register int_scratch); |
388 | 388 |
389 #if V8_TARGET_ARCH_PPC64 | 389 #if V8_TARGET_ARCH_PPC64 |
| 390 void ConvertInt64ToFloat(Register src, DoubleRegister double_dst); |
390 void ConvertInt64ToDouble(Register src, DoubleRegister double_dst); | 391 void ConvertInt64ToDouble(Register src, DoubleRegister double_dst); |
| 392 void ConvertUnsignedInt64ToFloat(Register src, DoubleRegister double_dst); |
391 void ConvertUnsignedInt64ToDouble(Register src, DoubleRegister double_dst); | 393 void ConvertUnsignedInt64ToDouble(Register src, DoubleRegister double_dst); |
392 void ConvertInt64ToFloat(Register src, DoubleRegister double_dst); | |
393 #endif | 394 #endif |
394 | 395 |
395 // Converts the double_input to an integer. Note that, upon return, | 396 // Converts the double_input to an integer. Note that, upon return, |
396 // the contents of double_dst will also hold the fixed point representation. | 397 // the contents of double_dst will also hold the fixed point representation. |
397 void ConvertDoubleToInt64(const DoubleRegister double_input, | 398 void ConvertDoubleToInt64(const DoubleRegister double_input, |
398 #if !V8_TARGET_ARCH_PPC64 | 399 #if !V8_TARGET_ARCH_PPC64 |
399 const Register dst_hi, | 400 const Register dst_hi, |
400 #endif | 401 #endif |
401 const Register dst, const DoubleRegister double_dst, | 402 const Register dst, const DoubleRegister double_dst, |
402 FPRoundingMode rounding_mode = kRoundToZero); | 403 FPRoundingMode rounding_mode = kRoundToZero); |
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 #define ACCESS_MASM(masm) \ | 1574 #define ACCESS_MASM(masm) \ |
1574 masm->stop(__FILE_LINE__); \ | 1575 masm->stop(__FILE_LINE__); \ |
1575 masm-> | 1576 masm-> |
1576 #else | 1577 #else |
1577 #define ACCESS_MASM(masm) masm-> | 1578 #define ACCESS_MASM(masm) masm-> |
1578 #endif | 1579 #endif |
1579 } // namespace internal | 1580 } // namespace internal |
1580 } // namespace v8 | 1581 } // namespace v8 |
1581 | 1582 |
1582 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1583 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |