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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 V(Mips64S128Zero) \ | 170 V(Mips64S128Zero) \ |
171 V(Mips64I32x4Splat) \ | 171 V(Mips64I32x4Splat) \ |
172 V(Mips64I32x4ExtractLane) \ | 172 V(Mips64I32x4ExtractLane) \ |
173 V(Mips64I32x4ReplaceLane) \ | 173 V(Mips64I32x4ReplaceLane) \ |
174 V(Mips64I32x4Add) \ | 174 V(Mips64I32x4Add) \ |
175 V(Mips64I32x4Sub) \ | 175 V(Mips64I32x4Sub) \ |
176 V(Mips64F32x4Splat) \ | 176 V(Mips64F32x4Splat) \ |
177 V(Mips64F32x4ExtractLane) \ | 177 V(Mips64F32x4ExtractLane) \ |
178 V(Mips64F32x4ReplaceLane) \ | 178 V(Mips64F32x4ReplaceLane) \ |
179 V(Mips64F32x4SConvertI32x4) \ | 179 V(Mips64F32x4SConvertI32x4) \ |
180 V(Mips64F32x4UConvertI32x4) | 180 V(Mips64F32x4UConvertI32x4) \ |
| 181 V(Mips64I32x4Mul) \ |
| 182 V(Mips64I32x4MaxS) \ |
| 183 V(Mips64I32x4MinS) \ |
| 184 V(Mips64I32x4Eq) \ |
| 185 V(Mips64I32x4Ne) \ |
| 186 V(Mips64I32x4Shl) \ |
| 187 V(Mips64I32x4ShrS) \ |
| 188 V(Mips64I32x4ShrU) \ |
| 189 V(Mips64I32x4MaxU) \ |
| 190 V(Mips64I32x4MinU) \ |
| 191 V(Mips64S32x4Select) |
181 | 192 |
182 // Addressing modes represent the "shape" of inputs to an instruction. | 193 // Addressing modes represent the "shape" of inputs to an instruction. |
183 // Many instructions support multiple addressing modes. Addressing modes | 194 // Many instructions support multiple addressing modes. Addressing modes |
184 // are encoded into the InstructionCode of the instruction and tell the | 195 // are encoded into the InstructionCode of the instruction and tell the |
185 // code generator after register allocation which assembler method to call. | 196 // code generator after register allocation which assembler method to call. |
186 // | 197 // |
187 // We use the following local notation for addressing modes: | 198 // We use the following local notation for addressing modes: |
188 // | 199 // |
189 // R = register | 200 // R = register |
190 // O = register or stack slot | 201 // O = register or stack slot |
191 // D = double register | 202 // D = double register |
192 // I = immediate (handle, external, int32) | 203 // I = immediate (handle, external, int32) |
193 // MRI = [register + immediate] | 204 // MRI = [register + immediate] |
194 // MRR = [register + register] | 205 // MRR = [register + register] |
195 // TODO(plind): Add the new r6 address modes. | 206 // TODO(plind): Add the new r6 address modes. |
196 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 207 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
197 V(MRI) /* [%r0 + K] */ \ | 208 V(MRI) /* [%r0 + K] */ \ |
198 V(MRR) /* [%r0 + %r1] */ | 209 V(MRR) /* [%r0 + %r1] */ |
199 | 210 |
200 | 211 |
201 } // namespace compiler | 212 } // namespace compiler |
202 } // namespace internal | 213 } // namespace internal |
203 } // namespace v8 | 214 } // namespace v8 |
204 | 215 |
205 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 216 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
OLD | NEW |