Improved metering codebase

This commit is contained in:
Syrus 2019-07-31 21:20:39 -07:00
parent 9efaaab0bf
commit 5e7a20ef94
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ jobs:
make check make check
make compile-bench-singlepass make compile-bench-singlepass
make compile-bench-llvm make compile-bench-llvm
# TODO: add compile-bench-clif when they work # TODO: add compile-bench-clif when it works
- run: - run:
name: Integration Tests name: Integration Tests
command: make integration-tests command: make integration-tests

View File

@ -138,9 +138,9 @@ mod tests {
#[cfg(feature = "llvm")] #[cfg(feature = "llvm")]
fn get_compiler(limit: u64) -> impl Compiler { fn get_compiler(limit: u64) -> impl Compiler {
use wasmer_llvm_backend::code::LLVMModuleCodeGenerator;
use wasmer_runtime_core::codegen::{MiddlewareChain, StreamingCompiler}; use wasmer_runtime_core::codegen::{MiddlewareChain, StreamingCompiler};
let c: StreamingCompiler<LLVMModuleCodeGenerator, _, _, _, _> = use wasmer_llvm_backend::ModuleCodeGenerator as LLVMMCG;
let c: StreamingCompiler<LLVMMCG, _, _, _, _> =
StreamingCompiler::new(move || { StreamingCompiler::new(move || {
let mut chain = MiddlewareChain::new(); let mut chain = MiddlewareChain::new();
chain.push(Metering::new(limit)); chain.push(Metering::new(limit));