| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 V(Mips64Float64Max) \ | 162 V(Mips64Float64Max) \ |
| 163 V(Mips64Float32Min) \ | 163 V(Mips64Float32Min) \ |
| 164 V(Mips64Float64Min) \ | 164 V(Mips64Float64Min) \ |
| 165 V(Mips64Float64SilenceNaN) \ | 165 V(Mips64Float64SilenceNaN) \ |
| 166 V(Mips64Push) \ | 166 V(Mips64Push) \ |
| 167 V(Mips64StoreToStackSlot) \ | 167 V(Mips64StoreToStackSlot) \ |
| 168 V(Mips64ByteSwap64) \ | 168 V(Mips64ByteSwap64) \ |
| 169 V(Mips64ByteSwap32) \ | 169 V(Mips64ByteSwap32) \ |
| 170 V(Mips64StackClaim) \ | 170 V(Mips64StackClaim) \ |
| 171 V(Mips64Seb) \ | 171 V(Mips64Seb) \ |
| 172 V(Mips64Seh) | 172 V(Mips64Seh) \ |
| 173 V(Mips64AssertEqual) |
| 173 | 174 |
| 174 // Addressing modes represent the "shape" of inputs to an instruction. | 175 // Addressing modes represent the "shape" of inputs to an instruction. |
| 175 // Many instructions support multiple addressing modes. Addressing modes | 176 // Many instructions support multiple addressing modes. Addressing modes |
| 176 // are encoded into the InstructionCode of the instruction and tell the | 177 // are encoded into the InstructionCode of the instruction and tell the |
| 177 // code generator after register allocation which assembler method to call. | 178 // code generator after register allocation which assembler method to call. |
| 178 // | 179 // |
| 179 // We use the following local notation for addressing modes: | 180 // We use the following local notation for addressing modes: |
| 180 // | 181 // |
| 181 // R = register | 182 // R = register |
| 182 // O = register or stack slot | 183 // O = register or stack slot |
| 183 // D = double register | 184 // D = double register |
| 184 // I = immediate (handle, external, int32) | 185 // I = immediate (handle, external, int32) |
| 185 // MRI = [register + immediate] | 186 // MRI = [register + immediate] |
| 186 // MRR = [register + register] | 187 // MRR = [register + register] |
| 187 // TODO(plind): Add the new r6 address modes. | 188 // TODO(plind): Add the new r6 address modes. |
| 188 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 189 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
| 189 V(MRI) /* [%r0 + K] */ \ | 190 V(MRI) /* [%r0 + K] */ \ |
| 190 V(MRR) /* [%r0 + %r1] */ | 191 V(MRR) /* [%r0 + %r1] */ |
| 191 | 192 |
| 192 | 193 |
| 193 } // namespace compiler | 194 } // namespace compiler |
| 194 } // namespace internal | 195 } // namespace internal |
| 195 } // namespace v8 | 196 } // namespace v8 |
| 196 | 197 |
| 197 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 198 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
| OLD | NEW |