Skip to content

Commit

Permalink
support callback-less (AKA stackful) async lifts
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Dec 9, 2024
1 parent d3afd51 commit 1e71a49
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions crates/core/src/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,9 @@ impl<'a, B: Bindgen> Generator<'a, B> {
});
self.stack.pop().unwrap()
}
AbiVariant::GuestImportAsync | AbiVariant::GuestExportAsync => {
AbiVariant::GuestImportAsync
| AbiVariant::GuestExportAsync
| AbiVariant::GuestExportAsyncStackful => {
unreachable!()
}
};
Expand Down Expand Up @@ -1037,7 +1039,9 @@ impl<'a, B: Bindgen> Generator<'a, B> {
// the result is stored
AbiVariant::GuestExport => self.stack.pop().unwrap(),

AbiVariant::GuestImportAsync | AbiVariant::GuestExportAsync => {
AbiVariant::GuestImportAsync
| AbiVariant::GuestExportAsync
| AbiVariant::GuestExportAsyncStackful => {
unreachable!()
}
};
Expand Down Expand Up @@ -1175,7 +1179,9 @@ impl<'a, B: Bindgen> Generator<'a, B> {
self.stack.push(ptr);
}

AbiVariant::GuestImportAsync | AbiVariant::GuestExportAsync => {
AbiVariant::GuestImportAsync
| AbiVariant::GuestExportAsync
| AbiVariant::GuestExportAsyncStackful => {
unreachable!()
}
}
Expand Down

0 comments on commit 1e71a49

Please sign in to comment.