Save exit Wasm FP and PC in component-to-host trampolines (#4601)
* Wasmtime: Add a pointer to `VMRuntimeLimits` in component contexts * Save exit Wasm FP and PC in component-to-host trampolines Fixes #4535 * Add comment about why we deref the trampoline's FP * Update some tests to use new `vmruntime_limits_*` methods
This commit is contained in:
@@ -426,6 +426,12 @@ impl From<i32> for Offset32 {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<u8> for Offset32 {
|
||||
fn from(val: u8) -> Offset32 {
|
||||
Self(val.into())
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Offset32 {
|
||||
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
||||
// 0 displays as an empty offset.
|
||||
|
||||
Reference in New Issue
Block a user