Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/wasmtime/src/runtime/vm/component/libcalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ unsafe impl HostResultHasUnwindSentinel for ResourcePair {
const SENTINEL: u64 = u64::MAX;

fn into_abi(self) -> Self::Abi {
assert!(self.read & (1 << 31) == 0);
(u64::from(self.read) << 32) | u64::from(self.write)
assert!(self.write & (1 << 31) == 0);
(u64::from(self.write) << 32) | u64::from(self.read)
}
}

Expand Down
8 changes: 4 additions & 4 deletions tests/misc_testsuite/component-model-async/future-read.wast
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
(import "" "child-run" (func $child-run (param i32)))

(func (export "run")
(call $child-run (i32.wrap_i64 (i64.shr_u (call $new) (i64.const 32))))
(call $child-run (i32.wrap_i64 (call $new)))
)
)
(core instance $i (instantiate $m
Expand Down Expand Up @@ -91,7 +91,7 @@
(import "" "child-run" (func $child-run (param i32)))

(func (export "run")
(call $child-run (i32.wrap_i64 (i64.shr_u (call $new) (i64.const 32))))
(call $child-run (i32.wrap_i64 (call $new)))
)
)
(core instance $i (instantiate $m
Expand Down Expand Up @@ -147,7 +147,7 @@
(import "" "child-run" (func $child-run (param i32)))

(func (export "run")
(call $child-run (i32.wrap_i64 (i64.shr_u (call $new) (i64.const 32))))
(call $child-run (i32.wrap_i64 (call $new)))
)
)
(core instance $i (instantiate $m
Expand Down Expand Up @@ -207,7 +207,7 @@
(import "" "child-run" (func $child-run (param i32)))

(func (export "run")
(call $child-run (i32.wrap_i64 (i64.shr_u (call $new) (i64.const 32))))
(call $child-run (i32.wrap_i64 (call $new)))
)
)
(core instance $i (instantiate $m
Expand Down