| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 403 |
| 404 #if V8_TARGET_ARCH_PPC64 | 404 #if V8_TARGET_ARCH_PPC64 |
| 405 // Converts the double_input to an unsigned integer. Note that, upon return, | 405 // Converts the double_input to an unsigned integer. Note that, upon return, |
| 406 // the contents of double_dst will also hold the fixed point representation. | 406 // the contents of double_dst will also hold the fixed point representation. |
| 407 void ConvertDoubleToUnsignedInt64( | 407 void ConvertDoubleToUnsignedInt64( |
| 408 const DoubleRegister double_input, const Register dst, | 408 const DoubleRegister double_input, const Register dst, |
| 409 const DoubleRegister double_dst, | 409 const DoubleRegister double_dst, |
| 410 FPRoundingMode rounding_mode = kRoundToZero); | 410 FPRoundingMode rounding_mode = kRoundToZero); |
| 411 #endif | 411 #endif |
| 412 | 412 |
| 413 #if !V8_TARGET_ARCH_PPC64 |
| 414 void PairShiftLeft(Register dst_low, Register dst_high, Register src_low, |
| 415 Register src_high, Register scratch, Register shift); |
| 416 void PairShiftLeft(Register dst_low, Register dst_high, Register src_low, |
| 417 Register src_high, uint32_t shift); |
| 418 #endif |
| 419 |
| 413 // Generates function and stub prologue code. | 420 // Generates function and stub prologue code. |
| 414 void StubPrologue(Register base = no_reg, int prologue_offset = 0); | 421 void StubPrologue(Register base = no_reg, int prologue_offset = 0); |
| 415 void Prologue(bool code_pre_aging, Register base, int prologue_offset = 0); | 422 void Prologue(bool code_pre_aging, Register base, int prologue_offset = 0); |
| 416 | 423 |
| 417 // Enter exit frame. | 424 // Enter exit frame. |
| 418 // stack_space - extra stack space, used for parameters before call to C. | 425 // stack_space - extra stack space, used for parameters before call to C. |
| 419 // At least one slot (for the return address) should be provided. | 426 // At least one slot (for the return address) should be provided. |
| 420 void EnterExitFrame(bool save_doubles, int stack_space = 1); | 427 void EnterExitFrame(bool save_doubles, int stack_space = 1); |
| 421 | 428 |
| 422 // Leave the current exit frame. Expects the return value in r0. | 429 // Leave the current exit frame. Expects the return value in r0. |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 #define ACCESS_MASM(masm) \ | 1620 #define ACCESS_MASM(masm) \ |
| 1614 masm->stop(__FILE_LINE__); \ | 1621 masm->stop(__FILE_LINE__); \ |
| 1615 masm-> | 1622 masm-> |
| 1616 #else | 1623 #else |
| 1617 #define ACCESS_MASM(masm) masm-> | 1624 #define ACCESS_MASM(masm) masm-> |
| 1618 #endif | 1625 #endif |
| 1619 } // namespace internal | 1626 } // namespace internal |
| 1620 } // namespace v8 | 1627 } // namespace v8 |
| 1621 | 1628 |
| 1622 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1629 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |