| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, _) \ |
| 94 V(GetLocal, 0x0e, _) \ | 94 V(GetLocal, 0x0e, _) \ |
| 95 V(SetLocal, 0x0f, _) \ | 95 V(SetLocal, 0x0f, _) \ |
| 96 V(LoadGlobal, 0x10, _) \ | 96 V(LoadGlobal, 0x10, _) \ |
| 97 V(StoreGlobal, 0x11, _) \ | 97 V(StoreGlobal, 0x11, _) \ |
| 98 V(CallFunction, 0x12, _) \ | 98 V(CallFunction, 0x12, _) \ |
| 99 V(CallIndirect, 0x13, _) \ | 99 V(CallIndirect, 0x13, _) \ |
| 100 V(CallImport, 0x1F, _) | 100 V(CallImport, 0x1F, _) \ |
| 101 V(DeclLocals, 0x1E, _) |
| 101 | 102 |
| 102 // Load memory expressions. | 103 // Load memory expressions. |
| 103 #define FOREACH_LOAD_MEM_OPCODE(V) \ | 104 #define FOREACH_LOAD_MEM_OPCODE(V) \ |
| 104 V(I32LoadMem8S, 0x20, i_i) \ | 105 V(I32LoadMem8S, 0x20, i_i) \ |
| 105 V(I32LoadMem8U, 0x21, i_i) \ | 106 V(I32LoadMem8U, 0x21, i_i) \ |
| 106 V(I32LoadMem16S, 0x22, i_i) \ | 107 V(I32LoadMem16S, 0x22, i_i) \ |
| 107 V(I32LoadMem16U, 0x23, i_i) \ | 108 V(I32LoadMem16U, 0x23, i_i) \ |
| 108 V(I64LoadMem8S, 0x24, l_i) \ | 109 V(I64LoadMem8S, 0x24, l_i) \ |
| 109 V(I64LoadMem8U, 0x25, l_i) \ | 110 V(I64LoadMem8U, 0x25, l_i) \ |
| 110 V(I64LoadMem16S, 0x26, l_i) \ | 111 V(I64LoadMem16S, 0x26, l_i) \ |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 default: | 489 default: |
| 489 return "<unknown>"; | 490 return "<unknown>"; |
| 490 } | 491 } |
| 491 } | 492 } |
| 492 }; | 493 }; |
| 493 } // namespace wasm | 494 } // namespace wasm |
| 494 } // namespace internal | 495 } // namespace internal |
| 495 } // namespace v8 | 496 } // namespace v8 |
| 496 | 497 |
| 497 #endif // V8_WASM_OPCODES_H_ | 498 #endif // V8_WASM_OPCODES_H_ |
| OLD | NEW |