OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 5 #ifndef V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
6 #define V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 6 #define V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace compiler { | 10 namespace compiler { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 V(Mips64BitcastLD) \ | 148 V(Mips64BitcastLD) \ |
149 V(Mips64Float64ExtractLowWord32) \ | 149 V(Mips64Float64ExtractLowWord32) \ |
150 V(Mips64Float64ExtractHighWord32) \ | 150 V(Mips64Float64ExtractHighWord32) \ |
151 V(Mips64Float64InsertLowWord32) \ | 151 V(Mips64Float64InsertLowWord32) \ |
152 V(Mips64Float64InsertHighWord32) \ | 152 V(Mips64Float64InsertHighWord32) \ |
153 V(Mips64Float64Max) \ | 153 V(Mips64Float64Max) \ |
154 V(Mips64Float64Min) \ | 154 V(Mips64Float64Min) \ |
155 V(Mips64Float64SilenceNaN) \ | 155 V(Mips64Float64SilenceNaN) \ |
156 V(Mips64Push) \ | 156 V(Mips64Push) \ |
157 V(Mips64StoreToStackSlot) \ | 157 V(Mips64StoreToStackSlot) \ |
| 158 V(Mips64ByteSwap64) \ |
| 159 V(Mips64ByteSwap32) \ |
158 V(Mips64StackClaim) | 160 V(Mips64StackClaim) |
159 | 161 |
160 // Addressing modes represent the "shape" of inputs to an instruction. | 162 // Addressing modes represent the "shape" of inputs to an instruction. |
161 // Many instructions support multiple addressing modes. Addressing modes | 163 // Many instructions support multiple addressing modes. Addressing modes |
162 // are encoded into the InstructionCode of the instruction and tell the | 164 // are encoded into the InstructionCode of the instruction and tell the |
163 // code generator after register allocation which assembler method to call. | 165 // code generator after register allocation which assembler method to call. |
164 // | 166 // |
165 // We use the following local notation for addressing modes: | 167 // We use the following local notation for addressing modes: |
166 // | 168 // |
167 // R = register | 169 // R = register |
168 // O = register or stack slot | 170 // O = register or stack slot |
169 // D = double register | 171 // D = double register |
170 // I = immediate (handle, external, int32) | 172 // I = immediate (handle, external, int32) |
171 // MRI = [register + immediate] | 173 // MRI = [register + immediate] |
172 // MRR = [register + register] | 174 // MRR = [register + register] |
173 // TODO(plind): Add the new r6 address modes. | 175 // TODO(plind): Add the new r6 address modes. |
174 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 176 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
175 V(MRI) /* [%r0 + K] */ \ | 177 V(MRI) /* [%r0 + K] */ \ |
176 V(MRR) /* [%r0 + %r1] */ | 178 V(MRR) /* [%r0 + %r1] */ |
177 | 179 |
178 | 180 |
179 } // namespace compiler | 181 } // namespace compiler |
180 } // namespace internal | 182 } // namespace internal |
181 } // namespace v8 | 183 } // namespace v8 |
182 | 184 |
183 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 185 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
OLD | NEW |