aboutsummaryrefslogtreecommitdiff
path: root/tools/translate_xmacro.h
blob: 2fc4558b73ecd8189ea4ccf67b483c2ea1c5978f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* X-macro-like definition of translation routines for each webasm opcode */

TS(WASM_I32_ADD,   add)
TS(WASM_I32_SUB,   sub)
TS(WASM_I32_DIV_U, div)
TS(WASM_I32_MUL,   mul)

TLS(WASM_I32_LOAD,     load_p)
TLS(WASM_I32_LOAD8_S,  loadbsx_p)
TLS(WASM_I32_LOAD8_U,  loadbzx_p)
TLS(WASM_I32_LOAD16_S, loadwsx_p)
TLS(WASM_I32_LOAD16_U, loadwzx_p)
TLS(WASM_I32_STORE,    store_p)
TLS(WASM_I32_STORE8,   storeb_p)
TLS(WASM_I32_STORE16,  storew_p)

TC(WASM_CALL,      call)
TC(WASM_LOCAL_GET, local_get)
TC(WASM_I32_CONST, const)