Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: src/wasm/function-body-decoder-impl.h

Issue 2801183002: [WASM SIMD] Implement primitive shuffles. (Closed)
Patch Set: Fix non-ARM build. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wasm/function-body-decoder.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27e95b21386de82569ad9d87952bdaf6849fe20d..7249cc8a0df96d4cebad31caed857c072548b656 100644
--- a/src/wasm/function-body-decoder-impl.h
+++ b/src/wasm/function-body-decoder-impl.h
@@ -322,6 +322,18 @@ struct SimdShiftOperand {
}
};
+// Operand for SIMD concatenation operations.
+template <bool checked>
+struct SimdConcatOperand {
+ uint8_t bytes;
+ unsigned length;
+
+ inline SimdConcatOperand(Decoder* decoder, const byte* pc) {
+ bytes = decoder->read_u8<checked>(pc + 2, "bytes");
+ length = 1;
+ }
+};
+
#undef CHECKED_COND
} // namespace wasm
« no previous file with comments | « src/wasm/function-body-decoder.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698