summaryrefslogtreecommitdiff
path: root/test/lit/help
diff options
context:
space:
mode:
authorBrendan Dahl <brendan.dahl@gmail.com>2022-09-02 15:21:43 -0700
committerGitHub <noreply@github.com>2022-09-02 15:21:43 -0700
commit31f1ba707a27f3000cecba87926980238f82414a (patch)
tree93dbecdab9134e0ee4baae4ab4d2bd8a95d3b855 /test/lit/help
parentf058bb53b3d8977f800894d305b7f537b9aff3d5 (diff)
downloadbinaryen-31f1ba707a27f3000cecba87926980238f82414a.tar.gz
binaryen-31f1ba707a27f3000cecba87926980238f82414a.tar.bz2
binaryen-31f1ba707a27f3000cecba87926980238f82414a.zip
Add JavaScript promise integration (JSPI) pass. (#4961)
Add a pass that wraps all imports and exports with functions that handle storing and passing along the suspender externref needed for JSPI. https://github.com/WebAssembly/js-promise-integration/blob/main/proposals/js-promise-integration/Overview.md
Diffstat (limited to 'test/lit/help')
-rw-r--r--test/lit/help/wasm-opt.test3
-rw-r--r--test/lit/help/wasm2js.test3
2 files changed, 6 insertions, 0 deletions
diff --git a/test/lit/help/wasm-opt.test b/test/lit/help/wasm-opt.test
index b2ac0c7f5..9af51001d 100644
--- a/test/lit/help/wasm-opt.test
+++ b/test/lit/help/wasm-opt.test
@@ -206,6 +206,9 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --intrinsic-lowering lower away binaryen intrinsics
;; CHECK-NEXT:
+;; CHECK-NEXT: --jspi wrap imports and exports for
+;; CHECK-NEXT: JavaScript promise integration
+;; CHECK-NEXT:
;; CHECK-NEXT: --legalize-js-interface legalizes i64 types on the
;; CHECK-NEXT: import/export boundary
;; CHECK-NEXT:
diff --git a/test/lit/help/wasm2js.test b/test/lit/help/wasm2js.test
index f70f7d6ef..ef32a87a1 100644
--- a/test/lit/help/wasm2js.test
+++ b/test/lit/help/wasm2js.test
@@ -165,6 +165,9 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --intrinsic-lowering lower away binaryen intrinsics
;; CHECK-NEXT:
+;; CHECK-NEXT: --jspi wrap imports and exports for
+;; CHECK-NEXT: JavaScript promise integration
+;; CHECK-NEXT:
;; CHECK-NEXT: --legalize-js-interface legalizes i64 types on the
;; CHECK-NEXT: import/export boundary
;; CHECK-NEXT: