diff options
author | Brendan Dahl <brendan.dahl@gmail.com> | 2023-01-20 10:37:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 10:37:36 -0800 |
commit | ed3bf4f0613a66496342720d82f4100eccf39403 (patch) | |
tree | 0b779ca1a4b8f92bd9905ccb860eb7c8e1296ed2 /test/lit/help/wasm-split.test | |
parent | 992584fadfdd1714aeb8ff64e7e8cd7ca3ff3326 (diff) | |
download | binaryen-ed3bf4f0613a66496342720d82f4100eccf39403.tar.gz binaryen-ed3bf4f0613a66496342720d82f4100eccf39403.tar.bz2 binaryen-ed3bf4f0613a66496342720d82f4100eccf39403.zip |
Support using JSPI to load the secondary wasm split module. (#5431)
When using JSPI with wasm-split, any calls to secondary module functions
will now first check a global to see if the module is loaded. If not
loaded it will call a JSPI'ed function that will handle loading module.
The setup is split into the JSPI pass and wasm-split tool since the JSPI
pass is first run by emscripten and we need to JSPI'ify the load secondary
module function. wasm-split then injects all the checks and calls to the
load function.
Diffstat (limited to 'test/lit/help/wasm-split.test')
-rw-r--r-- | test/lit/help/wasm-split.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lit/help/wasm-split.test b/test/lit/help/wasm-split.test index 118117d62..e0cdf3ca4 100644 --- a/test/lit/help/wasm-split.test +++ b/test/lit/help/wasm-split.test @@ -66,10 +66,10 @@ ;; 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: --jspi [split] Transform the module to support +;; CHECK-NEXT: asynchronously loading the secondary +;; CHECK-NEXT: module before any placeholder functions +;; CHECK-NEXT: have been called. ;; CHECK-NEXT: ;; CHECK-NEXT: --export-prefix [split] An identifying prefix to prepend ;; CHECK-NEXT: to new export names created by module |