mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 21:28:21 +00:00
Renamed wasmer_runtime to wasmer_vm
This commit is contained in:
@@ -13,7 +13,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
wasmer-compiler = { path = "../compiler", version = "1.0.0-alpha.1", features = ["translator"], default-features = false }
|
||||
wasmer-runtime = { path = "../runtime", version = "1.0.0-alpha.1" }
|
||||
wasmer-vm = { path = "../vm", version = "1.0.0-alpha.1" }
|
||||
wasm-common = { path = "../wasm-common", version = "1.0.0-alpha.1", default-features = false }
|
||||
cranelift-codegen = { version = "0.65", default-features = false }
|
||||
cranelift-frontend = { version = "0.65", default-features = false }
|
||||
|
||||
@@ -219,7 +219,7 @@ impl Compiler for CraneliftCompiler {
|
||||
.into_iter()
|
||||
.collect::<PrimaryMap<SignatureIndex, FunctionBody>>();
|
||||
|
||||
use wasmer_runtime::VMOffsets;
|
||||
use wasmer_vm::VMOffsets;
|
||||
let offsets = VMOffsets::new_for_trampolines(frontend_config.pointer_bytes());
|
||||
// dynamic function trampolines (only for imported functions)
|
||||
let dynamic_function_trampolines = module
|
||||
|
||||
@@ -16,9 +16,9 @@ use wasm_common::entity::EntityRef;
|
||||
use wasm_common::entity::PrimaryMap;
|
||||
use wasm_common::{FunctionIndex, GlobalIndex, MemoryIndex, SignatureIndex, TableIndex};
|
||||
use wasmer_compiler::{WasmError, WasmResult};
|
||||
use wasmer_runtime::VMBuiltinFunctionIndex;
|
||||
use wasmer_runtime::VMOffsets;
|
||||
use wasmer_runtime::{MemoryStyle, ModuleInfo, TableStyle};
|
||||
use wasmer_vm::VMBuiltinFunctionIndex;
|
||||
use wasmer_vm::VMOffsets;
|
||||
use wasmer_vm::{MemoryStyle, ModuleInfo, TableStyle};
|
||||
|
||||
/// Compute an `ir::ExternalName` for a given wasm function index.
|
||||
pub fn get_func_name(func_index: FunctionIndex) -> ir::ExternalName {
|
||||
|
||||
@@ -6,7 +6,7 @@ use cranelift_codegen::ir::{self, ExternalName};
|
||||
use wasm_common::entity::EntityRef;
|
||||
use wasm_common::{FunctionIndex, LocalFunctionIndex};
|
||||
use wasmer_compiler::{JumpTable, Relocation, RelocationTarget, SourceLoc, TrapInformation};
|
||||
use wasmer_runtime::{ModuleInfo, TrapCode};
|
||||
use wasmer_vm::{ModuleInfo, TrapCode};
|
||||
|
||||
/// Implementation of a relocation sink that just saves all the information for later
|
||||
pub(crate) struct RelocSink<'a> {
|
||||
|
||||
@@ -18,7 +18,7 @@ use std::mem;
|
||||
use cranelift_frontend::{FunctionBuilder, FunctionBuilderContext};
|
||||
use wasm_common::FunctionType;
|
||||
use wasmer_compiler::{CompileError, FunctionBody};
|
||||
use wasmer_runtime::VMOffsets;
|
||||
use wasmer_vm::VMOffsets;
|
||||
|
||||
/// Create a trampoline for invoking a WebAssembly function.
|
||||
pub fn make_trampoline_dynamic_function(
|
||||
|
||||
@@ -13,7 +13,7 @@ use wasmer_compiler::wasm_unsupported;
|
||||
use wasmer_compiler::wasmparser;
|
||||
use wasmer_compiler::{JumpTable, RelocationKind};
|
||||
use wasmer_compiler::{WasmError, WasmResult};
|
||||
use wasmer_runtime::libcalls::LibCall;
|
||||
use wasmer_vm::libcalls::LibCall;
|
||||
|
||||
/// Helper function translate a Function signature into Cranelift Ir
|
||||
pub fn signature_to_cranelift_ir(
|
||||
|
||||
Reference in New Issue
Block a user