From 356767e259cde364b0968bedf4ffd012d48737b5 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 28 Feb 2023 18:18:38 -0600 Subject: Parse and print `array.new_fixed` (#5527) This is a (more) standard name for `array.init_static`. (The full upstream name in the spec repo is `array.new_canon_fixed`, but I'm still hoping we can drop `canon` from all the instruction names and it doesn't appear elsewhere in Binaryen). Update all the existing tests to use the new name and add a test specifically to ensure the old name continues parsing. --- src/wasm/wat-parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm/wat-parser.cpp') diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp index ee48d7262..89e913ab5 100644 --- a/src/wasm/wat-parser.cpp +++ b/src/wasm/wat-parser.cpp @@ -2365,7 +2365,7 @@ Result makeArrayNew(Ctx&, Index, bool default_); template Result makeArrayNewSeg(Ctx&, Index, ArrayNewSegOp op); template -Result makeArrayNewFixedStatic(Ctx&, Index); +Result makeArrayNewFixed(Ctx&, Index); template Result makeArrayGet(Ctx&, Index, bool signed_ = false); template Result makeArraySet(Ctx&, Index); @@ -3525,7 +3525,7 @@ makeArrayNewSeg(Ctx& ctx, Index pos, ArrayNewSegOp op) { } template -Result makeArrayNewFixedStatic(Ctx& ctx, Index pos) { +Result makeArrayNewFixed(Ctx& ctx, Index pos) { return ctx.in.err("unimplemented instruction"); } -- cgit v1.2.3