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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 V(MipsI16x8Splat) \ | 178 V(MipsI16x8Splat) \ |
179 V(MipsI16x8ExtractLane) \ | 179 V(MipsI16x8ExtractLane) \ |
180 V(MipsI16x8ReplaceLane) \ | 180 V(MipsI16x8ReplaceLane) \ |
181 V(MipsI16x8Neg) \ | 181 V(MipsI16x8Neg) \ |
182 V(MipsI16x8Shl) \ | 182 V(MipsI16x8Shl) \ |
183 V(MipsI16x8ShrS) \ | 183 V(MipsI16x8ShrS) \ |
184 V(MipsI16x8ShrU) \ | 184 V(MipsI16x8ShrU) \ |
185 V(MipsI16x8Add) \ | 185 V(MipsI16x8Add) \ |
186 V(MipsI16x8AddSaturateS) \ | 186 V(MipsI16x8AddSaturateS) \ |
187 V(MipsI16x8Sub) \ | 187 V(MipsI16x8Sub) \ |
188 V(MipsI16x8SubSaturateS) | 188 V(MipsI16x8SubSaturateS) \ |
| 189 V(MipsI16x8Mul) \ |
| 190 V(MipsI16x8MaxS) \ |
| 191 V(MipsI16x8MinS) \ |
| 192 V(MipsI16x8Eq) \ |
| 193 V(MipsI16x8Ne) \ |
| 194 V(MipsI16x8LtS) \ |
| 195 V(MipsI16x8LeS) \ |
| 196 V(MipsI16x8AddSaturateU) \ |
| 197 V(MipsI16x8SubSaturateU) \ |
| 198 V(MipsI16x8MaxU) \ |
| 199 V(MipsI16x8MinU) \ |
| 200 V(MipsI16x8LtU) \ |
| 201 V(MipsI16x8LeU) \ |
| 202 V(MipsI8x16Splat) \ |
| 203 V(MipsI8x16ExtractLane) \ |
| 204 V(MipsI8x16ReplaceLane) \ |
| 205 V(MipsI8x16Neg) \ |
| 206 V(MipsI8x16Shl) \ |
| 207 V(MipsI8x16ShrS) \ |
| 208 V(MipsS16x8Select) \ |
| 209 V(MipsS8x16Select) |
189 | 210 |
190 // Addressing modes represent the "shape" of inputs to an instruction. | 211 // Addressing modes represent the "shape" of inputs to an instruction. |
191 // Many instructions support multiple addressing modes. Addressing modes | 212 // Many instructions support multiple addressing modes. Addressing modes |
192 // are encoded into the InstructionCode of the instruction and tell the | 213 // are encoded into the InstructionCode of the instruction and tell the |
193 // code generator after register allocation which assembler method to call. | 214 // code generator after register allocation which assembler method to call. |
194 // | 215 // |
195 // We use the following local notation for addressing modes: | 216 // We use the following local notation for addressing modes: |
196 // | 217 // |
197 // R = register | 218 // R = register |
198 // O = register or stack slot | 219 // O = register or stack slot |
199 // D = double register | 220 // D = double register |
200 // I = immediate (handle, external, int32) | 221 // I = immediate (handle, external, int32) |
201 // MRI = [register + immediate] | 222 // MRI = [register + immediate] |
202 // MRR = [register + register] | 223 // MRR = [register + register] |
203 // TODO(plind): Add the new r6 address modes. | 224 // TODO(plind): Add the new r6 address modes. |
204 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 225 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
205 V(MRI) /* [%r0 + K] */ \ | 226 V(MRI) /* [%r0 + K] */ \ |
206 V(MRR) /* [%r0 + %r1] */ | 227 V(MRR) /* [%r0 + %r1] */ |
207 | 228 |
208 | 229 |
209 } // namespace compiler | 230 } // namespace compiler |
210 } // namespace internal | 231 } // namespace internal |
211 } // namespace v8 | 232 } // namespace v8 |
212 | 233 |
213 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 234 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
OLD | NEW |