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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 | 834 |
835 // Emit code to discard a non-negative number of pointer-sized elements | 835 // Emit code to discard a non-negative number of pointer-sized elements |
836 // from the stack, clobbering only the rsp register. | 836 // from the stack, clobbering only the rsp register. |
837 void Drop(int stack_elements); | 837 void Drop(int stack_elements); |
838 | 838 |
839 void Call(Label* target) { call(target); } | 839 void Call(Label* target) { call(target); } |
840 void Push(Register src) { push(src); } | 840 void Push(Register src) { push(src); } |
841 void Pop(Register dst) { pop(dst); } | 841 void Pop(Register dst) { pop(dst); } |
842 void PushReturnAddressFrom(Register src) { push(src); } | 842 void PushReturnAddressFrom(Register src) { push(src); } |
843 void PopReturnAddressTo(Register dst) { pop(dst); } | 843 void PopReturnAddressTo(Register dst) { pop(dst); } |
844 void MoveDouble(Register dst, const Operand& src) { movq(dst, src); } | |
845 void MoveDouble(const Operand& dst, Register src) { movq(dst, src); } | |
846 | |
847 void Move(Register dst, ExternalReference ext) { | 844 void Move(Register dst, ExternalReference ext) { |
848 movp(dst, reinterpret_cast<Address>(ext.address()), | 845 movp(dst, reinterpret_cast<Address>(ext.address()), |
849 RelocInfo::EXTERNAL_REFERENCE); | 846 RelocInfo::EXTERNAL_REFERENCE); |
850 } | 847 } |
851 | 848 |
852 // Loads a pointer into a register with a relocation mode. | 849 // Loads a pointer into a register with a relocation mode. |
853 void Move(Register dst, void* ptr, RelocInfo::Mode rmode) { | 850 void Move(Register dst, void* ptr, RelocInfo::Mode rmode) { |
854 // This method must not be used with heap object references. The stored | 851 // This method must not be used with heap object references. The stored |
855 // address is not GC safe. Use the handle version instead. | 852 // address is not GC safe. Use the handle version instead. |
856 ASSERT(rmode > RelocInfo::LAST_GCED_ENUM); | 853 ASSERT(rmode > RelocInfo::LAST_GCED_ENUM); |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 masm->popfq(); \ | 1612 masm->popfq(); \ |
1616 } \ | 1613 } \ |
1617 masm-> | 1614 masm-> |
1618 #else | 1615 #else |
1619 #define ACCESS_MASM(masm) masm-> | 1616 #define ACCESS_MASM(masm) masm-> |
1620 #endif | 1617 #endif |
1621 | 1618 |
1622 } } // namespace v8::internal | 1619 } } // namespace v8::internal |
1623 | 1620 |
1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1621 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |