From ed3bf4f0613a66496342720d82f4100eccf39403 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 20 Jan 2023 10:37:36 -0800 Subject: 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. --- test/lit/help/wasm-split.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/lit/help/wasm-split.test') 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 -- cgit v1.2.3