From 003a6ffa56d7d1aa4918170236daaded6211d13b Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Mon, 18 Sep 2023 12:42:45 -0700 Subject: Implement table.fill (#5949) This instruction was standardized as part of the bulk memory proposal, but we never implemented it until now. Leave similar instructions like table.copy as future work. Fixes #5939. --- src/wasm/wat-parser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wasm/wat-parser.cpp') diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp index 6a18b2f87..b31019811 100644 --- a/src/wasm/wat-parser.cpp +++ b/src/wasm/wat-parser.cpp @@ -1936,6 +1936,7 @@ template Result makeTableGet(Ctx&, Index); template Result makeTableSet(Ctx&, Index); template Result makeTableSize(Ctx&, Index); template Result makeTableGrow(Ctx&, Index); +template Result makeTableFill(Ctx&, Index); template Result makeTry(Ctx&, Index); template Result @@ -3005,6 +3006,11 @@ Result makeTableGrow(Ctx& ctx, Index pos) { return ctx.in.err("unimplemented instruction"); } +template +Result makeTableFill(Ctx& ctx, Index pos) { + return ctx.in.err("unimplemented instruction"); +} + template Result makeTry(Ctx& ctx, Index pos) { return ctx.in.err("unimplemented instruction"); -- cgit v1.2.3