Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use wasmtime on x86_64 #367

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix build
tomaka committed Apr 7, 2020
commit 0042a2af50d97adf2d39018563a33c51b1ad177d
6 changes: 3 additions & 3 deletions core/src/scheduler/vm/jit.rs
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
// TODO: everything here is unsafe and prototipal

use super::{ExecOutcome, NewErr, RunErr, StartErr};
use crate::module::Module;
use crate::{WasmValue, module::Module};

use alloc::{
borrow::{Cow, ToOwned as _},
@@ -141,7 +141,7 @@ impl<T> Jit<T> {
pub fn start_thread_by_id(
&mut self,
_: u32,
_: impl Into<Cow<'static, [wasmi::RuntimeValue]>>,
_: impl IntoIterator<Item = WasmValue>,
_: T,
) -> Result<Thread<T>, StartErr> {
unimplemented!()
@@ -210,7 +210,7 @@ impl<'a, T> Thread<'a, T> {
/// a value of `None`.
/// If, however, you call this function after a previous call to [`run`](Thread::run) that was
/// interrupted by an external function call, then you must pass back the outcome of that call.
pub fn run(mut self, value: Option<wasmi::RuntimeValue>) -> Result<ExecOutcome<'a, T>, RunErr> {
pub fn run(mut self, value: Option<WasmValue>) -> Result<ExecOutcome<'a, T>, RunErr> {
if self.vm.main_thread.is_finished() {
return Err(RunErr::Poisoned)
}