OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 // Load a heap object and handle the case of new-space objects by | 833 // Load a heap object and handle the case of new-space objects by |
834 // indirecting via a global cell. | 834 // indirecting via a global cell. |
835 void MoveHeapObject(Register result, Handle<Object> object); | 835 void MoveHeapObject(Register result, Handle<Object> object); |
836 | 836 |
837 // Load a global cell into a register. | 837 // Load a global cell into a register. |
838 void LoadGlobalCell(Register dst, Handle<Cell> cell); | 838 void LoadGlobalCell(Register dst, Handle<Cell> cell); |
839 | 839 |
840 // Emit code to discard a non-negative number of pointer-sized elements | 840 // Emit code to discard a non-negative number of pointer-sized elements |
841 // from the stack, clobbering only the rsp register. | 841 // from the stack, clobbering only the rsp register. |
842 void Drop(int stack_elements); | 842 void Drop(int stack_elements); |
| 843 // Emit code to discard a positive number of pointer-sized elements |
| 844 // from the stack under the return address which remains on the top, |
| 845 // clobbering the rsp register. |
| 846 void DropUnderReturnAddress(int stack_elements, |
| 847 Register scratch = kScratchRegister); |
843 | 848 |
844 void Call(Label* target) { call(target); } | 849 void Call(Label* target) { call(target); } |
845 void Push(Register src); | 850 void Push(Register src); |
846 void Push(const Operand& src); | 851 void Push(const Operand& src); |
847 void Push(Immediate value); | 852 void Push(Immediate value); |
848 void PushImm32(int32_t imm32); | 853 void PushImm32(int32_t imm32); |
849 void Pop(Register dst); | 854 void Pop(Register dst); |
850 void Pop(const Operand& dst); | 855 void Pop(const Operand& dst); |
851 void PushReturnAddressFrom(Register src) { pushq(src); } | 856 void PushReturnAddressFrom(Register src) { pushq(src); } |
852 void PopReturnAddressTo(Register dst) { popq(dst); } | 857 void PopReturnAddressTo(Register dst) { popq(dst); } |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 masm->popfq(); \ | 1629 masm->popfq(); \ |
1625 } \ | 1630 } \ |
1626 masm-> | 1631 masm-> |
1627 #else | 1632 #else |
1628 #define ACCESS_MASM(masm) masm-> | 1633 #define ACCESS_MASM(masm) masm-> |
1629 #endif | 1634 #endif |
1630 | 1635 |
1631 } } // namespace v8::internal | 1636 } } // namespace v8::internal |
1632 | 1637 |
1633 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1638 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |