| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 V(MipsFloat64SilenceNaN) \ | 125 V(MipsFloat64SilenceNaN) \ |
| 126 V(MipsFloat32Max) \ | 126 V(MipsFloat32Max) \ |
| 127 V(MipsFloat64Max) \ | 127 V(MipsFloat64Max) \ |
| 128 V(MipsFloat32Min) \ | 128 V(MipsFloat32Min) \ |
| 129 V(MipsFloat64Min) \ | 129 V(MipsFloat64Min) \ |
| 130 V(MipsPush) \ | 130 V(MipsPush) \ |
| 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(MipsFloat32x4Abs) \ |
| 137 V(MipsFloat32x4Neg) \ |
| 138 V(MipsFloat32x4RecipApprox) \ |
| 139 V(MipsFloat32x4RecipRefine) \ |
| 140 V(MipsFloat32x4RecipSqrtApprox) \ |
| 141 V(MipsFloat32x4RecipSqrtRefine) \ |
| 142 V(MipsFloat32x4Add) \ |
| 143 V(MipsFloat32x4Sub) \ |
| 144 V(MipsFloat32x4Mul) \ |
| 145 V(MipsFloat32x4Max) \ |
| 146 V(MipsFloat32x4Min) \ |
| 147 V(MipsFloat32xEqual) \ |
| 148 V(MipsFloat32x4NotEqual) \ |
| 149 V(MipsFloat32xLessThan) \ |
| 150 V(MipsFloat32xLessThanOrEqual) \ |
| 151 V(MipsInt32x4FromFloat32x4) \ |
| 152 V(MipsUint32x4FromFloat32x4) |
| 136 | 153 |
| 137 // Addressing modes represent the "shape" of inputs to an instruction. | 154 // Addressing modes represent the "shape" of inputs to an instruction. |
| 138 // Many instructions support multiple addressing modes. Addressing modes | 155 // Many instructions support multiple addressing modes. Addressing modes |
| 139 // are encoded into the InstructionCode of the instruction and tell the | 156 // are encoded into the InstructionCode of the instruction and tell the |
| 140 // code generator after register allocation which assembler method to call. | 157 // code generator after register allocation which assembler method to call. |
| 141 // | 158 // |
| 142 // We use the following local notation for addressing modes: | 159 // We use the following local notation for addressing modes: |
| 143 // | 160 // |
| 144 // R = register | 161 // R = register |
| 145 // O = register or stack slot | 162 // O = register or stack slot |
| 146 // D = double register | 163 // D = double register |
| 147 // I = immediate (handle, external, int32) | 164 // I = immediate (handle, external, int32) |
| 148 // MRI = [register + immediate] | 165 // MRI = [register + immediate] |
| 149 // MRR = [register + register] | 166 // MRR = [register + register] |
| 150 // TODO(plind): Add the new r6 address modes. | 167 // TODO(plind): Add the new r6 address modes. |
| 151 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 168 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
| 152 V(MRI) /* [%r0 + K] */ \ | 169 V(MRI) /* [%r0 + K] */ \ |
| 153 V(MRR) /* [%r0 + %r1] */ | 170 V(MRR) /* [%r0 + %r1] */ |
| 154 | 171 |
| 155 | 172 |
| 156 } // namespace compiler | 173 } // namespace compiler |
| 157 } // namespace internal | 174 } // namespace internal |
| 158 } // namespace v8 | 175 } // namespace v8 |
| 159 | 176 |
| 160 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 177 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
| OLD | NEW |