| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
| 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 void Cmp(const Operand& dst, Smi* src); | 840 void Cmp(const Operand& dst, Smi* src); |
| 841 void Push(Handle<Object> source); | 841 void Push(Handle<Object> source); |
| 842 | 842 |
| 843 // Load a heap object and handle the case of new-space objects by | 843 // Load a heap object and handle the case of new-space objects by |
| 844 // indirecting via a global cell. | 844 // indirecting via a global cell. |
| 845 void MoveHeapObject(Register result, Handle<Object> object); | 845 void MoveHeapObject(Register result, Handle<Object> object); |
| 846 | 846 |
| 847 // Load a global cell into a register. | 847 // Load a global cell into a register. |
| 848 void LoadGlobalCell(Register dst, Handle<Cell> cell); | 848 void LoadGlobalCell(Register dst, Handle<Cell> cell); |
| 849 | 849 |
| 850 // Compare the given value and the value of weak cell. | |
| 851 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | |
| 852 | |
| 853 // Load the value of the weak cell in the value register. Branch to the given | |
| 854 // miss label if the weak cell was cleared. | |
| 855 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | |
| 856 | |
| 857 // Emit code to discard a non-negative number of pointer-sized elements | 850 // Emit code to discard a non-negative number of pointer-sized elements |
| 858 // from the stack, clobbering only the rsp register. | 851 // from the stack, clobbering only the rsp register. |
| 859 void Drop(int stack_elements); | 852 void Drop(int stack_elements); |
| 860 // Emit code to discard a positive number of pointer-sized elements | 853 // Emit code to discard a positive number of pointer-sized elements |
| 861 // from the stack under the return address which remains on the top, | 854 // from the stack under the return address which remains on the top, |
| 862 // clobbering the rsp register. | 855 // clobbering the rsp register. |
| 863 void DropUnderReturnAddress(int stack_elements, | 856 void DropUnderReturnAddress(int stack_elements, |
| 864 Register scratch = kScratchRegister); | 857 Register scratch = kScratchRegister); |
| 865 | 858 |
| 866 void Call(Label* target) { call(target); } | 859 void Call(Label* target) { call(target); } |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1652 masm->popfq(); \ | 1645 masm->popfq(); \ |
| 1653 } \ | 1646 } \ |
| 1654 masm-> | 1647 masm-> |
| 1655 #else | 1648 #else |
| 1656 #define ACCESS_MASM(masm) masm-> | 1649 #define ACCESS_MASM(masm) masm-> |
| 1657 #endif | 1650 #endif |
| 1658 | 1651 |
| 1659 } } // namespace v8::internal | 1652 } } // namespace v8::internal |
| 1660 | 1653 |
| 1661 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1654 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |