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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 V(Mips64I16x8MinU) \ | 233 V(Mips64I16x8MinU) \ |
234 V(Mips64I16x8GtU) \ | 234 V(Mips64I16x8GtU) \ |
235 V(Mips64I16x8GeU) \ | 235 V(Mips64I16x8GeU) \ |
236 V(Mips64I8x16Splat) \ | 236 V(Mips64I8x16Splat) \ |
237 V(Mips64I8x16ExtractLane) \ | 237 V(Mips64I8x16ExtractLane) \ |
238 V(Mips64I8x16ReplaceLane) \ | 238 V(Mips64I8x16ReplaceLane) \ |
239 V(Mips64I8x16Neg) \ | 239 V(Mips64I8x16Neg) \ |
240 V(Mips64I8x16Shl) \ | 240 V(Mips64I8x16Shl) \ |
241 V(Mips64I8x16ShrS) \ | 241 V(Mips64I8x16ShrS) \ |
242 V(Mips64S16x8Select) \ | 242 V(Mips64S16x8Select) \ |
243 V(Mips64S8x16Select) | 243 V(Mips64S8x16Select) \ |
| 244 V(Mips64I8x16Add) \ |
| 245 V(Mips64I8x16AddSaturateS) \ |
| 246 V(Mips64I8x16Sub) \ |
| 247 V(Mips64I8x16SubSaturateS) \ |
| 248 V(Mips64I8x16Mul) \ |
| 249 V(Mips64I8x16MaxS) \ |
| 250 V(Mips64I8x16MinS) \ |
| 251 V(Mips64I8x16Eq) \ |
| 252 V(Mips64I8x16Ne) \ |
| 253 V(Mips64I8x16GtS) \ |
| 254 V(Mips64I8x16GeS) \ |
| 255 V(Mips64I8x16ShrU) \ |
| 256 V(Mips64I8x16AddSaturateU) \ |
| 257 V(Mips64I8x16SubSaturateU) \ |
| 258 V(Mips64I8x16MaxU) \ |
| 259 V(Mips64I8x16MinU) \ |
| 260 V(Mips64I8x16GtU) \ |
| 261 V(Mips64I8x16GeU) \ |
| 262 V(Mips64S128And) \ |
| 263 V(Mips64S128Or) \ |
| 264 V(Mips64S128Xor) \ |
| 265 V(Mips64S128Not) |
244 | 266 |
245 // Addressing modes represent the "shape" of inputs to an instruction. | 267 // Addressing modes represent the "shape" of inputs to an instruction. |
246 // Many instructions support multiple addressing modes. Addressing modes | 268 // Many instructions support multiple addressing modes. Addressing modes |
247 // are encoded into the InstructionCode of the instruction and tell the | 269 // are encoded into the InstructionCode of the instruction and tell the |
248 // code generator after register allocation which assembler method to call. | 270 // code generator after register allocation which assembler method to call. |
249 // | 271 // |
250 // We use the following local notation for addressing modes: | 272 // We use the following local notation for addressing modes: |
251 // | 273 // |
252 // R = register | 274 // R = register |
253 // O = register or stack slot | 275 // O = register or stack slot |
254 // D = double register | 276 // D = double register |
255 // I = immediate (handle, external, int32) | 277 // I = immediate (handle, external, int32) |
256 // MRI = [register + immediate] | 278 // MRI = [register + immediate] |
257 // MRR = [register + register] | 279 // MRR = [register + register] |
258 // TODO(plind): Add the new r6 address modes. | 280 // TODO(plind): Add the new r6 address modes. |
259 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 281 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
260 V(MRI) /* [%r0 + K] */ \ | 282 V(MRI) /* [%r0 + K] */ \ |
261 V(MRR) /* [%r0 + %r1] */ | 283 V(MRR) /* [%r0 + %r1] */ |
262 | 284 |
263 | 285 |
264 } // namespace compiler | 286 } // namespace compiler |
265 } // namespace internal | 287 } // namespace internal |
266 } // namespace v8 | 288 } // namespace v8 |
267 | 289 |
268 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 290 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
OLD | NEW |