diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2024-10-01 23:39:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 14:39:34 -0700 |
commit | 347fc8a57dcfd9361b05f271a7f2badc929500cf (patch) | |
tree | 362a40ae7bc9bcb9e8c40967505d3414691f6af6 /test/lit/passes | |
parent | cb53f0c6966fe7c8e5cc1a975eab9653b5914bde (diff) | |
download | binaryen-347fc8a57dcfd9361b05f271a7f2badc929500cf.tar.gz binaryen-347fc8a57dcfd9361b05f271a7f2badc929500cf.tar.bz2 binaryen-347fc8a57dcfd9361b05f271a7f2badc929500cf.zip |
Source Maps: Support 5 segment mappings (#6795)
Support 5-segment source mappings, which add a name.
Reference:
https://github.com/tc39/source-map/blob/main/source-map-rev3.md#proposed-format
Diffstat (limited to 'test/lit/passes')
-rw-r--r-- | test/lit/passes/inlining_source-maps.wast | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/lit/passes/inlining_source-maps.wast b/test/lit/passes/inlining_source-maps.wast new file mode 100644 index 000000000..5b5549986 --- /dev/null +++ b/test/lit/passes/inlining_source-maps.wast @@ -0,0 +1,36 @@ +;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. + +;; RUN: foreach %s %t wasm-opt --inlining --all-features -S -o - | filecheck %s + +(module + ;; CHECK: (type $0 (func)) + + ;; CHECK: (start $2) + (start $2) + + (func $0 + ;;@ foo.cpp:1:2 + (nop) + ) + + (func $1 + ;;@ bar.cpp:3:4:MyFunction + (nop) + ) + + ;; CHECK: (func $2 (type $0) + ;; CHECK-NEXT: (block $__inlined_func$0 + ;; CHECK-NEXT: ;;@ foo.cpp:1:2 + ;; CHECK-NEXT: (nop) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ;;@ + ;; CHECK-NEXT: (block $__inlined_func$1$1 + ;; CHECK-NEXT: ;;@ bar.cpp:3:4:MyFunction + ;; CHECK-NEXT: (nop) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + (func $2 + (call $0) + (call $1) + ) +) |