| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Control expressions and blocks. | 73 // Control expressions and blocks. |
| 74 #define FOREACH_CONTROL_OPCODE(V) \ | 74 #define FOREACH_CONTROL_OPCODE(V) \ |
| 75 V(Nop, 0x00, _) \ | 75 V(Nop, 0x00, _) \ |
| 76 V(Block, 0x01, _) \ | 76 V(Block, 0x01, _) \ |
| 77 V(Loop, 0x02, _) \ | 77 V(Loop, 0x02, _) \ |
| 78 V(If, 0x03, _) \ | 78 V(If, 0x03, _) \ |
| 79 V(IfElse, 0x04, _) \ | 79 V(IfElse, 0x04, _) \ |
| 80 V(Select, 0x05, _) \ | 80 V(Select, 0x05, _) \ |
| 81 V(Br, 0x06, _) \ | 81 V(Br, 0x06, _) \ |
| 82 V(BrIf, 0x07, _) \ | 82 V(BrIf, 0x07, _) \ |
| 83 V(TableSwitch, 0x08, _) \ | 83 V(BrTable, 0x08, _) \ |
| 84 V(Return, 0x14, _) \ | 84 V(Return, 0x14, _) \ |
| 85 V(Unreachable, 0x15, _) | 85 V(Unreachable, 0x15, _) |
| 86 | 86 |
| 87 // Constants, locals, globals, and calls. | 87 // Constants, locals, globals, and calls. |
| 88 #define FOREACH_MISC_OPCODE(V) \ | 88 #define FOREACH_MISC_OPCODE(V) \ |
| 89 V(I8Const, 0x09, _) \ | 89 V(I8Const, 0x09, _) \ |
| 90 V(I32Const, 0x0a, _) \ | 90 V(I32Const, 0x0a, _) \ |
| 91 V(I64Const, 0x0b, _) \ | 91 V(I64Const, 0x0b, _) \ |
| 92 V(F64Const, 0x0c, _) \ | 92 V(F64Const, 0x0c, _) \ |
| 93 V(F32Const, 0x0d, _) \ | 93 V(F32Const, 0x0d, _) \ |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 default: | 488 default: |
| 489 return "<unknown>"; | 489 return "<unknown>"; |
| 490 } | 490 } |
| 491 } | 491 } |
| 492 }; | 492 }; |
| 493 } // namespace wasm | 493 } // namespace wasm |
| 494 } // namespace internal | 494 } // namespace internal |
| 495 } // namespace v8 | 495 } // namespace v8 |
| 496 | 496 |
| 497 #endif // V8_WASM_OPCODES_H_ | 497 #endif // V8_WASM_OPCODES_H_ |
| OLD | NEW |