| 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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 // Load a heap object and handle the case of new-space objects by | 839 // Load a heap object and handle the case of new-space objects by |
| 840 // indirecting via a global cell. | 840 // indirecting via a global cell. |
| 841 void MoveHeapObject(Register result, Handle<Object> object); | 841 void MoveHeapObject(Register result, Handle<Object> object); |
| 842 | 842 |
| 843 // Load a global cell into a register. | 843 // Load a global cell into a register. |
| 844 void LoadGlobalCell(Register dst, Handle<Cell> cell); | 844 void LoadGlobalCell(Register dst, Handle<Cell> cell); |
| 845 | 845 |
| 846 // Compare the given value and the value of weak cell. | 846 // Compare the given value and the value of weak cell. |
| 847 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | 847 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); |
| 848 | 848 |
| 849 void GetWeakValue(Register value, Handle<WeakCell> cell); |
| 850 |
| 849 // Load the value of the weak cell in the value register. Branch to the given | 851 // Load the value of the weak cell in the value register. Branch to the given |
| 850 // miss label if the weak cell was cleared. | 852 // miss label if the weak cell was cleared. |
| 851 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 853 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
| 852 | 854 |
| 853 // Emit code to discard a non-negative number of pointer-sized elements | 855 // Emit code to discard a non-negative number of pointer-sized elements |
| 854 // from the stack, clobbering only the rsp register. | 856 // from the stack, clobbering only the rsp register. |
| 855 void Drop(int stack_elements); | 857 void Drop(int stack_elements); |
| 856 // Emit code to discard a positive number of pointer-sized elements | 858 // Emit code to discard a positive number of pointer-sized elements |
| 857 // from the stack under the return address which remains on the top, | 859 // from the stack under the return address which remains on the top, |
| 858 // clobbering the rsp register. | 860 // clobbering the rsp register. |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 masm->popfq(); \ | 1634 masm->popfq(); \ |
| 1633 } \ | 1635 } \ |
| 1634 masm-> | 1636 masm-> |
| 1635 #else | 1637 #else |
| 1636 #define ACCESS_MASM(masm) masm-> | 1638 #define ACCESS_MASM(masm) masm-> |
| 1637 #endif | 1639 #endif |
| 1638 | 1640 |
| 1639 } } // namespace v8::internal | 1641 } } // namespace v8::internal |
| 1640 | 1642 |
| 1641 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1643 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |