From 956d2d89d530012885c1f88c87bf8b872c187b70 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 25 Apr 2024 14:55:12 -0700 Subject: [Parser] Enable the new text parser by default (#6371) The new text parser is faster and more standards compliant than the old text parser. Enable it by default in wasm-opt and update the tests to reflect the slightly different results it produces. Besides following the spec, the new parser differs from the old parser in that it: - Does not synthesize `loop` and `try` labels unnecessarily - Synthesizes different block names in some cases - Parses exports in a different order - Parses `nop`s instead of empty blocks for empty control flow arms - Does not support parsing Poppy IR - Produces different error messages - Cannot parse `pop` except as the first instruction inside a `catch` --- ...ncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/lit/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast') diff --git a/test/lit/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast b/test/lit/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast index 8415dfdb7..d5dc9ff9b 100644 --- a/test/lit/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast +++ b/test/lit/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast @@ -33,7 +33,7 @@ ;; CHECK: (table $0 2 2 funcref) - ;; CHECK: (elem $0 (i32.const 0) $calls-import2-drop $calls-import2-drop) + ;; CHECK: (elem $implicit-elem (i32.const 0) $calls-import2-drop $calls-import2-drop) ;; CHECK: (export "asyncify_start_unwind" (func $asyncify_start_unwind)) -- cgit v1.2.3