Chromium Code Reviews| Index: src/wasm/function-body-decoder-impl.h |
| diff --git a/src/wasm/function-body-decoder-impl.h b/src/wasm/function-body-decoder-impl.h |
| index acda17cfd7b16e2231c2795b74f1f37104b0bc81..1bafb27c21967eb2a0dffe5e591df024603a59ff 100644 |
| --- a/src/wasm/function-body-decoder-impl.h |
| +++ b/src/wasm/function-body-decoder-impl.h |
| @@ -313,15 +313,13 @@ struct SimdShiftOperand { |
| } |
| }; |
| -// Operand for SIMD shuffle operations. |
| +// Operand for SIMD S8x16 shuffle operations. |
| template <bool checked> |
| -struct SimdShuffleOperand { |
| +struct Simd8x16ShuffleOperand { |
| uint8_t shuffle[16]; |
| - unsigned lanes; |
| - inline SimdShuffleOperand(Decoder* decoder, const byte* pc, unsigned lanes_) { |
| - lanes = lanes_; |
| - for (unsigned i = 0; i < lanes; i++) { |
| + inline Simd8x16ShuffleOperand(Decoder* decoder, const byte* pc) { |
| + for (unsigned i = 0; i < 16; i++) { |
|
Mircea Trofin
2017/06/13 22:21:45
unsigned
++i
bbudge
2017/06/13 23:07:54
Done.
|
| shuffle[i] = decoder->read_u8<checked>(pc + 2 + i, "shuffle"); |
| } |
| } |