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/passes/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/Print.cpp') diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 85fd2c21a..4a4fe60c7 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -2289,7 +2289,7 @@ struct PrintExpressionContents if (printUnreachableReplacement(curr)) { return; } - printMedium(o, "array.init_static"); + printMedium(o, "array.new_fixed"); o << ' '; TypeNamePrinter(o, wasm).print(curr->type.getHeapType()); } -- cgit v1.2.3