Skip to content

Commit 2971c87

Browse files
committed
post-merge fixes
1 parent f48361a commit 2971c87

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

crates/cranelift/src/stack_switching/instructions.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,11 +1183,11 @@ pub(crate) mod stack_switching_helpers {
11831183
env.offsets.ptr.vmstack_limits_last_wasm_entry_fp() as i32;
11841184
copy_to_vm_runtime_limits(
11851185
stack_limit_offset,
1186-
pointer_size.vmruntime_limits_stack_limit(),
1186+
pointer_size.vmstore_context_stack_limit(),
11871187
);
11881188
copy_to_vm_runtime_limits(
11891189
last_wasm_entry_fp_offset,
1190-
pointer_size.vmruntime_limits_last_wasm_entry_fp(),
1190+
pointer_size.vmstore_context_last_wasm_entry_fp(),
11911191
);
11921192
}
11931193

@@ -1226,14 +1226,14 @@ pub(crate) mod stack_switching_helpers {
12261226
let last_wasm_entry_fp_offset =
12271227
env.offsets.ptr.vmstack_limits_last_wasm_entry_fp() as i32;
12281228
copy(
1229-
pointer_size.vmruntime_limits_last_wasm_entry_fp(),
1229+
pointer_size.vmstore_context_last_wasm_entry_fp(),
12301230
last_wasm_entry_fp_offset,
12311231
);
12321232

12331233
if load_stack_limit {
12341234
let stack_limit_offset = env.offsets.ptr.vmstack_limits_stack_limit() as i32;
12351235
copy(
1236-
pointer_size.vmruntime_limits_stack_limit(),
1236+
pointer_size.vmstore_context_stack_limit(),
12371237
stack_limit_offset,
12381238
);
12391239
}

crates/wasmtime/src/runtime/func.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::prelude::*;
22
use crate::runtime::vm::stack_switching::VMCommonStackInformation;
33
use crate::runtime::vm::{
44
ExportFunction, InterpreterRef, SendSyncPtr, StoreBox, VMArrayCallHostFuncContext, VMContext,
5-
VMFuncRef, VMFunctionImport, VMOpaqueContext, VMRuntimeLimits,
5+
VMFuncRef, VMFunctionImport, VMOpaqueContext, VMStoreContext,
66
};
77
use crate::runtime::Uninhabited;
88
use crate::store::{AutoAssertNoGc, StoreData, StoreOpaque, Stored};

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,11 @@ mod call_thread_state {
469469
pub const JMP_BUF_INTERPRETER_SENTINEL: *mut u8 = 1 as *mut u8;
470470

471471
#[inline]
472-
pub(super) fn new(store: &mut StoreOpaque, caller: NonNull<VMContext>, old_state: *const RuntimeEntryState) -> CallThreadState {
472+
pub(super) fn new(
473+
store: &mut StoreOpaque,
474+
caller: NonNull<VMContext>,
475+
old_state: *const RuntimeEntryState,
476+
) -> CallThreadState {
473477
let vm_store_context = unsafe {
474478
Instance::from_vmctx(caller, |i| i.vm_store_context())
475479
.read()

0 commit comments

Comments
 (0)