OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_WASM_OPCODES_H_ | 5 #ifndef V8_WASM_OPCODES_H_ |
6 #define V8_WASM_OPCODES_H_ | 6 #define V8_WASM_OPCODES_H_ |
7 | 7 |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 #include "src/machine-type.h" | 9 #include "src/machine-type.h" |
10 #include "src/runtime/runtime.h" | 10 #include "src/runtime/runtime.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 V(I32AsmjsUConvertF32, 0xe1, i_f) \ | 278 V(I32AsmjsUConvertF32, 0xe1, i_f) \ |
279 V(I32AsmjsSConvertF64, 0xe2, i_d) \ | 279 V(I32AsmjsSConvertF64, 0xe2, i_d) \ |
280 V(I32AsmjsUConvertF64, 0xe3, i_d) | 280 V(I32AsmjsUConvertF64, 0xe3, i_d) |
281 | 281 |
282 #define FOREACH_SIMD_0_OPERAND_OPCODE(V) \ | 282 #define FOREACH_SIMD_0_OPERAND_OPCODE(V) \ |
283 V(F32x4Splat, 0xe500, s_f) \ | 283 V(F32x4Splat, 0xe500, s_f) \ |
284 V(F32x4Abs, 0xe503, s_s) \ | 284 V(F32x4Abs, 0xe503, s_s) \ |
285 V(F32x4Neg, 0xe504, s_s) \ | 285 V(F32x4Neg, 0xe504, s_s) \ |
286 V(F32x4Sqrt, 0xe505, s_s) \ | 286 V(F32x4Sqrt, 0xe505, s_s) \ |
287 V(F32x4RecipApprox, 0xe506, s_s) \ | 287 V(F32x4RecipApprox, 0xe506, s_s) \ |
288 V(F32x4SqrtApprox, 0xe507, s_s) \ | 288 V(F32x4RecipSqrtApprox, 0xe507, s_s) \ |
289 V(F32x4Add, 0xe508, s_ss) \ | 289 V(F32x4Add, 0xe508, s_ss) \ |
290 V(F32x4Sub, 0xe509, s_ss) \ | 290 V(F32x4Sub, 0xe509, s_ss) \ |
291 V(F32x4Mul, 0xe50a, s_ss) \ | 291 V(F32x4Mul, 0xe50a, s_ss) \ |
292 V(F32x4Div, 0xe50b, s_ss) \ | 292 V(F32x4Div, 0xe50b, s_ss) \ |
293 V(F32x4Min, 0xe50c, s_ss) \ | 293 V(F32x4Min, 0xe50c, s_ss) \ |
294 V(F32x4Max, 0xe50d, s_ss) \ | 294 V(F32x4Max, 0xe50d, s_ss) \ |
295 V(F32x4MinNum, 0xe50e, s_ss) \ | 295 V(F32x4MinNum, 0xe50e, s_ss) \ |
296 V(F32x4MaxNum, 0xe50f, s_ss) \ | 296 V(F32x4MaxNum, 0xe50f, s_ss) \ |
| 297 V(F32x4RecipRefine, 0xe592, s_ss) \ |
| 298 V(F32x4RecipSqrtRefine, 0xe593, s_ss) \ |
297 V(F32x4Eq, 0xe510, s1x4_ss) \ | 299 V(F32x4Eq, 0xe510, s1x4_ss) \ |
298 V(F32x4Ne, 0xe511, s1x4_ss) \ | 300 V(F32x4Ne, 0xe511, s1x4_ss) \ |
299 V(F32x4Lt, 0xe512, s1x4_ss) \ | 301 V(F32x4Lt, 0xe512, s1x4_ss) \ |
300 V(F32x4Le, 0xe513, s1x4_ss) \ | 302 V(F32x4Le, 0xe513, s1x4_ss) \ |
301 V(F32x4Gt, 0xe514, s1x4_ss) \ | 303 V(F32x4Gt, 0xe514, s1x4_ss) \ |
302 V(F32x4Ge, 0xe515, s1x4_ss) \ | 304 V(F32x4Ge, 0xe515, s1x4_ss) \ |
303 V(F32x4SConvertI32x4, 0xe519, s_s) \ | 305 V(F32x4SConvertI32x4, 0xe519, s_s) \ |
304 V(F32x4UConvertI32x4, 0xe51a, s_s) \ | 306 V(F32x4UConvertI32x4, 0xe51a, s_s) \ |
305 V(I32x4Splat, 0xe51b, s_i) \ | 307 V(I32x4Splat, 0xe51b, s_i) \ |
306 V(I32x4Neg, 0xe51e, s_s) \ | 308 V(I32x4Neg, 0xe51e, s_s) \ |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 default: | 739 default: |
738 return "<unknown>"; | 740 return "<unknown>"; |
739 } | 741 } |
740 } | 742 } |
741 }; | 743 }; |
742 } // namespace wasm | 744 } // namespace wasm |
743 } // namespace internal | 745 } // namespace internal |
744 } // namespace v8 | 746 } // namespace v8 |
745 | 747 |
746 #endif // V8_WASM_OPCODES_H_ | 748 #endif // V8_WASM_OPCODES_H_ |
OLD | NEW |