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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 V(Mips64Sdc1) \ | 134 V(Mips64Sdc1) \ |
135 V(Mips64BitcastDL) \ | 135 V(Mips64BitcastDL) \ |
136 V(Mips64BitcastLD) \ | 136 V(Mips64BitcastLD) \ |
137 V(Mips64Float64ExtractLowWord32) \ | 137 V(Mips64Float64ExtractLowWord32) \ |
138 V(Mips64Float64ExtractHighWord32) \ | 138 V(Mips64Float64ExtractHighWord32) \ |
139 V(Mips64Float64InsertLowWord32) \ | 139 V(Mips64Float64InsertLowWord32) \ |
140 V(Mips64Float64InsertHighWord32) \ | 140 V(Mips64Float64InsertHighWord32) \ |
141 V(Mips64Float64Max) \ | 141 V(Mips64Float64Max) \ |
142 V(Mips64Float64Min) \ | 142 V(Mips64Float64Min) \ |
143 V(Mips64Float64SilenceNaN) \ | 143 V(Mips64Float64SilenceNaN) \ |
144 V(Mips64Float32Max) \ | |
145 V(Mips64Float32Min) \ | |
146 V(Mips64Push) \ | 144 V(Mips64Push) \ |
147 V(Mips64StoreToStackSlot) \ | 145 V(Mips64StoreToStackSlot) \ |
148 V(Mips64StackClaim) | 146 V(Mips64StackClaim) |
149 | 147 |
150 // Addressing modes represent the "shape" of inputs to an instruction. | 148 // Addressing modes represent the "shape" of inputs to an instruction. |
151 // Many instructions support multiple addressing modes. Addressing modes | 149 // Many instructions support multiple addressing modes. Addressing modes |
152 // are encoded into the InstructionCode of the instruction and tell the | 150 // are encoded into the InstructionCode of the instruction and tell the |
153 // code generator after register allocation which assembler method to call. | 151 // code generator after register allocation which assembler method to call. |
154 // | 152 // |
155 // We use the following local notation for addressing modes: | 153 // We use the following local notation for addressing modes: |
156 // | 154 // |
157 // R = register | 155 // R = register |
158 // O = register or stack slot | 156 // O = register or stack slot |
159 // D = double register | 157 // D = double register |
160 // I = immediate (handle, external, int32) | 158 // I = immediate (handle, external, int32) |
161 // MRI = [register + immediate] | 159 // MRI = [register + immediate] |
162 // MRR = [register + register] | 160 // MRR = [register + register] |
163 // TODO(plind): Add the new r6 address modes. | 161 // TODO(plind): Add the new r6 address modes. |
164 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 162 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
165 V(MRI) /* [%r0 + K] */ \ | 163 V(MRI) /* [%r0 + K] */ \ |
166 V(MRR) /* [%r0 + %r1] */ | 164 V(MRR) /* [%r0 + %r1] */ |
167 | 165 |
168 | 166 |
169 } // namespace compiler | 167 } // namespace compiler |
170 } // namespace internal | 168 } // namespace internal |
171 } // namespace v8 | 169 } // namespace v8 |
172 | 170 |
173 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 171 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
OLD | NEW |