Rename to wasmtime. It's wasmtime!

Also, update to Cretonne 0.13.0.
This commit is contained in:
Dan Gohman
2018-07-02 16:20:22 -07:00
parent 73639e4557
commit c612d48b33
14 changed files with 87 additions and 78 deletions

View File

@@ -5,8 +5,8 @@ extern crate libfuzzer_sys;
extern crate cretonne;
extern crate cton_wasm;
extern crate cton_native;
extern crate wasmstandalone_runtime;
extern crate wasmstandalone_execute;
extern crate wasmtime_runtime;
extern crate wasmtime_execute;
use cretonne::settings;
use cton_wasm::translate_module;
@@ -16,12 +16,12 @@ fuzz_target!(|data: &[u8]| {
panic!("host machine is not a supported target");
});
let isa = isa_builder.finish(settings::Flags::new(&flag_builder));
let mut runtime = wasmstandalone_runtime::Runtime::with_flags(isa.flags().clone());
let mut runtime = wasmtime_runtime::Runtime::with_flags(isa.flags().clone());
let translation = match translate_module(&data, &mut runtime) {
Ok(x) => x,
Err(_) => return,
};
let _exec = match wasmstandalone_execute::compile_module(&translation, &*isa, &runtime) {
let _exec = match wasmtime_execute::compile_module(&translation, &*isa, &runtime) {
Ok(x) => x,
Err(_) => return,
};