Skip to content

Commit

Permalink
Update for Wasmtime changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 13, 2024
1 parent 729d00d commit babdab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cranelift/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ fn save_last_wasm_exit_fp_and_pc(
);
builder
.ins()
.trapnz(is_overflow, ir::TrapCode::StackOverflow);
.trapnz(is_overflow, ir::TrapCode::STACK_OVERFLOW);

// Save the exit Wasm FP to the limits. We dereference the current FP to get
// the previous FP because the current FP is the trampoline's FP, and we
Expand Down
1 change: 1 addition & 0 deletions crates/wasmtime/src/runtime/vm/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ impl InterpreterRef<'_> {
let regs = TrapRegisters {
pc: pc.as_ptr() as usize,
fp: self.0[XReg::fp].get_ptr::<u8>() as usize,
sp: self.0[XReg::sp].get_ptr::<u8>() as usize,
};
tls::with(|s| {
let s = s.unwrap();
Expand Down

0 comments on commit babdab0

Please sign in to comment.