A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Fix x-register argument count in Pulley VM to match ABI (#12359)
Zijie Zhaofef94a7e9606
diff --git a/pulley/src/interp.rs b/pulley/src/interp.rsindex 3b72697b3d..ec076e6422 100644--- a/pulley/src/interp.rs+++ b/pulley/src/interp.rs@@ -111,7 +111,7 @@ impl Vm {// NB: make sure this method stays in sync with// `PulleyMachineDeps::compute_arg_locs`!- let mut x_args = (0..16).map(|x| unsafe { XReg::new_unchecked(x) });+ let mut x_args = (0..15).map(|x| unsafe { XReg::new_unchecked(x) });let mut f_args = (0..16).map(|f| unsafe { FReg::new_unchecked(f) });#[cfg(not(pulley_disable_interp_simd))]let mut v_args = (0..16).map(|v| unsafe { VReg::new_unchecked(v) });