Move inline breakpoint outside of runtime backend

There was some code smell leaking inline breakpoint implementation into the runtime core backend instead of the compiler itself
This commit is contained in:
Syrus
2019-12-20 18:25:03 -08:00
parent 0419df937e
commit 294cc28135
16 changed files with 214 additions and 139 deletions

View File

@ -5,6 +5,7 @@ use cranelift_codegen::ir;
use cranelift_entity::EntityRef;
use cranelift_wasm;
use std::sync::Arc;
use std::{cell::RefCell, rc::Rc};
use wasmer_runtime_core::cache::{Artifact, Error as CacheError};
@ -42,9 +43,8 @@ impl Module {
let runnable_module = Caller::new(handler_data, trampolines, func_resolver);
Ok(ModuleInner {
runnable_module: Box::new(runnable_module),
runnable_module: Rc::new(RefCell::new(Box::new(runnable_module))),
cache_gen,
info,
})
}