Move `RET_AREA` variables onto the stack for import bindings.
Move `RET_AREA` variables out of static memory and onto the stack, for
import bindings.
This makes it easier to use wit-bindgen to generate polyfill modules
that import their linear memory.
@@ -1114,7 +1114,7 @@ impl<'a, B: Bindgen> Generator<'a, B> {
.record(func.params.iter().map(|t| &t.1));
let ptr = match self.variant {
// When a wasm module calls an import it will provide
- // static space that isn't dynamically allocated.
+ // space that isn't explicitly deallocated.
AbiVariant::GuestImport => {
self.bindgen.return_pointer(self.iface, size, align)
}
