add 'ProtectedCaller' to runtime

This commit is contained in:
Lachlan Sneff
2019-01-18 12:13:01 -08:00
parent ed87168c48
commit 705708cafe
6 changed files with 183 additions and 81 deletions

View File

@ -12,7 +12,7 @@ use cranelift_codegen::{
};
use target_lexicon::Triple;
use wasmer_runtime::{
backend::Compiler,
backend::{Compiler, Token},
error::{CompileError, CompileResult},
module::ModuleInner,
};
@ -28,7 +28,7 @@ impl CraneliftCompiler {
impl Compiler for CraneliftCompiler {
// Compiles wasm binary to a wasmer module.
fn compile(&self, wasm: &[u8]) -> CompileResult<ModuleInner> {
fn compile(&self, wasm: &[u8], _: Token) -> CompileResult<ModuleInner> {
validate(wasm)?;
let isa = get_isa();