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/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // register. | 126 // register. |
127 void LoadAddress(Register destination, ExternalReference source); | 127 void LoadAddress(Register destination, ExternalReference source); |
128 // Returns the size of the code generated by LoadAddress. | 128 // Returns the size of the code generated by LoadAddress. |
129 // Used by CallSize(ExternalReference) to find the size of a call. | 129 // Used by CallSize(ExternalReference) to find the size of a call. |
130 int LoadAddressSize(ExternalReference source); | 130 int LoadAddressSize(ExternalReference source); |
131 // Pushes the address of the external reference onto the stack. | 131 // Pushes the address of the external reference onto the stack. |
132 void PushAddress(ExternalReference source); | 132 void PushAddress(ExternalReference source); |
133 | 133 |
134 // Operations on roots in the root-array. | 134 // Operations on roots in the root-array. |
135 void LoadRoot(Register destination, Heap::RootListIndex index); | 135 void LoadRoot(Register destination, Heap::RootListIndex index); |
| 136 void LoadRoot(const Operand& destination, Heap::RootListIndex index) { |
| 137 LoadRoot(kScratchRegister, index); |
| 138 movp(destination, kScratchRegister); |
| 139 } |
136 void StoreRoot(Register source, Heap::RootListIndex index); | 140 void StoreRoot(Register source, Heap::RootListIndex index); |
137 // Load a root value where the index (or part of it) is variable. | 141 // Load a root value where the index (or part of it) is variable. |
138 // The variable_offset register is added to the fixed_offset value | 142 // The variable_offset register is added to the fixed_offset value |
139 // to get the index into the root-array. | 143 // to get the index into the root-array. |
140 void LoadRootIndexed(Register destination, | 144 void LoadRootIndexed(Register destination, |
141 Register variable_offset, | 145 Register variable_offset, |
142 int fixed_offset); | 146 int fixed_offset); |
143 void CompareRoot(Register with, Heap::RootListIndex index); | 147 void CompareRoot(Register with, Heap::RootListIndex index); |
144 void CompareRoot(const Operand& with, Heap::RootListIndex index); | 148 void CompareRoot(const Operand& with, Heap::RootListIndex index); |
145 void PushRoot(Heap::RootListIndex index); | 149 void PushRoot(Heap::RootListIndex index); |
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 masm->popfq(); \ | 1623 masm->popfq(); \ |
1620 } \ | 1624 } \ |
1621 masm-> | 1625 masm-> |
1622 #else | 1626 #else |
1623 #define ACCESS_MASM(masm) masm-> | 1627 #define ACCESS_MASM(masm) masm-> |
1624 #endif | 1628 #endif |
1625 | 1629 |
1626 } } // namespace v8::internal | 1630 } } // namespace v8::internal |
1627 | 1631 |
1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1632 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |