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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 V(Mips64I32x4Mul) \ | 181 V(Mips64I32x4Mul) \ |
182 V(Mips64I32x4MaxS) \ | 182 V(Mips64I32x4MaxS) \ |
183 V(Mips64I32x4MinS) \ | 183 V(Mips64I32x4MinS) \ |
184 V(Mips64I32x4Eq) \ | 184 V(Mips64I32x4Eq) \ |
185 V(Mips64I32x4Ne) \ | 185 V(Mips64I32x4Ne) \ |
186 V(Mips64I32x4Shl) \ | 186 V(Mips64I32x4Shl) \ |
187 V(Mips64I32x4ShrS) \ | 187 V(Mips64I32x4ShrS) \ |
188 V(Mips64I32x4ShrU) \ | 188 V(Mips64I32x4ShrU) \ |
189 V(Mips64I32x4MaxU) \ | 189 V(Mips64I32x4MaxU) \ |
190 V(Mips64I32x4MinU) \ | 190 V(Mips64I32x4MinU) \ |
191 V(Mips64S32x4Select) | 191 V(Mips64S32x4Select) \ |
| 192 V(Mips64F32x4Abs) \ |
| 193 V(Mips64F32x4Neg) \ |
| 194 V(Mips64F32x4RecipApprox) \ |
| 195 V(Mips64F32x4RecipRefine) \ |
| 196 V(Mips64F32x4RecipSqrtApprox) \ |
| 197 V(Mips64F32x4RecipSqrtRefine) \ |
| 198 V(Mips64F32x4Add) \ |
| 199 V(Mips64F32x4Sub) \ |
| 200 V(Mips64F32x4Mul) \ |
| 201 V(Mips64F32x4Max) \ |
| 202 V(Mips64F32x4Min) \ |
| 203 V(Mips64F32x4Eq) \ |
| 204 V(Mips64F32x4Ne) \ |
| 205 V(Mips64F32x4Lt) \ |
| 206 V(Mips64F32x4Le) \ |
| 207 V(Mips64I32x4SConvertF32x4) \ |
| 208 V(Mips64I32x4UConvertF32x4) |
192 | 209 |
193 // Addressing modes represent the "shape" of inputs to an instruction. | 210 // Addressing modes represent the "shape" of inputs to an instruction. |
194 // Many instructions support multiple addressing modes. Addressing modes | 211 // Many instructions support multiple addressing modes. Addressing modes |
195 // are encoded into the InstructionCode of the instruction and tell the | 212 // are encoded into the InstructionCode of the instruction and tell the |
196 // code generator after register allocation which assembler method to call. | 213 // code generator after register allocation which assembler method to call. |
197 // | 214 // |
198 // We use the following local notation for addressing modes: | 215 // We use the following local notation for addressing modes: |
199 // | 216 // |
200 // R = register | 217 // R = register |
201 // O = register or stack slot | 218 // O = register or stack slot |
202 // D = double register | 219 // D = double register |
203 // I = immediate (handle, external, int32) | 220 // I = immediate (handle, external, int32) |
204 // MRI = [register + immediate] | 221 // MRI = [register + immediate] |
205 // MRR = [register + register] | 222 // MRR = [register + register] |
206 // TODO(plind): Add the new r6 address modes. | 223 // TODO(plind): Add the new r6 address modes. |
207 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 224 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
208 V(MRI) /* [%r0 + K] */ \ | 225 V(MRI) /* [%r0 + K] */ \ |
209 V(MRR) /* [%r0 + %r1] */ | 226 V(MRR) /* [%r0 + %r1] */ |
210 | 227 |
211 | 228 |
212 } // namespace compiler | 229 } // namespace compiler |
213 } // namespace internal | 230 } // namespace internal |
214 } // namespace v8 | 231 } // namespace v8 |
215 | 232 |
216 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 233 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
OLD | NEW |