| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 V(MipsUsdc1) \ | 116 V(MipsUsdc1) \ |
| 117 V(MipsFloat64ExtractLowWord32) \ | 117 V(MipsFloat64ExtractLowWord32) \ |
| 118 V(MipsFloat64ExtractHighWord32) \ | 118 V(MipsFloat64ExtractHighWord32) \ |
| 119 V(MipsFloat64InsertLowWord32) \ | 119 V(MipsFloat64InsertLowWord32) \ |
| 120 V(MipsFloat64InsertHighWord32) \ | 120 V(MipsFloat64InsertHighWord32) \ |
| 121 V(MipsFloat64SilenceNaN) \ | 121 V(MipsFloat64SilenceNaN) \ |
| 122 V(MipsFloat64Max) \ | 122 V(MipsFloat64Max) \ |
| 123 V(MipsFloat64Min) \ | 123 V(MipsFloat64Min) \ |
| 124 V(MipsPush) \ | 124 V(MipsPush) \ |
| 125 V(MipsStoreToStackSlot) \ | 125 V(MipsStoreToStackSlot) \ |
| 126 V(MipsByteSwap32) \ |
| 126 V(MipsStackClaim) | 127 V(MipsStackClaim) |
| 127 | 128 |
| 128 // Addressing modes represent the "shape" of inputs to an instruction. | 129 // Addressing modes represent the "shape" of inputs to an instruction. |
| 129 // Many instructions support multiple addressing modes. Addressing modes | 130 // Many instructions support multiple addressing modes. Addressing modes |
| 130 // are encoded into the InstructionCode of the instruction and tell the | 131 // are encoded into the InstructionCode of the instruction and tell the |
| 131 // code generator after register allocation which assembler method to call. | 132 // code generator after register allocation which assembler method to call. |
| 132 // | 133 // |
| 133 // We use the following local notation for addressing modes: | 134 // We use the following local notation for addressing modes: |
| 134 // | 135 // |
| 135 // R = register | 136 // R = register |
| 136 // O = register or stack slot | 137 // O = register or stack slot |
| 137 // D = double register | 138 // D = double register |
| 138 // I = immediate (handle, external, int32) | 139 // I = immediate (handle, external, int32) |
| 139 // MRI = [register + immediate] | 140 // MRI = [register + immediate] |
| 140 // MRR = [register + register] | 141 // MRR = [register + register] |
| 141 // TODO(plind): Add the new r6 address modes. | 142 // TODO(plind): Add the new r6 address modes. |
| 142 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 143 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
| 143 V(MRI) /* [%r0 + K] */ \ | 144 V(MRI) /* [%r0 + K] */ \ |
| 144 V(MRR) /* [%r0 + %r1] */ | 145 V(MRR) /* [%r0 + %r1] */ |
| 145 | 146 |
| 146 | 147 |
| 147 } // namespace compiler | 148 } // namespace compiler |
| 148 } // namespace internal | 149 } // namespace internal |
| 149 } // namespace v8 | 150 } // namespace v8 |
| 150 | 151 |
| 151 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ | 152 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_ |
| OLD | NEW |