summaryrefslogtreecommitdiff
path: root/test/lit/debug
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-04-25 14:55:12 -0700
committerGitHub <noreply@github.com>2024-04-25 14:55:12 -0700
commit956d2d89d530012885c1f88c87bf8b872c187b70 (patch)
treea24095ab6965bbfdfd04afbc02c33a3409d51fd0 /test/lit/debug
parentf44dcd4482f5bbb0fb5b567de4a9425ed949c939 (diff)
downloadbinaryen-956d2d89d530012885c1f88c87bf8b872c187b70.tar.gz
binaryen-956d2d89d530012885c1f88c87bf8b872c187b70.tar.bz2
binaryen-956d2d89d530012885c1f88c87bf8b872c187b70.zip
[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`
Diffstat (limited to 'test/lit/debug')
-rw-r--r--test/lit/debug/full.wat2
-rw-r--r--test/lit/debug/replace-keep.wat1
2 files changed, 0 insertions, 3 deletions
diff --git a/test/lit/debug/full.wat b/test/lit/debug/full.wat
index e8e0b9a9b..3ea861611 100644
--- a/test/lit/debug/full.wat
+++ b/test/lit/debug/full.wat
@@ -25,7 +25,6 @@
;; NRML-NEXT: (i32.const 2)
;; NRML-NEXT: )
;; NRML-NEXT: )
- ;; NRML-NEXT: ;;@ src.cpp:1:2
;; NRML-NEXT: )
;; FULL: (func $a
;; FULL-NEXT: [none] ;;@ src.cpp:1:2
@@ -46,7 +45,6 @@
;; FULL-NEXT: (i32.const 2)
;; FULL-NEXT: )
;; FULL-NEXT: ) ;; end block block
- ;; FULL-NEXT: ;;@ src.cpp:1:2
;; FULL-NEXT: )
(func $a
;;@ src.cpp:1:2
diff --git a/test/lit/debug/replace-keep.wat b/test/lit/debug/replace-keep.wat
index cfd8e1ced..4c073aeab 100644
--- a/test/lit/debug/replace-keep.wat
+++ b/test/lit/debug/replace-keep.wat
@@ -50,7 +50,6 @@
;; CHECK-NEXT: (i32.const 1)
;; CHECK-NEXT: )
;; CHECK-NEXT: ) ;; end block
- ;; CHECK-NEXT: ;;@ src.cpp:200:2
;; CHECK-NEXT: )
(func $test-no-trample
(local $temp i32)