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/globals.h" | 8 #include "src/globals.h" |
9 #include "src/machine-type.h" | 9 #include "src/machine-type.h" |
10 #include "src/runtime/runtime.h" | 10 #include "src/runtime/runtime.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 V(F32x4Min, 0xe50c, s_ss) \ | 288 V(F32x4Min, 0xe50c, s_ss) \ |
289 V(F32x4Max, 0xe50d, s_ss) \ | 289 V(F32x4Max, 0xe50d, s_ss) \ |
290 V(F32x4MinNum, 0xe50e, s_ss) \ | 290 V(F32x4MinNum, 0xe50e, s_ss) \ |
291 V(F32x4MaxNum, 0xe50f, s_ss) \ | 291 V(F32x4MaxNum, 0xe50f, s_ss) \ |
292 V(F32x4Eq, 0xe510, s_ss) \ | 292 V(F32x4Eq, 0xe510, s_ss) \ |
293 V(F32x4Ne, 0xe511, s_ss) \ | 293 V(F32x4Ne, 0xe511, s_ss) \ |
294 V(F32x4Lt, 0xe512, s_ss) \ | 294 V(F32x4Lt, 0xe512, s_ss) \ |
295 V(F32x4Le, 0xe513, s_ss) \ | 295 V(F32x4Le, 0xe513, s_ss) \ |
296 V(F32x4Gt, 0xe514, s_ss) \ | 296 V(F32x4Gt, 0xe514, s_ss) \ |
297 V(F32x4Ge, 0xe515, s_ss) \ | 297 V(F32x4Ge, 0xe515, s_ss) \ |
298 V(F32x4FromInt32x4, 0xe519, s_s) \ | 298 V(F32x4SConvertI32x4, 0xe519, s_s) \ |
299 V(F32x4FromUint32x4, 0xe51a, s_s) \ | 299 V(F32x4UConvertI32x4, 0xe51a, s_s) \ |
300 V(I32x4Splat, 0xe51b, s_i) \ | 300 V(I32x4Splat, 0xe51b, s_i) \ |
301 V(I32x4Neg, 0xe51e, s_s) \ | 301 V(I32x4Neg, 0xe51e, s_s) \ |
302 V(I32x4Add, 0xe51f, s_ss) \ | 302 V(I32x4Add, 0xe51f, s_ss) \ |
303 V(I32x4Sub, 0xe520, s_ss) \ | 303 V(I32x4Sub, 0xe520, s_ss) \ |
304 V(I32x4Mul, 0xe521, s_ss) \ | 304 V(I32x4Mul, 0xe521, s_ss) \ |
305 V(I32x4Min_s, 0xe522, s_ss) \ | 305 V(I32x4MinS, 0xe522, s_ss) \ |
306 V(I32x4Max_s, 0xe523, s_ss) \ | 306 V(I32x4MaxS, 0xe523, s_ss) \ |
307 V(I32x4Shl, 0xe524, s_si) \ | 307 V(I32x4Shl, 0xe524, s_si) \ |
308 V(I32x4Shr_s, 0xe525, s_si) \ | 308 V(I32x4ShrS, 0xe525, s_si) \ |
309 V(I32x4Eq, 0xe526, s_ss) \ | 309 V(I32x4Eq, 0xe526, s_ss) \ |
310 V(I32x4Ne, 0xe527, s_ss) \ | 310 V(I32x4Ne, 0xe527, s_ss) \ |
311 V(I32x4Lt_s, 0xe528, s_ss) \ | 311 V(I32x4LtS, 0xe528, s_ss) \ |
312 V(I32x4Le_s, 0xe529, s_ss) \ | 312 V(I32x4LeS, 0xe529, s_ss) \ |
313 V(I32x4Gt_s, 0xe52a, s_ss) \ | 313 V(I32x4GtS, 0xe52a, s_ss) \ |
314 V(I32x4Ge_s, 0xe52b, s_ss) \ | 314 V(I32x4GeS, 0xe52b, s_ss) \ |
315 V(I32x4Select, 0xe52c, s_sss) \ | 315 V(I32x4Select, 0xe52c, s_sss) \ |
316 V(I32x4Swizzle, 0xe52d, s_s) \ | 316 V(I32x4Swizzle, 0xe52d, s_s) \ |
317 V(I32x4Shuffle, 0xe52e, s_ss) \ | 317 V(I32x4Shuffle, 0xe52e, s_ss) \ |
318 V(I32x4FromFloat32x4, 0xe52f, s_s) \ | 318 V(I32x4SConvertF32x4, 0xe52f, s_s) \ |
319 V(I32x4Min_u, 0xe530, s_ss) \ | 319 V(I32x4MinU, 0xe530, s_ss) \ |
320 V(I32x4Max_u, 0xe531, s_ss) \ | 320 V(I32x4MaxU, 0xe531, s_ss) \ |
321 V(I32x4Shr_u, 0xe532, s_ss) \ | 321 V(I32x4ShrU, 0xe532, s_ss) \ |
322 V(I32x4Lt_u, 0xe533, s_ss) \ | 322 V(I32x4LtU, 0xe533, s_ss) \ |
323 V(I32x4Le_u, 0xe534, s_ss) \ | 323 V(I32x4LeU, 0xe534, s_ss) \ |
324 V(I32x4Gt_u, 0xe535, s_ss) \ | 324 V(I32x4GtU, 0xe535, s_ss) \ |
325 V(I32x4Ge_u, 0xe536, s_ss) \ | 325 V(I32x4GeU, 0xe536, s_ss) \ |
326 V(Ui32x4FromFloat32x4, 0xe537, s_s) \ | 326 V(I32x4UConvertF32x4, 0xe537, s_s) \ |
327 V(I16x8Splat, 0xe538, s_i) \ | 327 V(I16x8Splat, 0xe538, s_i) \ |
328 V(I16x8Neg, 0xe53b, s_s) \ | 328 V(I16x8Neg, 0xe53b, s_s) \ |
329 V(I16x8Add, 0xe53c, s_ss) \ | 329 V(I16x8Add, 0xe53c, s_ss) \ |
330 V(I16x8AddSaturate_s, 0xe53d, s_ss) \ | 330 V(I16x8AddSaturateS, 0xe53d, s_ss) \ |
331 V(I16x8Sub, 0xe53e, s_ss) \ | 331 V(I16x8Sub, 0xe53e, s_ss) \ |
332 V(I16x8SubSaturate_s, 0xe53f, s_ss) \ | 332 V(I16x8SubSaturateS, 0xe53f, s_ss) \ |
333 V(I16x8Mul, 0xe540, s_ss) \ | 333 V(I16x8Mul, 0xe540, s_ss) \ |
334 V(I16x8Min_s, 0xe541, s_ss) \ | 334 V(I16x8MinS, 0xe541, s_ss) \ |
335 V(I16x8Max_s, 0xe542, s_ss) \ | 335 V(I16x8MaxS, 0xe542, s_ss) \ |
336 V(I16x8Shl, 0xe543, s_si) \ | 336 V(I16x8Shl, 0xe543, s_si) \ |
337 V(I16x8Shr_s, 0xe544, s_si) \ | 337 V(I16x8ShrS, 0xe544, s_si) \ |
338 V(I16x8Eq, 0xe545, s_ss) \ | 338 V(I16x8Eq, 0xe545, s_ss) \ |
339 V(I16x8Ne, 0xe546, s_ss) \ | 339 V(I16x8Ne, 0xe546, s_ss) \ |
340 V(I16x8Lt_s, 0xe547, s_ss) \ | 340 V(I16x8LtS, 0xe547, s_ss) \ |
341 V(I16x8Le_s, 0xe548, s_ss) \ | 341 V(I16x8LeS, 0xe548, s_ss) \ |
342 V(I16x8Gt_s, 0xe549, s_ss) \ | 342 V(I16x8GtS, 0xe549, s_ss) \ |
343 V(I16x8Ge_s, 0xe54a, s_ss) \ | 343 V(I16x8GeS, 0xe54a, s_ss) \ |
344 V(I16x8Select, 0xe54b, s_sss) \ | 344 V(I16x8Select, 0xe54b, s_sss) \ |
345 V(I16x8Swizzle, 0xe54c, s_s) \ | 345 V(I16x8Swizzle, 0xe54c, s_s) \ |
346 V(I16x8Shuffle, 0xe54d, s_ss) \ | 346 V(I16x8Shuffle, 0xe54d, s_ss) \ |
347 V(I16x8AddSaturate_u, 0xe54e, s_ss) \ | 347 V(I16x8AddSaturateU, 0xe54e, s_ss) \ |
348 V(I16x8SubSaturate_u, 0xe54f, s_ss) \ | 348 V(I16x8SubSaturateU, 0xe54f, s_ss) \ |
349 V(I16x8Min_u, 0xe550, s_ss) \ | 349 V(I16x8MinU, 0xe550, s_ss) \ |
350 V(I16x8Max_u, 0xe551, s_ss) \ | 350 V(I16x8MaxU, 0xe551, s_ss) \ |
351 V(I16x8Shr_u, 0xe552, s_si) \ | 351 V(I16x8ShrU, 0xe552, s_si) \ |
352 V(I16x8Lt_u, 0xe553, s_ss) \ | 352 V(I16x8LtU, 0xe553, s_ss) \ |
353 V(I16x8Le_u, 0xe554, s_ss) \ | 353 V(I16x8LeU, 0xe554, s_ss) \ |
354 V(I16x8Gt_u, 0xe555, s_ss) \ | 354 V(I16x8GtU, 0xe555, s_ss) \ |
355 V(I16x8Ge_u, 0xe556, s_ss) \ | 355 V(I16x8GeU, 0xe556, s_ss) \ |
356 V(I8x16Splat, 0xe557, s_i) \ | 356 V(I8x16Splat, 0xe557, s_i) \ |
357 V(I8x16Neg, 0xe55a, s_s) \ | 357 V(I8x16Neg, 0xe55a, s_s) \ |
358 V(I8x16Add, 0xe55b, s_ss) \ | 358 V(I8x16Add, 0xe55b, s_ss) \ |
359 V(I8x16AddSaturate_s, 0xe55c, s_ss) \ | 359 V(I8x16AddSaturateS, 0xe55c, s_ss) \ |
360 V(I8x16Sub, 0xe55d, s_ss) \ | 360 V(I8x16Sub, 0xe55d, s_ss) \ |
361 V(I8x16SubSaturate_s, 0xe55e, s_ss) \ | 361 V(I8x16SubSaturateS, 0xe55e, s_ss) \ |
362 V(I8x16Mul, 0xe55f, s_ss) \ | 362 V(I8x16Mul, 0xe55f, s_ss) \ |
363 V(I8x16Min_s, 0xe560, s_ss) \ | 363 V(I8x16MinS, 0xe560, s_ss) \ |
364 V(I8x16Max_s, 0xe561, s_ss) \ | 364 V(I8x16MaxS, 0xe561, s_ss) \ |
365 V(I8x16Shl, 0xe562, s_si) \ | 365 V(I8x16Shl, 0xe562, s_si) \ |
366 V(I8x16Shr_s, 0xe563, s_si) \ | 366 V(I8x16ShrS, 0xe563, s_si) \ |
367 V(I8x16Eq, 0xe564, s_ss) \ | 367 V(I8x16Eq, 0xe564, s_ss) \ |
368 V(I8x16Neq, 0xe565, s_ss) \ | 368 V(I8x16Ne, 0xe565, s_ss) \ |
369 V(I8x16Lt_s, 0xe566, s_ss) \ | 369 V(I8x16LtS, 0xe566, s_ss) \ |
370 V(I8x16Le_s, 0xe567, s_ss) \ | 370 V(I8x16LeS, 0xe567, s_ss) \ |
371 V(I8x16Gt_s, 0xe568, s_ss) \ | 371 V(I8x16GtS, 0xe568, s_ss) \ |
372 V(I8x16Ge_s, 0xe569, s_ss) \ | 372 V(I8x16GeS, 0xe569, s_ss) \ |
373 V(I8x16Select, 0xe56a, s_sss) \ | 373 V(I8x16Select, 0xe56a, s_sss) \ |
374 V(I8x16Swizzle, 0xe56b, s_s) \ | 374 V(I8x16Swizzle, 0xe56b, s_s) \ |
375 V(I8x16Shuffle, 0xe56c, s_ss) \ | 375 V(I8x16Shuffle, 0xe56c, s_ss) \ |
376 V(I8x16AddSaturate_u, 0xe56d, s_ss) \ | 376 V(I8x16AddSaturateU, 0xe56d, s_ss) \ |
377 V(I8x16Sub_saturate_u, 0xe56e, s_ss) \ | 377 V(I8x16SubSaturateU, 0xe56e, s_ss) \ |
378 V(I8x16Min_u, 0xe56f, s_ss) \ | 378 V(I8x16MinU, 0xe56f, s_ss) \ |
379 V(I8x16Max_u, 0xe570, s_ss) \ | 379 V(I8x16MaxU, 0xe570, s_ss) \ |
380 V(I8x16Shr_u, 0xe571, s_ss) \ | 380 V(I8x16ShrU, 0xe571, s_ss) \ |
381 V(I8x16Lt_u, 0xe572, s_ss) \ | 381 V(I8x16LtU, 0xe572, s_ss) \ |
382 V(I8x16Le_u, 0xe573, s_ss) \ | 382 V(I8x16LeU, 0xe573, s_ss) \ |
383 V(I8x16Gt_u, 0xe574, s_ss) \ | 383 V(I8x16GtU, 0xe574, s_ss) \ |
384 V(I8x16Ge_u, 0xe575, s_ss) \ | 384 V(I8x16GeU, 0xe575, s_ss) \ |
385 V(S128And, 0xe576, s_ss) \ | 385 V(S128And, 0xe576, s_ss) \ |
386 V(S128Ior, 0xe577, s_ss) \ | 386 V(S128Ior, 0xe577, s_ss) \ |
387 V(S128Xor, 0xe578, s_ss) \ | 387 V(S128Xor, 0xe578, s_ss) \ |
388 V(S128Not, 0xe579, s_s) \ | 388 V(S128Not, 0xe579, s_s) \ |
389 V(S32x4Select, 0xe580, s_sss) \ | 389 V(S32x4Select, 0xe580, s_sss) \ |
390 V(S32x4Swizzle, 0xe581, s_s) \ | 390 V(S32x4Swizzle, 0xe581, s_s) \ |
391 V(S32x4Shuffle, 0xe582, s_ss) | 391 V(S32x4Shuffle, 0xe582, s_ss) |
392 | 392 |
393 #define FOREACH_SIMD_1_OPERAND_OPCODE(V) \ | 393 #define FOREACH_SIMD_1_OPERAND_OPCODE(V) \ |
394 V(F32x4ExtractLane, 0xe501, _) \ | 394 V(F32x4ExtractLane, 0xe501, _) \ |
395 V(F32x4ReplaceLane, 0xe502, _) \ | 395 V(F32x4ReplaceLane, 0xe502, _) \ |
396 V(I32x4ExtractLane, 0xe51c, _) \ | 396 V(I32x4ExtractLane, 0xe51c, _) \ |
397 V(I32x4ReplaceLane, 0xe51d, _) \ | 397 V(I32x4ReplaceLane, 0xe51d, _) \ |
398 V(I16x8ExtractLane, 0xe539, _) \ | 398 V(I16x8ExtractLane, 0xe539, _) \ |
399 V(I16x8ReplaceLane, 0xe53a, _) \ | 399 V(I16x8ReplaceLane, 0xe53a, _) \ |
400 V(I8x16ExtractLane, 0xe558, _) \ | 400 V(I8x16ExtractLane, 0xe558, _) \ |
401 V(I8x16ReplaceLane, 0xe559, _) | 401 V(I8x16ReplaceLane, 0xe559, _) |
402 | 402 |
403 #define FOREACH_ATOMIC_OPCODE(V) \ | 403 #define FOREACH_ATOMIC_OPCODE(V) \ |
404 V(I32AtomicAdd8S, 0xe601, i_ii) \ | 404 V(I32AtomicAdd8S, 0xe601, i_ii) \ |
405 V(I32AtomicAdd8U, 0xe602, i_ii) \ | 405 V(I32AtomicAdd8U, 0xe602, i_ii) \ |
406 V(I32AtomicAdd16S, 0xe603, i_ii) \ | 406 V(I32AtomicAdd16S, 0xe603, i_ii) \ |
407 V(I32AtomicAdd16U, 0xe604, i_ii) \ | 407 V(I32AtomicAdd16U, 0xe604, i_ii) \ |
408 V(I32AtomicAdd32, 0xe605, i_ii) \ | 408 V(I32AtomicAdd, 0xe605, i_ii) \ |
409 V(I32AtomicAnd8S, 0xe606, i_ii) \ | 409 V(I32AtomicAnd8S, 0xe606, i_ii) \ |
410 V(I32AtomicAnd8U, 0xe607, i_ii) \ | 410 V(I32AtomicAnd8U, 0xe607, i_ii) \ |
411 V(I32AtomicAnd16S, 0xe608, i_ii) \ | 411 V(I32AtomicAnd16S, 0xe608, i_ii) \ |
412 V(I32AtomicAnd16U, 0xe609, i_ii) \ | 412 V(I32AtomicAnd16U, 0xe609, i_ii) \ |
413 V(I32AtomicAnd32, 0xe60a, i_ii) \ | 413 V(I32AtomicAnd, 0xe60a, i_ii) \ |
414 V(I32AtomicCompareExchange8S, 0xe60b, i_ii) \ | 414 V(I32AtomicCompareExchange8S, 0xe60b, i_ii) \ |
415 V(I32AtomicCompareExchange8U, 0xe60c, i_ii) \ | 415 V(I32AtomicCompareExchange8U, 0xe60c, i_ii) \ |
416 V(I32AtomicCompareExchange16S, 0xe60d, i_ii) \ | 416 V(I32AtomicCompareExchange16S, 0xe60d, i_ii) \ |
417 V(I32AtomicCompareExchange16U, 0xe60e, i_ii) \ | 417 V(I32AtomicCompareExchange16U, 0xe60e, i_ii) \ |
418 V(I32AtomicCompareExchange32, 0xe60f, i_ii) \ | 418 V(I32AtomicCompareExchange, 0xe60f, i_ii) \ |
419 V(I32AtomicExchange8S, 0xe610, i_ii) \ | 419 V(I32AtomicExchange8S, 0xe610, i_ii) \ |
420 V(I32AtomicExchange8U, 0xe611, i_ii) \ | 420 V(I32AtomicExchange8U, 0xe611, i_ii) \ |
421 V(I32AtomicExchange16S, 0xe612, i_ii) \ | 421 V(I32AtomicExchange16S, 0xe612, i_ii) \ |
422 V(I32AtomicExchange16U, 0xe613, i_ii) \ | 422 V(I32AtomicExchange16U, 0xe613, i_ii) \ |
423 V(I32AtomicExchange32, 0xe614, i_ii) \ | 423 V(I32AtomicExchange, 0xe614, i_ii) \ |
424 V(I32AtomicOr8S, 0xe615, i_ii) \ | 424 V(I32AtomicOr8S, 0xe615, i_ii) \ |
425 V(I32AtomicOr8U, 0xe616, i_ii) \ | 425 V(I32AtomicOr8U, 0xe616, i_ii) \ |
426 V(I32AtomicOr16S, 0xe617, i_ii) \ | 426 V(I32AtomicOr16S, 0xe617, i_ii) \ |
427 V(I32AtomicOr16U, 0xe618, i_ii) \ | 427 V(I32AtomicOr16U, 0xe618, i_ii) \ |
428 V(I32AtomicOr32, 0xe619, i_ii) \ | 428 V(I32AtomicOr, 0xe619, i_ii) \ |
429 V(I32AtomicSub8S, 0xe61a, i_ii) \ | 429 V(I32AtomicSub8S, 0xe61a, i_ii) \ |
430 V(I32AtomicSub8U, 0xe61b, i_ii) \ | 430 V(I32AtomicSub8U, 0xe61b, i_ii) \ |
431 V(I32AtomicSub16S, 0xe61c, i_ii) \ | 431 V(I32AtomicSub16S, 0xe61c, i_ii) \ |
432 V(I32AtomicSub16U, 0xe61d, i_ii) \ | 432 V(I32AtomicSub16U, 0xe61d, i_ii) \ |
433 V(I32AtomicSub32, 0xe61e, i_ii) \ | 433 V(I32AtomicSub, 0xe61e, i_ii) \ |
434 V(I32AtomicXor8S, 0xe61f, i_ii) \ | 434 V(I32AtomicXor8S, 0xe61f, i_ii) \ |
435 V(I32AtomicXor8U, 0xe620, i_ii) \ | 435 V(I32AtomicXor8U, 0xe620, i_ii) \ |
436 V(I32AtomicXor16S, 0xe621, i_ii) \ | 436 V(I32AtomicXor16S, 0xe621, i_ii) \ |
437 V(I32AtomicXor16U, 0xe622, i_ii) \ | 437 V(I32AtomicXor16U, 0xe622, i_ii) \ |
438 V(I32AtomicXor32, 0xe623, i_ii) | 438 V(I32AtomicXor, 0xe623, i_ii) |
439 | 439 |
440 // All opcodes. | 440 // All opcodes. |
441 #define FOREACH_OPCODE(V) \ | 441 #define FOREACH_OPCODE(V) \ |
442 FOREACH_CONTROL_OPCODE(V) \ | 442 FOREACH_CONTROL_OPCODE(V) \ |
443 FOREACH_MISC_OPCODE(V) \ | 443 FOREACH_MISC_OPCODE(V) \ |
444 FOREACH_SIMPLE_OPCODE(V) \ | 444 FOREACH_SIMPLE_OPCODE(V) \ |
445 FOREACH_STORE_MEM_OPCODE(V) \ | 445 FOREACH_STORE_MEM_OPCODE(V) \ |
446 FOREACH_LOAD_MEM_OPCODE(V) \ | 446 FOREACH_LOAD_MEM_OPCODE(V) \ |
447 FOREACH_MISC_MEM_OPCODE(V) \ | 447 FOREACH_MISC_MEM_OPCODE(V) \ |
448 FOREACH_ASMJS_COMPAT_OPCODE(V) \ | 448 FOREACH_ASMJS_COMPAT_OPCODE(V) \ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 #define DECLARE_ENUM(name) k##name, | 518 #define DECLARE_ENUM(name) k##name, |
519 FOREACH_WASM_TRAPREASON(DECLARE_ENUM) | 519 FOREACH_WASM_TRAPREASON(DECLARE_ENUM) |
520 kTrapCount | 520 kTrapCount |
521 #undef DECLARE_ENUM | 521 #undef DECLARE_ENUM |
522 }; | 522 }; |
523 | 523 |
524 // A collection of opcode-related static methods. | 524 // A collection of opcode-related static methods. |
525 class V8_EXPORT_PRIVATE WasmOpcodes { | 525 class V8_EXPORT_PRIVATE WasmOpcodes { |
526 public: | 526 public: |
527 static const char* OpcodeName(WasmOpcode opcode); | 527 static const char* OpcodeName(WasmOpcode opcode); |
528 static const char* ShortOpcodeName(WasmOpcode opcode); | |
529 static FunctionSig* Signature(WasmOpcode opcode); | 528 static FunctionSig* Signature(WasmOpcode opcode); |
530 static FunctionSig* AsmjsSignature(WasmOpcode opcode); | 529 static FunctionSig* AsmjsSignature(WasmOpcode opcode); |
531 static FunctionSig* AtomicSignature(WasmOpcode opcode); | 530 static FunctionSig* AtomicSignature(WasmOpcode opcode); |
532 static bool IsPrefixOpcode(WasmOpcode opcode); | 531 static bool IsPrefixOpcode(WasmOpcode opcode); |
533 | 532 |
534 static int TrapReasonToMessageId(TrapReason reason); | 533 static int TrapReasonToMessageId(TrapReason reason); |
535 static const char* TrapReasonMessage(TrapReason reason); | 534 static const char* TrapReasonMessage(TrapReason reason); |
536 | 535 |
537 static byte MemSize(MachineType type) { | 536 static byte MemSize(MachineType type) { |
538 return 1 << ElementSizeLog2Of(type.representation()); | 537 return 1 << ElementSizeLog2Of(type.representation()); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 default: | 676 default: |
678 return "<unknown>"; | 677 return "<unknown>"; |
679 } | 678 } |
680 } | 679 } |
681 }; | 680 }; |
682 } // namespace wasm | 681 } // namespace wasm |
683 } // namespace internal | 682 } // namespace internal |
684 } // namespace v8 | 683 } // namespace v8 |
685 | 684 |
686 #endif // V8_WASM_OPCODES_H_ | 685 #endif // V8_WASM_OPCODES_H_ |
OLD | NEW |