summaryrefslogtreecommitdiffstats
path: root/js/src/wasm/WasmBuiltinModule.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/wasm/WasmBuiltinModule.yaml')
-rw-r--r--js/src/wasm/WasmBuiltinModule.yaml68
1 files changed, 64 insertions, 4 deletions
diff --git a/js/src/wasm/WasmBuiltinModule.yaml b/js/src/wasm/WasmBuiltinModule.yaml
index 755e0e5e74..eb04ecc7cf 100644
--- a/js/src/wasm/WasmBuiltinModule.yaml
+++ b/js/src/wasm/WasmBuiltinModule.yaml
@@ -285,7 +285,9 @@
export: fromCharCode
params:
- 'i32'
- result: 'externref'
+ result:
+ code: 'extern'
+ nullable: false
fail_mode: FailOnNullPtr
uses_memory: false
@@ -297,7 +299,9 @@
export: fromCodePoint
params:
- 'i32'
- result: 'externref'
+ result:
+ code: 'extern'
+ nullable: false
fail_mode: FailOnNullPtr
uses_memory: false
@@ -348,7 +352,9 @@
params:
- 'externref'
- 'externref'
- result: 'externref'
+ result:
+ code: 'extern'
+ nullable: false
fail_mode: FailOnNullPtr
uses_memory: false
@@ -362,7 +368,9 @@
- 'externref'
- 'i32'
- 'i32'
- result: 'externref'
+ result:
+ code: 'extern'
+ nullable: false
fail_mode: FailOnNullPtr
uses_memory: false
@@ -393,3 +401,55 @@
uses_memory: false
#endif // ENABLE_WASM_JS_STRING_BUILTINS
+
+#if defined(ENABLE_WASM_JSPI)
+
+- op: CheckSuspender
+ symbolic_address:
+ name: CheckSuspender
+ type: Args_General2
+ entry: CheckSuspender
+ export: suspenderCheck
+ params:
+ - 'externref'
+ result: 'externref'
+ fail_mode: FailOnNullPtr
+ uses_memory: false
+
+- op: CurrentSuspender
+ symbolic_address:
+ name: CurrentSuspender
+ type: Args_General_GeneralInt32
+ entry: CurrentSuspender
+ export: currentSuspender
+ params:
+ - 'i32'
+ result: 'externref'
+ fail_mode: FailOnNullPtr
+ uses_memory: false
+
+- op: GetSuspendingPromiseResult
+ symbolic_address:
+ name: GetSuspendingPromiseResult
+ type: Args_General2
+ entry: GetSuspendingPromiseResult
+ export: getSuspendingPromiseResult
+ params:
+ - 'externref'
+ result: 'anyref'
+ fail_mode: FailOnNullPtr
+ uses_memory: false
+
+- op: SetPromisingPromiseResults
+ symbolic_address:
+ name: SetPromisingPromiseResults
+ type: Args_Int32_GeneralGeneralGeneral
+ entry: SetPromisingPromiseResults
+ export: setPromisingPromiseResults
+ params:
+ - 'externref'
+ - 'anyref'
+ fail_mode: FailOnNegI32
+ uses_memory: false
+
+#endif // ENABLE_WASM_JSPI