fix(singlepass-backend) Use wasmparser from runtime-core.

The `wasmer-runtime-core` crate re-exports the `wasmparser`
crate. This patch updates the `singlepass-backend` crate to use
`wasmparser` through the `wasmer-runtime-core` crate, which removes a
direct dependency for this crate.
This commit is contained in:
Ivan Enderlin
2019-10-18 11:09:58 +02:00
parent 8c308d055b
commit e559b54309
4 changed files with 7 additions and 10 deletions

View File

@ -1,15 +1,13 @@
#![allow(clippy::forget_copy)] // Used by dynasm.
#![warn(unused_imports)]
use crate::emitter_x64::*;
use crate::machine::*;
use crate::protect_unix;
use crate::{emitter_x64::*, machine::*, protect_unix};
use dynasmrt::{x64::Assembler, AssemblyOffset, DynamicLabel, DynasmApi, DynasmLabelApi};
use smallvec::SmallVec;
use std::ptr::NonNull;
use std::{
any::Any,
collections::{BTreeMap, HashMap},
ptr::NonNull,
sync::{Arc, RwLock},
};
use wasmer_runtime_core::{
@ -33,8 +31,8 @@ use wasmer_runtime_core::{
TableIndex, Type,
},
vm::{self, LocalGlobal, LocalTable, INTERNALS_SIZE},
wasmparser::{MemoryImmediate, Operator, Type as WpType, TypeOrFuncType as WpTypeOrFuncType},
};
use wasmparser::{MemoryImmediate, Operator, Type as WpType, TypeOrFuncType as WpTypeOrFuncType};
lazy_static! {
/// Performs a System V call to `target` with [stack_top..stack_base] as the argument list, from right to left.