Add missing trait items to DynasmCompiler so that cargo build --all works

This commit is contained in:
Brandon Fish
2019-03-12 19:39:10 -05:00
parent c3b0bd76a1
commit 1fc7b31309

View File

@ -20,7 +20,8 @@ use crate::codegen::{CodegenError, ModuleCodeGenerator};
use crate::parse::LoadError; use crate::parse::LoadError;
use std::ptr::NonNull; use std::ptr::NonNull;
use wasmer_runtime_core::{ use wasmer_runtime_core::{
backend::{Backend, Compiler, FuncResolver, ProtectedCaller, Token, UserTrapper}, backend::{sys::Memory, Backend, Compiler, FuncResolver, ProtectedCaller, Token, UserTrapper},
cache::{Cache, Error as CacheError},
error::{CompileError, CompileResult, RuntimeResult}, error::{CompileError, CompileResult, RuntimeResult},
module::{ModuleInfo, ModuleInner, StringTable}, module::{ModuleInfo, ModuleInner, StringTable},
structures::{Map, TypedIndex}, structures::{Map, TypedIndex},
@ -56,6 +57,18 @@ impl Compiler for SinglePassCompiler {
info: info, info: info,
}) })
} }
unsafe fn from_cache(&self, cache: Cache, _: Token) -> Result<ModuleInner, CacheError> {
unimplemented!()
}
fn compile_to_backend_cache_data(
&self,
wasm: &[u8],
_: Token,
) -> CompileResult<(Box<ModuleInfo>, Vec<u8>, Memory)> {
unimplemented!()
}
} }
impl From<CodegenError> for CompileError { impl From<CodegenError> for CompileError {