OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_OPCODES_H_ | 5 #ifndef V8_COMPILER_OPCODES_H_ |
6 #define V8_COMPILER_OPCODES_H_ | 6 #define V8_COMPILER_OPCODES_H_ |
7 | 7 |
8 // Opcodes for control operators. | 8 // Opcodes for control operators. |
9 #define CONTROL_OP_LIST(V) \ | 9 #define CONTROL_OP_LIST(V) \ |
10 V(Start) \ | 10 V(Start) \ |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 V(ChangeUint32ToTagged) \ | 152 V(ChangeUint32ToTagged) \ |
153 V(ChangeFloat64ToTagged) \ | 153 V(ChangeFloat64ToTagged) \ |
154 V(ChangeBoolToBit) \ | 154 V(ChangeBoolToBit) \ |
155 V(ChangeBitToBool) \ | 155 V(ChangeBitToBool) \ |
156 V(LoadField) \ | 156 V(LoadField) \ |
157 V(LoadElement) \ | 157 V(LoadElement) \ |
158 V(StoreField) \ | 158 V(StoreField) \ |
159 V(StoreElement) | 159 V(StoreElement) |
160 | 160 |
161 // Opcodes for Machine-level operators. | 161 // Opcodes for Machine-level operators. |
162 #define MACHINE_OP_LIST(V) \ | 162 #define MACHINE_OP_LIST(V) \ |
163 V(Load) \ | 163 V(Load) \ |
164 V(Store) \ | 164 V(Store) \ |
165 V(Word32And) \ | 165 V(Word32And) \ |
166 V(Word32Or) \ | 166 V(Word32Or) \ |
167 V(Word32Xor) \ | 167 V(Word32Xor) \ |
168 V(Word32Shl) \ | 168 V(Word32Shl) \ |
169 V(Word32Shr) \ | 169 V(Word32Shr) \ |
170 V(Word32Sar) \ | 170 V(Word32Sar) \ |
171 V(Word32Ror) \ | 171 V(Word32Ror) \ |
172 V(Word32Equal) \ | 172 V(Word32Equal) \ |
173 V(Word64And) \ | 173 V(Word64And) \ |
174 V(Word64Or) \ | 174 V(Word64Or) \ |
175 V(Word64Xor) \ | 175 V(Word64Xor) \ |
176 V(Word64Shl) \ | 176 V(Word64Shl) \ |
177 V(Word64Shr) \ | 177 V(Word64Shr) \ |
178 V(Word64Sar) \ | 178 V(Word64Sar) \ |
179 V(Word64Ror) \ | 179 V(Word64Ror) \ |
180 V(Word64Equal) \ | 180 V(Word64Equal) \ |
181 V(Int32Add) \ | 181 V(Int32Add) \ |
182 V(Int32AddWithOverflow) \ | 182 V(Int32AddWithOverflow) \ |
183 V(Int32Sub) \ | 183 V(Int32Sub) \ |
184 V(Int32SubWithOverflow) \ | 184 V(Int32SubWithOverflow) \ |
185 V(Int32Mul) \ | 185 V(Int32Mul) \ |
186 V(Int32Div) \ | 186 V(Int32Div) \ |
187 V(Int32UDiv) \ | 187 V(Int32UDiv) \ |
188 V(Int32Mod) \ | 188 V(Int32Mod) \ |
189 V(Int32UMod) \ | 189 V(Int32UMod) \ |
190 V(Int32LessThan) \ | 190 V(Int32LessThan) \ |
191 V(Int32LessThanOrEqual) \ | 191 V(Int32LessThanOrEqual) \ |
192 V(Uint32LessThan) \ | 192 V(Uint32LessThan) \ |
193 V(Uint32LessThanOrEqual) \ | 193 V(Uint32LessThanOrEqual) \ |
194 V(Int64Add) \ | 194 V(Int64Add) \ |
195 V(Int64Sub) \ | 195 V(Int64Sub) \ |
196 V(Int64Mul) \ | 196 V(Int64Mul) \ |
197 V(Int64Div) \ | 197 V(Int64Div) \ |
198 V(Int64UDiv) \ | 198 V(Int64UDiv) \ |
199 V(Int64Mod) \ | 199 V(Int64Mod) \ |
200 V(Int64UMod) \ | 200 V(Int64UMod) \ |
201 V(Int64LessThan) \ | 201 V(Int64LessThan) \ |
202 V(Int64LessThanOrEqual) \ | 202 V(Int64LessThanOrEqual) \ |
203 V(ChangeInt32ToFloat64) \ | 203 V(ChangeInt32ToFloat64) \ |
204 V(ChangeUint32ToFloat64) \ | 204 V(ChangeUint32ToFloat64) \ |
205 V(ChangeFloat64ToInt32) \ | 205 V(ChangeFloat64ToInt32) \ |
206 V(ChangeFloat64ToUint32) \ | 206 V(ChangeFloat64ToUint32) \ |
207 V(ChangeInt32ToInt64) \ | 207 V(ChangeInt32ToInt64) \ |
208 V(ChangeUint32ToUint64) \ | 208 V(ChangeUint32ToUint64) \ |
209 V(TruncateInt64ToInt32) \ | 209 V(TruncateFloat64ToInt32) \ |
210 V(Float64Add) \ | 210 V(TruncateInt64ToInt32) \ |
211 V(Float64Sub) \ | 211 V(Float64Add) \ |
212 V(Float64Mul) \ | 212 V(Float64Sub) \ |
213 V(Float64Div) \ | 213 V(Float64Mul) \ |
214 V(Float64Mod) \ | 214 V(Float64Div) \ |
215 V(Float64Equal) \ | 215 V(Float64Mod) \ |
216 V(Float64LessThan) \ | 216 V(Float64Equal) \ |
| 217 V(Float64LessThan) \ |
217 V(Float64LessThanOrEqual) | 218 V(Float64LessThanOrEqual) |
218 | 219 |
219 #define VALUE_OP_LIST(V) \ | 220 #define VALUE_OP_LIST(V) \ |
220 COMMON_OP_LIST(V) \ | 221 COMMON_OP_LIST(V) \ |
221 SIMPLIFIED_OP_LIST(V) \ | 222 SIMPLIFIED_OP_LIST(V) \ |
222 MACHINE_OP_LIST(V) \ | 223 MACHINE_OP_LIST(V) \ |
223 JS_OP_LIST(V) | 224 JS_OP_LIST(V) |
224 | 225 |
225 // The combination of all operators at all levels and the common operators. | 226 // The combination of all operators at all levels and the common operators. |
226 #define ALL_OP_LIST(V) \ | 227 #define ALL_OP_LIST(V) \ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 return false; | 295 return false; |
295 } | 296 } |
296 } | 297 } |
297 }; | 298 }; |
298 | 299 |
299 } // namespace compiler | 300 } // namespace compiler |
300 } // namespace internal | 301 } // namespace internal |
301 } // namespace v8 | 302 } // namespace v8 |
302 | 303 |
303 #endif // V8_COMPILER_OPCODES_H_ | 304 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |