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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 Register scratch1, Register scratch2, | 757 Register scratch1, Register scratch2, |
758 Register heap_number_map, | 758 Register heap_number_map, |
759 Label* gc_required); | 759 Label* gc_required); |
760 | 760 |
761 // Allocate and initialize a JSValue wrapper with the specified {constructor} | 761 // Allocate and initialize a JSValue wrapper with the specified {constructor} |
762 // and {value}. | 762 // and {value}. |
763 void AllocateJSValue(Register result, Register constructor, Register value, | 763 void AllocateJSValue(Register result, Register constructor, Register value, |
764 Register scratch1, Register scratch2, | 764 Register scratch1, Register scratch2, |
765 Label* gc_required); | 765 Label* gc_required); |
766 | 766 |
767 // Copies a number of bytes from src to dst. All registers are clobbered. On | |
768 // exit src and dst will point to the place just after where the last byte was | |
769 // read or written and length will be zero. | |
770 void CopyBytes(Register src, Register dst, Register length, Register scratch); | |
771 | |
772 // Initialize fields with filler values. |count| fields starting at | 767 // Initialize fields with filler values. |count| fields starting at |
773 // |current_address| are overwritten with the value in |filler|. At the end | 768 // |current_address| are overwritten with the value in |filler|. At the end |
774 // the loop, |current_address| points at the next uninitialized field. | 769 // the loop, |current_address| points at the next uninitialized field. |
775 // |count| is assumed to be non-zero. | 770 // |count| is assumed to be non-zero. |
776 void InitializeNFieldsWithFiller(Register current_address, Register count, | 771 void InitializeNFieldsWithFiller(Register current_address, Register count, |
777 Register filler); | 772 Register filler); |
778 | 773 |
779 // Initialize fields with filler values. Fields starting at |current_address| | 774 // Initialize fields with filler values. Fields starting at |current_address| |
780 // not including |end_address| are overwritten with the value in |filler|. At | 775 // not including |end_address| are overwritten with the value in |filler|. At |
781 // the end the loop, |current_address| takes the value of |end_address|. | 776 // the end the loop, |current_address| takes the value of |end_address|. |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 inline MemOperand NativeContextMemOperand() { | 1653 inline MemOperand NativeContextMemOperand() { |
1659 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); | 1654 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); |
1660 } | 1655 } |
1661 | 1656 |
1662 #define ACCESS_MASM(masm) masm-> | 1657 #define ACCESS_MASM(masm) masm-> |
1663 | 1658 |
1664 } // namespace internal | 1659 } // namespace internal |
1665 } // namespace v8 | 1660 } // namespace v8 |
1666 | 1661 |
1667 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1662 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |