Home | History | Annotate | Download | only in wasm

Lines Matching full:static_cast

17 #define WASM_BLOCK(count, ...) kExprBlock, static_cast<byte>(count), __VA_ARGS__
19 #define WASM_LOOP(count, ...) kExprLoop, static_cast<byte>(count), __VA_ARGS__
23 #define WASM_BR(depth) kExprBr, static_cast<byte>(depth), kExprNop
25 kExprBrIf, static_cast<byte>(depth), cond, kExprNop
26 #define WASM_BRV(depth, val) kExprBr, static_cast<byte>(depth), val
28 kExprBrIf, static_cast<byte>(depth), cond, val
29 #define WASM_BREAK(depth) kExprBr, static_cast<byte>(depth + 1), kExprNop
30 #define WASM_CONTINUE(depth) kExprBr, static_cast<byte>(depth), kExprNop
31 #define WASM_BREAKV(depth, val) kExprBr, static_cast<byte>(depth + 1), val
37 kExprTableSwitch, static_cast<byte>(case_count), \
38 static_cast<byte>(case_count >> 8), static_cast<byte>(table_count), \
39 static_cast<byte>(table_count >> 8), __VA_ARGS__
45 #define WASM_CASE(x) static_cast<byte>(x), static_cast<byte>(x >> 8)
46 #define WASM_CASE_BR(x) static_cast<byte>(x), static_cast<byte>(0x80 | (x) >> 8)
54 #define WASM_I8(val) kExprI8Const, static_cast<byte>(val)
56 kExprI32Const, static_cast<byte>(val), static_cast<byte>(val >> 8), \
57 static_cast<byte>(val >> 16), static_cast<byte>(val >> 24)
59 kExprI64Const, static_cast<byte>(static_cast<uint64_t>(val)), \
60 static_cast<byte>(static_cast<uint64_t>(val) >> 8), \
61 static_cast<byte>(static_cast<uint64_t>(val) >> 16), \
62 static_cast<byte>(static_cast<uint64_t>(val) >> 24), \
63 static_cast<byte>(static_cast<uint64_t>(val) >> 32), \
64 static_cast<byte>(static_cast<uint64_t>(val) >> 40), \
65 static_cast<byte>(static_cast<uint64_t>(val) >> 48), \
66 static_cast<byte>(static_cast<uint64_t>(val) >> 56)
69 static_cast<byte>(bit_cast<int32_t>(static_cast<float>(val))), \
70 static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 8), \
71 static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 16), \
72 static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 24)
74 kExprF64Const, static_cast<byte>(bit_cast<uint64_t>(val)), \
75 static_cast<byte>(bit_cast<uint64_t>(val) >> 8), \
76 static_cast<byte>(bit_cast<uint64_t>(val) >> 16), \
77 static_cast<byte>(bit_cast<uint64_t>(val) >> 24), \
78 static_cast<byte>(bit_cast<uint64_t>(val) >> 32), \
79 static_cast<byte>(bit_cast<uint64_t>(val) >> 40), \
80 static_cast<byte>(bit_cast<uint64_t>(val) >> 48), \
81 static_cast<byte>(bit_cast<uint64_t>(val) >> 56)
82 #define WASM_GET_LOCAL(index) kExprGetLocal, static_cast<byte>(index)
83 #define WASM_SET_LOCAL(index, val) kExprSetLocal, static_cast<byte>(index), val
84 #define WASM_LOAD_GLOBAL(index) kExprLoadGlobal, static_cast<byte>(index)
86 kExprStoreGlobal, static_cast<byte>(index), val
88 static_cast<byte>( \
92 static_cast<byte>( \
96 static_cast<byte>( \
99 static_cast<byte>(offset), index
101 static_cast<byte>( \
104 static_cast<byte>(offset), index, val
106 kExprCallFunction, static_cast<byte>(index), __VA_ARGS__
108 kExprCallIndirect, static_cast<byte>(index), func, __VA_ARGS__
109 #define WASM_CALL_FUNCTION0(index) kExprCallFunction, static_cast<byte>(index)
111 kExprCallIndirect, static_cast<byte>(index), func
119 kExprSetLocal, static_cast<byte>(index), kExprI32Add, kExprGetLocal, \
120 static_cast<byte>(index), kExprI8Const, 1
122 kExprSetLocal, static_cast<byte>(index), kExprI32Add, kExprGetLocal, \
123 static_cast<byte>(index), kExprI8Const, static_cast<int8_t>(count)
125 #define WASM_UNOP(opcode, x) static_cast<byte>(opcode), x
126 #define WASM_BINOP(opcode, x, y) static_cast<byte>(opcode), x, y