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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 V(F64Atan, 0xc2, d_d) \ | 253 V(F64Atan, 0xc2, d_d) \ |
254 V(F64Cos, 0xc3, d_d) \ | 254 V(F64Cos, 0xc3, d_d) \ |
255 V(F64Sin, 0xc4, d_d) \ | 255 V(F64Sin, 0xc4, d_d) \ |
256 V(F64Tan, 0xc5, d_d) \ | 256 V(F64Tan, 0xc5, d_d) \ |
257 V(F64Exp, 0xc6, d_d) \ | 257 V(F64Exp, 0xc6, d_d) \ |
258 V(F64Log, 0xc7, d_d) \ | 258 V(F64Log, 0xc7, d_d) \ |
259 V(F64Atan2, 0xc8, d_dd) \ | 259 V(F64Atan2, 0xc8, d_dd) \ |
260 V(F64Pow, 0xc9, d_dd) \ | 260 V(F64Pow, 0xc9, d_dd) \ |
261 V(F64Mod, 0xca, d_dd) | 261 V(F64Mod, 0xca, d_dd) |
262 | 262 |
| 263 // TODO(titzer): sketch of asm-js compatibility bytecodes |
| 264 /* V(I32AsmjsDivS, 0xd0, i_ii) \ */ |
| 265 /* V(I32AsmjsDivU, 0xd1, i_ii) \ */ |
| 266 /* V(I32AsmjsRemS, 0xd2, i_ii) \ */ |
| 267 /* V(I32AsmjsRemU, 0xd3, i_ii) \ */ |
| 268 /* V(I32AsmjsLoad8S, 0xd4, i_i) \ */ |
| 269 /* V(I32AsmjsLoad8U, 0xd5, i_i) \ */ |
| 270 /* V(I32AsmjsLoad16S, 0xd6, i_i) \ */ |
| 271 /* V(I32AsmjsLoad16U, 0xd7, i_i) \ */ |
| 272 /* V(I32AsmjsLoad, 0xd8, i_i) \ */ |
| 273 /* V(F32AsmjsLoad, 0xd9, f_i) \ */ |
| 274 /* V(F64AsmjsLoad, 0xda, d_i) \ */ |
| 275 /* V(I32AsmjsStore8, 0xdb, i_i) \ */ |
| 276 /* V(I32AsmjsStore16, 0xdc, i_i) \ */ |
| 277 /* V(I32AsmjsStore, 0xdd, i_ii) \ */ |
| 278 /* V(F32AsmjsStore, 0xde, i_if) \ */ |
| 279 /* V(F64AsmjsStore, 0xdf, i_id) \ */ |
| 280 /* V(I32SAsmjsConvertF32, 0xe0, i_f) \ */ |
| 281 /* V(I32UAsmjsConvertF32, 0xe1, i_f) \ */ |
| 282 /* V(I32SAsmjsConvertF64, 0xe2, i_d) \ */ |
| 283 /* V(I32SAsmjsConvertF64, 0xe3, i_d) */ |
| 284 |
263 // All opcodes. | 285 // All opcodes. |
264 #define FOREACH_OPCODE(V) \ | 286 #define FOREACH_OPCODE(V) \ |
265 FOREACH_CONTROL_OPCODE(V) \ | 287 FOREACH_CONTROL_OPCODE(V) \ |
266 FOREACH_MISC_OPCODE(V) \ | 288 FOREACH_MISC_OPCODE(V) \ |
267 FOREACH_SIMPLE_OPCODE(V) \ | 289 FOREACH_SIMPLE_OPCODE(V) \ |
268 FOREACH_STORE_MEM_OPCODE(V) \ | 290 FOREACH_STORE_MEM_OPCODE(V) \ |
269 FOREACH_LOAD_MEM_OPCODE(V) \ | 291 FOREACH_LOAD_MEM_OPCODE(V) \ |
270 FOREACH_MISC_MEM_OPCODE(V) \ | 292 FOREACH_MISC_MEM_OPCODE(V) \ |
271 FOREACH_ASMJS_COMPAT_OPCODE(V) | 293 FOREACH_ASMJS_COMPAT_OPCODE(V) |
272 | 294 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 default: | 494 default: |
473 return "<unknown>"; | 495 return "<unknown>"; |
474 } | 496 } |
475 } | 497 } |
476 }; | 498 }; |
477 } // namespace wasm | 499 } // namespace wasm |
478 } // namespace internal | 500 } // namespace internal |
479 } // namespace v8 | 501 } // namespace v8 |
480 | 502 |
481 #endif // V8_WASM_OPCODES_H_ | 503 #endif // V8_WASM_OPCODES_H_ |
OLD | NEW |