Remove Backend dependency

This commit is contained in:
Syrus
2019-12-20 20:11:56 -08:00
parent d4e964519d
commit d7154fe791
15 changed files with 127 additions and 64 deletions

View File

@ -23,7 +23,7 @@ use std::{
use wasmer_runtime_core::{
backend::{
sys::{Memory, Protect},
Architecture, Backend, CacheGen, CompilerConfig, InlineBreakpoint, InlineBreakpointType,
Architecture, CacheGen, CompilerConfig, InlineBreakpoint, InlineBreakpointType,
MemoryBoundCheckMode, RunnableModule, Token,
},
cache::{Artifact, Error as CacheError},
@ -647,10 +647,14 @@ impl ModuleCodeGenerator<X64FunctionCode, X64ExecutionContext, CodegenError>
}
/// Singlepass does validation as it compiles
fn requires_pre_validation(&self) -> bool {
fn requires_pre_validation() -> bool {
false
}
fn backend_id() -> String {
"singlepass".to_string()
}
fn new_with_target(_: Option<String>, _: Option<String>, _: Option<String>) -> Self {
unimplemented!("cross compilation is not available for singlepass backend")
}