summaryrefslogtreecommitdiff
path: root/test/lit/help/wasm-split.test
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-02-09 13:15:52 -0800
committerGitHub <noreply@github.com>2022-02-09 13:15:52 -0800
commit2651ffb1cbf6c8b874f4c2bc611d1a9e875724d7 (patch)
tree226575041a8e02a1fcd4b816e648921a9f0dfa85 /test/lit/help/wasm-split.test
parent0f5f7208bf6d8f7c882b1e8033fda26c1203550b (diff)
downloadbinaryen-2651ffb1cbf6c8b874f4c2bc611d1a9e875724d7.tar.gz
binaryen-2651ffb1cbf6c8b874f4c2bc611d1a9e875724d7.tar.bz2
binaryen-2651ffb1cbf6c8b874f4c2bc611d1a9e875724d7.zip
[wasm-split] Add an --asyncify option (#4513)
Add an option for running the asyncify transformation on the primary module emitted by wasm-split. The idea is that the placeholder functions should be able to unwind the stack while the secondary module is asynchronously loaded, then once the placeholder functions have been patched out by the secondary module the stack should be rewound and end up in the correct secondary function.
Diffstat (limited to 'test/lit/help/wasm-split.test')
-rw-r--r--test/lit/help/wasm-split.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit/help/wasm-split.test b/test/lit/help/wasm-split.test
index cd275c79f..6319f475f 100644
--- a/test/lit/help/wasm-split.test
+++ b/test/lit/help/wasm-split.test
@@ -59,6 +59,11 @@
;; CHECK-NEXT: import placeholder functions into the
;; CHECK-NEXT: primary module.
;; CHECK-NEXT:
+;; CHECK-NEXT: --asyncify [split] Transform the module to support
+;; CHECK-NEXT: unwinding the stack from placeholder
+;; CHECK-NEXT: functions and rewinding it once the
+;; CHECK-NEXT: secondary module has been loaded.
+;; CHECK-NEXT:
;; CHECK-NEXT: --export-prefix [split] An identifying prefix to prepend
;; CHECK-NEXT: to new export names created by module
;; CHECK-NEXT: splitting.