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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 #if V8_TARGET_ARCH_PPC64 | 396 #if V8_TARGET_ARCH_PPC64 |
397 // Converts the double_input to an unsigned integer. Note that, upon return, | 397 // Converts the double_input to an unsigned integer. Note that, upon return, |
398 // the contents of double_dst will also hold the fixed point representation. | 398 // the contents of double_dst will also hold the fixed point representation. |
399 void ConvertDoubleToUnsignedInt64( | 399 void ConvertDoubleToUnsignedInt64( |
400 const DoubleRegister double_input, const Register dst, | 400 const DoubleRegister double_input, const Register dst, |
401 const DoubleRegister double_dst, | 401 const DoubleRegister double_dst, |
402 FPRoundingMode rounding_mode = kRoundToZero); | 402 FPRoundingMode rounding_mode = kRoundToZero); |
403 #endif | 403 #endif |
404 | 404 |
405 // Generates function and stub prologue code. | 405 // Generates function and stub prologue code. |
406 void StubPrologue(int prologue_offset = 0); | 406 void StubPrologue(Register base = no_reg, int prologue_offset = 0); |
407 void Prologue(bool code_pre_aging, int prologue_offset = 0); | 407 void Prologue(bool code_pre_aging, Register base, int prologue_offset = 0); |
408 | 408 |
409 // Enter exit frame. | 409 // Enter exit frame. |
410 // stack_space - extra stack space, used for parameters before call to C. | 410 // stack_space - extra stack space, used for parameters before call to C. |
411 // At least one slot (for the return address) should be provided. | 411 // At least one slot (for the return address) should be provided. |
412 void EnterExitFrame(bool save_doubles, int stack_space = 1); | 412 void EnterExitFrame(bool save_doubles, int stack_space = 1); |
413 | 413 |
414 // Leave the current exit frame. Expects the return value in r0. | 414 // Leave the current exit frame. Expects the return value in r0. |
415 // Expect the number of values, pushed prior to the exit frame, to | 415 // Expect the number of values, pushed prior to the exit frame, to |
416 // remove in a register (or no_reg, if there is nothing to remove). | 416 // remove in a register (or no_reg, if there is nothing to remove). |
417 void LeaveExitFrame(bool save_doubles, Register argument_count, | 417 void LeaveExitFrame(bool save_doubles, Register argument_count, |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 #define ACCESS_MASM(masm) \ | 1581 #define ACCESS_MASM(masm) \ |
1582 masm->stop(__FILE_LINE__); \ | 1582 masm->stop(__FILE_LINE__); \ |
1583 masm-> | 1583 masm-> |
1584 #else | 1584 #else |
1585 #define ACCESS_MASM(masm) masm-> | 1585 #define ACCESS_MASM(masm) masm-> |
1586 #endif | 1586 #endif |
1587 } // namespace internal | 1587 } // namespace internal |
1588 } // namespace v8 | 1588 } // namespace v8 |
1589 | 1589 |
1590 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1590 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |