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