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