Skip to content

Commit babdab0

Browse files
committed
Update for Wasmtime changes.
1 parent 729d00d commit babdab0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/cranelift/src/compiler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ fn save_last_wasm_exit_fp_and_pc(
11351135
);
11361136
builder
11371137
.ins()
1138-
.trapnz(is_overflow, ir::TrapCode::StackOverflow);
1138+
.trapnz(is_overflow, ir::TrapCode::STACK_OVERFLOW);
11391139

11401140
// Save the exit Wasm FP to the limits. We dereference the current FP to get
11411141
// the previous FP because the current FP is the trampoline's FP, and we

crates/wasmtime/src/runtime/vm/interpreter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ impl InterpreterRef<'_> {
129129
let regs = TrapRegisters {
130130
pc: pc.as_ptr() as usize,
131131
fp: self.0[XReg::fp].get_ptr::<u8>() as usize,
132+
sp: self.0[XReg::sp].get_ptr::<u8>() as usize,
132133
};
133134
tls::with(|s| {
134135
let s = s.unwrap();

0 commit comments

Comments
 (0)