OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 Handle<Code> code_constant, | 763 Handle<Code> code_constant, |
764 Register code_register, | 764 Register code_register, |
765 Label* done, | 765 Label* done, |
766 InvokeFlag flag); | 766 InvokeFlag flag); |
767 | 767 |
768 // Activation support. | 768 // Activation support. |
769 void EnterFrame(StackFrame::Type type); | 769 void EnterFrame(StackFrame::Type type); |
770 void LeaveFrame(StackFrame::Type type); | 770 void LeaveFrame(StackFrame::Type type); |
771 | 771 |
772 // Allocation support helpers. | 772 // Allocation support helpers. |
| 773 // Loads the top of new-space into the result register. |
| 774 // If flags contains RESULT_CONTAINS_TOP then result_end is valid and |
| 775 // already contains the top of new-space, and scratch is invalid. |
| 776 // Otherwise the address of the new-space top is loaded into scratch (if |
| 777 // scratch is valid), and the new-space top is loaded into result. |
773 void LoadAllocationTopHelper(Register result, | 778 void LoadAllocationTopHelper(Register result, |
774 Register result_end, | 779 Register result_end, |
775 Register scratch, | 780 Register scratch, |
776 AllocationFlags flags); | 781 AllocationFlags flags); |
| 782 // Update allocation top with value in result_end register. |
| 783 // If scratch is valid, it contains the address of the allocation top. |
777 void UpdateAllocationTopHelper(Register result_end, Register scratch); | 784 void UpdateAllocationTopHelper(Register result_end, Register scratch); |
778 }; | 785 }; |
779 | 786 |
780 | 787 |
781 // The code patcher is used to patch (typically) small parts of code e.g. for | 788 // The code patcher is used to patch (typically) small parts of code e.g. for |
782 // debugging and other types of instrumentation. When using the code patcher | 789 // debugging and other types of instrumentation. When using the code patcher |
783 // the exact number of bytes specified must be emitted. Is not legal to emit | 790 // the exact number of bytes specified must be emitted. Is not legal to emit |
784 // relocation information. If any of these constraints are violated it causes | 791 // relocation information. If any of these constraints are violated it causes |
785 // an assertion. | 792 // an assertion. |
786 class CodePatcher { | 793 class CodePatcher { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 } \ | 841 } \ |
835 masm-> | 842 masm-> |
836 #else | 843 #else |
837 #define ACCESS_MASM(masm) masm-> | 844 #define ACCESS_MASM(masm) masm-> |
838 #endif | 845 #endif |
839 | 846 |
840 | 847 |
841 } } // namespace v8::internal | 848 } } // namespace v8::internal |
842 | 849 |
843 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 850 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |