| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 V(MipsStoreToStackSlot) \ | 131 V(MipsStoreToStackSlot) \ |
| 132 V(MipsByteSwap32) \ | 132 V(MipsByteSwap32) \ |
| 133 V(MipsStackClaim) \ | 133 V(MipsStackClaim) \ |
| 134 V(MipsSeb) \ | 134 V(MipsSeb) \ |
| 135 V(MipsSeh) \ | 135 V(MipsSeh) \ |
| 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(MipsF32x4Abs) \ |
| 143 V(MipsF32x4Neg) \ |
| 144 V(MipsF32x4RecipApprox) \ |
| 145 V(MipsF32x4RecipRefine) \ |
| 146 V(MipsF32x4RecipSqrtApprox) \ |
| 147 V(MipsF32x4RecipSqrtRefine) \ |
| 148 V(MipsF32x4Add) \ |
| 149 V(MipsF32x4Sub) \ |
| 150 V(MipsF32x4Mul) \ |
| 151 V(MipsF32x4Max) \ |
| 152 V(MipsF32x4Min) \ |
| 153 V(MipsF32x4Eq) \ |
| 154 V(MipsF32x4Ne) \ |
| 155 V(MipsF32x4Lt) \ |
| 156 V(MipsF32x4Le) \ |
| 157 V(MipsI32x4SConvertF32x4) \ |
| 158 V(MipsI32x4UConvertF32x4) |
| 142 | 159 |
| 143 // Addressing modes represent the "shape" of inputs to an instruction. | 160 // Addressing modes represent the "shape" of inputs to an instruction. |
| 144 // Many instructions support multiple addressing modes. Addressing modes | 161 // Many instructions support multiple addressing modes. Addressing modes |
| 145 // are encoded into the InstructionCode of the instruction and tell the | 162 // are encoded into the InstructionCode of the instruction and tell the |
| 146 // code generator after register allocation which assembler method to call. | 163 // code generator after register allocation which assembler method to call. |
| 147 // | 164 // |
| 148 // We use the following local notation for addressing modes: | 165 // We use the following local notation for addressing modes: |
| 149 // | 166 // |
| 150 // R = register | 167 // R = register |
| 151 // O = register or stack slot | 168 // O = register or stack slot |
| 152 // D = double register | 169 // D = double register |
| 153 // I = immediate (handle, external, int32) | 170 // I = immediate (handle, external, int32) |
| 154 // MRI = [register + immediate] | 171 // MRI = [register + immediate] |
| 155 // MRR = [register + register] | 172 // MRR = [register + register] |
| 156 // TODO(plind): Add the new r6 address modes. | 173 // TODO(plind): Add the new r6 address modes. |
| 157 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 174 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
| 158 V(MRI) /* [%r0 + K] */ \ | 175 V(MRI) /* [%r0 + K] */ \ |
| 159 V(MRR) /* [%r0 + %r1] */ | 176 V(MRR) /* [%r0 + %r1] */ |
| 160 | 177 |
| 161 | 178 |
| 162 } // namespace compiler | 179 } // namespace compiler |
| 163 } // namespace internal | 180 } // namespace internal |
| 164 } // namespace v8 | 181 } // namespace v8 |
| 165 | 182 |
| 166 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 183 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
| OLD | NEW |