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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 // label. The allocated object is returned in result. If the flag | 704 // label. The allocated object is returned in result. If the flag |
705 // tag_allocated_object is true the result is tagged as as a heap object. | 705 // tag_allocated_object is true the result is tagged as as a heap object. |
706 // All registers are clobbered also when control continues at the gc_required | 706 // All registers are clobbered also when control continues at the gc_required |
707 // label. | 707 // label. |
708 void Allocate(int object_size, Register result, Register scratch1, | 708 void Allocate(int object_size, Register result, Register scratch1, |
709 Register scratch2, Label* gc_required, AllocationFlags flags); | 709 Register scratch2, Label* gc_required, AllocationFlags flags); |
710 | 710 |
711 void Allocate(Register object_size, Register result, Register result_end, | 711 void Allocate(Register object_size, Register result, Register result_end, |
712 Register scratch, Label* gc_required, AllocationFlags flags); | 712 Register scratch, Label* gc_required, AllocationFlags flags); |
713 | 713 |
| 714 // FastAllocate is right now only used for folded allocations. It just |
| 715 // increments the top pointer without checking against limit. This can only |
| 716 // be done if it was proved earlier that the allocation will succeed. |
| 717 void FastAllocate(int object_size, Register result, Register scratch1, |
| 718 Register scratch2, AllocationFlags flags); |
| 719 |
| 720 void FastAllocate(Register object_size, Register result, Register result_end, |
| 721 Register scratch, AllocationFlags flags); |
| 722 |
714 void AllocateTwoByteString(Register result, Register length, | 723 void AllocateTwoByteString(Register result, Register length, |
715 Register scratch1, Register scratch2, | 724 Register scratch1, Register scratch2, |
716 Register scratch3, Label* gc_required); | 725 Register scratch3, Label* gc_required); |
717 void AllocateOneByteString(Register result, Register length, | 726 void AllocateOneByteString(Register result, Register length, |
718 Register scratch1, Register scratch2, | 727 Register scratch1, Register scratch2, |
719 Register scratch3, Label* gc_required); | 728 Register scratch3, Label* gc_required); |
720 void AllocateTwoByteConsString(Register result, Register length, | 729 void AllocateTwoByteConsString(Register result, Register length, |
721 Register scratch1, Register scratch2, | 730 Register scratch1, Register scratch2, |
722 Label* gc_required); | 731 Label* gc_required); |
723 void AllocateOneByteConsString(Register result, Register length, | 732 void AllocateOneByteConsString(Register result, Register length, |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 #define ACCESS_MASM(masm) \ | 1667 #define ACCESS_MASM(masm) \ |
1659 masm->stop(__FILE_LINE__); \ | 1668 masm->stop(__FILE_LINE__); \ |
1660 masm-> | 1669 masm-> |
1661 #else | 1670 #else |
1662 #define ACCESS_MASM(masm) masm-> | 1671 #define ACCESS_MASM(masm) masm-> |
1663 #endif | 1672 #endif |
1664 } // namespace internal | 1673 } // namespace internal |
1665 } // namespace v8 | 1674 } // namespace v8 |
1666 | 1675 |
1667 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1676 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |