Renamed wasmer_runtime to wasmer_vm

This commit is contained in:
Syrus
2020-07-07 21:26:06 -07:00
parent 69aea929c5
commit 92f8651312
80 changed files with 107 additions and 109 deletions

View File

@@ -16,7 +16,7 @@ use crate::externals::function::{
use crate::{FromToNativeWasmType, Function, FunctionType, RuntimeError, Store, WasmTypeList};
use std::panic::{catch_unwind, AssertUnwindSafe};
use wasm_common::NativeWasmType;
use wasmer_runtime::{
use wasmer_vm::{
ExportFunction, VMContext, VMDynamicFunctionContext, VMFunctionBody, VMFunctionKind,
};
@@ -123,7 +123,7 @@ macro_rules! impl_native_traits {
rets_list.as_mut()
};
unsafe {
wasmer_runtime::wasmer_call_trampoline(
wasmer_vm::wasmer_call_trampoline(
self.vmctx,
trampoline,
self.address,
@@ -147,7 +147,7 @@ macro_rules! impl_native_traits {
// but we can't currently detect whether that's safe.
//
// let results = unsafe {
// wasmer_runtime::catch_traps_with_result(self.vmctx, || {
// wasmer_vm::catch_traps_with_result(self.vmctx, || {
// let f = std::mem::transmute::<_, unsafe extern "C" fn( *mut VMContext, $( $x, )*) -> Rets::CStruct>(self.address);
// // We always pass the vmctx
// f( self.vmctx, $( $x, )* )