| 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/machine-type.h" | 8 #include "src/machine-type.h" |
| 9 #include "src/signature.h" | 9 #include "src/signature.h" |
| 10 | 10 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 V(F64UConvertI64, 0xb1, d_l) \ | 239 V(F64UConvertI64, 0xb1, d_l) \ |
| 240 V(F64ConvertF32, 0xb2, d_f) \ | 240 V(F64ConvertF32, 0xb2, d_f) \ |
| 241 V(F64ReinterpretI64, 0xb3, d_l) \ | 241 V(F64ReinterpretI64, 0xb3, d_l) \ |
| 242 V(I32ReinterpretF32, 0xb4, i_f) \ | 242 V(I32ReinterpretF32, 0xb4, i_f) \ |
| 243 V(I64ReinterpretF64, 0xb5, l_d) \ | 243 V(I64ReinterpretF64, 0xb5, l_d) \ |
| 244 V(I32Ror, 0xb6, i_ii) \ | 244 V(I32Ror, 0xb6, i_ii) \ |
| 245 V(I32Rol, 0xb7, i_ii) \ | 245 V(I32Rol, 0xb7, i_ii) \ |
| 246 V(I64Ror, 0xb8, l_ll) \ | 246 V(I64Ror, 0xb8, l_ll) \ |
| 247 V(I64Rol, 0xb9, l_ll) | 247 V(I64Rol, 0xb9, l_ll) |
| 248 | 248 |
| 249 // Simple expressions which can trap |
| 250 #define FOREACH_SIMPLE_TRAPPING_OPCODE(V) \ |
| 251 V(I32DivS) \ |
| 252 V(I32DivU) \ |
| 253 V(I32RemS) \ |
| 254 V(I32RemU) \ |
| 255 V(I64DivS) \ |
| 256 V(I64DivU) \ |
| 257 V(I64RemS) \ |
| 258 V(I64RemU) \ |
| 259 V(I32SConvertF32) \ |
| 260 V(I32SConvertF64) \ |
| 261 V(I32UConvertF32) \ |
| 262 V(I32UConvertF64) \ |
| 263 V(I64SConvertF32) \ |
| 264 V(I64SConvertF64) \ |
| 265 V(I64UConvertF32) \ |
| 266 V(I64UConvertF64) |
| 267 |
| 249 // For compatibility with Asm.js. | 268 // For compatibility with Asm.js. |
| 250 #define FOREACH_ASMJS_COMPAT_OPCODE(V) \ | 269 #define FOREACH_ASMJS_COMPAT_OPCODE(V) \ |
| 251 V(F64Acos, 0xc0, d_d) \ | 270 V(F64Acos, 0xc0, d_d) \ |
| 252 V(F64Asin, 0xc1, d_d) \ | 271 V(F64Asin, 0xc1, d_d) \ |
| 253 V(F64Atan, 0xc2, d_d) \ | 272 V(F64Atan, 0xc2, d_d) \ |
| 254 V(F64Cos, 0xc3, d_d) \ | 273 V(F64Cos, 0xc3, d_d) \ |
| 255 V(F64Sin, 0xc4, d_d) \ | 274 V(F64Sin, 0xc4, d_d) \ |
| 256 V(F64Tan, 0xc5, d_d) \ | 275 V(F64Tan, 0xc5, d_d) \ |
| 257 V(F64Exp, 0xc6, d_d) \ | 276 V(F64Exp, 0xc6, d_d) \ |
| 258 V(F64Log, 0xc7, d_d) \ | 277 V(F64Log, 0xc7, d_d) \ |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 default: | 534 default: |
| 516 return "<unknown>"; | 535 return "<unknown>"; |
| 517 } | 536 } |
| 518 } | 537 } |
| 519 }; | 538 }; |
| 520 } // namespace wasm | 539 } // namespace wasm |
| 521 } // namespace internal | 540 } // namespace internal |
| 522 } // namespace v8 | 541 } // namespace v8 |
| 523 | 542 |
| 524 #endif // V8_WASM_OPCODES_H_ | 543 #endif // V8_WASM_OPCODES_H_ |
| OLD | NEW |