Lines Matching refs:V
71 #define FOREACH_CONTROL_OPCODE(V) \ argument
72 V(Nop, 0x00, _) \
73 V(Block, 0x01, _) \
74 V(Loop, 0x02, _) \
75 V(If, 0x03, _) \
76 V(IfElse, 0x04, _) \
77 V(Select, 0x05, _) \
78 V(Br, 0x06, _) \
79 V(BrIf, 0x07, _) \
80 V(TableSwitch, 0x08, _) \
81 V(Return, 0x14, _) \
82 V(Unreachable, 0x15, _)
86 #define FOREACH_MISC_OPCODE(V) \ argument
87 V(I8Const, 0x09, _) \
88 V(I32Const, 0x0a, _) \
89 V(I64Const, 0x0b, _) \
90 V(F64Const, 0x0c, _) \
91 V(F32Const, 0x0d, _) \
92 V(GetLocal, 0x0e, _) \
93 V(SetLocal, 0x0f, _) \
94 V(LoadGlobal, 0x10, _) \
95 V(StoreGlobal, 0x11, _) \
96 V(CallFunction, 0x12, _) \
97 V(CallIndirect, 0x13, _)
100 #define FOREACH_LOAD_MEM_OPCODE(V) \ argument
101 V(I32LoadMem8S, 0x20, i_i) \
102 V(I32LoadMem8U, 0x21, i_i) \
103 V(I32LoadMem16S, 0x22, i_i) \
104 V(I32LoadMem16U, 0x23, i_i) \
105 V(I64LoadMem8S, 0x24, l_i) \
106 V(I64LoadMem8U, 0x25, l_i) \
107 V(I64LoadMem16S, 0x26, l_i) \
108 V(I64LoadMem16U, 0x27, l_i) \
109 V(I64LoadMem32S, 0x28, l_i) \
110 V(I64LoadMem32U, 0x29, l_i) \
111 V(I32LoadMem, 0x2a, i_i) \
112 V(I64LoadMem, 0x2b, l_i) \
113 V(F32LoadMem, 0x2c, f_i) \
114 V(F64LoadMem, 0x2d, d_i)
117 #define FOREACH_STORE_MEM_OPCODE(V) \ argument
118 V(I32StoreMem8, 0x2e, i_ii) \
119 V(I32StoreMem16, 0x2f, i_ii) \
120 V(I64StoreMem8, 0x30, l_il) \
121 V(I64StoreMem16, 0x31, l_il) \
122 V(I64StoreMem32, 0x32, l_il) \
123 V(I32StoreMem, 0x33, i_ii) \
124 V(I64StoreMem, 0x34, l_il) \
125 V(F32StoreMem, 0x35, f_if) \
126 V(F64StoreMem, 0x36, d_id)
129 #define FOREACH_MISC_MEM_OPCODE(V) \ argument
130 V(MemorySize, 0x3b, i_v) \
131 V(GrowMemory, 0x39, i_i)
134 #define FOREACH_SIMPLE_OPCODE(V) \ argument
135 V(I32Add, 0x40, i_ii) \
136 V(I32Sub, 0x41, i_ii) \
137 V(I32Mul, 0x42, i_ii) \
138 V(I32DivS, 0x43, i_ii) \
139 V(I32DivU, 0x44, i_ii) \
140 V(I32RemS, 0x45, i_ii) \
141 V(I32RemU, 0x46, i_ii) \
142 V(I32And, 0x47, i_ii) \
143 V(I32Ior, 0x48, i_ii) \
144 V(I32Xor, 0x49, i_ii) \
145 V(I32Shl, 0x4a, i_ii) \
146 V(I32ShrU, 0x4b, i_ii) \
147 V(I32ShrS, 0x4c, i_ii) \
148 V(I32Eq, 0x4d, i_ii) \
149 V(I32Ne, 0x4e, i_ii) \
150 V(I32LtS, 0x4f, i_ii) \
151 V(I32LeS, 0x50, i_ii) \
152 V(I32LtU, 0x51, i_ii) \
153 V(I32LeU, 0x52, i_ii) \
154 V(I32GtS, 0x53, i_ii) \
155 V(I32GeS, 0x54, i_ii) \
156 V(I32GtU, 0x55, i_ii) \
157 V(I32GeU, 0x56, i_ii) \
158 V(I32Clz, 0x57, i_i) \
159 V(I32Ctz, 0x58, i_i) \
160 V(I32Popcnt, 0x59, i_i) \
161 V(BoolNot, 0x5a, i_i) \
162 V(I64Add, 0x5b, l_ll) \
163 V(I64Sub, 0x5c, l_ll) \
164 V(I64Mul, 0x5d, l_ll) \
165 V(I64DivS, 0x5e, l_ll) \
166 V(I64DivU, 0x5f, l_ll) \
167 V(I64RemS, 0x60, l_ll) \
168 V(I64RemU, 0x61, l_ll) \
169 V(I64And, 0x62, l_ll) \
170 V(I64Ior, 0x63, l_ll) \
171 V(I64Xor, 0x64, l_ll) \
172 V(I64Shl, 0x65, l_ll) \
173 V(I64ShrU, 0x66, l_ll) \
174 V(I64ShrS, 0x67, l_ll) \
175 V(I64Eq, 0x68, i_ll) \
176 V(I64Ne, 0x69, i_ll) \
177 V(I64LtS, 0x6a, i_ll) \
178 V(I64LeS, 0x6b, i_ll) \
179 V(I64LtU, 0x6c, i_ll) \
180 V(I64LeU, 0x6d, i_ll) \
181 V(I64GtS, 0x6e, i_ll) \
182 V(I64GeS, 0x6f, i_ll) \
183 V(I64GtU, 0x70, i_ll) \
184 V(I64GeU, 0x71, i_ll) \
185 V(I64Clz, 0x72, l_l) \
186 V(I64Ctz, 0x73, l_l) \
187 V(I64Popcnt, 0x74, l_l) \
188 V(F32Add, 0x75, f_ff) \
189 V(F32Sub, 0x76, f_ff) \
190 V(F32Mul, 0x77, f_ff) \
191 V(F32Div, 0x78, f_ff) \
192 V(F32Min, 0x79, f_ff) \
193 V(F32Max, 0x7a, f_ff) \
194 V(F32Abs, 0x7b, f_f) \
195 V(F32Neg, 0x7c, f_f) \
196 V(F32CopySign, 0x7d, f_ff) \
197 V(F32Ceil, 0x7e, f_f) \
198 V(F32Floor, 0x7f, f_f) \
199 V(F32Trunc, 0x80, f_f) \
200 V(F32NearestInt, 0x81, f_f) \
201 V(F32Sqrt, 0x82, f_f) \
202 V(F32Eq, 0x83, i_ff) \
203 V(F32Ne, 0x84, i_ff) \
204 V(F32Lt, 0x85, i_ff) \
205 V(F32Le, 0x86, i_ff) \
206 V(F32Gt, 0x87, i_ff) \
207 V(F32Ge, 0x88, i_ff) \
208 V(F64Add, 0x89, d_dd) \
209 V(F64Sub, 0x8a, d_dd) \
210 V(F64Mul, 0x8b, d_dd) \
211 V(F64Div, 0x8c, d_dd) \
212 V(F64Min, 0x8d, d_dd) \
213 V(F64Max, 0x8e, d_dd) \
214 V(F64Abs, 0x8f, d_d) \
215 V(F64Neg, 0x90, d_d) \
216 V(F64CopySign, 0x91, d_dd) \
217 V(F64Ceil, 0x92, d_d) \
218 V(F64Floor, 0x93, d_d) \
219 V(F64Trunc, 0x94, d_d) \
220 V(F64NearestInt, 0x95, d_d) \
221 V(F64Sqrt, 0x96, d_d) \
222 V(F64Eq, 0x97, i_dd) \
223 V(F64Ne, 0x98, i_dd) \
224 V(F64Lt, 0x99, i_dd) \
225 V(F64Le, 0x9a, i_dd) \
226 V(F64Gt, 0x9b, i_dd) \
227 V(F64Ge, 0x9c, i_dd) \
228 V(I32SConvertF32, 0x9d, i_f) \
229 V(I32SConvertF64, 0x9e, i_d) \
230 V(I32UConvertF32, 0x9f, i_f) \
231 V(I32UConvertF64, 0xa0, i_d) \
232 V(I32ConvertI64, 0xa1, i_l) \
233 V(I64SConvertF32, 0xa2, l_f) \
234 V(I64SConvertF64, 0xa3, l_d) \
235 V(I64UConvertF32, 0xa4, l_f) \
236 V(I64UConvertF64, 0xa5, l_d) \
237 V(I64SConvertI32, 0xa6, l_i) \
238 V(I64UConvertI32, 0xa7, l_i) \
239 V(F32SConvertI32, 0xa8, f_i) \
240 V(F32UConvertI32, 0xa9, f_i) \
241 V(F32SConvertI64, 0xaa, f_l) \
242 V(F32UConvertI64, 0xab, f_l) \
243 V(F32ConvertF64, 0xac, f_d) \
244 V(F32ReinterpretI32, 0xad, f_i) \
245 V(F64SConvertI32, 0xae, d_i) \
246 V(F64UConvertI32, 0xaf, d_i) \
247 V(F64SConvertI64, 0xb0, d_l) \
248 V(F64UConvertI64, 0xb1, d_l) \
249 V(F64ConvertF32, 0xb2, d_f) \
250 V(F64ReinterpretI64, 0xb3, d_l) \
251 V(I32ReinterpretF32, 0xb4, i_f) \
252 V(I64ReinterpretF64, 0xb5, l_d)
255 #define FOREACH_OPCODE(V) \ argument
256 FOREACH_CONTROL_OPCODE(V) \
257 FOREACH_MISC_OPCODE(V) \
258 FOREACH_SIMPLE_OPCODE(V) \
259 FOREACH_STORE_MEM_OPCODE(V) \
260 FOREACH_LOAD_MEM_OPCODE(V) \
261 FOREACH_MISC_MEM_OPCODE(V)
264 #define FOREACH_SIGNATURE(V) \ argument
265 V(i_ii, kAstI32, kAstI32, kAstI32) \
266 V(i_i, kAstI32, kAstI32) \
267 V(i_v, kAstI32) \
268 V(i_ff, kAstI32, kAstF32, kAstF32) \
269 V(i_f, kAstI32, kAstF32) \
270 V(i_dd, kAstI32, kAstF64, kAstF64) \
271 V(i_d, kAstI32, kAstF64) \
272 V(i_l, kAstI32, kAstI64) \
273 V(l_ll, kAstI64, kAstI64, kAstI64) \
274 V(i_ll, kAstI32, kAstI64, kAstI64) \
275 V(l_l, kAstI64, kAstI64) \
276 V(l_i, kAstI64, kAstI32) \
277 V(l_f, kAstI64, kAstF32) \
278 V(l_d, kAstI64, kAstF64) \
279 V(f_ff, kAstF32, kAstF32, kAstF32) \
280 V(f_f, kAstF32, kAstF32) \
281 V(f_d, kAstF32, kAstF64) \
282 V(f_i, kAstF32, kAstI32) \
283 V(f_l, kAstF32, kAstI64) \
284 V(d_dd, kAstF64, kAstF64, kAstF64) \
285 V(d_d, kAstF64, kAstF64) \
286 V(d_f, kAstF64, kAstF32) \
287 V(d_i, kAstF64, kAstI32) \
288 V(d_l, kAstF64, kAstI64) \
289 V(d_id, kAstF64, kAstI32, kAstF64) \
290 V(f_if, kAstF32, kAstI32, kAstF32) \
291 V(l_il, kAstI64, kAstI32, kAstI64)