* Replace the global-exports mechanism with a caller-vmctx mechanism. This eliminates the global exports mechanism, and instead adds a caller-vmctx argument to wasm functions so that WASI can obtain the memory and other things from the caller rather than looking them up in a global registry. This replaces #390. * Fixup some merge conflicts * Rustfmt * Ensure VMContext is aligned to 16 bytes With the removal of `global_exports` it "just so happens" that this isn't happening naturally any more. * Fixup some bugs with double vmctx in wasmtime crate * Trampoline stub needed adjusting * Use pointer type instead of always using I64 for caller vmctx * Don't store `ir::Signature` in `Func` since we don't know the pointer size at creation time. * Skip the first 2 arguments in IR signatures since that's the two vmctx parameters. * Update cranelift to 0.56.0 * Handle more merge conflicts * Rustfmt Co-authored-by: Alex Crichton <alex@alexcrichton.com>
25 lines
777 B
Bash
Executable File
25 lines
777 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# This is a convenience script for maintainers changing a cranelift
|
|
# dependencies versions. To use, bump the version number below, run the
|
|
# script.
|
|
|
|
topdir=$(dirname "$0")/..
|
|
cd "$topdir"
|
|
|
|
# All the cranelift-* crates have the same version number
|
|
version="0.56"
|
|
|
|
# Update all of the Cargo.toml files.
|
|
echo "Updating crate versions to $version"
|
|
for toml in Cargo.toml crates/*/Cargo.toml crates/misc/*/Cargo.toml fuzz/Cargo.toml; do
|
|
# Update the version number of this crate to $version.
|
|
sed -i.bk -e "/^cranelift-/s/\"[^\"]*\"/\"$version\"/" \
|
|
"$toml"
|
|
|
|
# Update the required version number of any cranelift* dependencies.
|
|
sed -i.bk -e "/^cranelift-/s/version = \"[^\"]*\"/version = \"$version\"/" \
|
|
"$toml"
|
|
done
|