| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 V(MipsS128Zero) \ | 136 V(MipsS128Zero) \ |
| 137 V(MipsI32x4Splat) \ | 137 V(MipsI32x4Splat) \ |
| 138 V(MipsI32x4ExtractLane) \ | 138 V(MipsI32x4ExtractLane) \ |
| 139 V(MipsI32x4ReplaceLane) \ | 139 V(MipsI32x4ReplaceLane) \ |
| 140 V(MipsI32x4Add) \ | 140 V(MipsI32x4Add) \ |
| 141 V(MipsI32x4Sub) \ | 141 V(MipsI32x4Sub) \ |
| 142 V(MipsF32x4Splat) \ | 142 V(MipsF32x4Splat) \ |
| 143 V(MipsF32x4ExtractLane) \ | 143 V(MipsF32x4ExtractLane) \ |
| 144 V(MipsF32x4ReplaceLane) \ | 144 V(MipsF32x4ReplaceLane) \ |
| 145 V(MipsF32x4SConvertI32x4) \ | 145 V(MipsF32x4SConvertI32x4) \ |
| 146 V(MipsF32x4UConvertI32x4) | 146 V(MipsF32x4UConvertI32x4) \ |
| 147 V(MipsS128And) \ |
| 148 V(MipsS128Or) \ |
| 149 V(MipsS128Xor) \ |
| 150 V(MipsS128Not) \ |
| 151 V(MipsS1x4AnyTrue) \ |
| 152 V(MipsS1x4AllTrue) \ |
| 153 V(MipsS1x8AnyTrue) \ |
| 154 V(MipsS1x8AllTrue) \ |
| 155 V(MipsS1x16AnyTrue) \ |
| 156 V(MipsS1x16AllTrue) \ |
| 157 V(MipsMsaLd) \ |
| 158 V(MipsMsaSt) |
| 147 | 159 |
| 148 // Addressing modes represent the "shape" of inputs to an instruction. | 160 // Addressing modes represent the "shape" of inputs to an instruction. |
| 149 // Many instructions support multiple addressing modes. Addressing modes | 161 // Many instructions support multiple addressing modes. Addressing modes |
| 150 // are encoded into the InstructionCode of the instruction and tell the | 162 // are encoded into the InstructionCode of the instruction and tell the |
| 151 // code generator after register allocation which assembler method to call. | 163 // code generator after register allocation which assembler method to call. |
| 152 // | 164 // |
| 153 // We use the following local notation for addressing modes: | 165 // We use the following local notation for addressing modes: |
| 154 // | 166 // |
| 155 // R = register | 167 // R = register |
| 156 // O = register or stack slot | 168 // O = register or stack slot |
| 157 // D = double register | 169 // D = double register |
| 158 // I = immediate (handle, external, int32) | 170 // I = immediate (handle, external, int32) |
| 159 // MRI = [register + immediate] | 171 // MRI = [register + immediate] |
| 160 // MRR = [register + register] | 172 // MRR = [register + register] |
| 161 // TODO(plind): Add the new r6 address modes. | 173 // TODO(plind): Add the new r6 address modes. |
| 162 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 174 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
| 163 V(MRI) /* [%r0 + K] */ \ | 175 V(MRI) /* [%r0 + K] */ \ |
| 164 V(MRR) /* [%r0 + %r1] */ | 176 V(MRR) /* [%r0 + %r1] */ |
| 165 | 177 |
| 166 | 178 |
| 167 } // namespace compiler | 179 } // namespace compiler |
| 168 } // namespace internal | 180 } // namespace internal |
| 169 } // namespace v8 | 181 } // namespace v8 |
| 170 | 182 |
| 171 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 183 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
| OLD | NEW |