Rename wasmtime-runtime to wasmtime-environ.

This mirrors changes in cranelift.
This commit is contained in:
Dan Gohman
2018-08-03 15:20:19 -07:00
parent b8daa27884
commit 548c45c604
18 changed files with 38 additions and 37 deletions

View File

@@ -3,7 +3,7 @@ name = "wasmtime-execute"
version = "0.0.0"
authors = ["The Cranelift Project Developers"]
publish = false
description = "JIT-style runtime support for WebAsssembly code in Cranelift"
description = "JIT-style execution for WebAsssembly code in Cranelift"
repository = "https://github.com/sunfishcode/wasmtime"
license = "Apache-2.0 WITH LLVM-exception"
@@ -11,4 +11,4 @@ license = "Apache-2.0 WITH LLVM-exception"
cranelift-codegen = "0.18.1"
cranelift-wasm = "0.18.1"
region = "0.3.0"
wasmtime-runtime = { path = "../runtime" }
wasmtime-environ = { path = "../environ" }

View File

@@ -5,9 +5,10 @@ use region::protect;
use region::Protection;
use std::mem::transmute;
use std::ptr::write_unaligned;
use wasmtime_runtime::{compile_module, Compilation, Module, ModuleTranslation, Relocation};
use wasmtime_environ::{compile_module, Compilation, Module, ModuleTranslation, Relocation};
/// Executes a module that has been translated with the `standalone::Runtime` runtime implementation.
/// Executes a module that has been translated with the `wasmtime-environ` environment
/// implementation.
pub fn compile_and_link_module<'data, 'module>(
isa: &TargetIsa,
translation: &ModuleTranslation<'data, 'module>,
@@ -56,7 +57,7 @@ fn relocate(compilation: &mut Compilation, relocations: &[Vec<Relocation>]) {
}
/// Create the VmCtx data structure for the JIT'd code to use. This must
/// match the VmCtx layout in the runtime.
/// match the VmCtx layout in the environment.
fn make_vmctx(instance: &mut Instance) -> Vec<*mut u8> {
let mut memories = Vec::new();
let mut vmctx = Vec::new();

View File

@@ -3,7 +3,7 @@
use cranelift_codegen::ir;
use cranelift_wasm::GlobalIndex;
use wasmtime_runtime::{DataInitializer, Module, TableElements};
use wasmtime_environ::{DataInitializer, Module, TableElements};
const PAGE_SIZE: usize = 65536;

View File

@@ -15,7 +15,7 @@
extern crate cranelift_codegen;
extern crate cranelift_wasm;
extern crate region;
extern crate wasmtime_runtime;
extern crate wasmtime_environ;
mod execute;
mod instance;